do

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	POD_REGION = "fra1"
	POD_TYPE   = "s-1vcpu-1gb"
)

Variables

View Source
var (
	ErrPodNotFound      = errors.New("Could not find the pod specified")
	ErrDuplicatePodName = errors.New("Pod with the name already exists")
)

Functions

This section is empty.

Types

type DoStruct added in v0.2.0

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

func Init

func Init(doToken string) (*DoStruct, error)

func (*DoStruct) CreatePod added in v0.2.0

func (do *DoStruct) CreatePod(ctx context.Context, name, template, image string) error

func (*DoStruct) DestroyPod added in v0.2.0

func (do *DoStruct) DestroyPod(ctx context.Context, name string) error

func (*DoStruct) ListPods added in v0.2.0

func (do *DoStruct) ListPods(ctx context.Context) ([]models.PRPod, error)

taken directly from DigitalOcean Godo Github

func (*DoStruct) PodExists added in v0.2.0

func (do *DoStruct) PodExists(ctx context.Context, name string) (bool, error)

func (*DoStruct) PrivateIPPod added in v0.2.0

func (do *DoStruct) PrivateIPPod(ctx context.Context, name string) (string, error)

func (*DoStruct) PublicIPPod added in v0.2.0

func (do *DoStruct) PublicIPPod(ctx context.Context, name string) (string, error)

type TokenSource

type TokenSource struct {
	AccessToken string
}

----- INIT -----

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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