Documentation
¶
Index ¶
- type Cleanup
- type Clients
- type Images
- type Machine
- func (m *Machine) ByID(vmID int) error
- func (m *Machine) ByName(vmName string) error
- func (m *Machine) Delete() error
- func (m *Machine) Exists() bool
- func (m *Machine) FromTemplate(templateName string, userData *string, network *infrav1.ONEVirtualNetwork, ...) error
- func (m *Machine) NodeName() (string, error)
- func (m *Machine) ProviderID() *string
- type MachineOption
- type Router
- type Templates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleanup ¶
type Cleanup struct {
// contains filtered or unexported fields
}
func NewCleanup ¶
func (*Cleanup) DeleteLBReservation ¶
func (*Cleanup) DeleteLBVirtualRouter ¶
func (*Cleanup) DeleteVRReservation ¶
type Clients ¶
func NewClients ¶
type Images ¶ added in v0.1.1
type Images struct {
// contains filtered or unexported fields
}
func (*Images) CreateImage ¶ added in v0.1.1
type Machine ¶
type Machine struct {
ID int
Name string
Address4 string
// contains filtered or unexported fields
}
func NewMachine ¶
func NewMachine(clients *Clients, options ...MachineOption) (*Machine, error)
func (*Machine) FromTemplate ¶
func (m *Machine) FromTemplate(templateName string, userData *string, network *infrav1.ONEVirtualNetwork, router *infrav1.ONEVirtualRouter) error
func (*Machine) ProviderID ¶
type MachineOption ¶ added in v0.1.1
type MachineOption func(*Machine)
func WithMachineName ¶ added in v0.1.1
func WithMachineName(name string) MachineOption
type Router ¶
type Router struct {
ID int
Name string
Replicas int
FloatingIPs []string
// contains filtered or unexported fields
}
func (*Router) FromTemplate ¶
func (r *Router) FromTemplate(virtualRouter *infrav1.ONEVirtualRouter, publicNetwork, privateNetwork *infrav1.ONEVirtualNetwork) error
type Templates ¶ added in v0.1.1
type Templates struct {
// contains filtered or unexported fields
}
func NewTemplates ¶ added in v0.1.1
func (*Templates) CreateTemplate ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.