cmd

package
v0.0.0-...-947b840 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAction = "create"

Variables

This section is empty.

Functions

func Example

func Example(s string) string

Example trims all leading and trailing spaces from each line and indents it with some spaces.

func LongDesc

func LongDesc(s string) string

LongDesc trims alls leading and trailing spaces from each line.

func NewApplyCmd

func NewApplyCmd() *cobra.Command

func NewDestroyCmd

func NewDestroyCmd() *cobra.Command

func NewExportCmd

func NewExportCmd() *cobra.Command

func NewExportConfigCmd

func NewExportConfigCmd() *cobra.Command

func NewExportKcCmd

func NewExportKcCmd() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

Types

type ApplyOptions

type ApplyOptions struct {
	Config string
	Action string

	app.AppContextOptions
}

func (*ApplyOptions) Run

func (o *ApplyOptions) Run() error

type DestroyOptions

type DestroyOptions struct {
	ClusterName string

	app.AppContextOptions
}

func (*DestroyOptions) Run

func (o *DestroyOptions) Run() error

type ExportConfigOptions

type ExportConfigOptions struct {
	ClusterName string

	app.AppContextOptions
}

func (*ExportConfigOptions) Run

func (o *ExportConfigOptions) Run() error

type ExportKcOptions

type ExportKcOptions struct {
	ClusterName string

	app.AppContextOptions
}

func (*ExportKcOptions) Run

func (o *ExportKcOptions) Run() error

type ListOptions

type ListOptions struct {
	app.AppContextOptions
}

func (*ListOptions) Run

func (o *ListOptions) Run() error

type MetaClusters

type MetaClusters []cluster.ClusterMeta

func AllClusters

func AllClusters(ctx app.AppContext) (MetaClusters, error)

AllClusters returns list of clusters meta from both global (project) and local clusters directory (if working directory is a Kubitect project).

func (MetaClusters) CountByName

func (cs MetaClusters) CountByName(name string) int

func (MetaClusters) FindByName

func (cs MetaClusters) FindByName(name string) *cluster.ClusterMeta

func (MetaClusters) Names

func (cs MetaClusters) Names() []string

Jump to

Keyboard shortcuts

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