options

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOptionNames

func GetOptionNames(opt interface{}) string

GetOptionNames returns the options from the given interface The interface must be a Clean or Drain one

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 component should be clean

func NewCleanOptions

func NewCleanOptions(cleanString string) *Clean

NewCleanOptions instantiate a new Clean from the cleanString The clean string is lowercase clean options comma separated like: etcd,binaries ...

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 component should be drain

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