class

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentClassTemplate = `` /* 658-byte string literal not displayed */

Variables

This section is empty.

Functions

func GetCustomClassObjectName added in v0.7.2

func GetCustomClassObjectName(cdName string, componentName string) string

GetCustomClassObjectName returns the name of the ComponentClassDefinition object containing the custom classes

func GetManager

GetManager gets a class manager which manages default classes and user custom classes

func GetResourceConstraints

func GetResourceConstraints(dynamic dynamic.Interface) (map[string]*v1alpha1.ComponentResourceConstraint, error)

GetResourceConstraints gets all resource constraints

func NewClassCommand

func NewClassCommand(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

func NewCreateCommand

func NewCreateCommand(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

func NewListCommand

func NewListCommand(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

func NewTemplateCmd

func NewTemplateCmd(streams genericiooptions.IOStreams) *cobra.Command

func ValidateResources added in v0.7.2

func ValidateResources(clsMGR *component.Manager,
	resourceConstraintList *v1alpha1.ComponentResourceConstraintList,
	clusterDefRef string,
	comp *v1alpha1.ClusterComponentSpec) error

Types

type CreateOptions

type CreateOptions struct {
	genericiooptions.IOStreams

	Factory cmdutil.Factory

	ClusterDefRef string
	ComponentType string
	ClassName     string
	CPU           string
	Memory        string
	File          string
	// contains filtered or unexported fields
}

type ListOptions

type ListOptions struct {
	ClusterDefRef string
	Factory       cmdutil.Factory

	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

type TemplateOptions

type TemplateOptions struct {
	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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