machinesetup

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigParams

type ConfigParams struct {
	OS       string
	Roles    []clustercommon.MachineRole
	Versions clusterv1.MachineVersionInfo
}

type ConfigWatch

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

Config Watch holds the path to the machine setup configs yaml file. This works directly with a yaml file is used instead of a ConfigMap object so that we don't take a dependency on the API Server.

func NewConfigWatch

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

func (*ConfigWatch) GetMachineSetupConfig

func (cw *ConfigWatch) GetMachineSetupConfig() (MachineSetupConfig, error)

type MachineSetupConfig

type MachineSetupConfig interface {
	GetYaml() (string, error)
	GetImage(params *ConfigParams) (string, error)
	GetMetadata(params *ConfigParams) (Metadata, error)
}

type Metadata

type Metadata struct {
	StartupScript string `json:"startupScript"`
}

type ValidConfigs

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

The valid machine setup configs parsed out of the machine setup configs yaml file held in ConfigWatch.

func (*ValidConfigs) GetImage

func (vc *ValidConfigs) GetImage(params *ConfigParams) (string, error)

func (*ValidConfigs) GetMetadata

func (vc *ValidConfigs) GetMetadata(params *ConfigParams) (Metadata, error)

func (*ValidConfigs) GetYaml

func (vc *ValidConfigs) GetYaml() (string, error)

Jump to

Keyboard shortcuts

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