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 ¶
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) StringJSON ¶
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 ¶
NewDrainOptions instantiate a new Drain from the drainString The drain string is lowercase drain options comma separated like: pods,iptables ...
func (*Drain) StringJSON ¶ added in v0.5.0
StringJSON represents the clean options as a JSON