Documentation ¶
Overview ¶
Package machines is responsible for creating Machine objects for machinepools.
Index ¶
- func IsMachineManifest(file *asset.File) bool
- type Master
- func (m *Master) Dependencies() []asset.Asset
- func (m *Master) Files() []*asset.File
- func (m *Master) Generate(dependencies asset.Parents) error
- func (m *Master) Load(f asset.FileFetcher) (found bool, err error)
- func (m *Master) Machines() ([]machineapi.Machine, error)
- func (m *Master) Name() string
- type Worker
- func (w *Worker) Dependencies() []asset.Asset
- func (w *Worker) Files() []*asset.File
- func (w *Worker) Generate(dependencies asset.Parents) error
- func (w *Worker) Load(f asset.FileFetcher) (found bool, err error)
- func (w *Worker) MachineSets() ([]machineapi.MachineSet, error)
- func (w *Worker) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMachineManifest ¶ added in v0.16.0
IsMachineManifest tests whether a file is a manifest that belongs to the Master Machines or Worker Machines asset.
Types ¶
type Master ¶
type Master struct { UserDataFile *asset.File MachineConfigFiles []*asset.File MachineFiles []*asset.File }
Master generates the machines for the `master` machine pool.
func (*Master) Dependencies ¶
Dependencies returns all of the dependencies directly needed by the Master asset
func (*Master) Load ¶ added in v0.13.0
func (m *Master) Load(f asset.FileFetcher) (found bool, err error)
Load reads the asset files from disk.
type Worker ¶
type Worker struct { UserDataFile *asset.File MachineConfigFiles []*asset.File MachineSetFiles []*asset.File }
Worker generates the machinesets for `worker` machine pool.
func (*Worker) Dependencies ¶
Dependencies returns all of the dependencies directly needed by the Worker asset
func (*Worker) Load ¶ added in v0.16.0
func (w *Worker) Load(f asset.FileFetcher) (found bool, err error)
Load reads the asset files from disk.
func (*Worker) MachineSets ¶ added in v0.16.0
func (w *Worker) MachineSets() ([]machineapi.MachineSet, error)
MachineSets returns MachineSet manifest structures.
Directories ¶
Path | Synopsis |
---|---|
Package aws generates Machine objects for aws.
|
Package aws generates Machine objects for aws. |
Package libvirt generates Machine objects for libvirt.
|
Package libvirt generates Machine objects for libvirt. |
Package openstack generates Machine objects for openstack.
|
Package openstack generates Machine objects for openstack. |
Click to show internal directories.
Click to hide internal directories.