Documentation
¶
Index ¶
- Constants
- Variables
- func Schema() []byte
- type AWS
- type Azure
- type AzureRMBackend
- type Cluster
- type Context
- type DNS
- type Docker
- type GCP
- type GCSBackend
- type GitOps
- type IPRange
- type Network
- type OnePassword
- type OnePasswordVault
- type Paths
- type Registry
- type Root
- type S3Backend
- type SOPS
- type Secrets
- type Terraform
- type TerraformBackend
- type TerraformLock
- type VSphere
- type Workstation
- type WorkstationDNS
Constants ¶
const Version = "v1alpha2"
Version is the version value of a v1alpha2 root file.
Variables ¶
var Platforms = []string{"none", "docker", "incus", "metal", "hetzner", "aws", "azure", "gcp", "hyperv", "vsphere", "proxmox"}
Platforms lists the platforms the CLI supports, in the order the schema enum lists them.
Functions ¶
Types ¶
type AWS ¶
type AWS struct {
Profile *string `yaml:"profile,omitempty"`
Region *string `yaml:"region,omitempty"`
EndpointURL *string `yaml:"endpoint_url,omitempty"`
MWAAEndpoint *string `yaml:"mwaa_endpoint,omitempty"`
S3Hostname *string `yaml:"s3_hostname,omitempty"`
}
AWS holds the AWS settings that the CLI exports and checks.
type Azure ¶
type Azure struct {
Environment *string `yaml:"environment,omitempty"`
KubeloginMode *string `yaml:"kubelogin_mode,omitempty"`
Region *string `yaml:"region,omitempty"`
SubscriptionID *string `yaml:"subscription_id,omitempty"`
TenantID *string `yaml:"tenant_id,omitempty"`
}
Azure holds the Azure settings that the CLI exports and checks.
type AzureRMBackend ¶
type AzureRMBackend struct {
ContainerName *string `yaml:"container_name,omitempty"`
StorageAccountName *string `yaml:"storage_account_name,omitempty"`
}
AzureRMBackend holds the azurerm backend fields the CLI reads.
type Cluster ¶
type Cluster struct {
Driver *string `yaml:"driver,omitempty"`
}
Cluster holds the cluster settings the CLI reads.
type Context ¶
type Context struct {
ID string `yaml:"id,omitempty"`
Platform string `yaml:"platform,omitempty"`
Dev *bool `yaml:"dev,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
Secrets *Secrets `yaml:"secrets,omitempty"`
AWS *AWS `yaml:"aws,omitempty"`
Azure *Azure `yaml:"azure,omitempty"`
GCP *GCP `yaml:"gcp,omitempty"`
VSphere *VSphere `yaml:"vsphere,omitempty"`
Terraform *Terraform `yaml:"terraform,omitempty"`
Workstation *Workstation `yaml:"workstation,omitempty"`
DNS *DNS `yaml:"dns,omitempty"`
Network *Network `yaml:"network,omitempty"`
Cluster *Cluster `yaml:"cluster,omitempty"`
Docker *Docker `yaml:"docker,omitempty"`
Registries map[string]Registry `yaml:"registries,omitempty"`
GitOps *GitOps `yaml:"gitops,omitempty"`
}
Context holds the settings the CLI reads from a context.
type DNS ¶
type DNS struct {
Domain *string `yaml:"domain,omitempty"`
Enabled *bool `yaml:"enabled,omitempty"`
}
DNS holds the DNS settings the CLI reads.
type Docker ¶
type Docker struct {
Enabled *bool `yaml:"enabled,omitempty"`
RegistryURL *string `yaml:"registry_url,omitempty"`
Registries map[string]Registry `yaml:"registries,omitempty"`
}
Docker holds the docker settings the CLI reads. Registries is the deprecated location of the top-level registries map.
type GCP ¶
type GCP struct {
CredentialsPath *string `yaml:"credentials_path,omitempty"`
ProjectID *string `yaml:"project_id,omitempty"`
QuotaProject *string `yaml:"quota_project,omitempty"`
}
GCP holds the GCP settings that the CLI exports.
type GCSBackend ¶
type GCSBackend struct {
Bucket *string `yaml:"bucket,omitempty"`
}
GCSBackend holds the GCS backend fields the CLI reads.
type GitOps ¶
type GitOps struct {
Mode *string `yaml:"mode,omitempty"`
Namespace *string `yaml:"namespace,omitempty"`
}
GitOps holds the GitOps settings the CLI reads.
type Network ¶
type Network struct {
CIDRBlock *string `yaml:"cidr_block,omitempty"`
LoadBalancerIPs *IPRange `yaml:"loadbalancer_ips,omitempty"`
}
Network holds the network settings the CLI reads.
type OnePassword ¶
type OnePassword struct {
Vaults map[string]OnePasswordVault `yaml:"vaults,omitempty"`
}
OnePassword holds the 1Password vaults, keyed by the alias that secret() references.
type OnePasswordVault ¶
type OnePasswordVault struct {
ID *string `yaml:"id,omitempty"`
Name *string `yaml:"name,omitempty"`
URL *string `yaml:"url,omitempty"`
}
OnePasswordVault identifies one 1Password vault.
type Paths ¶
type Paths struct {
Base string `yaml:"base,omitempty"`
}
Paths holds the project path settings. Base is relative to the project root.
type Registry ¶
type Registry struct {
Remote *string `yaml:"remote,omitempty"`
Local *string `yaml:"local,omitempty"`
HostPort *int `yaml:"hostport,omitempty"`
Endpoint *string `yaml:"endpoint,omitempty"`
}
Registry holds the registry fields the CLI reads, keyed by registry host. Local replaces the key as the upstream host. Endpoint is the mirror of the upstream host.
type Root ¶
type Root struct {
Version string `yaml:"version"`
Environment map[string]string `yaml:"environment,omitempty"`
Paths *Paths `yaml:"paths,omitempty"`
}
Root holds the keys of the v1alpha2 root file.
type S3Backend ¶
type S3Backend struct {
Bucket *string `yaml:"bucket,omitempty"`
}
S3Backend holds the S3 backend fields the CLI reads.
type SOPS ¶
type SOPS struct {
Enabled *bool `yaml:"enabled,omitempty"`
}
SOPS turns SOPS decryption on for the context.
type Secrets ¶
type Secrets struct {
SOPS *SOPS `yaml:"sops,omitempty"`
OnePassword *OnePassword `yaml:"onepassword,omitempty"`
}
Secrets holds the secret providers the CLI reads.
type Terraform ¶
type Terraform struct {
Enabled *bool `yaml:"enabled,omitempty"`
Backend *TerraformBackend `yaml:"backend,omitempty"`
Lock *TerraformLock `yaml:"lock,omitempty"`
}
Terraform holds the terraform settings the CLI reads.
type TerraformBackend ¶
type TerraformBackend struct {
Type *string `yaml:"type,omitempty"`
Prefix *string `yaml:"prefix,omitempty"`
AutoPrefix *bool `yaml:"auto_prefix,omitempty"`
S3 *S3Backend `yaml:"s3,omitempty"`
AzureRM *AzureRMBackend `yaml:"azurerm,omitempty"`
GCS *GCSBackend `yaml:"gcs,omitempty"`
Kubernetes map[string]any `yaml:"kubernetes,omitempty"`
}
TerraformBackend holds the backend type and the backend fields the CLI reads. The CLI passes each backend block to terraform as a whole, so the remaining fields stay untyped.
type TerraformLock ¶
type TerraformLock struct {
Timeout *string `yaml:"timeout,omitempty"`
}
TerraformLock holds the stack lock settings.
type VSphere ¶
type VSphere struct {
Server *string `yaml:"server,omitempty"`
User *string `yaml:"user,omitempty"`
Insecure *bool `yaml:"insecure,omitempty"`
}
VSphere holds the vCenter connection settings that the CLI exports.
type Workstation ¶
type Workstation struct {
Runtime *string `yaml:"runtime,omitempty"`
Address *string `yaml:"address,omitempty"`
Arch *string `yaml:"arch,omitempty"`
DNS *WorkstationDNS `yaml:"dns,omitempty"`
}
Workstation holds the local workstation settings the CLI reads.
type WorkstationDNS ¶
type WorkstationDNS struct {
Address *string `yaml:"address,omitempty"`
}
WorkstationDNS holds the workstation DNS server address.