options

package
v0.1.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 6 Imported by: 0

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

type CleanOptions struct {
	DryRun           bool
	ThresholdInMinus int64
}

CleanOptions ...

type ConnectOptions added in v0.1.0

type ConnectOptions struct {
	Global               bool
	DisableDNS           bool
	SSHPort              int
	SocksPort            int
	CIDR                 string
	Method               string
	Dump2HostsNamespaces cli.StringSlice
	ShareShadow          bool
	TunName              string
	TunCidr              string
	ClusterDomain        string
	JvmrcDir             string

	// Used for tun mode
	SourceIP string
	DestIP   string
}

ConnectOptions ...

type DaemonOptions

type DaemonOptions struct {
	KubeConfig        string
	Namespace         string
	ServiceAccount    string
	Debug             bool
	Image             string
	Labels            string
	KubeOptions       cli.StringSlice
	RuntimeOptions    *RuntimeOptions
	ProvideOptions    *ProvideOptions
	ConnectOptions    *ConnectOptions
	ExchangeOptions   *ExchangeOptions
	MeshOptions       *MeshOptions
	CleanOptions      *CleanOptions
	DashboardOptions  *dashboardOptions
	WaitTime          int
	ForceUpdateShadow bool
	UseKubectl        bool
}

DaemonOptions cli options

func NewDaemonOptions

func NewDaemonOptions() *DaemonOptions

NewDaemonOptions return new cli default options

func NewProvideDaemonOptions added in v0.1.0

func NewProvideDaemonOptions(labels string, options *ProvideOptions) *DaemonOptions

NewProvideDaemonOptions ...

type ExchangeOptions added in v0.1.0

type ExchangeOptions struct {
	Expose string
}

ExchangeOptions ...

type MeshOptions added in v0.1.0

type MeshOptions struct {
	Expose  string
	Version string
}

MeshOptions ...

type ProvideOptions added in v0.1.0

type ProvideOptions struct {
	External bool
	Expose   int
}

ProvideOptions ...

type RuntimeOptions added in v0.1.0

type RuntimeOptions struct {
	Clientset kubernetes.Interface
	// 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
	Component string
	// Shadow deployment name
	Shadow string
	// SSHCM ssh public key name of config map. format is kt-xxx(component)-public-key-xxx(version)
	SSHCM 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 ...

Jump to

Keyboard shortcuts

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