Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanOptions ¶ added in v0.1.0
CleanOptions ...
type ConnectOptions ¶ added in v0.1.0
type ConnectOptions struct {
Global bool
DisableDNS bool
DisablePodIp bool
SSHPort int
SocksPort int
SocksAddr string
CIDRs string
ExcludeIps string
Method string
Dump2HostsNamespaces string
TunName string
TunCidr string
ClusterDomain string
JvmrcDir string
UseGlobalProxy bool
// Used for tun mode
SourceIP string
DestIP string
}
ConnectOptions ...
type DaemonOptions ¶
type DaemonOptions struct {
RuntimeOptions *RuntimeOptions
ProvideOptions *ProvideOptions
ConnectOptions *ConnectOptions
ExchangeOptions *ExchangeOptions
MeshOptions *MeshOptions
CleanOptions *CleanOptions
DashboardOptions *dashboardOptions
KubeConfig string
Namespace string
ServiceAccount string
Debug bool
Image string
ImagePullSecret string
WithLabels string
WithAnnotations string
KubeOptions cli.StringSlice
WaitTime int
AlwaysUpdateShadow bool
UseKubectl bool
KubeContext string
}
DaemonOptions cli options
func NewDaemonOptions ¶
func NewDaemonOptions(version string) *DaemonOptions
NewDaemonOptions return new cli default options
type ExchangeOptions ¶ added in v0.1.0
ExchangeOptions ...
type MeshOptions ¶ added in v0.1.0
MeshOptions ...
type ProvideOptions ¶ added in v0.1.0
ProvideOptions ...
type RuntimeOptions ¶ added in v0.1.0
type RuntimeOptions struct {
Clientset kubernetes.Interface
// Version ktctl version
Version string
// UserHome path of user home, same as ${HOME}
UserHome string
// AppHome path of kt config folder, default to ${UserHome}/.ktctl
AppHome string
// Component current sub-command (connect, exchange, mesh or provide)
Component string
// Shadow pod name
Shadow string
// Router pod name
Router string
// Mesh version of mesh pod
Mesh string
// Origin the origin app name
Origin string
// Replicas the origin replicas
Replicas int32
// Service exposed service name
Service string
// Dump2Host whether dump2host enabled
Dump2Host bool
// ProxyConfig windows global proxy config
ProxyConfig registry.ProxyConfig
// RestConfig kubectl config
RestConfig *rest.Config
}
RuntimeOptions ...
Click to show internal directories.
Click to hide internal directories.