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.
Click to show internal directories.
Click to hide internal directories.