Documentation
¶
Index ¶
- type OpenStack
- func (os *OpenStack) GetLoadbalancers() ([]loadbalancers.LoadBalancer, error)
- func (os *OpenStack) GetMembers(poolID string) ([]pools.Member, error)
- func (os *OpenStack) GetPools(lbID string, isOrphan bool, listenerID string) ([]pools.Pool, error)
- func (os *OpenStack) GetProjects() ([]projects.Project, error)
- type OpenStackConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenStack ¶
type OpenStack struct {
Octavia *gophercloud.ServiceClient
// contains filtered or unexported fields
}
OpenStack is an implementation of cloud provider Interface for OpenStack.
func NewOpenStack ¶
func NewOpenStack(cfg OpenStackConfig) (*OpenStack, error)
NewOpenStack gets openstack struct
func (*OpenStack) GetLoadbalancers ¶
func (os *OpenStack) GetLoadbalancers() ([]loadbalancers.LoadBalancer, error)
GetLoadbalancers get all the lbs.
func (*OpenStack) GetMembers ¶
GetMembers retrieve all the members of the specified pool
type OpenStackConfig ¶
type OpenStackConfig struct {
Username string
Password string
ProjectName string `mapstructure:"project_name"`
AuthURL string `mapstructure:"auth_url"`
Region string
}
OpenStackConfig defines OpenStack credentials configuration.
func (OpenStackConfig) ToAuthOptions ¶
func (cfg OpenStackConfig) ToAuthOptions() gophercloud.AuthOptions
ToAuthOptions gets openstack auth options
Click to show internal directories.
Click to hide internal directories.