Documentation
¶
Index ¶
- type DevModel
- type DevModelGCP
- func (ctx *DevModelGCP) AdapterForSwitches() []string
- func (ctx *DevModelGCP) Adapters() []*config.SystemAdapter
- func (ctx *DevModelGCP) Config() map[string]interface{}
- func (ctx *DevModelGCP) DevModelType() string
- func (ctx *DevModelGCP) DiskFormat() string
- func (ctx *DevModelGCP) DiskReadyMessage() string
- func (ctx *DevModelGCP) GetFirstAdapterForSwitches() string
- func (ctx *DevModelGCP) GetPortConfig(_ string, _ string) string
- func (ctx *DevModelGCP) Networks() []*config.NetworkConfig
- func (ctx *DevModelGCP) PhysicalIOs() []*config.PhysicalIO
- func (ctx *DevModelGCP) SetWiFiParams(_ string, _ string)
- type DevModelGeneral
- func (ctx *DevModelGeneral) AdapterForSwitches() []string
- func (ctx *DevModelGeneral) Adapters() []*config.SystemAdapter
- func (ctx *DevModelGeneral) Config() map[string]interface{}
- func (ctx *DevModelGeneral) DevModelType() string
- func (ctx *DevModelGeneral) DiskFormat() string
- func (ctx *DevModelGeneral) DiskReadyMessage() string
- func (ctx *DevModelGeneral) GetFirstAdapterForSwitches() string
- func (ctx *DevModelGeneral) GetPortConfig(_ string, _ string) string
- func (ctx *DevModelGeneral) Networks() []*config.NetworkConfig
- func (ctx *DevModelGeneral) PhysicalIOs() []*config.PhysicalIO
- func (ctx *DevModelGeneral) SetWiFiParams(_ string, _ string)
- type DevModelQemu
- func (ctx *DevModelQemu) AdapterForSwitches() []string
- func (ctx *DevModelQemu) Adapters() []*config.SystemAdapter
- func (ctx *DevModelQemu) Config() map[string]interface{}
- func (ctx *DevModelQemu) DevModelType() string
- func (ctx *DevModelQemu) DiskFormat() string
- func (ctx *DevModelQemu) DiskReadyMessage() string
- func (ctx *DevModelQemu) GetFirstAdapterForSwitches() string
- func (ctx *DevModelQemu) GetPortConfig(_ string, _ string) string
- func (ctx *DevModelQemu) Networks() []*config.NetworkConfig
- func (ctx *DevModelQemu) PhysicalIOs() []*config.PhysicalIO
- func (ctx *DevModelQemu) SetWiFiParams(_ string, _ string)
- type DevModelRpi
- func (ctx *DevModelRpi) AdapterForSwitches() []string
- func (ctx *DevModelRpi) Adapters() []*config.SystemAdapter
- func (ctx *DevModelRpi) Config() map[string]interface{}
- func (ctx *DevModelRpi) DevModelType() string
- func (ctx *DevModelRpi) DiskFormat() string
- func (ctx *DevModelRpi) DiskReadyMessage() string
- func (ctx *DevModelRpi) GetFirstAdapterForSwitches() string
- func (ctx *DevModelRpi) GetPortConfig(ssid string, psk string) string
- func (ctx *DevModelRpi) Networks() []*config.NetworkConfig
- func (ctx *DevModelRpi) PhysicalIOs() []*config.PhysicalIO
- func (ctx *DevModelRpi) SetWiFiParams(ssid string, psk string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevModel ¶
type DevModel interface {
Adapters() []*config.SystemAdapter
Networks() []*config.NetworkConfig
PhysicalIOs() []*config.PhysicalIO
AdapterForSwitches() []string
DevModelType() string
GetFirstAdapterForSwitches() string
SetWiFiParams(ssid string, psk string)
GetPortConfig(ssid string, psk string) string
DiskFormat() string
DiskReadyMessage() string
Config() map[string]interface{}
}
DevModel is an interface to use for describe device
func GetDevModel ¶
GetDevModel return DevModel object by DevModelType
func GetDevModelByName ¶
GetDevModelByName return DevModel object by DevModelType string
type DevModelGCP ¶
type DevModelGCP struct {
// contains filtered or unexported fields
}
DevModelGCP is dev model fields
func (*DevModelGCP) AdapterForSwitches ¶
func (ctx *DevModelGCP) AdapterForSwitches() []string
AdapterForSwitches returns adapterForSwitches of devModel
func (*DevModelGCP) Adapters ¶
func (ctx *DevModelGCP) Adapters() []*config.SystemAdapter
Adapters returns adapters of devModel
func (*DevModelGCP) Config ¶
func (ctx *DevModelGCP) Config() map[string]interface{}
Config returns map with config overwrites
func (*DevModelGCP) DevModelType ¶
func (ctx *DevModelGCP) DevModelType() string
DevModelType returns devModelType of devModel
func (*DevModelGCP) DiskFormat ¶
func (ctx *DevModelGCP) DiskFormat() string
DiskFormat to use for build image
func (*DevModelGCP) DiskReadyMessage ¶
func (ctx *DevModelGCP) DiskReadyMessage() string
DiskReadyMessage to show when image is ready
func (*DevModelGCP) GetFirstAdapterForSwitches ¶
func (ctx *DevModelGCP) GetFirstAdapterForSwitches() string
GetFirstAdapterForSwitches return first adapter available for switch networkInstance
func (*DevModelGCP) GetPortConfig ¶
func (ctx *DevModelGCP) GetPortConfig(_ string, _ string) string
GetPortConfig returns PortConfig overwrite
func (*DevModelGCP) Networks ¶
func (ctx *DevModelGCP) Networks() []*config.NetworkConfig
Networks returns networks of devModel
func (*DevModelGCP) PhysicalIOs ¶
func (ctx *DevModelGCP) PhysicalIOs() []*config.PhysicalIO
PhysicalIOs returns physicalIOs of devModel
func (*DevModelGCP) SetWiFiParams ¶
func (ctx *DevModelGCP) SetWiFiParams(_ string, _ string)
SetWiFiParams not implemented for Qemu
type DevModelGeneral ¶
type DevModelGeneral struct {
// contains filtered or unexported fields
}
DevModelGeneral is dev model fields
func (*DevModelGeneral) AdapterForSwitches ¶
func (ctx *DevModelGeneral) AdapterForSwitches() []string
AdapterForSwitches returns adapterForSwitches of devModel
func (*DevModelGeneral) Adapters ¶
func (ctx *DevModelGeneral) Adapters() []*config.SystemAdapter
Adapters returns adapters of devModel
func (*DevModelGeneral) Config ¶
func (ctx *DevModelGeneral) Config() map[string]interface{}
Config returns map with config overwrites
func (*DevModelGeneral) DevModelType ¶
func (ctx *DevModelGeneral) DevModelType() string
DevModelType returns devModelType of devModel
func (*DevModelGeneral) DiskFormat ¶
func (ctx *DevModelGeneral) DiskFormat() string
DiskFormat to use for build image
func (*DevModelGeneral) DiskReadyMessage ¶
func (ctx *DevModelGeneral) DiskReadyMessage() string
DiskReadyMessage to show when image is ready
func (*DevModelGeneral) GetFirstAdapterForSwitches ¶
func (ctx *DevModelGeneral) GetFirstAdapterForSwitches() string
GetFirstAdapterForSwitches return first adapter available for switch networkInstance
func (*DevModelGeneral) GetPortConfig ¶
func (ctx *DevModelGeneral) GetPortConfig(_ string, _ string) string
GetPortConfig returns PortConfig overwrite
func (*DevModelGeneral) Networks ¶
func (ctx *DevModelGeneral) Networks() []*config.NetworkConfig
Networks returns networks of devModel
func (*DevModelGeneral) PhysicalIOs ¶
func (ctx *DevModelGeneral) PhysicalIOs() []*config.PhysicalIO
PhysicalIOs returns physicalIOs of devModel
func (*DevModelGeneral) SetWiFiParams ¶
func (ctx *DevModelGeneral) SetWiFiParams(_ string, _ string)
SetWiFiParams not implemented for Qemu
type DevModelQemu ¶
type DevModelQemu struct {
// contains filtered or unexported fields
}
DevModelQemu is dev model fields
func (*DevModelQemu) AdapterForSwitches ¶
func (ctx *DevModelQemu) AdapterForSwitches() []string
AdapterForSwitches returns adapterForSwitches of devModel
func (*DevModelQemu) Adapters ¶
func (ctx *DevModelQemu) Adapters() []*config.SystemAdapter
Adapters returns adapters of devModel
func (*DevModelQemu) Config ¶
func (ctx *DevModelQemu) Config() map[string]interface{}
Config returns map with config overwrites
func (*DevModelQemu) DevModelType ¶
func (ctx *DevModelQemu) DevModelType() string
DevModelType returns devModelType of devModel
func (*DevModelQemu) DiskFormat ¶
func (ctx *DevModelQemu) DiskFormat() string
DiskFormat to use for build image
func (*DevModelQemu) DiskReadyMessage ¶
func (ctx *DevModelQemu) DiskReadyMessage() string
DiskReadyMessage to show when image is ready
func (*DevModelQemu) GetFirstAdapterForSwitches ¶
func (ctx *DevModelQemu) GetFirstAdapterForSwitches() string
GetFirstAdapterForSwitches return first adapter available for switch networkInstance
func (*DevModelQemu) GetPortConfig ¶
func (ctx *DevModelQemu) GetPortConfig(_ string, _ string) string
GetPortConfig returns PortConfig overwrite
func (*DevModelQemu) Networks ¶
func (ctx *DevModelQemu) Networks() []*config.NetworkConfig
Networks returns networks of devModel
func (*DevModelQemu) PhysicalIOs ¶
func (ctx *DevModelQemu) PhysicalIOs() []*config.PhysicalIO
PhysicalIOs returns physicalIOs of devModel
func (*DevModelQemu) SetWiFiParams ¶
func (ctx *DevModelQemu) SetWiFiParams(_ string, _ string)
SetWiFiParams not implemented for Qemu
type DevModelRpi ¶
type DevModelRpi struct {
// contains filtered or unexported fields
}
DevModelRpi is dev model fields
func (*DevModelRpi) AdapterForSwitches ¶
func (ctx *DevModelRpi) AdapterForSwitches() []string
AdapterForSwitches returns adapterForSwitches of devModel
func (*DevModelRpi) Adapters ¶
func (ctx *DevModelRpi) Adapters() []*config.SystemAdapter
Adapters returns adapters of devModel
func (*DevModelRpi) Config ¶
func (ctx *DevModelRpi) Config() map[string]interface{}
Config returns map with config overwrites
func (*DevModelRpi) DevModelType ¶
func (ctx *DevModelRpi) DevModelType() string
DevModelType returns devModelType of devModel
func (*DevModelRpi) DiskFormat ¶
func (ctx *DevModelRpi) DiskFormat() string
DiskFormat to use for build image
func (*DevModelRpi) DiskReadyMessage ¶
func (ctx *DevModelRpi) DiskReadyMessage() string
DiskReadyMessage to show when image is ready
func (*DevModelRpi) GetFirstAdapterForSwitches ¶
func (ctx *DevModelRpi) GetFirstAdapterForSwitches() string
GetFirstAdapterForSwitches return first adapter available for switch networkInstance
func (*DevModelRpi) GetPortConfig ¶
func (ctx *DevModelRpi) GetPortConfig(ssid string, psk string) string
GetPortConfig returns PortConfig overwrite
func (*DevModelRpi) Networks ¶
func (ctx *DevModelRpi) Networks() []*config.NetworkConfig
Networks returns networks of devModel
func (*DevModelRpi) PhysicalIOs ¶
func (ctx *DevModelRpi) PhysicalIOs() []*config.PhysicalIO
PhysicalIOs returns physicalIOs of devModel
func (*DevModelRpi) SetWiFiParams ¶
func (ctx *DevModelRpi) SetWiFiParams(ssid string, psk string)
SetWiFiParams set ssid and psk for RPI