machinesetup

package
v0.0.0-...-d858eb7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StartupScript string                  `json:"startupScript,omitempty"`
	FencingConfig *v1alpha1.FencingConfig `json:"fencingConfig,omitempty"`
}

type MachineConfig

type MachineConfig struct {
	MachineParams []MachineParams `json:"machineParams,omitempty"`
	Config        *Config         `json:"config,omitempty"`
}

MachineConfig specify mapping between machine params to specific configuration

type MachineConfigList

type MachineConfigList struct {
	Items []MachineConfig `json:"items"`
}

type MachineParams

type MachineParams struct {
	Label string                 `json:"label,omitempty"`
	Roles []v1alpha1.MachineRole `json:"roles,omitempty"`
}

type SetupConfig

type SetupConfig interface {
	GetConfig(params *MachineParams) (*Config, error)
}

SetupConfig define interface to work with machine setup config

type SetupConfigImpl

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

SetupConfigImpl holds the path to the machine setup configs yaml file

func NewSetupConfig

func NewSetupConfig(path string) (*SetupConfigImpl, error)

func (*SetupConfigImpl) GetConfig

func (s *SetupConfigImpl) GetConfig(params *MachineParams) (*Config, error)

Jump to

Keyboard shortcuts

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