machine

package
v0.0.0-...-a9d5b60 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Master

type Master struct {
	Config *igntypes.Config
	File   *asset.File
}

Master is an asset that generates the ignition config for master nodes.

func (*Master) Dependencies

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

Dependencies returns the assets on which the Master asset depends.

func (*Master) Files

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

Files returns the files generated by the asset.

func (*Master) Generate

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

Generate generates the ignition config for the Master asset.

func (*Master) Load

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

Load returns the master ignitions from disk.

func (*Master) Name

func (a *Master) Name() string

Name returns the human-friendly name of the asset.

type Worker

type Worker struct {
	Config *igntypes.Config
	File   *asset.File
}

Worker is an asset that generates the ignition config for worker nodes.

func (*Worker) Dependencies

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

Dependencies returns the assets on which the Worker asset depends.

func (*Worker) Files

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

Files returns the files generated by the asset.

func (*Worker) Generate

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

Generate generates the ignition config for the Worker asset.

func (*Worker) Load

func (a *Worker) Load(f asset.FileFetcher) (found bool, err error)

Load returns the worker ignitions from disk.

func (*Worker) Name

func (a *Worker) Name() string

Name returns the human-friendly name of the asset.

Jump to

Keyboard shortcuts

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