Documentation ¶
Index ¶
- Constants
- type AccessSpec
- func (a *AccessSpec) AccessMethod(access cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
- func (a *AccessSpec) Describe(context cpi.Context) string
- func (a *AccessSpec) GetDigest() (string, bool)
- func (a *AccessSpec) GetInexpensiveContentVersionIdentity(cv cpi.ComponentVersionAccess) string
- func (a *AccessSpec) GetReferenceHint(cv internal.ComponentVersionAccess) string
- func (a *AccessSpec) GlobalAccessSpec(context cpi.Context) cpi.AccessSpec
- func (a *AccessSpec) IsLocal(context cpi.Context) bool
Constants ¶
View Source
const ( Type = "relativeOciReference" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Type describes the access of an OCI artifact stored as OCI artifact in the OCI registry hosting the actual component version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessSpec ¶
type AccessSpec struct { runtime.ObjectVersionedType `json:",inline"` // Reference is the OCI repository name and version separated by a colon. Reference string `json:"reference"` }
AccessSpec describes the access of an OCI artifact stored as OCI artifact in the OCI registry hosting the actual component version.
func (*AccessSpec) AccessMethod ¶
func (a *AccessSpec) AccessMethod(access cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
func (*AccessSpec) GetDigest ¶
func (a *AccessSpec) GetDigest() (string, bool)
func (*AccessSpec) GetInexpensiveContentVersionIdentity ¶
func (a *AccessSpec) GetInexpensiveContentVersionIdentity(cv cpi.ComponentVersionAccess) string
func (*AccessSpec) GetReferenceHint ¶
func (a *AccessSpec) GetReferenceHint(cv internal.ComponentVersionAccess) string
func (*AccessSpec) GlobalAccessSpec ¶
func (a *AccessSpec) GlobalAccessSpec(context cpi.Context) cpi.AccessSpec
Click to show internal directories.
Click to hide internal directories.