Documentation ¶
Index ¶
- func GetNetworkIDsByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]string, error)
- func GetNetworksByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]networks.Network, error)
- func GetNeutronLBaasSecGroupName(clusterName string) string
- func GetSubnetsByFilter(networkClient *gophercloud.ServiceClient, opts subnets.ListOptsBuilder) ([]subnets.Subnet, error)
- type Service
- func (s *Service) AssociateFloatingIP(fp *floatingips.FloatingIP, portID string) error
- func (s *Service) DeleteFloatingIP(ip string) error
- func (s *Service) DeleteNetwork(network *infrav1.Network) error
- func (s *Service) DeleteRouter(network *infrav1.Network) error
- func (s *Service) DeleteSecurityGroups(group *infrav1.SecurityGroup) error
- func (s *Service) GetNetworksByFilter(opts networks.ListOptsBuilder) ([]networks.Network, error)
- func (s *Service) GetOrCreateFloatingIP(openStackCluster *infrav1.OpenStackCluster, ip string) (*floatingips.FloatingIP, error)
- func (s *Service) GetSubnetsByFilter(opts subnets.ListOptsBuilder) ([]subnets.Subnet, error)
- func (s *Service) ReconcileExternalNetwork(openStackCluster *infrav1.OpenStackCluster) error
- func (s *Service) ReconcileNetwork(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
- func (s *Service) ReconcileRouter(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
- func (s *Service) ReconcileSecurityGroups(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
- func (s *Service) ReconcileSubnet(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkIDsByFilter ¶
func GetNetworkIDsByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]string, error)
getNetworkIDsByFilter retrieves network ids by querying openstack with filters
func GetNetworksByFilter ¶
func GetNetworksByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]networks.Network, error)
GetNetworksByFilter retrieves networks by querying openstack with filters
func GetNeutronLBaasSecGroupName ¶ added in v0.3.4
GetNeutronLBaasSecGroupName export NeutronLBaasSecGroupName
func GetSubnetsByFilter ¶
func GetSubnetsByFilter(networkClient *gophercloud.ServiceClient, opts subnets.ListOptsBuilder) ([]subnets.Subnet, error)
A function for getting the id of a subnet by querying openstack with filters
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service interfaces with the OpenStack Networking API. It will create a network related infrastructure for the cluster, like network, subnet, router, security groups.
func NewService ¶
func NewService(client *gophercloud.ProviderClient, clientOpts *clientconfig.ClientOpts, logger logr.Logger) (*Service, error)
NewService returns an instance of the networking service
func (*Service) AssociateFloatingIP ¶ added in v0.3.4
func (s *Service) AssociateFloatingIP(fp *floatingips.FloatingIP, portID string) error
func (*Service) DeleteFloatingIP ¶ added in v0.3.3
func (*Service) DeleteNetwork ¶ added in v0.3.1
func (*Service) DeleteRouter ¶ added in v0.3.1
func (*Service) DeleteSecurityGroups ¶
func (s *Service) DeleteSecurityGroups(group *infrav1.SecurityGroup) error
func (*Service) GetNetworksByFilter ¶
func (*Service) GetOrCreateFloatingIP ¶ added in v0.3.2
func (s *Service) GetOrCreateFloatingIP(openStackCluster *infrav1.OpenStackCluster, ip string) (*floatingips.FloatingIP, error)
func (*Service) GetSubnetsByFilter ¶
func (*Service) ReconcileExternalNetwork ¶ added in v0.3.2
func (s *Service) ReconcileExternalNetwork(openStackCluster *infrav1.OpenStackCluster) error
func (*Service) ReconcileNetwork ¶
func (s *Service) ReconcileNetwork(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
func (*Service) ReconcileRouter ¶
func (s *Service) ReconcileRouter(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
func (*Service) ReconcileSecurityGroups ¶
func (s *Service) ReconcileSecurityGroups(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
Reconcile the security groups.
func (*Service) ReconcileSubnet ¶
func (s *Service) ReconcileSubnet(clusterName string, openStackCluster *infrav1.OpenStackCluster) error
Click to show internal directories.
Click to hide internal directories.