namedmachines

package
v0.0.0-...-86ffc8e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigWatch

type ConfigWatch struct {
	// contains filtered or unexported fields
}

Config Watch holds the path to the named machines yaml file.

func NewConfigWatch

func NewConfigWatch(path string) (*ConfigWatch, error)

func (*ConfigWatch) NamedMachines

func (cw *ConfigWatch) NamedMachines() (*NamedMachines, error)

Returns all named machines for ConfigWatch.

type NamedMachine

type NamedMachine struct {
	MachineName string
	MachineHcl  string
}

A single named machine.

type NamedMachines

type NamedMachines struct {
	// contains filtered or unexported fields
}

All named machines defined in yaml.

func (*NamedMachines) GetYaml

func (nm *NamedMachines) GetYaml() (string, error)

func (*NamedMachines) MatchMachine

func (nm *NamedMachines) MatchMachine(machineName string) (*NamedMachine, error)

Returns a NamedMachine that matches the passed name.

type NamedMachinesItems

type NamedMachinesItems struct {
	Items []NamedMachine `json:"items"`
}

A list of named machines.

Jump to

Keyboard shortcuts

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