cmd

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapRunnables

func WrapRunnables(cmd *cobra.Command, wrapper RunnableWrapper)

Types

type RootArgs

type RootArgs struct {
	ConfigFile string
	Mesh       string
}

type RootContext

type RootContext struct {
	Args    RootArgs
	Runtime RootRuntime
}

func DefaultRootContext

func DefaultRootContext() *RootContext

func (*RootContext) Config

func (rc *RootContext) Config() *config_proto.Configuration

func (*RootContext) CurrentAdminResourceStore

func (rc *RootContext) CurrentAdminResourceStore() (core_store.ResourceStore, error)

func (*RootContext) CurrentContext

func (rc *RootContext) CurrentContext() (*config_proto.Context, error)

func (*RootContext) CurrentControlPlane

func (rc *RootContext) CurrentControlPlane() (*config_proto.ControlPlane, error)

func (*RootContext) CurrentDataplaneOverviewClient

func (rc *RootContext) CurrentDataplaneOverviewClient() (kumactl_resources.DataplaneOverviewClient, error)

func (*RootContext) CurrentDataplaneTokenClient

func (rc *RootContext) CurrentDataplaneTokenClient() (tokens.DataplaneTokenClient, error)

func (*RootContext) CurrentMesh

func (rc *RootContext) CurrentMesh() string

func (*RootContext) CurrentResourceStore

func (rc *RootContext) CurrentResourceStore() (core_store.ResourceStore, error)

func (*RootContext) IsFirstTimeUsage

func (rc *RootContext) IsFirstTimeUsage() bool

func (*RootContext) LoadConfig

func (rc *RootContext) LoadConfig() error

func (*RootContext) Now

func (rc *RootContext) Now() time.Time

func (*RootContext) SaveConfig

func (rc *RootContext) SaveConfig() error

type RunnableWrapper

type RunnableWrapper = func(func(*cobra.Command, []string) error) func(*cobra.Command, []string) error

Jump to

Keyboard shortcuts

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