options

package
v0.3.5-beta1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanOptions

type CleanOptions struct {
	DryRun           bool
	ThresholdInMinus int64
	SweepLocalRoute  bool
}

CleanOptions ...

type ConnectOptions

type ConnectOptions struct {
	Global           bool
	DisablePodIp     bool
	DisableTunDevice bool
	DisableTunRoute  bool
	SocksPort        int
	DnsCacheTtl      int64
	IncludeIps       string
	ExcludeIps       string
	Mode             string
	DnsMode          string
	SharedShadow     bool
	ClusterDomain    string
	SkipCleanup      bool
}

ConnectOptions ...

type DaemonOptions

type DaemonOptions struct {
	RuntimeStore        *RuntimeOptions
	PreviewOptions      *PreviewOptions
	ConnectOptions      *ConnectOptions
	ExchangeOptions     *ExchangeOptions
	MeshOptions         *MeshOptions
	CleanOptions        *CleanOptions
	RunAsWorkerProcess  bool
	KubeConfig          string
	Namespace           string
	ServiceAccount      string
	Debug               bool
	Image               string
	ImagePullSecret     string
	NodeSelector        string
	WithLabels          string
	WithAnnotations     string
	PortForwardWaitTime int
	PodCreationWaitTime int
	UseShadowDeployment bool
	AlwaysUpdateShadow  bool
	SkipTimeDiff        bool
	KubeContext         string
	PodQuota            string
}

DaemonOptions cli options

func Get

func Get() *DaemonOptions

Get fetch options instance

type ExchangeOptions

type ExchangeOptions struct {
	Mode            string
	Expose          string
	RecoverWaitTime int
}

ExchangeOptions ...

type MeshOptions

type MeshOptions struct {
	Mode        string
	Expose      string
	VersionMark string
	RouterImage string
}

MeshOptions ...

type PreviewOptions

type PreviewOptions struct {
	External bool
	Expose   string
}

PreviewOptions ...

type RuntimeOptions

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 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
	// 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