Documentation
¶
Index ¶
- func NewToBool() schemas2.Mapper
- func NewToMap() schemas2.Mapper
- func NewToSlice() schemas2.Mapper
- func NewTypeConverter(fieldType string, converter Converter) schemas2.Mapper
- func PrintInstall(cfg Config) ([]byte, error)
- func ToBytes(cfg Config) ([]byte, error)
- func ToEnv(cfg Config) ([]string, error)
- func ToFile(cfg Config, output string) error
- type Config
- type Converter
- type FuzzyNames
- type Install
- type RancherOS
- type Rancherd
- type Stage
- type User
- type YipConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewToSlice ¶
func NewTypeConverter ¶
func PrintInstall ¶
func ToEnv ¶
ToEnv converts the config into a slice env. The configuration fields are prefixed with "_COS" to allow installation parameters to be set in the cos.sh script: e.g. https://github.com/rancher-sandbox/cOS-toolkit/blob/affc831b76d50298bbbbe637f31c81c52c5489b8/packages/backports/installer/cos.sh#L698
Types ¶
type Config ¶
type FuzzyNames ¶
type FuzzyNames struct {
mappers.DefaultMapper
// contains filtered or unexported fields
}
func (*FuzzyNames) ModifySchema ¶
func (*FuzzyNames) ToInternal ¶
func (f *FuzzyNames) ToInternal(data data.Object) error
type Install ¶
type Install struct {
Automatic bool `json:"automatic,omitempty"`
Firmware string `json:"firmware,omitempty"`
Device string `json:"device,omitempty"`
ConfigURL string `json:"configUrl,omitempty"`
ISOURL string `json:"isoUrl,omitempty"`
ContainerImage string `json:"containerImage,omitempty"`
PowerOff bool `json:"powerOff,omitempty"`
Reboot bool `json:"reboot,omitempty"`
NoFormat bool `json:"noFormat,omitempty"`
Debug bool `json:"debug,omitempty"`
TTY string `json:"tty,omitempty"`
ServerURL string `json:"-"`
Token string `json:"-"`
Role string `json:"-"`
Password string `json:"password,omitempty"`
RegistrationURL string `json:"registrationUrl,omitempty"`
RegistrationCACert string `json:"registrationCaCert,omitempty"`
EjectCD bool `json:"ejectCD,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.