Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/serverless-registry
/ functions
Functions
158 in github.com/cloudflare/serverless-registry
⨍
Functions
158
◇
Types & classes
25
↓ 75 callers
Function
createRequest
(method: string, path: string, body: ReadableStream | null, headers = {})
test/index.test.ts:102
↓ 74 callers
Method
list
(prefix: string, callback: (object: R2Object) => Promise<boolean>)
src/registry/garbage-collector.ts:151
↓ 69 callers
Function
createManifest
(name: string, schema: ManifestSchema, tag?: string)
test/index.test.ts:244
↓ 64 callers
Function
fetch
(r: Request)
test/index.test.ts:136
↓ 61 callers
Function
generateManifest
(name: string, schemaVersion: 1 | 2 = 2)
test/index.test.ts:27
↓ 35 callers
Function
getImageManifestV2
(schema: ManifestSchema)
test/index.test.ts:208
↓ 24 callers
Function
manifestSize
(schema: ManifestSchema)
test/index.test.ts:216
↓ 23 callers
Function
numberedDigest
(index: number)
test/index.test.ts:121
↓ 20 callers
Function
runGarbageCollector
(name: string, mode: "unreferenced" | "untagged" | "both")
test/index.test.ts:2109
↓ 15 callers
Function
getReferrersIndex
(name: string, digest: string, params?: URLSearchParams)
test/index.test.ts:282
↓ 14 callers
Function
errorString
(err: unknown)
src/utils.ts:48
↓ 14 callers
Function
fetch
(request: Request, env: Env, context?: ExecutionContext)
index.ts:39
↓ 12 callers
Function
hexToDigest
(sha256: ArrayBuffer, prefix: string = SHA256_PREFIX + ":")
src/user.ts:16
↓ 11 callers
Function
getSHA256
(data: string, prefix: string = SHA256_PREFIX + ":")
src/user.ts:47
↓ 10 callers
Method
verifyPayload
(request: Request, payload: RegistryAuthProtocolTokenPayload)
src/token.ts:112
↓ 10 callers
Function
wrap
(fn: Promise<T>)
src/utils.ts:60
↓ 9 callers
Method
listReferrers
( namespace: string, digest: string, options?: { artifactType?: string; limit?: number
src/registry/registry.ts:156
↓ 9 callers
Function
wrapError
(method: string, err: unknown)
src/registry/registry.ts:220
↓ 8 callers
Function
fetchUnauth
(r: Request)
test/index.test.ts:129
↓ 6 callers
Function
ctxIntoRequest
(ctx: HTTPContext, url: URL, method: string, path: string, body?: BodyInit)
src/registry/http.ts:159
↓ 6 callers
Function
isDockerDotIO
(url: URL)
src/registry/http.ts:30
↓ 6 callers
Function
limit
(streamInput: ReadableStream, limitBytes: number)
src/chunk.ts:45
↓ 6 callers
Function
mountLayersFromManifest
(from: string, schema: ManifestSchema, name: string)
test/index.test.ts:264
↓ 5 callers
Method
authenticate
(namespace: string)
src/registry/http.ts:262
↓ 5 callers
Function
isValidDigest
(digest: string)
src/user.ts:22
↓ 5 callers
Function
parseLinkHeaderURL
(link: string)
test/index.test.ts:115
↓ 5 callers
Function
registries
(env: Env)
src/registry/registry.ts:27
↓ 4 callers
Method
authBase64
()
src/registry/http.ts:244
↓ 4 callers
Function
getRegistryUploadsPath
(state: { registryUploadId: string; name: string })
src/registry/r2.ts:166
↓ 4 callers
Function
getUploadState
( name: string, uploadId: string, env: Env, verifyHash: string | undefined, )
src/registry/r2.ts:202
↓ 4 callers
Method
manifestExists
(namespace: string, tag: string)
src/registry/registry.ts:134
↓ 4 callers
Function
stringToArrayBuffer
(s: string)
src/user.ts:41
↓ 3 callers
Function
ManifestUnknownError
(tag: string)
src/v2-errors.ts:1
↓ 3 callers
Function
createManifestList
(name: string, tag?: string)
test/index.test.ts:1971
↓ 3 callers
Function
generateManifestList
(amdManifest: ManifestSchema, armManifest: ManifestSchema)
test/index.test.ts:73
↓ 3 callers
Method
getLayer
(namespace: string, digest: string)
src/registry/registry.ts:153
↓ 3 callers
Method
getManifest
(namespace: string, digest: string)
src/registry/registry.ts:140
↓ 3 callers
Function
jsonHeaders
()
src/utils.ts:64
↓ 3 callers
Method
putManifest
( namespace: string, reference: string, readableStream: ReadableStream, options: { conte
src/registry/registry.ts:167
↓ 3 callers
Function
uploadManifest
( name: string, schema: ManifestSchema, tag?: string, )
test/index.test.ts:220
↓ 3 callers
Function
usernamePasswordToAuth
(username: string, password: string)
test/index.test.ts:125
↓ 2 callers
Method
checkIfGCCanContinue
(namespace: string, mark: string)
src/registry/garbage-collector.ts:129
↓ 2 callers
Method
checkIfV2OnlyPath
(request: Request)
src/token.ts:79
↓ 2 callers
Function
ctxIntoHeaders
(ctx: HTTPContext)
src/registry/http.ts:144
↓ 2 callers
Function
encodeState
(state: State, env: Env)
src/registry/r2.ts:186
↓ 2 callers
Function
formatNextLink
(url: URL)
src/router.ts:26
↓ 2 callers
Method
getGCMarker
(namespace: string)
src/registry/garbage-collector.ts:66
↓ 2 callers
Method
getInsertionMark
(namespace: string)
src/registry/garbage-collector.ts:116
↓ 2 callers
Function
getLayersFromManifest
(schema: ManifestSchema)
test/index.test.ts:249
↓ 2 callers
Function
importKeyFromBase64
(key: string)
src/token.ts:10
↓ 2 callers
Function
parseLocation
(location: string)
push/index.ts:258
↓ 2 callers
Method
password
()
src/registry/http.ts:253
↓ 2 callers
Function
pushLayer
(layerDigest: string, readableStream: ReadableStream, totalLayerSize: number)
push/index.ts:217
↓ 2 callers
Function
readableToBlob
( reader: ReadableStreamDefaultReader, ...multiwriters: WritableStreamDefaultWriter[] )
src/utils.ts:3
↓ 2 callers
Function
referrersPath
(name: string, subjectDigest: string, digest: string)
src/registry/r2.ts:41
↓ 2 callers
Function
referrersPrefix
(name: string, digest: string)
src/registry/r2.ts:37
↓ 2 callers
Function
seedReferrerIndex
(name: string, subjectDigest: string, descriptors: ReferrerDescriptor[])
test/index.test.ts:294
↓ 2 callers
Function
split
( stream: ReadableStream, size: number, maxSize: number, )
src/chunk.ts:69
↓ 2 callers
Function
stripUsernamePasswordFromHeader
(r: Request)
src/auth.ts:24
↓ 1 callers
Function
artifactTypeFromManifest
(manifest: ManifestSchema)
src/registry/r2.ts:45
↓ 1 callers
Function
authHeaderIntoAuthContext
(urlObject: URL, authenticateHeader: string)
src/registry/http.ts:171
↓ 1 callers
Method
authenticateBasic
(ctx: AuthContext)
src/registry/http.ts:403
↓ 1 callers
Method
authenticateBearer
(ctx: AuthContext)
src/registry/http.ts:330
↓ 1 callers
Method
authenticateBearerSimple
(ctx: AuthContext, params: URLSearchParams)
src/registry/http.ts:317
↓ 1 callers
Function
authenticationMethodFromEnv
(env: Env)
src/authentication-method.ts:6
↓ 1 callers
Method
cancelUpload
(namespace: string, uploadId: UploadId)
src/registry/registry.ts:181
↓ 1 callers
Method
checkCanInsertData
(namespace: string, mark: string)
src/registry/garbage-collector.ts:79
↓ 1 callers
Method
checkCredentials
(r: Request)
src/auth.ts:21
↓ 1 callers
Method
cleanInsertion
(namespace: string, tag: string)
src/registry/garbage-collector.ts:107
↓ 1 callers
Method
cleanupGarbageCollectionMark
(namespace: string)
src/registry/garbage-collector.ts:58
↓ 1 callers
Method
collect
(options: GCOptions)
src/registry/garbage-collector.ts:175
↓ 1 callers
Method
collectInner
(options: GCOptions)
src/registry/garbage-collector.ts:185
↓ 1 callers
Function
descriptorFromManifest
(manifest: ManifestSchema, digest: string, size: number)
src/registry/r2.ts:61
↓ 1 callers
Function
ensureConfig
(env: Env)
index.ts:84
↓ 1 callers
Method
finishUpload
( namespace: string, uploadId: string, location: string, expectedDigest: string, stream?:
src/registry/registry.ts:208
↓ 1 callers
Method
garbageCollection
(namespace: string, mode: GarbageCollectionMode)
src/registry/registry.ts:217
↓ 1 callers
Function
getChunkBlob
(env: Env, chunk: Chunk)
src/chunk.ts:18
↓ 1 callers
Function
getHelperR2Path
(id: string)
src/chunk.ts:14
↓ 1 callers
Function
getJWT
(env: Env, state: { registryUploadId: string; name: string })
src/registry/r2.ts:170
↓ 1 callers
Method
getUpload
(namespace: string, uploadId: UploadId)
src/registry/registry.ts:184
↓ 1 callers
Function
isOpaqueReferrersCursor
(cursor: string)
src/router.ts:24
↓ 1 callers
Function
isOpaqueReferrersCursor
(cursor: string)
src/registry/http.ts:132
↓ 1 callers
Method
layerExists
(namespace: string, digest: string)
src/registry/registry.ts:150
↓ 1 callers
Method
listRepositories
(limit?: number, last?: string)
src/registry/registry.ts:137
↓ 1 callers
Method
markForGarbageCollection
(namespace: string)
src/registry/garbage-collector.ts:47
↓ 1 callers
Method
markForInsertion
(namespace: string)
src/registry/garbage-collector.ts:94
↓ 1 callers
Method
monolithicUpload
( namespace: string, expectedSha: string, stream: ReadableStream, // For a more optimal upload
src/registry/registry.ts:188
↓ 1 callers
Method
mountExistingLayer
( sourceName: string, digest: string, destinationName: string, )
src/registry/registry.ts:143
↓ 1 callers
Function
newRegistryTokens
(jwtPublicKey: string)
src/token.ts:17
↓ 1 callers
Function
normalizeReferrersCursor
(nextURL: URL, requestURL: URL)
src/registry/http.ts:136
↓ 1 callers
Function
parseLinkHeaderURL
(link: string, baseURL: string)
src/registry/http.ts:87
↓ 1 callers
Function
parseStoredReferrerDescriptor
(descriptor: unknown, expectedDigest: string)
src/registry/r2.ts:84
↓ 1 callers
Method
putManifestInner
( name: string, reference: string, readableStream: ReadableStream, contentType: string, ch
src/registry/r2.ts:495
↓ 1 callers
Function
read
(stream: stream.Readable)
push/index.ts:8
↓ 1 callers
Function
readerToBlob
(readaleStream: ReadableStream, ...multiwriters: WritableStreamDefaultWriter[])
src/utils.ts:23
↓ 1 callers
Function
shuffleArray
(array: T[])
test/index.test.ts:106
↓ 1 callers
Function
splitLinkHeaderValues
(link: string)
src/registry/http.ts:58
↓ 1 callers
Method
startUpload
(namespace: string)
src/registry/registry.ts:178
↓ 1 callers
Method
uploadChunk
( namespace: string, uploadId: string, location: string, stream: ReadableStream, // for a
src/registry/registry.ts:197
↓ 1 callers
Method
verifyManifest
(name: string, manifest: ManifestSchema)
src/registry/r2.ts:360
next →
1–100 of 158, ranked by callers