Documentation ¶
Index ¶
- Variables
- func GetCustomizeKtConfig() (string, bool)
- func GetCustomizeKubeConfig() (string, bool)
- func HideGlobalFlags(cmd *cobra.Command)
- func SetOptions(cmd *cobra.Command, flags *flag.FlagSet, optionStore any, ...)
- type BirdseyeOptions
- type CleanOptions
- type ConfigOptions
- type ConnectOptions
- type DaemonOptions
- type ExchangeOptions
- type ForwardOptions
- type GlobalOptions
- type MeshOptions
- type OptionConfig
- func BirdseyeFlags() []OptionConfig
- func CleanFlags() []OptionConfig
- func ConnectFlags() []OptionConfig
- func ExchangeFlags() []OptionConfig
- func ForwardFlags() []OptionConfig
- func GlobalFlags() []OptionConfig
- func MeshFlags() []OptionConfig
- func PreviewFlags() []OptionConfig
- func RecoverFlags() []OptionConfig
- type PreviewOptions
- type RecoverOptions
- type RuntimeStore
Constants ¶
This section is empty.
Variables ¶
View Source
var Store = &RuntimeStore{}
Functions ¶
func GetCustomizeKtConfig ¶ added in v0.3.5
func GetCustomizeKubeConfig ¶ added in v0.3.5
func HideGlobalFlags ¶ added in v0.3.5
func SetOptions ¶ added in v0.3.5
Types ¶
type BirdseyeOptions ¶ added in v0.3.6
BirdseyeOptions ...
type CleanOptions ¶
CleanOptions ...
type ConnectOptions ¶
type ConnectOptions struct { Global bool DisablePodIp bool DisableTunDevice bool DisableTunRoute bool ProxyPort int ProxyAddr string DnsPort int DnsCacheTtl int IncludeIps string ExcludeIps string IngressIp string Mode string DnsMode string ClusterDomain string SkipCleanup bool IncludeDomains string }
ConnectOptions ...
type DaemonOptions ¶
type DaemonOptions struct { Connect *ConnectOptions Exchange *ExchangeOptions Mesh *MeshOptions Preview *PreviewOptions Forward *ForwardOptions Recover *RecoverOptions Clean *CleanOptions Config *ConfigOptions Birdseye *BirdseyeOptions Global *GlobalOptions }
DaemonOptions cli options
type ExchangeOptions ¶
ExchangeOptions ...
type GlobalOptions ¶ added in v0.3.5
type GlobalOptions struct { AsWorker bool Kubeconfig string Namespace string ServiceAccount string Debug bool Image string ImagePullSecret string NodeSelector string WithLabel string WithAnnotation string PortForwardTimeout int PodCreationTimeout int UseShadowDeployment bool ForceUpdate bool UseLocalTime bool Context string PodQuota string ListenCheck bool }
GlobalOptions ...
type MeshOptions ¶
type MeshOptions struct { Mode string Expose string VersionMark string RouterImage string SkipPortChecking bool }
MeshOptions ...
type OptionConfig ¶ added in v0.3.5
type OptionConfig struct { Target string Alias string DefaultValue any Description string Hidden bool Required bool }
func BirdseyeFlags ¶ added in v0.3.6
func BirdseyeFlags() []OptionConfig
func CleanFlags ¶ added in v0.3.5
func CleanFlags() []OptionConfig
func ConnectFlags ¶ added in v0.3.5
func ConnectFlags() []OptionConfig
func ExchangeFlags ¶ added in v0.3.5
func ExchangeFlags() []OptionConfig
func ForwardFlags ¶ added in v0.3.6
func ForwardFlags() []OptionConfig
func GlobalFlags ¶ added in v0.3.5
func GlobalFlags() []OptionConfig
func MeshFlags ¶ added in v0.3.5
func MeshFlags() []OptionConfig
func PreviewFlags ¶ added in v0.3.5
func PreviewFlags() []OptionConfig
func RecoverFlags ¶ added in v0.3.5
func RecoverFlags() []OptionConfig
type PreviewOptions ¶
PreviewOptions ...
type RuntimeStore ¶ added in v0.3.5
type RuntimeStore struct { // Clientset for kubernetes operation Clientset kubernetes.Interface // RestConfig kubectl config RestConfig *rest.Config // Version ktctl version Version string // Component current sub-command (connect, exchange, mesh or preview) Component string // Shadow pod name Shadow string // Router pod name Router string // Mesh version of mesh pod Mesh string // Origin the origin deployment or service name Origin string // Replicas the origin replicas Replicas int32 // Service exposed service name Service string }
RuntimeStore ...
Click to show internal directories.
Click to hide internal directories.