class

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCmd

func NewCreateCmd(cxt *command.Context) *cobra.Command

NewCreateCmd builds a "svcat create class" command

func NewDescribeCmd

func NewDescribeCmd(cxt *command.Context) *cobra.Command

NewDescribeCmd builds a "svcat describe class" command

func NewGetCmd

func NewGetCmd(cxt *command.Context) *cobra.Command

NewGetCmd builds a "svcat get classes" command

Types

type CreateCmd

type CreateCmd struct {
	*command.Namespaced
	*command.Scoped
	Name string
	From string
}

CreateCmd contains the information needed to create a new class

func (*CreateCmd) Run

func (c *CreateCmd) Run() error

Run calls out to the pkg lib to create the class and displays the output

func (*CreateCmd) Validate

func (c *CreateCmd) Validate(args []string) error

Validate checks that the required arguments have been provided

type DescribeCmd added in v0.1.43

type DescribeCmd struct {
	*command.Context
	*command.Namespaced
	*command.Scoped

	LookupByKubeName bool
	KubeName         string
	Name             string
}

DescribeCmd contains the information needed to describe a specific class

func (*DescribeCmd) Run added in v0.1.43

func (c *DescribeCmd) Run() error

Run determines if we're getting a class by k8s name or external name, gets the details of the class, and prints the output to the user

func (*DescribeCmd) Validate added in v0.1.43

func (c *DescribeCmd) Validate(args []string) error

Validate checks that the required arguments have been provided

type GetCmd added in v0.1.43

type GetCmd struct {
	*command.Namespaced
	*command.Scoped
	*command.Formatted
	*command.BrokerFiltered

	LookupByKubeName bool
	KubeName         string
	Name             string
}

GetCmd contains the information needed to Get a specific class or all classes

func (*GetCmd) Run added in v0.1.43

func (c *GetCmd) Run() error

Run determines if we're getting a single class or all classes, and calls the pertinent function

func (*GetCmd) Validate added in v0.1.43

func (c *GetCmd) Validate(args []string) error

Validate checks that the required arguments have been provided

Jump to

Keyboard shortcuts

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