networking

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package networking have all services and interface to work with the DO network API.

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)

CreateLoadBalancer creates a LB.

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

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

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

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.

Jump to

Keyboard shortcuts

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