component

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponentCmd

func NewComponentCmd(client dynamic.Interface, clientset *kubernetes.Clientset) (cmd *cobra.Command)

NewComponentCmd returns a command to manage components of KubeSphere

func NewComponentEditCmd

func NewComponentEditCmd() (cmd *cobra.Command)

NewComponentEditCmd returns a command to enable (or disable) a component by name

func NewComponentResetCmd

func NewComponentResetCmd() (cmd *cobra.Command)

NewComponentResetCmd returns a command to enable (or disable) a component by name

func NewComponentWatchCmd

func NewComponentWatchCmd() (cmd *cobra.Command)

NewComponentWatchCmd returns a command to enable (or disable) a component by name

Types

type EnableOption

type EnableOption struct {
	Option

	Edit   bool
	Toggle bool
}

EnableOption is the option for component enable command

type LogOption

type LogOption struct {
	Option

	Follow bool
	Tail   int64
}

LogOption is the option for component log command

type Option

type Option struct {
	Name    string
	Release bool
	Tag     string

	SonarQube      string
	SonarQubeToken string

	Client    dynamic.Interface
	Clientset *kubernetes.Clientset
}

Option is the common option for component command

type ResetOption

type ResetOption struct {
	Option

	ResetAll bool
	Nightly  string
}

ResetOption is the option for component reset command

type WatchOption

type WatchOption struct {
	Option

	Watch       bool
	WatchImage  string
	WatchTag    string
	WatchDeploy string

	Registry         string
	RegistryUsername string
	RegistryPassword string
	PrivateRegistry  string
	PrivateLocal     string
}

WatchOption is the option for component watch command

Jump to

Keyboard shortcuts

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