civo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessToken

func AccessToken() (string, error)

func Create

func Create(civoProvider *CivoProvider) error

func Delete

func Delete(civoProvider *CivoProvider) error

func GetDevpodInstance

func GetDevpodInstance(civoProvider *CivoProvider) (*civogo.Instance, error)

func Start

func Start(civoProvider *CivoProvider) error

func Status

func Status(civoProvider *CivoProvider) (client.Status, error)

func Stop

func Stop(civoProvider *CivoProvider) error

Types

type CivoProvider

type CivoProvider struct {
	Config           *options.Options
	Client           *civogo.Client
	Log              log.Logger
	WorkingDirectory string
}

func NewProvider

func NewProvider(withFolder bool, logs log.Logger) (*CivoProvider, error)

type CivoToken

type CivoToken struct {
	APIKey string "json:apikey"
	Region string "json:region"
}

Jump to

Keyboard shortcuts

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