cmd

package
v0.0.0-...-d0cda72 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

func NewAPIServer

func NewAPIServer(ctx CommandContext) *cobra.Command

func NewVersion

func NewVersion() *cobra.Command

func NewWebhookServer

func NewWebhookServer(ctx CommandContext) *cobra.Command

func Run

func Run(_ *cobra.Command, _ []string) error

Types

type APIServerConfig

type APIServerConfig struct {
	Namespace       string
	Threadiness     int
	HTTPListenPort  int
	HTTPSListenPort int
	// contains filtered or unexported fields
}

func (*APIServerConfig) Run

func (a *APIServerConfig) Run(cmd *cobra.Command, _ []string) error

type CommandContext

type CommandContext struct {
	*Oneblock
	StdOut io.Writer
	StdErr io.Writer
	StdIn  io.Reader
}

type Oneblock

type Oneblock struct {
	Kubeconfig     string
	Name           string
	Version        string
	ProfileAddress string
	LogFormat      string
	Debug          bool
	Trace          bool
}

Oneblock define the common struct for all commands

type WebhookConfig

type WebhookConfig struct {
	Namespace       string
	Threadiness     int
	HTTPSListenPort int
	DevMode         bool
	DevURL          string
	// contains filtered or unexported fields
}

func (*WebhookConfig) Run

func (a *WebhookConfig) Run(cmd *cobra.Command, _ []string) error

Jump to

Keyboard shortcuts

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