Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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(s *Service)
func (*CloudRunTarget) PostDeploy ¶
func (t *CloudRunTarget) PostDeploy(s *Service)
func (*CloudRunTarget) Text ¶
func (t *CloudRunTarget) Text() string
type Config ¶
type DeployTarget ¶
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 runtime."`
}
func (*GoogleTarget) GetImageRegistry ¶ added in v1.0.3
func (s *GoogleTarget) GetImageRegistry() string
func (*GoogleTarget) GetImageTag ¶
func (s *GoogleTarget) GetImageTag(service *Service) string
func (*GoogleTarget) GetProject ¶
func (s *GoogleTarget) GetProject() string
func (*GoogleTarget) GetRegion ¶
func (s *GoogleTarget) GetRegion() string
type ImageRegistryTarget ¶
type ImageRegistryTarget struct {
GoogleTarget
}
func (*ImageRegistryTarget) Deploy ¶
func (t *ImageRegistryTarget) Deploy(s *Service)
func (*ImageRegistryTarget) PostDeploy ¶
func (t *ImageRegistryTarget) PostDeploy(s *Service)
func (*ImageRegistryTarget) Text ¶
func (t *ImageRegistryTarget) Text() string
type KubernetesTarget ¶
type KubernetesTarget struct {
GoogleTarget
}
func (*KubernetesTarget) Deploy ¶
func (t *KubernetesTarget) Deploy(s *Service)
func (*KubernetesTarget) PostDeploy ¶
func (t *KubernetesTarget) PostDeploy(s *Service)
func (*KubernetesTarget) Stop ¶
func (t *KubernetesTarget) Stop(s *Service)
func (*KubernetesTarget) TailLogs ¶
func (t *KubernetesTarget) TailLogs(s *Service)
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(s *Service)
func (*LoadBalancerTarget) PostDeploy ¶
func (t *LoadBalancerTarget) PostDeploy(s *Service)
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"`
}
type Service ¶
type Service struct {
Name string `required:"true" description:"Name of deployment."`
Path string `required:"false" description:"Path to service. This will be the working directory."`
Dockerfile string `description:"Path to Dockerfile. Defaults to the working directory."`
Prebuild string `description:"Pre deploy command."`
Postdeploy string `description:"Post deploy command."`
Open string `description:"Open URL after deployment."`
Targets map[string]*Target `required:"true"`
// contains filtered or unexported fields
}
type Target ¶
type Target struct {
Cloudrun *CloudRunTarget `description:"Use Cloud Run as target."`
Kube *KubernetesTarget `description:"Use Kubernetes Engine as target."`
Registry *ImageRegistryTarget `description:"Do not deploy, just push to image registry."`
CloudLoadBalancer *LoadBalancerTarget `description:"Use Cloud Load Balancer as target."`
}
Click to show internal directories.
Click to hide internal directories.