gcp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 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 (*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 (p *GCPProvider) GetMetrics(ctx context.Context, deployID string, window time.Duration) (*provider.Metrics, error)

func (*GCPProvider) ListImages

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

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

Jump to

Keyboard shortcuts

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