substitutes

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

func (*Factory) Schema

func (f *Factory) Schema() string

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

Jump to

Keyboard shortcuts

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