google

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactRegistryTarget

type ArtifactRegistryTarget struct {
	GoogleTarget
}

func (*ArtifactRegistryTarget) Deploy

func (t *ArtifactRegistryTarget) Deploy()

func (*ArtifactRegistryTarget) PostDeploy

func (t *ArtifactRegistryTarget) PostDeploy()

func (*ArtifactRegistryTarget) Text

func (t *ArtifactRegistryTarget) Text() string

type CloudRunTarget

type CloudRunTarget struct {
	GoogleTarget
	UseHttp2          bool     `description:"Enable HTTP2 end-to-end. Please see https://cloud.google.com/run/docs/configuring/http2."`
	CloudSqlInstances []string `description:"Append the given values to the current Cloud SQL instances."`
	Secrets           []string `description:"List of key-value pairs to set as secrets."`
	Cpu               string   `enum:"1,2,4,8" description:"Set a CPU limit in Kubernetes cpu units."`
	Memory            string   `enum:"512Mi,1Gi,2Gi,4Gi,8Gi" description:"Set a memory limit."`
	Concurrency       int      `description:"Set the maximum number of concurrent requests allowed per container instance."`
	MaxInstances      int      `description:"The maximum number of container instances for this Revision."`
}

func (*CloudRunTarget) Deploy

func (t *CloudRunTarget) Deploy()

func (*CloudRunTarget) PostDeploy

func (t *CloudRunTarget) PostDeploy()

func (*CloudRunTarget) Text

func (t *CloudRunTarget) Text() string

type GCETarget added in v1.0.33

type GCETarget struct {
	GoogleTarget
	Zone         string `required:"true"`
	InstanceName string `required:"true"`
}

func (*GCETarget) Deploy added in v1.0.33

func (t *GCETarget) Deploy()

func (*GCETarget) PostDeploy added in v1.0.33

func (t *GCETarget) PostDeploy()

func (*GCETarget) Stop added in v1.0.34

func (t *GCETarget) Stop()

func (*GCETarget) TailLogs added in v1.0.33

func (t *GCETarget) TailLogs()

func (*GCETarget) Text added in v1.0.33

func (t *GCETarget) Text() string

type GoogleTarget

type GoogleTarget struct {
	Region      string   `required:"true" enum:"africa-south1,europe-west1"`
	ProjectId   string   `required:"true"`
	Environment []string `description:"Environment variables available at build time and runtime."`
	// contains filtered or unexported fields
}

func (*GoogleTarget) Configure

func (s *GoogleTarget) Configure(serviceName string, env []string)

func (*GoogleTarget) GetEnvironment

func (s *GoogleTarget) GetEnvironment() []string

func (*GoogleTarget) GetImageRegistry

func (s *GoogleTarget) GetImageRegistry() string

func (*GoogleTarget) GetImageTag

func (s *GoogleTarget) GetImageTag() string

func (*GoogleTarget) GetProject

func (s *GoogleTarget) GetProject() string

func (*GoogleTarget) GetRegion

func (s *GoogleTarget) GetRegion() string

func (*GoogleTarget) SetKey

func (s *GoogleTarget) SetKey(key string)

type KubernetesTarget

type KubernetesTarget struct {
	GoogleTarget
}

func (*KubernetesTarget) Deploy

func (t *KubernetesTarget) Deploy()

func (*KubernetesTarget) PostDeploy

func (t *KubernetesTarget) PostDeploy()

func (*KubernetesTarget) Stop

func (t *KubernetesTarget) Stop()

func (*KubernetesTarget) TailLogs

func (t *KubernetesTarget) TailLogs()

func (*KubernetesTarget) Text

func (t *KubernetesTarget) Text() string

type LoadBalancerTarget

type LoadBalancerTarget struct {
	GoogleTarget
	LoadBalancerTargetRules
	Name string `required:"true"`
}

func (*LoadBalancerTarget) Deploy

func (t *LoadBalancerTarget) Deploy()

func (*LoadBalancerTarget) PostDeploy

func (t *LoadBalancerTarget) PostDeploy()

func (*LoadBalancerTarget) Text

func (t *LoadBalancerTarget) Text() string

type LoadBalancerTargetRules

type LoadBalancerTargetRules struct {
	DefaultService string `json:"defaultService"`

	HostRules []struct {
		Hosts       []string `json:"hosts"`
		PathMatcher string   `json:"pathMatcher"`
	} `json:"hostRules"`

	PathMatchers []struct {
		DefaultService string `json:"defaultService"`
		Name           string `json:"name"`
	} `json:"pathMatchers"`
}

Jump to

Keyboard shortcuts

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