Documentation
¶
Index ¶
- func NewTestSecret(stringData map[string]string) *corev1.Secret
- func NewTestVMI() *v1.VirtualMachineInstance
- type CloudConfig
- type CloudConfigSSHKeys
- type TestVM
- func (t *TestVM) Build() *v1.VirtualMachine
- func (t *TestVM) ToString() string
- func (t *TestVM) WithCloudConfig(cloudConfig CloudConfig) *TestVM
- func (t *TestVM) WithDisk(disk v1.Disk) *TestVM
- func (t *TestVM) WithLabel(key, value string) *TestVM
- func (t *TestVM) WithMemory(memory string) *TestVM
- func (t *TestVM) WithNonMatchingDisk() *TestVM
- func (t *TestVM) WithVMILabel(key, value string) *TestVM
- func (t *TestVM) WithVolume(volume v1.Volume) *TestVM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestVMI ¶
func NewTestVMI() *v1.VirtualMachineInstance
Types ¶
type CloudConfig ¶
type CloudConfig struct { Password string `json:"password"` Chpasswd struct { Expire bool `json:"expire"` } `json:"chpasswd"` SSHAuthorizedKeys []string `json:"ssh_authorized_keys"` SSHKeys CloudConfigSSHKeys `json:"ssh_keys"` }
func (CloudConfig) ToString ¶
func (c CloudConfig) ToString() string
type CloudConfigSSHKeys ¶
type TestVM ¶
type TestVM struct {
Data *v1.VirtualMachine
}
func NewTestAlpineVM ¶
func NewTestFedoraCloudVM ¶
func (*TestVM) Build ¶
func (t *TestVM) Build() *v1.VirtualMachine
func (*TestVM) WithCloudConfig ¶
func (t *TestVM) WithCloudConfig(cloudConfig CloudConfig) *TestVM
func (*TestVM) WithMemory ¶
func (*TestVM) WithNonMatchingDisk ¶
func (*TestVM) WithVMILabel ¶
Click to show internal directories.
Click to hide internal directories.