Documentation ¶
Index ¶
- Variables
- type Diff
- type DiffIncludeChannel
- type DiffIncludeConfig
- type DiffIncludePackage
- type GenerateDockerfile
- type Init
- type ListBundles
- type ListBundlesResult
- type ListChannels
- type ListChannelsResult
- type ListPackages
- type ListPackagesResult
- type Migrate
- type RefType
- type Render
- type WriteFunc
Constants ¶
This section is empty.
Variables ¶
var ErrNotAllowed = errors.New("not allowed")
Functions ¶
This section is empty.
Types ¶
type Diff ¶ added in v1.18.1
type Diff struct { Registry image.Registry OldRefs []string NewRefs []string // SkipDependencies directs Run() to not include dependencies // of bundles included in the diff if true. SkipDependencies bool IncludeConfig DiffIncludeConfig // IncludeAdditively catalog objects specified in IncludeConfig. IncludeAdditively bool Logger *logrus.Entry }
type DiffIncludeChannel ¶ added in v1.18.1
type DiffIncludeChannel struct { // Name of channel. Name string `json:"name" yaml:"name"` // Versions to include. Versions []semver.Version `json:"versions,omitempty" yaml:"versions,omitempty"` // Bundles are bundle names to include. // Set this field only if the named bundle has no semantic version metadata. Bundles []string `json:"bundles,omitempty" yaml:"bundles,omitempty"` }
DiffIncludeChannel contains a name (required) and versions (optional) to include in the diff. The full channel is only included if no versions are specified.
type DiffIncludeConfig ¶ added in v1.18.1
type DiffIncludeConfig struct { // Packages to include. Packages []DiffIncludePackage `json:"packages" yaml:"packages"` }
DiffIncludeConfig configures Diff.Run() to include a set of packages, channels, and/or bundles/versions in the output DeclarativeConfig. These override other diff mechanisms. For example, if running in heads-only mode but package "foo" channel "stable" is specified, the entire "stable" channel (all channel bundles) is added to the output.
func LoadDiffIncludeConfig ¶ added in v1.18.1
func LoadDiffIncludeConfig(r io.Reader) (c DiffIncludeConfig, err error)
LoadDiffIncludeConfig loads a (YAML or JSON) DiffIncludeConfig from r.
type DiffIncludePackage ¶ added in v1.18.1
type DiffIncludePackage struct { // Name of package. Name string `json:"name" yaml:"name"` // Channels to include. Channels []DiffIncludeChannel `json:"channels,omitempty" yaml:"channels,omitempty"` // Versions to include. All channels containing these versions // are parsed for an upgrade graph. Versions []semver.Version `json:"versions,omitempty" yaml:"versions,omitempty"` // Bundles are bundle names to include. All channels containing these bundles // are parsed for an upgrade graph. // Set this field only if the named bundle has no semantic version metadata. Bundles []string `json:"bundles,omitempty" yaml:"bundles,omitempty"` }
DiffIncludePackage contains a name (required) and channels and/or versions (optional) to include in the diff. The full package is only included if no channels or versions are specified.
type GenerateDockerfile ¶
type GenerateDockerfile struct { BaseImage string IndexDir string ExtraLabels map[string]string Writer io.Writer }
func (GenerateDockerfile) Run ¶
func (i GenerateDockerfile) Run() error
type Init ¶
type ListBundles ¶
func (*ListBundles) Run ¶
func (l *ListBundles) Run(ctx context.Context) (*ListBundlesResult, error)
type ListBundlesResult ¶
func (*ListBundlesResult) WriteColumns ¶
func (r *ListBundlesResult) WriteColumns(w io.Writer) error
type ListChannels ¶
func (*ListChannels) Run ¶
func (l *ListChannels) Run(ctx context.Context) (*ListChannelsResult, error)
type ListChannelsResult ¶
func (*ListChannelsResult) WriteColumns ¶
func (r *ListChannelsResult) WriteColumns(w io.Writer) error
type ListPackages ¶
type ListPackages struct {
IndexReference string
}
func (*ListPackages) Run ¶
func (l *ListPackages) Run(ctx context.Context) (*ListPackagesResult, error)
type ListPackagesResult ¶
func (*ListPackagesResult) WriteColumns ¶
func (r *ListPackagesResult) WriteColumns(w io.Writer) error