manifest

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveVersion

func ResolveVersion(ctx context.Context, repo Repository, componentName string, channelName string) (string, error)

Types

type Loader added in v1.114.0

type Loader struct {
	// contains filtered or unexported fields
}

func NewLoader added in v1.114.0

func NewLoader(repo Repository) *Loader

func (*Loader) ResolveManifest added in v1.114.0

func (c *Loader) ResolveManifest(ctx context.Context, o runtime.Object) (map[string]string, error)

type LocalRepository

type LocalRepository struct {
	// contains filtered or unexported fields
}

func NewLocalRepository

func NewLocalRepository(basedir string) *LocalRepository

func (*LocalRepository) LoadChannel

func (r *LocalRepository) LoadChannel(_ context.Context, name string) (*loaders.Channel, error)

func (*LocalRepository) LoadManifest

func (r *LocalRepository) LoadManifest(_ context.Context, componentName string, version string, o declarative.DeclarativeObject) (map[string]string, error)

func (*LocalRepository) LoadNamespacedComponents

func (r *LocalRepository) LoadNamespacedComponents(_ context.Context, componentName string, version string) (map[string]string, error)

type PerNamespaceManifestLoader

type PerNamespaceManifestLoader struct {
	// contains filtered or unexported fields
}

func NewPerNamespaceManifestLoader

func NewPerNamespaceManifestLoader(repo Repository) *PerNamespaceManifestLoader

func (*PerNamespaceManifestLoader) ResolveManifest

func (p *PerNamespaceManifestLoader) ResolveManifest(ctx context.Context, o runtime.Object) (map[string]string, error)

type Repository

type Repository interface {
	LoadChannel(ctx context.Context, name string) (*loaders.Channel, error)
	LoadManifest(ctx context.Context, component string, version string, o declarative.DeclarativeObject) (map[string]string, error)
	LoadNamespacedComponents(ctx context.Context, componentName string, version string) (map[string]string, error)
}

Jump to

Keyboard shortcuts

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