Documentation
¶
Index ¶
- Constants
- Variables
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- func Hint(nv common.NameVersion, locator, repo, version string) string
- func Is(spec cpi.AccessSpec) bool
- func Logger(c ContextProvider, keyValuePairs ...interface{}) logging.Logger
- func NewMethod(ctx cpi.ContextProvider, a cpi.AccessSpec, ref string, repo ...oci.Repository) (*accessMethod, error)
- 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) GetInexpensiveContentVersionIdentity(cv cpi.ComponentVersionAccess) string
- func (a *AccessSpec) GetReferenceHint(cv cpi.ComponentVersionAccess) string
- func (_ *AccessSpec) GetType() string
- func (a *AccessSpec) GlobalAccessSpec(ctx cpi.Context) cpi.AccessSpec
- func (_ *AccessSpec) IsLocal(cpi.Context) bool
- type ContextProvider
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 ¶
View Source
var REALM = ocmlog.DefineSubRealm("access method ociArtifact", "accessmethod/ociartifact")
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
func Is ¶
func Is(spec cpi.AccessSpec) bool
func Logger ¶ added in v0.3.0
func Logger(c ContextProvider, keyValuePairs ...interface{}) logging.Logger
func NewMethod ¶ added in v0.3.0
func NewMethod(ctx cpi.ContextProvider, a cpi.AccessSpec, ref string, repo ...oci.Repository) (*accessMethod, error)
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) GetInexpensiveContentVersionIdentity ¶ added in v0.3.0
func (a *AccessSpec) GetInexpensiveContentVersionIdentity(cv cpi.ComponentVersionAccess) string
func (*AccessSpec) GetReferenceHint ¶
func (a *AccessSpec) GetReferenceHint(cv cpi.ComponentVersionAccess) string
func (*AccessSpec) GetType ¶
func (_ *AccessSpec) GetType() string
func (*AccessSpec) GlobalAccessSpec ¶ added in v0.3.0
func (a *AccessSpec) GlobalAccessSpec(ctx cpi.Context) cpi.AccessSpec
type ContextProvider ¶ added in v0.3.0
func WrapContextProvider ¶ added in v0.3.0
func WrapContextProvider(ctx cpi.ContextProvider) ContextProvider
Click to show internal directories.
Click to hide internal directories.