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

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