Documentation ¶
Index ¶
Constants ¶
const NovaMinimumMicroversion = "2.53"
NovaMinimumMicroversion is the minimum Nova microversion supported by CAPO 2.53 corresponds to OpenStack Pike
For the canonical description of Nova microversions, see https://docs.openstack.org/nova/latest/reference/api-microversion-history.html
CAPO uses server tags, which were added in microversion 2.52.
Variables ¶
This section is empty.
Functions ¶
func GetGopherClient ¶
func GetGopherClient(scope *scope.Scope) (*gophercloud.ServiceClient, error)
Types ¶
type ComputeClient ¶
type ComputeClient interface { ListAvailabilityZones() ([]availabilityzones.AvailabilityZone, error) GetFlavorIDFromName(flavor string) (string, error) CreateServer(createOpts servers.CreateOptsBuilder) (*ServerExt, error) DeleteServer(serverID string) error GetServer(serverID string) (*ServerExt, error) ListServers(listOpts servers.ListOptsBuilder) ([]ServerExt, error) ListAttachedInterfaces(serverID string) ([]attachinterfaces.Interface, error) DeleteAttachedInterface(serverID, portID string) error }
func NewComputeClient ¶
func NewComputeClient(scope *scope.Scope) (ComputeClient, error)
NewComputeClient returns a new compute client.
func NewComputeErrorClient ¶
func NewComputeErrorClient(e error) ComputeClient
NewComputeErrorClient returns a ComputeClient in which every method returns the given error.
type ImageClient ¶
type ImageClient interface {
ListImages(listOpts images.ListOptsBuilder) ([]images.Image, error)
}
func NewImageClient ¶
func NewImageClient(scope *scope.Scope) (ImageClient, error)
NewImageClient returns a new glance client.
func NewImageErrorClient ¶
func NewImageErrorClient(e error) ImageClient
NewImageErrorClient returns an ImageClient in which every method returns the given error.
type LbClient ¶
type LbClient interface { CreateLoadBalancer(opts loadbalancers.CreateOptsBuilder) (*loadbalancers.LoadBalancer, error) ListLoadBalancers(opts loadbalancers.ListOptsBuilder) ([]loadbalancers.LoadBalancer, error) GetLoadBalancer(id string) (*loadbalancers.LoadBalancer, error) DeleteLoadBalancer(id string, opts loadbalancers.DeleteOptsBuilder) error CreateListener(opts listeners.CreateOptsBuilder) (*listeners.Listener, error) ListListeners(opts listeners.ListOptsBuilder) ([]listeners.Listener, error) UpdateListener(id string, opts listeners.UpdateOpts) (*listeners.Listener, error) GetListener(id string) (*listeners.Listener, error) DeleteListener(id string) error CreatePool(opts pools.CreateOptsBuilder) (*pools.Pool, error) ListPools(opts pools.ListOptsBuilder) ([]pools.Pool, error) GetPool(id string) (*pools.Pool, error) DeletePool(id string) error CreatePoolMember(poolID string, opts pools.CreateMemberOptsBuilder) (*pools.Member, error) ListPoolMember(poolID string, opts pools.ListMembersOptsBuilder) ([]pools.Member, error) DeletePoolMember(poolID string, lbMemberID string) error CreateMonitor(opts monitors.CreateOptsBuilder) (*monitors.Monitor, error) ListMonitors(opts monitors.ListOptsBuilder) ([]monitors.Monitor, error) DeleteMonitor(id string) error ListLoadBalancerProviders() ([]providers.Provider, error) ListOctaviaVersions() ([]apiversions.APIVersion, error) }
type NetworkClient ¶
type NetworkClient interface { ListFloatingIP(opts floatingips.ListOptsBuilder) ([]floatingips.FloatingIP, error) CreateFloatingIP(opts floatingips.CreateOptsBuilder) (*floatingips.FloatingIP, error) DeleteFloatingIP(id string) error GetFloatingIP(id string) (*floatingips.FloatingIP, error) UpdateFloatingIP(id string, opts floatingips.UpdateOptsBuilder) (*floatingips.FloatingIP, error) ListPort(opts ports.ListOptsBuilder) ([]ports.Port, error) CreatePort(opts ports.CreateOptsBuilder) (*ports.Port, error) DeletePort(id string) error GetPort(id string) (*ports.Port, error) UpdatePort(id string, opts ports.UpdateOptsBuilder) (*ports.Port, error) ListTrunk(opts trunks.ListOptsBuilder) ([]trunks.Trunk, error) CreateTrunk(opts trunks.CreateOptsBuilder) (*trunks.Trunk, error) DeleteTrunk(id string) error ListRouter(opts routers.ListOpts) ([]routers.Router, error) CreateRouter(opts routers.CreateOptsBuilder) (*routers.Router, error) DeleteRouter(id string) error GetRouter(id string) (*routers.Router, error) UpdateRouter(id string, opts routers.UpdateOptsBuilder) (*routers.Router, error) AddRouterInterface(id string, opts routers.AddInterfaceOptsBuilder) (*routers.InterfaceInfo, error) RemoveRouterInterface(id string, opts routers.RemoveInterfaceOptsBuilder) (*routers.InterfaceInfo, error) ListSecGroup(opts groups.ListOpts) ([]groups.SecGroup, error) CreateSecGroup(opts groups.CreateOptsBuilder) (*groups.SecGroup, error) DeleteSecGroup(id string) error GetSecGroup(id string) (*groups.SecGroup, error) UpdateSecGroup(id string, opts groups.UpdateOptsBuilder) (*groups.SecGroup, error) ListSecGroupRule(opts rules.ListOpts) ([]rules.SecGroupRule, error) CreateSecGroupRule(opts rules.CreateOptsBuilder) (*rules.SecGroupRule, error) DeleteSecGroupRule(id string) error GetSecGroupRule(id string) (*rules.SecGroupRule, error) ListNetwork(opts networks.ListOptsBuilder) ([]networks.Network, error) CreateNetwork(opts networks.CreateOptsBuilder) (*networks.Network, error) DeleteNetwork(id string) error GetNetwork(id string) (*networks.Network, error) UpdateNetwork(id string, opts networks.UpdateOptsBuilder) (*networks.Network, error) ListSubnet(opts subnets.ListOptsBuilder) ([]subnets.Subnet, error) CreateSubnet(opts subnets.CreateOptsBuilder) (*subnets.Subnet, error) DeleteSubnet(id string) error GetSubnet(id string) (*subnets.Subnet, error) UpdateSubnet(id string, opts subnets.UpdateOptsBuilder) (*subnets.Subnet, error) ListExtensions() ([]extensions.Extension, error) ReplaceAllAttributesTags(resourceType string, resourceID string, opts attributestags.ReplaceAllOptsBuilder) ([]string, error) }
func NewNetworkClient ¶
func NewNetworkClient(scope *scope.Scope) (NetworkClient, error)
NewNetworkClient returns an instance of the networking service.
type ServerExt ¶
type ServerExt struct { servers.Server availabilityzones.ServerAvailabilityZoneExt }
ServerExt is the base gophercloud Server with extensions used by InstanceStatus.
type VolumeClient ¶
type VolumeClient interface { ListVolumes(opts volumes.ListOptsBuilder) ([]volumes.Volume, error) CreateVolume(opts volumes.CreateOptsBuilder) (*volumes.Volume, error) DeleteVolume(volumeID string, opts volumes.DeleteOptsBuilder) error GetVolume(volumeID string) (*volumes.Volume, error) }
func NewVolumeClient ¶
func NewVolumeClient(scope *scope.Scope) (VolumeClient, error)
NewVolumeClient returns a new cinder client.
func NewVolumeErrorClient ¶
func NewVolumeErrorClient(e error) VolumeClient
NewVolumeErrorClient returns a VolumeClient in which every method returns the given error.