networking

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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)

func (*Service) DeleteDomainRecord added in v0.4.2

func (s *Service) DeleteDomainRecord(domain, name, rType string) error

DeleteDomainRecord removes a DO domain record.

func (*Service) DeleteLoadBalancer

func (s *Service) DeleteLoadBalancer(id string) error

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)

func (*Service) UpsertDomainRecord added in v0.4.2

func (s *Service) UpsertDomainRecord(domain, name, rType, data string) error

UpsertDomainRecord creates or updates a DO domain record.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL