Documentation ¶
Index ¶
- Constants
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- func Is(spec cpi.AccessSpec) bool
- type AccessMethod
- type AccessSpec
- func (a *AccessSpec) AccessMethod(c cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
- func (a *AccessSpec) Describe(ctx cpi.Context) string
- func (a *AccessSpec) GetReferenceHint(cv cpi.ComponentVersionAccess) string
- func (_ *AccessSpec) GetType() string
- func (_ *AccessSpec) IsLocal(cpi.Context) bool
Constants ¶
View Source
const ( Type = "ociArtifact" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Type is the access type of a oci registry.
View Source
const ( LegacyType = "ociRegistry" LegacyTypeV1 = LegacyType + runtime.VersionSeparator + "v1" )
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
func Is ¶
func Is(spec cpi.AccessSpec) bool
Types ¶
type AccessMethod ¶
type AccessMethod = *accessMethod
type AccessSpec ¶
type AccessSpec struct { runtime.ObjectVersionedType `json:",inline"` // ImageReference is the actual reference to the oci image repository and tag. ImageReference string `json:"imageReference"` }
AccessSpec describes the access for a oci registry.
func (*AccessSpec) AccessMethod ¶
func (a *AccessSpec) AccessMethod(c cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
func (*AccessSpec) GetReferenceHint ¶
func (a *AccessSpec) GetReferenceHint(cv cpi.ComponentVersionAccess) string
func (*AccessSpec) GetType ¶
func (_ *AccessSpec) GetType() string
Click to show internal directories.
Click to hide internal directories.