Documentation ¶
Index ¶
- func ToContext(ctx context.Context, catalog *Catalog) context.Context
- type Builder
- func (b *Builder) AddEnvironment(name string, f func(e *v1alpha1.Environment)) *v1alpha1.Environment
- func (b *Builder) AddProject(name string, f func(p *v1alpha1.Project)) *v1alpha1.Project
- func (b *Builder) AddRelease(env *v1alpha1.Environment, project *v1alpha1.Project, version string, ...) *v1alpha1.Release
- func (b *Builder) Build() *Catalog
- type Catalog
- func (c *Catalog) GetEnvironmentNames() []string
- func (c *Catalog) GetFilesByKind(kind string) []*yml.File
- func (c *Catalog) GetReleaseNames() []string
- func (c *Catalog) LookupRelease(env, release string) (*v1alpha1.Release, error)
- func (c *Catalog) ResolveRefs() error
- func (c *Catalog) WithEnvironments(names []string)
- func (c *Catalog) WithReleaseFilter(filter filtering.Filter)
- func (c *Catalog) WithReleases(names []string)
- type Release
- type ReleaseList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*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 (*Builder) AddRelease ¶ added in v0.47.7
type Catalog ¶
type Catalog struct { Environments []*v1alpha1.Environment Releases ReleaseList Projects []*v1alpha1.Project Files []*yml.File }
func FromContext ¶ added in v0.39.0
func (*Catalog) GetEnvironmentNames ¶ added in v0.54.0
func (*Catalog) GetFilesByKind ¶
GetFilesByKind returns all files of the given kind.
func (*Catalog) GetReleaseNames ¶ added in v0.54.0
func (*Catalog) LookupRelease ¶ added in v0.56.0
func (*Catalog) ResolveRefs ¶
func (*Catalog) WithEnvironments ¶ added in v0.39.0
func (*Catalog) WithReleaseFilter ¶ added in v0.39.0
func (*Catalog) WithReleases ¶ added in v0.54.0
type Release ¶ added in v0.26.2
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.
Click to show internal directories.
Click to hide internal directories.