plan

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 NewDescribeCmd

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

NewDescribeCmd builds a "svcat describe plan" command

func NewGetCmd

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

NewGetCmd builds a "svcat get plans" command

Types

type DescribeCmd added in v0.2.0

type DescribeCmd struct {
	*command.Namespaced
	*command.Scoped
	LookupByKubeName bool
	ShowSchemas      bool
	KubeName         string
	Name             string
}

DescribeCmd contains the needed info to fetch detailed info about a specific plan

func (*DescribeCmd) Run added in v0.2.0

func (c *DescribeCmd) Run() error

Run determines how we are fetching a plan based on the provided arugments, and fetches the specified plan

func (*DescribeCmd) Validate added in v0.2.0

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

Validate and load the arguments passed to the svcat command.

type GetCmd added in v0.2.0

type GetCmd struct {
	*command.Namespaced
	*command.Scoped
	*command.Formatted
	LookupByKubeName bool
	KubeName         string
	Name             string

	ClassFilter   string
	ClassKubeName string
	ClassName     string
}

GetCmd contains the information needed to get a specific plan or all plans

func (*GetCmd) Run added in v0.2.0

func (c *GetCmd) Run() error

Run determines if we are fetching all plans or a specific one, and calls the corresponding method

func (*GetCmd) Validate added in v0.2.0

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

Validate parses the provided arugments and errors if they are formatted incorrectly

Jump to

Keyboard shortcuts

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