MCPcopy Create free account

hub / github.com/cue-labs/oci / functions

Functions581 in github.com/cue-labs/oci

↓ 3 callersFunctionNew
New returns a handler which implements the docker registry protocol by making calls to the underlying registry backend r. If opts is nil, it's equiva
ociregistry/ociserver/registry.go:137
↓ 3 callersFunctionNewBytesReader
NewBytesReader returns an implementation of ociregistry.BlobReader that returns the given bytes. The returned reader will return desc from its Descrip
ociregistry/ocimem/blob.go:31
↓ 3 callersMethodRead
()
ociregistry/ociauth/authfile.go:187
↓ 3 callersFunctioncloseOnError
(err *error, r io.Closer)
ociregistry/ociclient/client.go:358
↓ 3 callersMethoddelete
(ctx context.Context, rreq *ocirequest.Request)
ociregistry/ociclient/deleter.go:49
↓ 3 callersFunctionexpectToken
(s string)
ociregistry/ociauth/challenge.go:124
↓ 3 callersMethodflush
flush flushes any outstanding upload data to the server. If commitDigest is non-empty, this is the final segment of data in the blob: the blob is bein
ociregistry/ociclient/writer.go:300
↓ 3 callersFunctionhttpErrorf
(statusCode int, f string, a ...any)
ociregistry/internal/ocirequest/request.go:40
↓ 3 callersMethodlocationForUploadID
(repo string, uploadID string)
ociregistry/ociserver/writer.go:223
↓ 3 callersFunctionlogIterReturn
(r *logger, initialMsg string, it iter.Seq2[T, error])
ociregistry/ocidebug/debug.go:261
↓ 3 callersMethodlogf
(f string, a ...any)
ociregistry/ociserver/registry.go:156
↓ 3 callersMethodmanifestForDigest
(repoName string, dig ociregistry.Digest)
ociregistry/ocimem/registry.go:108
↓ 3 callersFunctionpager
pager returns an iterator for a list entry point. It starts by sending the given initial request and parses each response into its component items usi
ociregistry/ociclient/lister.go:131
↓ 3 callersFunctionparseKnownAction
(s string)
ociregistry/ociauth/scope.go:483
↓ 3 callersFunctionpushManifest
(t *testing.T, client ociregistry.Interface, repo, tag string, content any, mediaType string)
ociregistry/ociclient/referrers_test.go:98
↓ 3 callersMethodread
(ctx context.Context, rreq *ocirequest.Request)
ociregistry/ociclient/reader.go:135
↓ 3 callersMethodresolve
(ctx context.Context, rreq *ocirequest.Request)
ociregistry/ociclient/reader.go:94
↓ 3 callersFunctionrunReadBlobReader
(ctx context.Context, u unifier, f func(ctx context.Context, r ociregistry.Interface, i int) t2[ociregistry.Bl
ociregistry/ociunify/reader.go:113
↓ 3 callersFunctionskipSpace
(s string)
ociregistry/ociauth/challenge.go:114
↓ 3 callersMethoduploadPath
()
ociregistry/internal/ocirequest/create.go:92
↓ 2 callersMethodCancel
Cancel ends the blob write without storing any data and frees any associated resources. Any data written thus far will be lost. Cancel implementations
ociregistry/interface.go:267
↓ 2 callersMethodCanonical
Canonical returns s with the same contents but with its string form made canonical (the default is to mirror exactly the string that it was created wi
ociregistry/ociauth/scope.go:440
↓ 2 callersMethodClose
()
ociregistry/ociunify/reader.go:53
↓ 2 callersMethodConstruct
()
ociregistry/internal/ocirequest/create.go:23
↓ 2 callersFunctionExecHelperWithEnv
ExecHelperWithEnv returns a [HelperRunner] that behaves like [ExecHelper] except that, if env is non-nil, it will be used as the set of environment va
ociregistry/ociauth/authfile.go:366
↓ 2 callersMethodFailNow
()
ociregistry/ociauth/auth_test.go:810
↓ 2 callersFunctionLoadWithEnv
LoadWithEnv is like [Load] but takes environment variables in the form returned by [os.Environ] instead of calling [os.Getenv]. If env is nil, the cur
ociregistry/ociauth/authfile.go:97
↓ 2 callersFunctionMarshalError
MarshalError marshals the given error as JSON according to the OCI distribution specification. It also returns the associated HTTP status code, or [ht
ociregistry/error.go:256
↓ 2 callersMethodMustConstruct
()
ociregistry/internal/ocirequest/create.go:35
↓ 2 callersFunctionNewHTTPError
NewHTTPError returns an error that wraps err to make an [HTTPError] that represents the given status code, response and response body. Both response a
ociregistry/error.go:174
↓ 2 callersFunctionParse
Parse parses a reference string that must include a host name (or host:port pair) component. It is represented in string form as HOST[:PORT]/NAME[:TA
ociregistry/ociref/reference.go:164
↓ 2 callersFunctionParse
Parse parses the given HTTP method and URL as an OCI registry request. It understands the endpoints described in the [distribution spec]. If it retur
ociregistry/internal/ocirequest/request.go:189
↓ 2 callersFunctionParseRelative
ParseRelative parses a reference string that may or may not include a host name component. It is represented in string form as [HOST[:PORT]/]NAME[:TA
ociregistry/ociref/reference.go:182
↓ 2 callersMethodSkipNow
()
ociregistry/ociauth/auth_test.go:834
↓ 2 callersFunctionSub
Sub returns r wrapped so that it addresses only repositories within pathPrefix. The prefix must match an entire path element so, for example, if the
ociregistry/ocifilter/sub.go:47
↓ 2 callersMethodacquireAccessToken
acquireAccessToken tries to acquire an access token for authorizing a request. The requiredScopeStr parameter indicates the scope that's definitely re
ociregistry/ociauth/auth.go:328
↓ 2 callersMethodacquireToken
(ctx context.Context, scope Scope)
ociregistry/ociauth/auth.go:383
↓ 2 callersFunctionappendErrorCodePrefix
(buf []byte, code string)
ociregistry/error.go:353
↓ 2 callersFunctionappendHTTPStatusPrefix
(buf []byte, statusCode int)
ociregistry/error.go:346
↓ 2 callersFunctionassertRequest1
(ctx context.Context, t testing.TB, tsURL *url.URL, path string, client *http.Client)
ociregistry/ociauth/auth_test.go:632
↓ 2 callersFunctionbadAPIUseError
(f string, a ...any)
ociregistry/ociserver/error.go:27
↓ 2 callersFunctioncanonURL
(ustr string)
ociregistry/internal/ocirequest/request_test.go:172
↓ 2 callersFunctioncheckTag
(s string)
ociregistry/ociref/reference.go:208
↓ 2 callersFunctionchunkRange
(req *http.Request)
ociregistry/ociserver/writer.go:232
↓ 2 callersFunctionchunkSizeFromResponse
See https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-a-blob-in-chunks
ociregistry/ociclient/writer.go:427
↓ 2 callersFunctionconnect
(ts *testscript.TestScript)
cmd/ocisrv/main_test.go:128
↓ 2 callersFunctioncutLast
(s, sep string)
ociregistry/internal/ocirequest/request.go:405
↓ 2 callersMethoddoTokenRequest
(req *http.Request)
ociregistry/ociauth/auth.go:473
↓ 2 callersFunctionfillBlobDescriptor
(d ociregistry.Descriptor, blobs map[string]ociregistry.Descriptor)
ociregistry/ocitest/ocitest.go:252
↓ 2 callersFunctiongetManifestInfo
getManifestInfo returns information on the manifest described by the given media type and data.
ociregistry/ocimem/desciter.go:48
↓ 2 callersFunctionisWord
(c byte)
ociregistry/ociref/reference.go:224
↓ 2 callersMethodlistParams
()
ociregistry/internal/ocirequest/create.go:96
↓ 2 callersMethodlogf
(f string, a ...any)
ociregistry/ociclient/client.go:338
↓ 2 callersFunctionmakeError
makeError forms an error from a non-OK response. It reads but does not close resp.Body.
ociregistry/ociclient/error.go:36
↓ 2 callersFunctionmanifestInfoForType
(getInfo func(T) manifestInfo)
ociregistry/ocimem/desciter.go:76
↓ 2 callersFunctionmapKeysIter
(m map[K]V, cmp func(K, K) int, startAfter K)
ociregistry/ocimem/lister.go:63
↓ 2 callersMethodmergeInto
mergeInto merges c into other, with other taking precedence per key. other must have non-nil Auths and CredHelpers maps; LoadWithEnv guarantees this.
ociregistry/ociauth/authfile.go:203
↓ 2 callersFunctionmustParseURL
(s string)
ociregistry/ociauth/auth_test.go:714
↓ 2 callersFunctionnewBlobReader
(r io.ReadCloser, desc ociregistry.Descriptor)
ociregistry/ociclient/client.go:187
↓ 2 callersMethodnextListResults
(req *http.Request, rreq *ocirequest.Request, itemsIter iter.Seq2[string, error])
ociregistry/ociserver/lister.go:122
↓ 2 callersFunctionrecordingServer
(tb testing.TB, reqs *[]string, handler http.Handler)
ociregistry/ociserver/proxy_test.go:127
↓ 2 callersFunctionreferrersTag
referrersTag returns the referrers tag for the given digest, as described in https://github.com/opencontainers/distribution-spec/blob/main/spec.md#ref
ociregistry/ociclient/lister.go:220
↓ 2 callersFunctionrefersTo
refersTo reports whether the given digest is referred to, directly or indirectly, by any item returned by the given iterator, within the given reposit
ociregistry/ocimem/writer.go:188
↓ 2 callersFunctionrepoTagIter
repoTagIter returns an iterator that iterates through all the tags in the given repository.
ociregistry/ocimem/desciter.go:62
↓ 2 callersFunctionrunRead
runRead calls f concurrently on each registry. It returns the result from the first one that returns without error. This should not be used if the ret
ociregistry/ociunify/unify.go:97
↓ 2 callersFunctionrunReadWithCancel
runReadWithCancel calls f concurrently on each registry. It returns the result from the first one that returns without error and a cancel function tha
ociregistry/ociunify/unify.go:106
↓ 2 callersFunctionscopeForRequest
(r *ocirequest.Request)
ociregistry/ociclient/client.go:368
↓ 2 callersMethodsend
(w http.ResponseWriter)
ociregistry/ociauth/auth_test.go:728
↓ 2 callersFunctionsetListQueryParams
(rreq *Request, urlq url.Values)
ociregistry/internal/ocirequest/request.go:392
↓ 2 callersFunctiontestClient
(tb testing.TB, server *httptest.Server)
ociregistry/ociserver/proxy_test.go:137
↓ 2 callersFunctiontestDistribution
testDistribution exercises the distribution-spec conformance tests.
ociregistry/internal/conformance/conformance_test.go:545
↓ 2 callersFunctiontestUnifyingProxy
(t *testing.T, opts *ociunify.Options)
ociregistry/internal/conformance/conformance_test.go:170
↓ 2 callersFunctiontruncateAndMap
(s string, n int)
ociregistry/ociclient/lister.go:229
↓ 2 callersFunctionurlWithDigest
urlWithDigest returns u with the digest query parameter set, taking care not to disrupt the initial URL (thus avoiding the charge of "manually assembi
ociregistry/ociclient/writer.go:409
↓ 2 callersFunctionwithMediaType
(desc ociregistry.Descriptor, mediaType string)
ociregistry/ociclient/referrers_test.go:82
↓ 1 callersMethodCode
Code implements [Error.Code].
ociregistry/error.go:106
↓ 1 callersFunctionContextWithRequestInfo
ContextWithRequestInfo returns ctx annotated with the given request informaton. When ociclient receives a request with this attached, it will respect
ociregistry/ociauth/context.go:44
↓ 1 callersMethodDetail
Detail returns any detail associated with the error, or nil if there is none. The caller should not mutate the returned slice.
ociregistry/error.go:138
↓ 1 callersMethodGetBlob
(ctx context.Context, repo string, digest ociregistry.Digest)
ociregistry/ociclient/reader.go:29
↓ 1 callersMethodGetManifest
(ctx context.Context, repoName string, dig ociregistry.Digest)
ociregistry/ocimem/reader.go:52
↓ 1 callersMethodGetTag
(ctx context.Context, repo string, tagName string)
ociregistry/ociclient/reader.go:115
↓ 1 callersMethodHolds
(r ResourceScope)
ociregistry/ociauth/scope.go:353
↓ 1 callersFunctionIsValidHost
IsValidHost reports whether s is a valid host (or host:port) part of a reference string.
ociregistry/ociref/reference.go:136
↓ 1 callersFunctionIsValidRepository
IsValidHost reports whether s is a valid repository part of a reference string.
ociregistry/ociref/reference.go:142
↓ 1 callersFunctionIsValidTag
IsValidTag reports whether s is a valid reference tag.
ociregistry/ociref/reference.go:147
↓ 1 callersFunctionNewBuffer
NewBuffer returns a buffer that calls commit with the when [Buffer.Commit] is invoked successfully. It's OK to call methods concurrently on a buffer.
ociregistry/ocimem/blob.go:73
↓ 1 callersMethodPushBlobChunkedResume
(ctx context.Context, repoName, id string, offset int64, chunkSize int)
ociregistry/ocimem/writer.go:59
↓ 1 callersFunctionPushContent
PushContent pushes all the content in rc to r. It returns a map mapping repository name to the descriptors describing the content that has actually b
ociregistry/ocitest/ocitest.go:96
↓ 1 callersFunctionPushRepoContent
PushRepoContent pushes the content for a single repository.
ociregistry/ocitest/ocitest.go:109
↓ 1 callersMethodRead
(data []byte)
ociregistry/ocimem/blob.go:53
↓ 1 callersFunctionRequestInfoFromContext
RequestInfoFromContext returns any request information associated with the context by [ContextWithRequestInfo].
ociregistry/ociauth/context.go:50
↓ 1 callersMethodResolveTag
(ctx context.Context, repoName string, tagName string)
ociregistry/ocimem/reader.go:70
↓ 1 callersMethodRoundTrip
(req *http.Request)
ociregistry/ociclient/auth_test.go:128
↓ 1 callersFunctionScopeFromContext
ScopeFromContext returns any scope associated with the context by [ContextWithScope].
ociregistry/ociauth/context.go:20
↓ 1 callersMethodServeHTTP
(resp http.ResponseWriter, req *http.Request)
ociregistry/ociserver/registry.go:185
↓ 1 callersMethodSkip
(args ...any)
ociregistry/ociauth/auth_test.go:828
↓ 1 callersFunctionSliceSeq
(xs []T)
ociregistry/iter.go:37
↓ 1 callersMethodString
String returns the string form of a reference in the form [HOST/]NAME[:TAG|@DIGEST]
ociregistry/ociref/reference.go:231
↓ 1 callersMethodaccessTokenForScope
(scope Scope)
ociregistry/ociauth/auth.go:505
↓ 1 callersFunctionall
(iter func(func(T) bool))
ociregistry/ociauth/scope_test.go:424
← previousnext →101–200 of 581, ranked by callers