ocm

package
v0.17.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 AddConfig

func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL