Documentation ¶
Index ¶
- Constants
- type AccessSpec
- func (a *AccessSpec) AccessMethod(access accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
- func (a *AccessSpec) Describe(context accspeccpi.Context) string
- func (a *AccessSpec) GetDigest() (string, bool)
- func (a *AccessSpec) GetOCIReference(cv accspeccpi.ComponentVersionAccess) (string, error)
- func (a *AccessSpec) GetReferenceHint(cv internal.ComponentVersionAccess) string
- func (a *AccessSpec) GlobalAccessSpec(context accspeccpi.Context) accspeccpi.AccessSpec
- func (a *AccessSpec) IsLocal(context accspeccpi.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 accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
func (*AccessSpec) Describe ¶
func (a *AccessSpec) Describe(context accspeccpi.Context) string
func (*AccessSpec) GetDigest ¶
func (a *AccessSpec) GetDigest() (string, bool)
func (*AccessSpec) GetOCIReference ¶ added in v0.5.0
func (a *AccessSpec) GetOCIReference(cv accspeccpi.ComponentVersionAccess) (string, error)
func (*AccessSpec) GetReferenceHint ¶
func (a *AccessSpec) GetReferenceHint(cv internal.ComponentVersionAccess) string
func (*AccessSpec) GlobalAccessSpec ¶
func (a *AccessSpec) GlobalAccessSpec(context accspeccpi.Context) accspeccpi.AccessSpec
func (*AccessSpec) IsLocal ¶
func (a *AccessSpec) IsLocal(context accspeccpi.Context) bool
Click to show internal directories.
Click to hide internal directories.