Documentation ¶
Index ¶
- Constants
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- type AccessSpec
- func (a *AccessSpec) AccessMethod(access accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
- func (a *AccessSpec) Describe(ctx accspeccpi.Context) string
- func (a *AccessSpec) GetComponent() string
- func (a *AccessSpec) GetVersion() string
- func (a *AccessSpec) GlobalAccessSpec(ctx accspeccpi.Context) accspeccpi.AccessSpec
- func (a *AccessSpec) IsLocal(ctx accspeccpi.Context) bool
Constants ¶
View Source
const ( Type = "ocm" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Type is the access type for a blob in an OCI repository.
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
Types ¶
type AccessSpec ¶
type AccessSpec struct { runtime.ObjectVersionedType `json:",inline"` // OCMRepository is the URL of the OCM repository to load the chart from. OCMRepository *cpi.GenericRepositorySpec `json:"ocmRepository,omitempty"` // Component if the name of the root component used to lookup the resource. Component string `json:"component,omitempty"` // Version is the version og the root component. Version string `json:"version,omitempty,"` ResourceRef metav1.ResourceReference `json:"resourceRef"` }
AccessSpec describes the access for an OCM repository.
func New ¶
func New(comp, vers string, repo cpi.RepositorySpec, id metav1.Identity, path ...metav1.Identity) (*AccessSpec, error)
New creates a new Helm Chart accessor for helm repositories.
func (*AccessSpec) AccessMethod ¶
func (a *AccessSpec) AccessMethod(access accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
func (*AccessSpec) Describe ¶
func (a *AccessSpec) Describe(ctx accspeccpi.Context) string
func (*AccessSpec) GetComponent ¶
func (a *AccessSpec) GetComponent() string
func (*AccessSpec) GetVersion ¶
func (a *AccessSpec) GetVersion() string
func (*AccessSpec) GlobalAccessSpec ¶
func (a *AccessSpec) GlobalAccessSpec(ctx accspeccpi.Context) accspeccpi.AccessSpec
func (*AccessSpec) IsLocal ¶
func (a *AccessSpec) IsLocal(ctx accspeccpi.Context) bool
Click to show internal directories.
Click to hide internal directories.