cloud

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 NewCleanup(cc *Clients, clusterName string) *Cleanup

func (*Cleanup) DeleteLBReservation

func (c *Cleanup) DeleteLBReservation() error

func (*Cleanup) DeleteLBVirtualRouter

func (c *Cleanup) DeleteLBVirtualRouter() error

func (*Cleanup) DeleteVRReservation

func (c *Cleanup) DeleteVRReservation() error

type Clients

type Clients struct {
	RPC2 *goca.Client
}

func NewClients

func NewClients(ctx context.Context, c client.Client, oneCluster *infrav1.ONECluster) (*Clients, error)

type Machine

type Machine struct {
	ID       int
	Name     *string
	Address4 string
	// contains filtered or unexported fields
}

func NewMachine

func NewMachine(cc *Clients, maybeName *string) *Machine

func (*Machine) ByID

func (m *Machine) ByID(vmID int) error

func (*Machine) ByName

func (m *Machine) ByName(vmName string) error

func (*Machine) Delete

func (m *Machine) Delete() error

func (*Machine) Exists

func (m *Machine) Exists() bool

func (*Machine) FromTemplate

func (m *Machine) FromTemplate(templateName string, userData *string, network *infrav1.ONEVirtualNetwork, router *infrav1.ONEVirtualRouter) error

func (*Machine) NodeName

func (m *Machine) NodeName() *string

func (*Machine) ProviderID

func (m *Machine) ProviderID() *string

type Router

type Router struct {
	ID          int
	Name        string
	Replicas    int
	FloatingIPs []string
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(cc *Clients, name string, maybeReplicas *int32) *Router

func (*Router) ByID

func (r *Router) ByID(vrID int) error

func (*Router) ByName

func (r *Router) ByName(vrName string) error

func (*Router) Delete

func (r *Router) Delete() error

func (*Router) Exists

func (r *Router) Exists() bool

func (*Router) FromTemplate

func (r *Router) FromTemplate(virtualRouter *infrav1.ONEVirtualRouter, publicNetwork, privateNetwork *infrav1.ONEVirtualNetwork) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL