Documentation ¶
Index ¶
- Constants
- func GetCustomClassObjectName(cdName string, componentName string) string
- func GetManager(client dynamic.Interface, cdName string) (*component.Manager, *v1alpha1.ComponentResourceConstraintList, error)
- func GetResourceConstraints(dynamic dynamic.Interface) (map[string]*v1alpha1.ComponentResourceConstraint, error)
- func NewClassCommand(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func NewCreateCommand(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func NewListCommand(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func NewTemplateCmd(streams genericiooptions.IOStreams) *cobra.Command
- func ValidateResources(clsMGR *component.Manager, ...) error
- type CreateOptions
- type ListOptions
- type TemplateOptions
Constants ¶
View Source
const ComponentClassTemplate = `` /* 658-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GetCustomClassObjectName ¶ added in v0.7.2
GetCustomClassObjectName returns the name of the ComponentClassDefinition object containing the custom classes
func GetManager ¶
func GetManager(client dynamic.Interface, cdName string) (*component.Manager, *v1alpha1.ComponentResourceConstraintList, error)
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 NewCreateCommand ¶
func NewListCommand ¶
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 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 }
Click to show internal directories.
Click to hide internal directories.