catalog

package
v0.63.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToContext added in v0.39.0

func ToContext(ctx context.Context, catalog *Catalog) context.Context

Types

type Builder added in v0.47.7

type Builder struct {
	Catalog
	// contains filtered or unexported fields
}

func NewBuilder added in v0.47.7

func NewBuilder(t *testing.T) Builder

func (*Builder) AddEnvironment added in v0.47.7

func (b *Builder) AddEnvironment(name string, f func(e *v1alpha1.Environment)) *v1alpha1.Environment

func (*Builder) AddProject added in v0.47.7

func (b *Builder) AddProject(name string, f func(p *v1alpha1.Project)) *v1alpha1.Project

func (*Builder) AddRelease added in v0.47.7

func (b *Builder) AddRelease(env *v1alpha1.Environment, project *v1alpha1.Project, version string, f func(r *v1alpha1.Release)) *v1alpha1.Release

func (*Builder) Build added in v0.47.7

func (b *Builder) Build() *Catalog

type Catalog

type Catalog struct {
	Environments []*v1alpha1.Environment
	Releases     ReleaseList
	Projects     []*v1alpha1.Project
	Files        []*yml.File
}

func FromContext added in v0.39.0

func FromContext(ctx context.Context) *Catalog

func Load

func Load(ctx context.Context, dir string, validChartRefs []string) (*Catalog, error)

func (*Catalog) GetEnvironmentNames added in v0.54.0

func (c *Catalog) GetEnvironmentNames() []string

func (*Catalog) GetFilesByKind

func (c *Catalog) GetFilesByKind(kind string) []*yml.File

GetFilesByKind returns all files of the given kind.

func (*Catalog) GetReleaseNames added in v0.54.0

func (c *Catalog) GetReleaseNames() []string

func (*Catalog) LookupRelease added in v0.56.0

func (c *Catalog) LookupRelease(env, release string) (*v1alpha1.Release, error)

func (*Catalog) ResolveRefs

func (c *Catalog) ResolveRefs() error

func (*Catalog) WithEnvironments added in v0.39.0

func (c *Catalog) WithEnvironments(names []string)

func (*Catalog) WithReleaseFilter added in v0.39.0

func (c *Catalog) WithReleaseFilter(filter filtering.Filter)

func (*Catalog) WithReleases added in v0.54.0

func (c *Catalog) WithReleases(names []string)

type Release added in v0.26.2

type Release = cross.Release

Export internal catalog types so that they can worked with from code that use the public joy packages.

type ReleaseList added in v0.26.2

type ReleaseList = cross.ReleaseList

Export internal catalog types so that they can worked with from code that use the public joy packages.

Jump to

Keyboard shortcuts

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