Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct{}
func (*Factory) CreateTemplate ¶
func (f *Factory) CreateTemplate(renderBundle api.BundleRenderer) api.Template
type Substitute ¶
type Substitute struct {
Name string `json:"name"` // the bundle image pullspec to substitute
Base string `json:"base"` // the bundle name to substitute for
}
Substitute defines a replacement relationship between an existing bundle name and a superceding bundle image pullspec. Since registry+v0 graphs are bundle name based, this uses the name instead of a version.
type SubstitutesTemplateData ¶
type SubstitutesTemplateData struct {
Schema string `json:"schema"`
Entries []*declcfg.Meta `json:"entries"`
Substitutions []Substitute `json:"substitutions"`
}
SubstitutesTemplateData represents a template for bundle substitutions. It contains the schema identifier, an input declarative config, and substitution mappings that define how bundles should be replaced in upgrade graphs.
func FromReader ¶
func FromReader(r io.Reader) (*SubstitutesTemplateData, error)
FromReader reads FBC from a reader and generates a SubstitutesForTemplate from it
Click to show internal directories.
Click to hide internal directories.