Documentation
¶
Index ¶
- type DOConfig
- type DOProvider
- func (p *DOProvider) Dependencies() []plugin.PluginDependency
- func (p *DOProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
- func (p *DOProvider) Description() string
- func (p *DOProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)
- func (p *DOProvider) GetMetrics(ctx context.Context, deployID string, window time.Duration) (*provider.Metrics, error)
- func (p *DOProvider) ListImages(ctx context.Context, repo string) ([]provider.ImageTag, error)
- func (p *DOProvider) Name() string
- func (p *DOProvider) OnDisable(_ plugin.PluginContext) error
- func (p *DOProvider) OnEnable(_ plugin.PluginContext) error
- func (p *DOProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *DOProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *DOProvider) RegisterRoutes(mux *http.ServeMux)
- func (p *DOProvider) Rollback(ctx context.Context, deployID string) error
- func (p *DOProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)
- func (p *DOProvider) UIPages() []plugin.UIPageDef
- func (p *DOProvider) Version() string
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 (p *DOProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
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 (*DOProvider) ListImages ¶
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
Click to show internal directories.
Click to hide internal directories.