MCPcopy Create free account

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

Functions581 in github.com/cue-labs/oci

↓ 49 callersMethodlogf
(f string, a ...any)
ociregistry/ocidebug/debug.go:213
↓ 43 callersMethodCheck
(note func(key string, value any))
ociregistry/ocitest/ocitest.go:337
↓ 31 callersMethodClose
()
ociregistry/ocimem/blob.go:90
↓ 25 callersFunctionParseScope
ParseScope parses a scope as defined in the [Docker distribution spec]. For scopes that don't fit that syntax, it returns a Scope with the ResourceTy
ociregistry/ociauth/scope.go:135
↓ 24 callersMethodCode
Code returns the error code.
ociregistry/error.go:133
↓ 22 callersMethodEntryForRegistry
EntryForRegistry returns auth information for the given host. If there's no information available, it should return the zero ConfigEntry and nil.
ociregistry/ociauth/authfile.go:25
↓ 20 callersMethodClose
()
ociregistry/ociclient/client.go:242
↓ 19 callersMethodString
String returns the string representation of the scope, as suitable for passing to the token refresh "scopes" attribute.
ociregistry/ociauth/scope.go:447
↓ 19 callersMethodrepo
(name string)
ociregistry/ocifilter/sub.go:189
↓ 18 callersFunctionNewError
NewError returns a new error with the given code, message and detail.
ociregistry/error.go:116
↓ 18 callersMethodmapScopes
mapScopes changes any auth scopes in the context so that they refer to the prefixed names rather than the originals.
ociregistry/ocifilter/sub.go:171
↓ 18 callersMethodnewError
(ctx context.Context, methodName, repo string)
ociregistry/func.go:66
↓ 17 callersMethodPushBlob
PushBlob pushes a blob described by desc to the given repository, reading content from r. Only the desc.Digest and desc.Size fields are used. It retur
ociregistry/interface.go:151
↓ 16 callersMethodFatalf
(format string, args ...any)
ociregistry/ociauth/auth_test.go:822
↓ 16 callersFunctionboth
both returns the results from calling f on both registries concurrently.
ociregistry/ociunify/unify.go:83
↓ 15 callersMethodPushManifest
PushManifest pushes a manifest with the given media type and contents. If tag is non-empty, the tag with that name will be pointed at the manifest. I
ociregistry/interface.go:195
↓ 15 callersMethodget
()
ociregistry/ociunify/unify.go:196
↓ 14 callersMethodGetBlob
GetBlob returns the content of the blob with the given digest. The context also controls the lifetime of the returned BlobReader. Errors: - ErrNameUnk
ociregistry/interface.go:96
↓ 14 callersMethodResolveTag
ResolveTag returns the descriptor for a given tag. Only the MediaType, Digest and Size fields will be filled out. Errors: - ErrNameUnknown when the re
ociregistry/interface.go:138
↓ 14 callersFunctionload
(t *testing.T, runner HelperRunner, cfgData string)
ociregistry/ociauth/authfile_test.go:614
↓ 13 callersFunctionNewStdTransport
NewStdTransport returns an [http.RoundTripper] implementation that acquires authorization tokens using the flows implemented by the usual docker clien
ociregistry/ociauth/auth.go:66
↓ 13 callersFunctionmk2
(x T, err error)
ociregistry/ociunify/unify.go:181
↓ 13 callersFunctionnewTargetServer
newTargetServer returns the URL for a test target server that uses the targetGate parameter to gate requests to the /test endpoint: if targetGate retu
ociregistry/ociauth/auth_test.go:679
↓ 12 callersMethodReferrers
Referrers returns an iterator that can be used to iterate over all the manifests that have the given digest as their Subject. If artifactType is non-z
ociregistry/interface.go:231
↓ 12 callersMethodString
()
ociregistry/ociauth/auth_test.go:775
↓ 12 callersFunctionrunNonFatal
runNonFatal runs the given function within t but will not call Fatal on t even if Fatal is called on the t passed to f. It reports whether all checks
ociregistry/ociauth/auth_test.go:787
↓ 11 callersMethodContains
Contains reports whether s1 is a (non-strict) superset of s2.
ociregistry/ociauth/scope.go:379
↓ 11 callersMethodGetBlobRange
GetBlobRange is like GetBlob but asks to get only the given range of bytes from the blob, starting at offset0, up to but not including offset1. If off
ociregistry/interface.go:103
↓ 11 callersMethodIsUnlimited
IsUnlimited reports whether s is unlimited in scope.
ociregistry/ociauth/scope.go:213
↓ 11 callersMethodRepositories
Repositories returns an iterator that can be used to iterate over all the repositories in the registry in lexical order. If startAfter is non-empty, t
ociregistry/interface.go:218
↓ 11 callersFunctionassertRequest
(ctx context.Context, t testing.TB, tsURL *url.URL, path string, client *http.Client, needScope Scope)
ociregistry/ociauth/auth_test.go:622
↓ 11 callersMethoderror
()
ociregistry/ociunify/unify.go:77
↓ 10 callersMethodGetTag
GetTag returns the contents of the manifest with the given tag. The context also controls the lifetime of the returned BlobReader. Errors: - ErrNameUn
ociregistry/interface.go:117
↓ 10 callersMethodPushBlobChunkedResume
PushBlobChunkedResume resumes a previous push of a blob started with PushBlobChunked. The id should be the value returned from [BlobWriter.ID] from th
ociregistry/interface.go:175
↓ 10 callersMethodResolveBlob
ResolveDigest returns the descriptor for a given blob. Only the MediaType, Digest and Size fields will be filled out. Errors: - ErrNameUnknown when th
ociregistry/interface.go:124
↓ 10 callersMethodResolveManifest
ResolveManifest returns the descriptor for a given maniifest. Only the MediaType, Digest and Size fields will be filled out. Errors: - ErrNameUnknown
ociregistry/interface.go:131
↓ 10 callersFunctionbothResults
(r0, r1 T)
ociregistry/ociunify/unify.go:62
↓ 9 callersMethodDeleteBlob
DeleteBlob deletes the blob with the given digest in the given repository.
ociregistry/interface.go:201
↓ 9 callersMethodDeleteManifest
DeleteManifest deletes the manifest with the given digest in the given repository.
ociregistry/interface.go:204
↓ 9 callersMethodDeleteTag
DeleteTag deletes the manifest with the given tag in the given repository. TODO does this delete the tag only, or the manifest too?
ociregistry/interface.go:208
↓ 9 callersMethodDescriptor
Descriptor returns the descriptor for the blob.
ociregistry/interface.go:274
↓ 9 callersMethodGetManifest
GetManifest returns the contents of the manifest with the given digest. The context also controls the lifetime of the returned BlobReader. Errors: - E
ociregistry/interface.go:110
↓ 9 callersMethodIs
Is makes it possible for users to write `if errors.Is(err, ociregistry.ErrBlobUnknown)` even when the error hasn't exactly wrapped that error.
ociregistry/error.go:84
↓ 9 callersMethodPushBlobChunked
PushBlobChunked starts to push a blob to the given repository. The returned [BlobWriter] can be used to stream the upload and resume on temporary erro
ociregistry/interface.go:162
↓ 9 callersMethodTags
Tags returns an iterator that can be used to iterate over all the tags in the given repository in lexical order. If startAfter is non-empty, the tags
ociregistry/interface.go:224
↓ 9 callersMethodWrite
Write implements io.Writer by writing some data to the blob.
ociregistry/ocimem/blob.go:119
↓ 9 callersMethodclose
()
ociregistry/ociunify/unify.go:78
↓ 9 callersFunctiondigestOf
(s string)
ociregistry/ociserver/registry_test.go:676
↓ 9 callersFunctionpush
(t *testing.T, dst content.Pusher, mediaType string, content []byte)
ociregistry/internal/conformance/conformance_test.go:526
↓ 8 callersMethodCompare
Compare returns -1, 0 or 1 depending on whether rs1 compares less than, equal, or greater than, rs2. In most to least precedence, the fields are comp
ociregistry/ociauth/scope.go:79
↓ 8 callersMethodError
Error implements the [error] interface.
ociregistry/error.go:90
↓ 8 callersMethodFatal
(args ...any)
ociregistry/ociauth/auth_test.go:816
↓ 8 callersMethodID
ID returns the opaque identifier for this writer. The returned value can be passed to PushBlobChunked to resume the write. It is only valid before Wri
ociregistry/interface.go:256
↓ 8 callersMethodMountBlob
MountBlob makes a blob with the given digest that's in fromRepo available in toRepo and returns its canonical descriptor. This avoids the need to pul
ociregistry/interface.go:189
↓ 8 callersMethoddo
(req *http.Request, okStatuses ...int)
ociregistry/ociclient/client.go:282
↓ 8 callersFunctionmustJSONMarshal
(x any)
ociregistry/ocimem/check_test.go:608
↓ 8 callersFunctionnewAuthServer
newAuthServer returns the URL for an auth server that uses auth to service authorization requests. If that returns a nil *httpError, the first return
ociregistry/ociauth/auth_test.go:649
↓ 7 callersMethodCommit
Commit completes the blob writer process. The content is verified against the provided digest, and a canonical descriptor for it is returned.
ociregistry/interface.go:260
↓ 7 callersFunctionLoad
Load loads the auth configuration from the first location it can find. It uses runner to run any external helper commands; if runner is nil, [ExecHelp
ociregistry/ociauth/authfile.go:142
↓ 7 callersMethodUnion
Union returns a scope consisting of all the resource scopes from both s1 and s2. If the result is the same as s1, its string representation will also
ociregistry/ociauth/scope.go:281
↓ 7 callersFunctionauthScopeFromRequest
(t testing.TB, req *http.Request)
ociregistry/ociauth/auth_test.go:744
↓ 7 callersMethoddescriptor
()
ociregistry/ocimem/registry.go:50
↓ 7 callersFunctionmustNewOCIClient
(srvURL string, opts *ociclient.Options)
ociregistry/internal/conformance/conformance_test.go:442
↓ 7 callersMethodrepo
(repoName string)
ociregistry/ocimem/registry.go:101
↓ 7 callersFunctionrunTests
(t *testing.T, startSrv func(t *testing.T) string)
ociregistry/internal/conformance/conformance_test.go:201
↓ 6 callersMethodClose
()
ociregistry/ociclient/writer.go:356
↓ 6 callersMethodEqual
(s2 Scope)
ociregistry/ociauth/scope.go:429
↓ 6 callersFunctionNewScope
NewScope returns a Scope value that holds the set of everything in rss.
ociregistry/ociauth/scope.go:160
↓ 6 callersMethodSize
Size returns the number of bytes written to this blob.
ociregistry/interface.go:245
↓ 6 callersMethoddoRequest
doRequest performs the given OCI request, sending it with the given body (which may be nil).
ociregistry/ociclient/client.go:260
↓ 6 callersMethodnew
()
cmd/ocisrv/registry.go:53
↓ 6 callersFunctionnewRequest
(ctx context.Context, rreq *ocirequest.Request, body io.Reader)
ociregistry/ociclient/client.go:413
↓ 6 callersFunctionpushJSON
(t *testing.T, dst content.Pusher, mediaType string, content any)
ociregistry/internal/conformance/conformance_test.go:520
↓ 6 callersFunctionwithMediaType
(desc ociregistry.Descriptor, mt string)
ociregistry/internal/conformance/conformance_test.go:515
↓ 5 callersMethodMustPushContent
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:164
↓ 5 callersFunctionNewWithConfig
NewWithConfig returns a new in-memory [ociregistry.Interface] implementation using the given configuration. If cfg is nil, it's treated the same as a
ociregistry/ocimem/registry.go:71
↓ 5 callersMethodWrite
(buf []byte)
ociregistry/ociclient/writer.go:275
↓ 5 callersMethodblobForDigest
(repoName string, dig ociregistry.Digest)
ociregistry/ocimem/registry.go:120
↓ 5 callersFunctiondescriptorFromResponse
descriptorFromResponse tries to form a descriptor from an HTTP response, filling in the Digest field using knownDigest if it's not present. Note: thi
ociregistry/ociclient/client.go:141
↓ 5 callersFunctionmk1
(err error)
ociregistry/ociunify/unify.go:163
↓ 5 callersMethodmkErr
(err error)
ociregistry/ociunify/unify.go:79
↓ 5 callersFunctionparseScopeMaybeUnlimited
(s string)
ociregistry/ociauth/scope_test.go:398
↓ 5 callersFunctionwithHTTPCode
(statusCode int, err error)
ociregistry/ociserver/error.go:23
↓ 4 callersMethodChunkSize
ChunkSize returns the maximum number of bytes to upload at a single time. This number must meet the minimum given by the registry and should otherwise
ociregistry/interface.go:250
↓ 4 callersMethodIter
Iter returns an iterator over all the individual scopes that are part of s. The items will be produced according to [Scope.Compare] ordering. The unl
ociregistry/ociauth/scope.go:229
↓ 4 callersMethodLen
Len returns the number of ResourceScopes in the scope set. It panics if the scope is unlimited.
ociregistry/ociauth/scope.go:191
↓ 4 callersFunctionNew
New returns a registry implementation that uses the OCI HTTP API. A nil opts parameter is equivalent to a pointer to zero Options. The host specifies
ociregistry/ociclient/client.go:84
↓ 4 callersMethodStatusCode
StatusCode returns the HTTP status code of the response.
ociregistry/error.go:148
↓ 4 callersFunctionUnlimitedScope
UnlimitedScope returns a scope that contains all other scopes. This is not representable in the docker scope syntax, but it's useful to represent the
ociregistry/ociauth/scope.go:206
↓ 4 callersFunctionbadRequestf
(f string, a ...any)
ociregistry/internal/ocirequest/request.go:36
↓ 4 callersFunctionlocationFromResponse
(resp *http.Response)
ociregistry/ociclient/client.go:342
↓ 4 callersMethodmakeRepo
(repoName string)
ociregistry/ocimem/registry.go:132
↓ 4 callersFunctionmergeIter
(it0, it1 iter.Seq2[T, error], cmp func(T, T) int)
ociregistry/ociunify/lister.go:52
↓ 4 callersMethodsetLocationHeader
(resp http.ResponseWriter, isManifest bool, desc ociregistry.Descriptor, defaultLocation string)
ociregistry/ociserver/registry.go:220
↓ 4 callersFunctionsortDescriptors
(ds []ociregistry.Descriptor)
ociregistry/internal/conformance/conformance_test.go:509
↓ 4 callersMethodtagOrDigest
()
ociregistry/internal/ocirequest/create.go:110
↓ 3 callersFunctionAccessChecker
AccessChecker returns a wrapper for r that invokes check to check access before calling an underlying method. Only if check succeeds will the underlyi
ociregistry/ocifilter/select.go:53
↓ 3 callersFunctionCheckDescriptor
CheckDescriptor checks that the given descriptor matches the given data or, if data is nil, that the descriptor looks sane.
ociregistry/ocimem/registry.go:157
↓ 3 callersFunctionContextWithScope
ContextWithScope returns ctx annotated with the given scope. When the ociauth transport receives a request with a scope in the context, it will treat
ociregistry/ociauth/context.go:14
↓ 3 callersMethodIsEmpty
IsEmpty reports whether the scope holds the empty set.
ociregistry/ociauth/scope.go:218
next →1–100 of 581, ranked by callers