class

package
v0.7.2-beta.14 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 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 GetManager

func GetManager(client dynamic.Interface, cdName string) (*class.Manager, 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 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

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