bases

package
v1.25.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.3.0

func New(operatorName string) *v1alpha1.ClusterServiceVersion

New returns a base with default data with name opertorName.

Types

type ClusterServiceVersion

type ClusterServiceVersion struct {
	// BasePath is the path to the base being read. If empty, GetBase() returns
	// a default base.
	BasePath string
	// OperatorName is the operator's name, ex. app-operator
	OperatorName string
	// OperatorType
	OperatorType projutil.OperatorType
	// APIsDir contains project API definition files.
	APIsDir string
	// GVKs are all GroupVersionKinds in the project.
	GVKs []schema.GroupVersionKind
	// Interactive turns on an interactive prompt.
	Interactive bool

	// Fields for input to the base.
	DisplayName  string
	Description  string
	Maturity     string
	Capabilities string
	Keywords     []string
	Provider     v1alpha1.AppLink
	Links        []v1alpha1.AppLink
	Maintainers  []v1alpha1.Maintainer
	Icon         []v1alpha1.Icon // TODO(estroz): read icon bytes from files.
}

ClusterServiceVersion configures the v1alpha1.ClusterServiceVersion that GetBase() returns.

func (ClusterServiceVersion) GetBase

func (b ClusterServiceVersion) GetBase() (base *v1alpha1.ClusterServiceVersion, err error)

GetBase returns a base v1alpha1.ClusterServiceVersion, populated either with default values or, if b.BasePath is set, bytes from disk.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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