Documentation ¶
Index ¶
- Constants
- func ArtifactAsBlobCache(access cpi.ArtifactAccess) accessio.BlobCache
- func Convert(art cpi.Artifact, blobs accessio.BlobSource, dst types.ImageDestination) (cpi.BlobAccess, error)
- func ImageId(art cpi.Artifact) digest.Digest
- func NewDataAccess(src types.ImageSource, info types.BlobInfo, delayed bool) (*dataAccess, error)
- func NewNamespace(repo *RepositoryImpl, name string) (cpi.NamespaceAccess, error)
- func NewRepository(ctx cpi.Context, spec *RepositorySpec) (cpi.Repository, error)
- func ParseGenericRef(ref string) (string, string, error)
- func ParseRef(name, version string) (types.ImageReference, error)
- type RepositoryImpl
- func (r *RepositoryImpl) Close() error
- func (r *RepositoryImpl) ExistsArtifact(name string, version string) (bool, error)
- func (r *RepositoryImpl) GetNamespaces(prefix string, closure bool) ([]string, error)
- func (r *RepositoryImpl) GetRepositories() ([]string, error)
- func (r *RepositoryImpl) GetSpecification() cpi.RepositorySpec
- func (r *RepositoryImpl) IsReadOnly() bool
- func (r *RepositoryImpl) LookupArtifact(name string, version string) (cpi.ArtifactAccess, error)
- func (r *RepositoryImpl) LookupNamespace(name string) (cpi.NamespaceAccess, error)
- func (r *RepositoryImpl) NamespaceLister() cpi.NamespaceLister
- func (r *RepositoryImpl) NumNamespaces(prefix string) (int, error)
- type RepositorySpec
Constants ¶
View Source
const ( Type = "DockerDaemon" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Variables ¶
This section is empty.
Functions ¶
func ArtifactAsBlobCache ¶
func ArtifactAsBlobCache(access cpi.ArtifactAccess) accessio.BlobCache
func Convert ¶
func Convert(art cpi.Artifact, blobs accessio.BlobSource, dst types.ImageDestination) (cpi.BlobAccess, error)
func NewDataAccess ¶
func NewNamespace ¶
func NewNamespace(repo *RepositoryImpl, name string) (cpi.NamespaceAccess, error)
func NewRepository ¶
func NewRepository(ctx cpi.Context, spec *RepositorySpec) (cpi.Repository, error)
Types ¶
type RepositoryImpl ¶
type RepositoryImpl struct { cpi.RepositoryImplBase // contains filtered or unexported fields }
func (*RepositoryImpl) Close ¶
func (r *RepositoryImpl) Close() error
func (*RepositoryImpl) ExistsArtifact ¶
func (r *RepositoryImpl) ExistsArtifact(name string, version string) (bool, error)
func (*RepositoryImpl) GetNamespaces ¶
func (r *RepositoryImpl) GetNamespaces(prefix string, closure bool) ([]string, error)
func (*RepositoryImpl) GetRepositories ¶
func (r *RepositoryImpl) GetRepositories() ([]string, error)
func (*RepositoryImpl) GetSpecification ¶
func (r *RepositoryImpl) GetSpecification() cpi.RepositorySpec
func (*RepositoryImpl) IsReadOnly ¶
func (r *RepositoryImpl) IsReadOnly() bool
func (*RepositoryImpl) LookupArtifact ¶
func (r *RepositoryImpl) LookupArtifact(name string, version string) (cpi.ArtifactAccess, error)
func (*RepositoryImpl) LookupNamespace ¶
func (r *RepositoryImpl) LookupNamespace(name string) (cpi.NamespaceAccess, error)
func (*RepositoryImpl) NamespaceLister ¶
func (r *RepositoryImpl) NamespaceLister() cpi.NamespaceLister
func (*RepositoryImpl) NumNamespaces ¶
func (r *RepositoryImpl) NumNamespaces(prefix string) (int, error)
type RepositorySpec ¶
type RepositorySpec struct { runtime.ObjectVersionedType `json:",inline"` DockerHost string `json:"dockerHost,omitempty"` }
RepositorySpec describes an OCI registry interface backed by an oci registry.
func NewRepositorySpec ¶
func NewRepositorySpec(host ...string) *RepositorySpec
NewRepositorySpec creates a new RepositorySpec for an optional host.
func (*RepositorySpec) GetType ¶
func (a *RepositorySpec) GetType() string
func (*RepositorySpec) Name ¶
func (a *RepositorySpec) Name() string
func (*RepositorySpec) Repository ¶
func (a *RepositorySpec) Repository(ctx cpi.Context, creds credentials.Credentials) (cpi.Repository, error)
func (*RepositorySpec) UniformRepositorySpec ¶
func (a *RepositorySpec) UniformRepositorySpec() *cpi.UniformRepositorySpec
Click to show internal directories.
Click to hide internal directories.