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)
Click to show internal directories.
Click to hide internal directories.