Documentation ¶
Index ¶
- func GetNetworkIDsByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]string, error)
- func GetNetworksByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]networks.Network, error)
- func GetSubnetsByFilter(networkClient *gophercloud.ServiceClient, opts subnets.ListOptsBuilder) ([]subnets.Subnet, error)
- type Service
- func (s *Service) CreateFloatingIPIfNecessary(openStackCluster *infrav1.OpenStackCluster, ip string) error
- func (s *Service) DeleteSecurityGroups(group *infrav1.SecurityGroup) error
- func (s *Service) GetNetworksByFilter(opts networks.ListOptsBuilder) ([]networks.Network, error)
- func (s *Service) GetSubnetsByFilter(opts subnets.ListOptsBuilder) ([]subnets.Subnet, 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 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) CreateFloatingIPIfNecessary ¶
func (s *Service) CreateFloatingIPIfNecessary(openStackCluster *infrav1.OpenStackCluster, ip string) error
func (*Service) DeleteSecurityGroups ¶
func (s *Service) DeleteSecurityGroups(group *infrav1.SecurityGroup) error
func (*Service) GetNetworksByFilter ¶
func (*Service) GetSubnetsByFilter ¶
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.