Documentation ¶
Index ¶
- func BlobDigestFromContext(ctx context.Context) string
- func BlobUploadIDFromContext(ctx context.Context) string
- func NamespaceFromContext(ctx context.Context) string
- func ProjectFromContext(ctx context.Context) string
- func RepoFromContext(ctx context.Context) string
- func WithBlobDigest(ctx context.Context, digest string) context.Context
- func WithBlobUploadID(ctx context.Context, uploadID string) context.Context
- func WithNamespace(ctx context.Context, namespace string) context.Context
- func WithProject(ctx context.Context, project string) context.Context
- func WithRepo(ctx context.Context, repo string) context.Context
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlobDigestFromContext ¶
BlobDigestFromContext returns a blob digest defined in a context.Context.
func BlobUploadIDFromContext ¶
BlobUploadIDFromContext returns a blob upload id defined in a context.Context.
func NamespaceFromContext ¶
NamespaceFromContext returns a namespace defined in a context.Context.
func ProjectFromContext ¶
ProjectFromContext returns a project defined in a context.Context.
func RepoFromContext ¶
RepoFromContext returns a repository defined in a context.Context.
func WithBlobDigest ¶
WithBlobDigest returns a new context with the provided blob digest.
func WithBlobUploadID ¶
WithBlobUploadID returns a new context with the provided blob upload id.
func WithNamespace ¶
WithNamespace returns a new context with the provided namespace.
func WithProject ¶
WithProject returns a new context with the provided project.
Types ¶
type Key ¶
type Key string
Key is the internal titan context key.
var BlobDigestKey Key = "blob-digest"
BlobDigestKey is a context namespace for OCI blob digests.
var BlobUploadIDKey Key = "blob-upload-id-key"
BlobUploadIDKey is a context upload id for OCI blobs.
var NamespaceKey Key = "namespace"
NamespaceKey is a context namespace...for namespaces.
var ProjectKey Key = "project"
ProjectKey is a context namespace for projects.
var RepoKey Key = "repository"
RepoKey is a context namespace for repositories.