bases

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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