Documentation
¶
Overview ¶
Package networking have all services and interface to work with the DO network API.
Index ¶
- type Service
- func (s *Service) CreateLoadBalancer(spec *infrav1.DOLoadBalancer) (*godo.LoadBalancer, error)
- func (s *Service) DeleteDomainRecord(domain, name, rType string) error
- func (s *Service) DeleteLoadBalancer(id string) error
- func (s *Service) GetDomainRecord(domain, name, rType string) (*godo.DomainRecord, error)
- func (s *Service) GetLoadBalancer(id string) (*godo.LoadBalancer, error)
- func (s *Service) UpsertDomainRecord(domain, name, rType, data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds a collection of interfaces.
func NewService ¶
func NewService(ctx context.Context, scope *scope.ClusterScope) *Service
NewService returns a new service given the digitalocean api client.
func (*Service) CreateLoadBalancer ¶
func (s *Service) CreateLoadBalancer(spec *infrav1.DOLoadBalancer) (*godo.LoadBalancer, error)
CreateLoadBalancer creates a LB.
func (*Service) DeleteDomainRecord ¶ added in v0.4.2
DeleteDomainRecord removes a DO domain record.
func (*Service) DeleteLoadBalancer ¶
DeleteLoadBalancer delete a LB by ID.
func (*Service) GetDomainRecord ¶ added in v0.4.2
func (s *Service) GetDomainRecord(domain, name, rType string) (*godo.DomainRecord, error)
GetDomainRecord retrieves a single domain record from DO.
func (*Service) GetLoadBalancer ¶
func (s *Service) GetLoadBalancer(id string) (*godo.LoadBalancer, error)
GetLoadBalancer get a LB by LB ID.
func (*Service) UpsertDomainRecord ¶ added in v0.4.2
UpsertDomainRecord creates or updates a DO domain record.
Directories
¶
Path | Synopsis |
---|---|
Package mock_networking is a generated GoMock package.
|
Package mock_networking is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.