Documentation
¶
Index ¶
- Constants
- type Instance
- type InstanceListOpts
- type ServerNetwork
- type Service
- func (s *Service) AssociateFloatingIP(instanceID, floatingIP string) error
- func (s *Service) DeleteBastion(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
- func (s *Service) GetAvailabilityZones() ([]availabilityzones.AvailabilityZone, error)
- func (s *Service) GetInstance(resourceID string) (instance *Instance, err error)
- func (s *Service) GetInstanceList(opts *InstanceListOpts) ([]*Instance, error)
- func (s *Service) InstanceCreate(clusterName string, machine *clusterv1.Machine, ...) (instance *Instance, err error)
- func (s *Service) InstanceDelete(machine *clusterv1.Machine) error
- func (s *Service) InstanceExists(openStackMachine *infrav1.OpenStackMachine) (instance *Instance, err error)
- func (s *Service) ReconcileBastion(clusterName string, cluster *clusterv1.Cluster, ...) (*Instance, error)
Constants ¶
View Source
const ( TimeoutInstanceCreate = 5 RetryIntervalInstanceStatus = 10 * 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 (*Service) DeleteBastion ¶ added in v0.3.2
func (s *Service) DeleteBastion(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
func (*Service) GetAvailabilityZones ¶ added in v0.3.0
func (s *Service) GetAvailabilityZones() ([]availabilityzones.AvailabilityZone, error)
func (*Service) GetInstance ¶
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) InstanceExists ¶
func (s *Service) InstanceExists(openStackMachine *infrav1.OpenStackMachine) (instance *Instance, err error)
func (*Service) ReconcileBastion ¶ added in v0.3.2
Click to show internal directories.
Click to hide internal directories.