Documentation
¶
Index ¶
- Constants
- type AccessSpec
- func (s *AccessSpec) AccessMethod(c cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
- func (a *AccessSpec) Describe(ctx cpi.Context) string
- func (s *AccessSpec) GetMimeType() string
- func (a *AccessSpec) GlobalAccessSpec(ctx cpi.Context) cpi.AccessSpec
- func (s AccessSpec) IsLocal(context cpi.Context) bool
Constants ¶
View Source
const ( Type = "localOciBlob" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Type is the access type for a component version local blob in an OCI repository.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessSpec ¶
type AccessSpec struct { runtime.ObjectVersionedType `json:",inline"` // Digest is the digest of the targeted content. Digest digest.Digest `json:"digest"` }
AccessSpec describes the access for a oci registry. Deprecated: Use LocalBlob.
func New ¶
func New(digest digest.Digest) *AccessSpec
New creates a new LocalOCIBlob accessor. Deprecated: Use LocalBlob.
func (*AccessSpec) AccessMethod ¶
func (s *AccessSpec) AccessMethod(c cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
func (*AccessSpec) GetMimeType ¶
func (s *AccessSpec) GetMimeType() string
func (*AccessSpec) GlobalAccessSpec ¶
func (a *AccessSpec) GlobalAccessSpec(ctx cpi.Context) cpi.AccessSpec
Click to show internal directories.
Click to hide internal directories.