digitalocean

package
v0.3.58 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DOConfig

type DOConfig struct {
	APIToken string `json:"api_token" yaml:"api_token"` //nolint:gosec // G117: DigitalOcean config field
	Region   string `json:"region" yaml:"region"`
}

DOConfig holds configuration for the DigitalOcean cloud provider.

type DOProvider

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

DOProvider implements CloudProvider for DigitalOcean.

func NewDOProvider

func NewDOProvider(config DOConfig) *DOProvider

NewDOProvider creates a new DOProvider with the given configuration.

func (*DOProvider) Dependencies

func (p *DOProvider) Dependencies() []plugin.PluginDependency

func (*DOProvider) Deploy

func (*DOProvider) Description

func (p *DOProvider) Description() string

func (*DOProvider) GetDeploymentStatus

func (p *DOProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)

func (*DOProvider) GetMetrics

func (p *DOProvider) GetMetrics(ctx context.Context, deployID string, window time.Duration) (*provider.Metrics, error)

func (*DOProvider) ListImages

func (p *DOProvider) ListImages(ctx context.Context, repo string) ([]provider.ImageTag, error)

ListImages lists container images in a DigitalOcean Container Registry repository.

func (*DOProvider) Name

func (p *DOProvider) Name() string

func (*DOProvider) OnDisable

func (p *DOProvider) OnDisable(_ plugin.PluginContext) error

func (*DOProvider) OnEnable

func (p *DOProvider) OnEnable(_ plugin.PluginContext) error

func (*DOProvider) PullImage

func (p *DOProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error

PullImage pulls a container image from DigitalOcean Container Registry.

func (*DOProvider) PushImage

func (p *DOProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error

PushImage pushes a container image to DigitalOcean Container Registry.

func (*DOProvider) RegisterRoutes

func (p *DOProvider) RegisterRoutes(mux *http.ServeMux)

func (*DOProvider) Rollback

func (p *DOProvider) Rollback(ctx context.Context, deployID string) error

func (*DOProvider) TestConnection

func (p *DOProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)

func (*DOProvider) UIPages

func (p *DOProvider) UIPages() []plugin.UIPageDef

func (*DOProvider) Version

func (p *DOProvider) Version() string

Jump to

Keyboard shortcuts

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