Documentation ¶
Index ¶
- Constants
- func AsTags(tag string) []string
- func DefaultContext() internal.Context
- func IsErrBlobNotFound(err error) bool
- func IsIntermediate(spec 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 ArtefactAccess
- type ArtefactContainer
- type BlobAccess
- 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 RepositoryTypeScheme
- type Session
- type UniformRepositorySpec
Constants ¶
View Source
const ( KIND_OCIARTEFACT = internal.KIND_OCIARTEFACT KIND_MEDIATYPE = accessio.KIND_MEDIATYPE KIND_BLOB = accessio.KIND_BLOB )
View Source
const ( KIND_OCI_REFERENCE = "oci reference" KIND_ARETEFACT_REFERENCE = "artefact 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 IsErrBlobNotFound ¶
func IsIntermediate ¶
func IsIntermediate(spec 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 // +optional Tag *string // +optional Digest *digest.Digest }
ArtSpec is a go internal representation of a oci reference.
type ArtefactAccess ¶
type ArtefactAccess = internal.ArtefactAccess
type ArtefactContainer ¶
type ArtefactContainer interface {
GetArtefact(version string) (ArtefactAccess, error)
}
type BlobAccess ¶
type BlobAccess = internal.BlobAccess
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
type DataAccess ¶
type DataAccess = internal.DataAccess
type EvaluationResult ¶
type EvaluationResult struct { Ref RefSpec Repository Repository Namespace NamespaceAccess Artefact ArtefactAccess }
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 // 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"` }
RefSpec is a go internal representation of a oci reference.
func (*RefSpec) CredHost ¶
CredHost fallback to legacy docker domain if applicable this is how containerd translates the old domain for DockerHub to the new one, taken from containerd/reference/docker/reference.go:674.
func (*RefSpec) IsRegistry ¶
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 RepositoryTypeScheme ¶
type RepositoryTypeScheme = internal.RepositoryTypeScheme
type Session ¶
type Session interface { datacontext.Session LookupRepository(Context, RepositorySpec) (Repository, error) LookupNamespace(NamespaceContainer, string) (NamespaceAccess, error) GetArtefact(ArtefactContainer, string) (ArtefactAccess, 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 a internal representation.
Directories ¶
Path | Synopsis |
---|---|
helm/ignore
Package ignore provides tools for writing ignore files (a la .gitignore).
|
Package ignore provides tools for writing ignore files (a la .gitignore). |
Click to show internal directories.
Click to hide internal directories.