Documentation ¶
Index ¶
- Constants
- func AsTags(tag string) []string
- func DefaultContext() internal.Context
- func GetConsumerIdForRef(ref string) (cpi.ConsumerIdentity, error)
- func IsErrBlobNotFound(err error) bool
- func IsIntermediate(spec RepositorySpec) bool
- func IsUnknown(r RepositorySpec) bool
- func StandardOCIRef(host, repository, version string) string
- func WithContext(ctx context.Context) internal.Builder
- func WithCredentials(ctx credentials.Context) internal.Builder
- func WithRepositorySpecHandlers(reg RepositorySpecHandlers) internal.Builder
- func WithRepositoyTypeScheme(scheme RepositoryTypeScheme) internal.Builder
- type ArtSpec
- type ArtifactAccess
- type ArtifactContainer
- type BlobAccess
- type ConsumerIdentityProvider
- type Context
- type ContextProvider
- type DataAccess
- type EvaluationResult
- type GenericRepositorySpec
- type IndexAccess
- type IntermediateRepositorySpecAspect
- type ManifestAccess
- type NamespaceAccess
- type NamespaceContainer
- type NamespaceLister
- type RefSpec
- type Repository
- type RepositorySpec
- type RepositorySpecHandler
- type RepositorySpecHandlers
- type RepositoryType
- type RepositoryTypeScheme
- type Session
- type UniformRepositorySpec
Constants ¶
View Source
const ( KIND_OCIARTIFACT = internal.KIND_OCIARTIFACT KIND_MEDIATYPE = blobaccess.KIND_MEDIATYPE KIND_BLOB = blobaccess.KIND_BLOB )
View Source
const ( KIND_OCI_REFERENCE = "oci reference" KIND_ARETEFACT_REFERENCE = "artifact reference" )
to find a suitable secret for images on Docker Hub, we need its two domains to do matching.
View Source
const CONTEXT_TYPE = internal.CONTEXT_TYPE
View Source
const CommonTransportFormat = internal.CommonTransportFormat
Variables ¶
This section is empty.
Functions ¶
func DefaultContext ¶
func GetConsumerIdForRef ¶
func GetConsumerIdForRef(ref string) (cpi.ConsumerIdentity, error)
func IsErrBlobNotFound ¶
func IsIntermediate ¶
func IsIntermediate(spec RepositorySpec) bool
func IsUnknown ¶
func IsUnknown(r RepositorySpec) bool
func StandardOCIRef ¶
func WithCredentials ¶
func WithCredentials(ctx credentials.Context) internal.Builder
func WithRepositorySpecHandlers ¶
func WithRepositorySpecHandlers(reg RepositorySpecHandlers) internal.Builder
func WithRepositoyTypeScheme ¶
func WithRepositoyTypeScheme(scheme RepositoryTypeScheme) internal.Builder
Types ¶
type ArtSpec ¶
type ArtSpec struct { // Repository is the part of a reference without its hostname Repository string `json:"repository"` // +optional Tag *string `json:"tag,omitempty"` // +optional Digest *digest.Digest `json:"digest,omitempty"` }
ArtSpec is a go internal representation of a oci reference.
func (*ArtSpec) IsRegistry ¶
type ArtifactAccess ¶
type ArtifactAccess = internal.ArtifactAccess
type ArtifactContainer ¶
type ArtifactContainer interface {
GetArtifact(version string) (ArtifactAccess, error)
}
type BlobAccess ¶
type BlobAccess = internal.BlobAccess
type ConsumerIdentityProvider ¶
type ConsumerIdentityProvider = internal.ConsumerIdentityProvider
type Context ¶
func FromContext ¶
func FromProvider ¶
func FromProvider(p ContextProvider) Context
func New ¶
func New(mode ...datacontext.BuilderMode) Context
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
type DataAccess ¶
type DataAccess = internal.DataAccess
type EvaluationResult ¶
type EvaluationResult struct { Ref RefSpec Repository Repository Namespace NamespaceAccess Artifact ArtifactAccess }
type GenericRepositorySpec ¶
type GenericRepositorySpec = internal.GenericRepositorySpec
func ToGenericRepositorySpec ¶
func ToGenericRepositorySpec(spec RepositorySpec) (*GenericRepositorySpec, error)
type IndexAccess ¶
type IndexAccess = internal.IndexAccess
type IntermediateRepositorySpecAspect ¶
type IntermediateRepositorySpecAspect = internal.IntermediateRepositorySpecAspect
type ManifestAccess ¶
type ManifestAccess = internal.ManifestAccess
type NamespaceAccess ¶
type NamespaceAccess = internal.NamespaceAccess
type NamespaceContainer ¶
type NamespaceContainer interface {
LookupNamespace(name string) (NamespaceAccess, error)
}
type NamespaceLister ¶
type NamespaceLister = internal.NamespaceLister
type RefSpec ¶
type RefSpec struct { UniformRepositorySpec `json:",inline"` ArtSpec `json:",inline"` }
RefSpec is a go internal representation of an oci reference.
type Repository ¶
type Repository = internal.Repository
type RepositorySpec ¶
type RepositorySpec = internal.RepositorySpec
type RepositorySpecHandler ¶
type RepositorySpecHandler = internal.RepositorySpecHandler
type RepositorySpecHandlers ¶
type RepositorySpecHandlers = internal.RepositorySpecHandlers
type RepositoryType ¶
type RepositoryType = internal.RepositoryType
type RepositoryTypeScheme ¶
type RepositoryTypeScheme = internal.RepositoryTypeScheme
type Session ¶
type Session interface { datacontext.Session LookupRepository(Context, RepositorySpec) (Repository, error) LookupNamespace(NamespaceContainer, string) (NamespaceAccess, error) GetArtifact(ArtifactContainer, string) (ArtifactAccess, error) EvaluateRef(ctx Context, ref string) (*EvaluationResult, error) DetermineRepository(ctx Context, ref string) (Repository, UniformRepositorySpec, error) DetermineRepositoryBySpec(ctx Context, spec *UniformRepositorySpec) (Repository, error) }
func NewSession ¶
func NewSession(s datacontext.Session) Session
type UniformRepositorySpec ¶
type UniformRepositorySpec = internal.UniformRepositorySpec
func ParseRepo ¶
func ParseRepo(ref string) (UniformRepositorySpec, error)
ParseRepo parses a standard oci repository reference into an internal representation.
Directories ¶
Path | Synopsis |
---|---|
extensions
|
|
helm/ignore
Package ignore provides tools for writing ignore files (a la .gitignore).
|
Package ignore provides tools for writing ignore files (a la .gitignore). |
tools
|
|
Click to show internal directories.
Click to hide internal directories.