explorer

package
v0.0.0-...-12e3274 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(command string, args []string) error

func Exit

func Exit() error

func Explore

func Explore(explorable Explorable) error

func Init

func Init(opt *RuntimeOptions) error

Types

type ClusterExplorer

type ClusterExplorer struct {
	Items []*MenuItem
}

func (*ClusterExplorer) Execute

func (n *ClusterExplorer) Execute(selection string) error

func (*ClusterExplorer) Kind

func (n *ClusterExplorer) Kind() string

func (*ClusterExplorer) List

func (n *ClusterExplorer) List() error

func (*ClusterExplorer) RunPrompt

func (n *ClusterExplorer) RunPrompt() (string, error)

type DaemonSetExplorer

type DaemonSetExplorer struct {
	Items              []*MenuItem
	PreviousItem       *MenuItem
	NamespaceToExplore string
	DaemonSetToExplore string
	PreviousExplorer   Explorable
}

func (*DaemonSetExplorer) Execute

func (n *DaemonSetExplorer) Execute(selection string) error

func (*DaemonSetExplorer) Kind

func (n *DaemonSetExplorer) Kind() string

func (*DaemonSetExplorer) List

func (n *DaemonSetExplorer) List() error

func (*DaemonSetExplorer) RunPrompt

func (n *DaemonSetExplorer) RunPrompt() (string, error)

type DeploymentExplorer

type DeploymentExplorer struct {
	Items               []*MenuItem
	PreviousItem        *MenuItem
	NamespaceToExplore  string
	DeploymentToExplore string
	PreviousExplorer    Explorable
}

func (*DeploymentExplorer) Execute

func (n *DeploymentExplorer) Execute(selection string) error

func (*DeploymentExplorer) Kind

func (n *DeploymentExplorer) Kind() string

func (*DeploymentExplorer) List

func (n *DeploymentExplorer) List() error

func (*DeploymentExplorer) RunPrompt

func (n *DeploymentExplorer) RunPrompt() (string, error)

type Explorable

type Explorable interface {
	//Title() string
	List() error
	RunPrompt() (string, error)
	Execute(selection string) error
	Kind() string
}
type MenuItem struct {
	// contains filtered or unexported fields
}

func AddEdit

func AddEdit(prev *MenuItem, items []*MenuItem) []*MenuItem

func AddExit

func AddExit(items []*MenuItem) []*MenuItem

func AddGoBack

func AddGoBack(items []*MenuItem) []*MenuItem

func NewMenuItemFromReadable

func NewMenuItemFromReadable(readable string) *MenuItem
func (m *MenuItem) GetKind() string
func (m *MenuItem) GetName() string
func (m *MenuItem) GetReadable() string
func (m *MenuItem) SetKind(t string)
func (m *MenuItem) SetName(t string)

type NamespaceExplorer

type NamespaceExplorer struct {
	Items              []*MenuItem
	PreviousItem       *MenuItem
	NamespaceToExplore string
	PreviousExplorer   Explorable
}

func (*NamespaceExplorer) Execute

func (n *NamespaceExplorer) Execute(selection string) error

func (*NamespaceExplorer) Kind

func (n *NamespaceExplorer) Kind() string

func (*NamespaceExplorer) List

func (n *NamespaceExplorer) List() error

func (*NamespaceExplorer) RunPrompt

func (n *NamespaceExplorer) RunPrompt() (string, error)

type PodExplorer

type PodExplorer struct {
	Items              []*MenuItem
	PreviousItem       *MenuItem
	NamespaceToExplore string
	PodToExplore       string
	PreviousExplorer   Explorable
}

func (*PodExplorer) Execute

func (n *PodExplorer) Execute(selection string) error

func (*PodExplorer) Kind

func (n *PodExplorer) Kind() string

func (*PodExplorer) List

func (n *PodExplorer) List() error

func (*PodExplorer) RunPrompt

func (n *PodExplorer) RunPrompt() (string, error)

type PodsExplorer

type PodsExplorer struct {
	Items                []*MenuItem
	PreviousItem         *MenuItem
	NamespaceToExplore   string
	Filters              map[string]string
	PreviousExplorer     Explorable
	PreviousResourceName string
}

func (*PodsExplorer) Execute

func (n *PodsExplorer) Execute(selection string) error

func (*PodsExplorer) Kind

func (n *PodsExplorer) Kind() string

func (*PodsExplorer) List

func (n *PodsExplorer) List() error

func (*PodsExplorer) RunPrompt

func (n *PodsExplorer) RunPrompt() (string, error)

type RuntimeOptions

type RuntimeOptions struct {
	KubeconfigPath string
	ShellExecImage string
}

type StatefulSetExplorer

type StatefulSetExplorer struct {
	Items                []*MenuItem
	PreviousItem         *MenuItem
	NamespaceToExplore   string
	StatefulSetToExplore string
	PreviousExplorer     Explorable
}

func (*StatefulSetExplorer) Execute

func (n *StatefulSetExplorer) Execute(selection string) error

func (*StatefulSetExplorer) Kind

func (n *StatefulSetExplorer) Kind() string

func (*StatefulSetExplorer) List

func (n *StatefulSetExplorer) List() error

func (*StatefulSetExplorer) RunPrompt

func (n *StatefulSetExplorer) RunPrompt() (string, error)

Jump to

Keyboard shortcuts

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