machines

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package machines is responsible for creating Machine objects for machinepools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMachineManifest added in v0.16.1

func IsMachineManifest(file *asset.File) bool

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

func (m *Master) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by the Master asset

func (*Master) Files added in v0.13.1

func (m *Master) Files() []*asset.File

Files returns the files generated by the asset.

func (*Master) Generate

func (m *Master) Generate(dependencies asset.Parents) error

Generate generates the Master asset.

func (*Master) Load added in v0.13.1

func (m *Master) Load(f asset.FileFetcher) (found bool, err error)

Load reads the asset files from disk.

func (*Master) Machines added in v0.13.1

func (m *Master) Machines() ([]machineapi.Machine, error)

Machines returns master Machine manifest structures.

func (*Master) Name

func (m *Master) Name() string

Name returns a human friendly name for the Master Asset.

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

func (w *Worker) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by the Worker asset

func (*Worker) Files added in v0.16.1

func (w *Worker) Files() []*asset.File

Files returns the files generated by the asset.

func (*Worker) Generate

func (w *Worker) Generate(dependencies asset.Parents) error

Generate generates the Worker asset.

func (*Worker) Load added in v0.16.1

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.1

func (w *Worker) MachineSets() ([]machineapi.MachineSet, error)

MachineSets returns MachineSet manifest structures.

func (*Worker) Name

func (w *Worker) Name() string

Name returns a human friendly name for the Worker Asset.

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.

Jump to

Keyboard shortcuts

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