options

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOptionsString added in v0.8.0

func GetOptionsString(opt interface{}) string

GetOptionsString returns a string representation of available options for the given interface.

Types

type Clean

type Clean struct {
	Etcd      bool `json:"etcd,omitempty"`
	Binaries  bool `json:"binaries,omitempty"`
	Manifests bool `json:"manifests,omitempty"`
	Kubelet   bool `json:"kubelet,omitempty"`
	Secrets   bool `json:"secrets,omitempty"`
	Network   bool `json:"network,omitempty"`
	Systemd   bool `json:"systemd,omitempty"`
	Kubectl   bool `json:"kubectl,omitempty"`
	Mounts    bool `json:"mounts,omitempty"`
	Iptables  bool `json:"iptables,omitempty"`
	Logs      bool `json:"logs,omitempty"`
	// contains filtered or unexported fields
}

Clean is a convenient key / value bool struct to store which components should be cleaned.

func NewCleanOptions

func NewCleanOptions(cleanString, keepString string) *Clean

NewCleanOptions instantiate a new Clean from the cleanString and keepString The clean string is lowercase clean options comma separated like: etcd,binaries ... keepString takes precedence over the clean one

func (*Clean) StringCLI

func (c *Clean) StringCLI() string

StringCLI returns the clean options as a command line representation

func (*Clean) StringJSON

func (c *Clean) StringJSON() string

StringJSON represents the clean options as a JSON

type Drain

type Drain struct {
	Pods      bool `json:"pods,omitempty"`
	KubeletGC bool `json:"kubeletgc,omitempty"`
	Iptables  bool `json:"iptables,omitempty"`
	// contains filtered or unexported fields
}

Drain is a convenient key / value bool struct to store which components should be drained.

func NewDrainOptions

func NewDrainOptions(drainString string) *Drain

NewDrainOptions instantiate a new Drain from the drainString The drain string is lowercase drain options comma separated like: pods,iptables ...

func (*Drain) StringCLI

func (c *Drain) StringCLI() string

StringCLI returns the drain options as a command line representation

func (*Drain) StringJSON added in v0.5.0

func (c *Drain) StringJSON() string

StringJSON represents the clean options as a JSON

Jump to

Keyboard shortcuts

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