digitalocean

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 14 Imported by: 0

README


title: DigitalOcean WIP description: DigitalOcean Provider for Carbon weight: 20

This is a WIP, Missing Images and Image Builds

Map

DigitalOcean Carbon Description
Account Profile Default token is pulled from the DIGITALOCEAN_TOKEN environment variable, or from the doctl config file
Project Environment

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() types.Provider

Types

type Environment

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

func (*Environment) CreateVM

func (e *Environment) CreateVM(options types.MachineLaunchOptions) error

func (*Environment) DestroyImage

func (e *Environment) DestroyImage(imageID string) error

func (*Environment) DestroyVM

func (e *Environment) DestroyVM(id string) error

func (*Environment) ImageBuilds

func (e *Environment) ImageBuilds() ([]types.ImageBuild, error)

func (*Environment) Images

func (e *Environment) Images() ([]types.Image, error)

func (*Environment) Name

func (e *Environment) Name() string

func (*Environment) Profile

func (e *Environment) Profile() types.Profile

func (*Environment) RestartVM

func (e *Environment) RestartVM(id string) error

func (*Environment) StartVM

func (e *Environment) StartVM(id string) error

func (*Environment) StopVM

func (e *Environment) StopVM(id string) error

func (*Environment) SuspendVM added in v0.5.12

func (e *Environment) SuspendVM(id string) error

func (*Environment) VMs

func (e *Environment) VMs() []types.VM

type Profile

type Profile struct {
	types.Profile
	// contains filtered or unexported fields
}

func NewProfile

func NewProfile(name string, providerInstance *Provider, config common.ProfileConfig) *Profile

func (*Profile) Environments

func (p *Profile) Environments() []types.Environment

func (*Profile) GetDroplets added in v0.5.12

func (p *Profile) GetDroplets() map[int]godo.Droplet

func (*Profile) GetProjectResources added in v0.5.12

func (p *Profile) GetProjectResources(projectID string) []godo.ProjectResource

func (*Profile) GetProjectVMs added in v0.5.12

func (p *Profile) GetProjectVMs(projectID string) []*godo.Droplet

func (*Profile) ToProfile added in v0.5.12

func (p *Profile) ToProfile() types.Profile

type Provider

type Provider struct {
	types.Provider
	// contains filtered or unexported fields
}

func (*Provider) IsAvailable

func (p *Provider) IsAvailable() bool

func (*Provider) Profiles

func (p *Provider) Profiles() []types.Profile

Jump to

Keyboard shortcuts

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