getter

package
v0.0.0-...-eec7b21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DOClient

type DOClient struct {
	// contains filtered or unexported fields
}

func Client

func Client(t string) *DOClient

Get a new DO Client

func (*DOClient) DropletListAll

func (do *DOClient) DropletListAll() []Droplet

List all the droplets available for the given DO account

func (*DOClient) DropletTags

func (do *DOClient) DropletTags() []Droplet

List all the Droplets with their respective tags

func (*DOClient) DropletWithSpecificTag

func (do *DOClient) DropletWithSpecificTag(t string) []Droplet

List all the Droplets that has a specific tag

func (*DOClient) DropletWithoutAnyTag

func (do *DOClient) DropletWithoutAnyTag() []Droplet

List all the Droplets that does not have any tag

func (*DOClient) DropletWithoutSpecificTag

func (do *DOClient) DropletWithoutSpecificTag(tags []string) []Droplet

List all the Droplets that does not have the specific tag

func (*DOClient) StoppedDroplets

func (do *DOClient) StoppedDroplets(ds []Droplet) []Droplet

List all the Droplets that are in stopped state

type Droplet

type Droplet struct {
	ID     int      `json:"id,float64,omitempty"`
	Name   string   `json:"name,omitempty"`
	Status string   `json:"status,omitempty"`
	Tags   []string `json:"tags,omitempty"`
	IPv4   string   `json:"ip,omitempty"`
}

Jump to

Keyboard shortcuts

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