Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bond ¶
type Bond struct { Interfaces []string `yaml:"interfaces"` ARPIPTarget []string `yaml:"arpIPTarget"` Mode string `yaml:"mode"` HashPolicy string `yaml:"xmitHashPolicy"` LACPRate string `yaml:"lacpRate"` ADActorSystem string `yaml:"adActorSystem"` ARPValidate string `yaml:"arpValidate"` ARPAllTargets string `yaml:"arpAllTargets"` Primary string `yaml:"primary"` PrimaryReselect string `yaml:"primaryReselect"` FailOverMac string `yaml:"failOverMac"` ADSelect string `yaml:"adSelect"` MIIMon uint32 `yaml:"miimon"` UpDelay uint32 `yaml:"updelay"` DownDelay uint32 `yaml:"downdelay"` ARPInterval uint32 `yaml:"arpInterval"` ResendIGMP uint32 `yaml:"resendIgmp"` MinLinks uint32 `yaml:"minLinks"` LPInterval uint32 `yaml:"lpInterval"` PacketsPerSlave uint32 `yaml:"packetsPerSlave"` NumPeerNotif uint8 `yaml:"numPeerNotif"` TLBDynamicLB uint8 `yaml:"tlbDynamicLb"` AllSlavesActive uint8 `yaml:"allSlavesActive"` UseCarrier bool `yaml:"useCarrier"` ADActorSysPrio uint16 `yaml:"adActorSysPrio"` ADUserPortKey uint16 `yaml:"adUserPortKey"` PeerNotifyDelay uint32 `yaml:"peerNotifyDelay"` }
Bond contains the various options for configuring a bonded interface.
type Device ¶
type Device struct { Interface string `yaml:"interface"` CIDR string `yaml:"cidr"` Routes []Route `yaml:"routes"` Bond *Bond `yaml:"bond"` MTU int `yaml:"mtu"` DHCP bool `yaml:"dhcp"` Ignore bool `yaml:"ignore"` }
Device represents a network interface.
type Disk ¶
type Disk struct { Device string `yaml:"device,omitempty"` Partitions []Partition `yaml:"partitions,omitempty"` }
Disk represents the options available for partitioning, formatting, and mounting extra disks.
type File ¶
type File struct { Content string `yaml:"content"` Permissions os.FileMode `yaml:"permissions"` Path string `yaml:"path"` Op string `yaml:"op"` }
File represents a file to write to disk.
type Install ¶
type Install interface { Image() string Disk() string ExtraKernelArgs() []string Zero() bool Force() bool WithBootloader() bool }
Install defines the requirements for a config that pertains to install related options.
type Kubelet ¶
Kubelet defines the requirements for a config that pertains to kubelet related options.
type Machine ¶
type Machine interface { Install() Install Security() Security Network() Network Disks() []Disk Time() Time Env() Env Files() []File Type() Type Kubelet() Kubelet Sysctls() map[string]string }
Machine defines the requirements for a config that pertains to machine related options.
type Network ¶
type Network interface { Hostname() string SetHostname(string) Resolvers() []string Devices() []Device }
Network defines the requirements for a config that pertains to network related options.
type Partition ¶
type Partition struct { Size uint `yaml:"size,omitempty"` MountPoint string `yaml:"mountpoint,omitempty"` }
Partition represents the options for a device partition.
type Security ¶
type Security interface { CA() *x509.PEMEncodedCertificateAndKey Token() string CertSANs() []string SetCertSANs([]string) }
Security defines the requirements for a config that pertains to security related options.