do

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	DoClient *godo.Client
}

Client DigitalOcean client wrapper

func NewDoClient

func NewDoClient(config config.Config) Client

NewDoClient create new instance of Client

func (*Client) AssignFloatIpToDroplet

func (client *Client) AssignFloatIpToDroplet(doDropletId int, ip string) (err error)

AssignFloatIpToDroplet assign float ip to droplet

func (*Client) GetAvailableEgressIps

func (client *Client) GetAvailableEgressIps(trackedIps map[string]bool) (doIps []godo.FloatingIP, err error)

GetAvailableEgressIps fetch info from DO about tracked floating ips

Jump to

Keyboard shortcuts

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