manifest

package
v1.111.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 12 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 LocalRepository

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

func NewLocalRepository

func NewLocalRepository(basedir string) *LocalRepository

func (*LocalRepository) LoadChannel

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

func (*LocalRepository) LoadManifest

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

func (*LocalRepository) LoadNamespacedComponents

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

type ManifestLoader

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

func NewManifestLoader

func NewManifestLoader(repo Repository) *ManifestLoader

func (*ManifestLoader) ResolveManifest

func (c *ManifestLoader) ResolveManifest(ctx context.Context, o runtime.Object) (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