img

package
v0.0.0-...-e6552b6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRepoSubdirectory = "component-descriptors"

Variables

View Source
var (
	ErrAccessTypeNotSupported           = errors.New("access type not supported")
	ErrComponentNameMappingNotSupported = errors.New("componentNameMapping not supported")
)

Functions

This section is empty.

Types

type Layer

type Layer struct {
	LayerName
	LayerRepresentation
}

type LayerName

type LayerName string
const (
	ConfigLayer LayerName = "config"
	CRDsLayer   LayerName = "crds"
)

type LayerRepresentation

type LayerRepresentation interface {
	ToInstallRaw() ([]byte, error)
}

type LayerType

type LayerType string

type Layers

type Layers []Layer

func Parse

func Parse(
	descriptor *compdesc.ComponentDescriptor,
) (Layers, error)

type OCI

type OCI struct {
	Repo               string                   `json:"repo"`
	Name               string                   `json:"name"`
	Ref                string                   `json:"ref"`
	Type               string                   `json:"type"`
	CredSecretSelector *apimetav1.LabelSelector `json:"credSecretSelector,omitempty"`
}

func (*OCI) String

func (o *OCI) String() string

func (*OCI) ToInstallRaw

func (o *OCI) ToInstallRaw() ([]byte, error)

Jump to

Keyboard shortcuts

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