kubekitctl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "kubekitctl",
	Short: "KubeKit client",
	Long:  `It's a client to interact with the KubeKit server using the gRPC or REST API.`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.HelpFunc()(cmd, args)
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Config

type Config struct {
	Debug       bool   `json:"debug" yaml:"debug" toml:"debug" mapstructure:"debug"`
	Insecure    bool   `json:"insecure" yaml:"insecure" toml:"insecure" mapstructure:"insecure"`
	Host        string `json:"host" yaml:"host" toml:"host" mapstructure:"host"`
	Port        string `json:"port" yaml:"port" toml:"port" mapstructure:"port"`
	PortGRPC    string `json:"grpc-port" yaml:"grpc-port" toml:"grpc-port" mapstructure:"grpc-port"`
	PortHealthz string `json:"healthz-port" yaml:"healthz-port" toml:"healthz-port" mapstructure:"healthz-port"`
	NoHTTP      bool   `json:"no-http" yaml:"no-http" toml:"no-http" mapstructure:"no-http"`
	NoGRPC      bool   `json:"no-grpc" yaml:"no-grpc" toml:"no-grpc" mapstructure:"no-grpc"`
	CertDir     string `json:"cert-dir" yaml:"cert-dir" toml:"cert-dir" mapstructure:"cert-dir"`
	CertFile    string `json:"tls-cert-file" yaml:"tls-cert-file" toml:"tls-cert-file" mapstructure:"tls-cert-file"`
	KeyFile     string `json:"tls-private-key-file" yaml:"tls-private-key-file" toml:"tls-private-key-file" mapstructure:"tls-private-key-file"`
	CAFile      string `json:"ca-file" yaml:"ca-file" toml:"ca-file" mapstructure:"ca-file"`

	Logger *log.Logger
	// contains filtered or unexported fields
}

Config store all the KubeKit Client parameters

Jump to

Keyboard shortcuts

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