Documentation
¶
Index ¶
- type GCPConfig
- type GCPProvider
- func (p *GCPProvider) Dependencies() []plugin.PluginDependency
- func (p *GCPProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
- func (p *GCPProvider) Description() string
- func (p *GCPProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)
- func (p *GCPProvider) GetMetrics(ctx context.Context, deployID string, window time.Duration) (*provider.Metrics, error)
- func (p *GCPProvider) ListImages(ctx context.Context, repo string) ([]provider.ImageTag, error)
- func (p *GCPProvider) Name() string
- func (p *GCPProvider) OnDisable(_ plugin.PluginContext) error
- func (p *GCPProvider) OnEnable(_ plugin.PluginContext) error
- func (p *GCPProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *GCPProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *GCPProvider) RegisterRoutes(mux *http.ServeMux)
- func (p *GCPProvider) Rollback(ctx context.Context, deployID string) error
- func (p *GCPProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)
- func (p *GCPProvider) UIPages() []plugin.UIPageDef
- func (p *GCPProvider) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPConfig ¶
type GCPConfig struct {
ProjectID string `json:"project_id" yaml:"project_id"`
CredentialsJSON string `json:"credentials_json" yaml:"credentials_json"`
Region string `json:"region" yaml:"region"`
}
GCPConfig holds configuration for the GCP cloud provider.
type GCPProvider ¶
type GCPProvider struct {
// contains filtered or unexported fields
}
GCPProvider implements CloudProvider for Google Cloud Platform.
func NewGCPProvider ¶
func NewGCPProvider(config GCPConfig) *GCPProvider
NewGCPProvider creates a new GCPProvider with the given configuration.
func (*GCPProvider) Dependencies ¶
func (p *GCPProvider) Dependencies() []plugin.PluginDependency
func (*GCPProvider) Deploy ¶
func (p *GCPProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
func (*GCPProvider) Description ¶
func (p *GCPProvider) Description() string
func (*GCPProvider) GetDeploymentStatus ¶
func (p *GCPProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)
func (*GCPProvider) GetMetrics ¶
func (*GCPProvider) ListImages ¶
ListImages lists container images in a Google Container Registry / Artifact Registry repository.
func (*GCPProvider) Name ¶
func (p *GCPProvider) Name() string
func (*GCPProvider) OnDisable ¶
func (p *GCPProvider) OnDisable(_ plugin.PluginContext) error
func (*GCPProvider) OnEnable ¶
func (p *GCPProvider) OnEnable(_ plugin.PluginContext) error
func (*GCPProvider) PullImage ¶
func (p *GCPProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error
PullImage pulls a container image from Google Container Registry / Artifact Registry.
func (*GCPProvider) PushImage ¶
func (p *GCPProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error
PushImage pushes a container image to Google Container Registry / Artifact Registry.
func (*GCPProvider) RegisterRoutes ¶
func (p *GCPProvider) RegisterRoutes(mux *http.ServeMux)
func (*GCPProvider) Rollback ¶
func (p *GCPProvider) Rollback(ctx context.Context, deployID string) error
func (*GCPProvider) TestConnection ¶
func (p *GCPProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)
func (*GCPProvider) UIPages ¶
func (p *GCPProvider) UIPages() []plugin.UIPageDef
func (*GCPProvider) Version ¶
func (p *GCPProvider) Version() string
Click to show internal directories.
Click to hide internal directories.