compute

package
v0.3.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 26 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TimeoutTrunkDelete       = 3 * time.Minute
	RetryIntervalTrunkDelete = 5 * time.Second

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	servers.Server
	State infrav1.InstanceState
}

TODO(sbueringer) We should probably wrap the OpenStack object completely (see CAPA)

type InstanceListOpts

type InstanceListOpts struct {
	// Name of the image in URL format.
	Image string `q:"image"`

	// Name of the flavor in URL format.
	Flavor string `q:"flavor"`

	// Name of the server as a string; can be queried with regular expressions.
	// Realize that ?name=bob returns both bob and bobb. If you need to match bob
	// only, you can use a regular expression matching the syntax of the
	// underlying database server implemented for Compute.
	Name string `q:"name"`
}

type ServerNetwork

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

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)

func (*Service) AssociateFloatingIP

func (s *Service) AssociateFloatingIP(instanceID, floatingIP 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 *Instance, err error)

func (*Service) GetInstanceList

func (s *Service) GetInstanceList(opts *InstanceListOpts) ([]*Instance, error)

func (*Service) InstanceCreate

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

InstanceCreate creates a compute instance

func (*Service) InstanceDelete

func (s *Service) InstanceDelete(machine *clusterv1.Machine) error

func (*Service) InstanceExists

func (s *Service) InstanceExists(openStackMachine *infrav1.OpenStackMachine) (instance *Instance, err error)

Jump to

Keyboard shortcuts

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