api

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Secret   bool `yaml:"secret"`
	Upstream bool `yaml:"upstream"`
}

type Artifact

type Artifact struct {
	Path string
}

type Cert added in v0.1.3

type Cert struct {
}

type CertManager added in v0.1.3

type CertManager struct {
}

type Cluster

type Cluster struct {
	// A minikube cluster configuration. Only one of GKE and minikube should be provided.
	// When ensuring a minikube cluster, Valet may destroy existing minikube clusters.
	Minikube *Minikube `yaml:"minikube"`
	// A GKE cluster configuration. Only one of GKE and Minikube should be provided.
	GKE *GKE `yaml:"gke"`
}

Ensure the cluster is running with the desired specification. This will result in the specified cluster being configured and the local kube context pointing to it.

type Curl

type Curl struct {
	Path       string            `yaml:"path"`
	Host       string            `yaml:"host"`
	Headers    map[string]string `yaml:"headers"`
	StatusCode int               `yaml:"statusCode"`
}

type DNS

type DNS struct {
	// The hosted zone to use for the DNS entry. This is required and must match the name of a hosted zone in Route53.
	// Valet will use the AWS credentials provided in AWS_SHARED_CREDENTIALS_FILE.
	// The credentials must have the following AWS privileges:
	//   route53:ChangeResourceRecordSets
	//   route53:ListHostedZones
	HostedZone string `yaml:"hostedZone"`
	// The domain to map to the proxy URL. This is optional. If no value is provided, then a domain will be autogenerated
	// in the form: valet-########.HOSTED_ZONE
	Domain string `yaml:"domain"`

	Cert *Cert `yaml:"cert"`
}

type Demos

type Demos struct {
	Petclinic *Petclinic `yaml:"petclinic"`
}

type EnsureConfig

type EnsureConfig struct {
	Cluster     *Cluster     `yaml:"cluster"`
	Gloo        *Gloo        `yaml:"gloo"`
	CertManager *CertManager `yaml:"certManager"`
	Workflows   []string     `yaml:"workflows"`
	Demos       *Demos       `yaml:"demos"`
	Resources   []string     `yaml:"resources"`
}

func LoadConfig

func LoadConfig(ctx context.Context, path string) (*EnsureConfig, error)

type GKE

type GKE struct {
	KubeCluster
	Name     string `yaml:"name"`
	Location string `yaml:"location"`
	Project  string `yaml:"project"`
}

type Gloo

type Gloo struct {
	// Gloo (server) version. This should not begin with a "v".
	Version    string `yaml:"version"`
	Enterprise bool   `yaml:"enterprise"`
	LicenseKey string `yaml:"licenseKey"`
	AWS        AWS    `yaml:"aws"`
	// If present, a virtual service will be created called "glooui".
	UiVirtualService *UiVirtualService `yaml:"uiVirtualService"`
}

type KubeCluster

type KubeCluster struct {
	// Beta-quality feature. Kubernetes version to install on new cluster.
	KubeVersion string `yaml:"kubeVersion"`
}

type Minikube

type Minikube struct {
	KubeCluster
}

type Petclinic

type Petclinic struct {
	DNS *DNS `yaml:"dns"`
}

type Step

type Step struct {
	Apply  string `yaml:"apply"`
	Delete string `yaml:"delete"`
	Curl   *Curl  `yaml:"curl"`
}

type UiVirtualService

type UiVirtualService struct {
	// If nil, the default domain "*" is used. Otherwise, a DNS entry is created in Route53
	// with the provided DNS configuration.
	DNS *DNS `yaml:"dns"`
}

type Valet

type Valet struct {
	// If true, download artifacts from valet's Google storage bucket.
	ValetArtifacts bool
	// If set, use this directory on the local filesystem to find product artifact.
	// This directory is used even if valet artifacts is set to true (it will not download from Google).
	LocalArtifactsDir string
}

type Workflow

type Workflow struct {
	Name  string `yaml:"name"`
	Steps []Step `yaml:"steps"`
}

func LoadWorkflow

func LoadWorkflow(ctx context.Context, path string) (*Workflow, error)

Jump to

Keyboard shortcuts

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