compute

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 36 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TimeoutInstanceCreate       = 5
	RetryIntervalInstanceStatus = 10 * time.Second

	TimeoutTrunkDelete       = 3 * time.Minute
	RetryIntervalTrunkDelete = 5 * time.Second

	TimeoutPortDelete       = 3 * time.Minute
	RetryIntervalPortDelete = 5 * time.Second

	TimeoutInstanceDelete = 5 * time.Minute
)

Variables

This section is empty.

Functions

func GetIPFromInstance added in v0.3.5

func GetIPFromInstance(v servers.Server) (map[string]string, error)

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(client *gophercloud.ProviderClient, clientOpts *clientconfig.ClientOpts, logger logr.Logger) (*Service, error)

NewService returns an instance of the compute service.

func (*Service) AssociateFloatingIP

func (s *Service) AssociateFloatingIP(instanceID, floatingIP string) error

func (*Service) CreateBastion added in v0.3.3

func (s *Service) CreateBastion(openStackCluster *infrav1.OpenStackCluster, clusterName string) (*infrav1.Instance, error)

func (*Service) CreateInstance added in v0.3.5

func (s *Service) CreateInstance(openStackCluster *infrav1.OpenStackCluster, machine *clusterv1.Machine, openStackMachine *infrav1.OpenStackMachine, clusterName string, userData string) (instance *infrav1.Instance, err error)

func (*Service) DeleteInstance added in v0.3.5

func (s *Service) DeleteInstance(eventObject runtime.Object, instanceName string) error

func (*Service) GetAvailabilityZones added in v0.3.0

func (s *Service) GetAvailabilityZones() ([]availabilityzones.AvailabilityZone, error)

func (*Service) GetInstance

func (s *Service) GetInstance(resourceID string) (instance *infrav1.Instance, err error)

func (*Service) InstanceExists

func (s *Service) InstanceExists(name string) (instance *infrav1.Instance, err error)

Jump to

Keyboard shortcuts

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