cmd

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "0.17.0"
)

Variables

This section is empty.

Functions

func NewDefaultKappCmd

func NewDefaultKappCmd(ui *ui.ConfUI) *cobra.Command

func NewKappCmd

func NewKappCmd(o *KappOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewVersionCmd

func NewVersionCmd(o *VersionOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewWebsiteCmd

func NewWebsiteCmd(o *WebsiteOptions) *cobra.Command

Types

type KappOptions

type KappOptions struct {
	UIFlags         UIFlags
	LoggerFlags     LoggerFlags
	KubeconfigFlags cmdcore.KubeconfigFlags
	// contains filtered or unexported fields
}

func NewKappOptions

func NewKappOptions(ui *ui.ConfUI, configFactory cmdcore.ConfigFactory,
	depsFactory cmdcore.DepsFactory) *KappOptions

type LoggerFlags added in v0.14.0

type LoggerFlags struct {
	Debug bool
}

func (*LoggerFlags) Configure added in v0.14.0

func (f *LoggerFlags) Configure(logger *logger.UILogger)

func (*LoggerFlags) Set added in v0.14.0

func (f *LoggerFlags) Set(cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory)

type UIFlags

type UIFlags struct {
	TTY            bool
	Color          bool
	JSON           bool
	NonInteractive bool
	Columns        []string
}

func (*UIFlags) ConfigureUI

func (f *UIFlags) ConfigureUI(ui *ui.ConfUI)

func (*UIFlags) Set

func (f *UIFlags) Set(cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory)

type VersionOptions

type VersionOptions struct {
	// contains filtered or unexported fields
}

func NewVersionOptions

func NewVersionOptions(ui ui.UI) *VersionOptions

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

type WebsiteOptions

type WebsiteOptions struct {
	ListenAddr string
}

func NewWebsiteOptions

func NewWebsiteOptions() *WebsiteOptions

func (*WebsiteOptions) Run

func (o *WebsiteOptions) Run() error

func (*WebsiteOptions) Server

func (o *WebsiteOptions) Server() *website.Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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