clicontext

package
v0.0.4-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 11 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAction

func DefaultAction(action interface{}) interface{}

func Wrap

func Wrap(f func(*CLIContext) error) func(context2 *cli.Context) error

Types

type CLIContext

type CLIContext struct {
	*clientcfg.Config
	Ctx context.Context
	CLI *cli.Context
	WC  *client.Client
	SC  *spaceclient.Client
}

func Lookup

func Lookup(data map[string]interface{}) *CLIContext

func (*CLIContext) ByID

func (c *CLIContext) ByID(id, typeName string) (*types.NamedResource, error)

func (*CLIContext) ClientLookup

func (c *CLIContext) ClientLookup(typeName string) (clientbase.APIBaseClientInterface, error)

func (*CLIContext) LookupFilters

func (c *CLIContext) LookupFilters(name, typeName string) (map[string]interface{}, bool, error)

func (*CLIContext) Store

func (c *CLIContext) Store(data map[string]interface{})

Jump to

Keyboard shortcuts

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