Documentation
¶
Index ¶
- type LoadBalancer
- type Method
- type Node
- type Persistence
- type Pool
- type Service
- func (s *Service) Create(dc string, lb LoadBalancer) (*LoadBalancer, error)
- func (s *Service) CreatePool(dc, lb string, pool Pool) (*Pool, error)
- func (s *Service) Delete(dc, id string) error
- func (s *Service) DeletePool(dc, lb, pool string) error
- func (s *Service) Get(dc, id string) (*LoadBalancer, error)
- func (s *Service) GetAll(dc string) ([]*LoadBalancer, error)
- func (s *Service) GetAllNodes(dc, lb, pool string) ([]*Node, error)
- func (s *Service) GetAllPools(dc, lb string) ([]*Pool, error)
- func (s *Service) GetPool(dc, lb, pool string) (*Pool, error)
- func (s *Service) Update(dc, id string, lb LoadBalancer) error
- func (s *Service) UpdateNodes(dc, lb, pool string, nodes ...Node) error
- func (s *Service) UpdatePool(dc, lb, id string, pool Pool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancer ¶
type LoadBalancer struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` IPaddress string `json:"ipAddress,omitempty"` Status string `json:"status,omitempty"` Pools []Pool `json:"pools,omitempty"` Links api.Links `json:"links,omitempty"` }
type Persistence ¶
type Persistence string
const ( Standard Persistence = "standard" Sticky Persistence = "sticky" )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Create ¶
func (s *Service) Create(dc string, lb LoadBalancer) (*LoadBalancer, error)
func (*Service) DeletePool ¶
func (*Service) UpdateNodes ¶
Click to show internal directories.
Click to hide internal directories.