config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features struct {
	Body hcl.Body `hcl:",remain"`
}

type IgniteConfig

type IgniteConfig struct {
	Version    string       `hcl:"version,attr"`
	Staging    *Staging     `hcl:"staging,block"`
	Providers  []*Provider  `hcl:"provider,block"`
	Units      []*Unit      `hcl:"unit,block"`
	Workspaces []*Workspace `hcl:"workspace,block"`
}

func MyConfig

func MyConfig() *IgniteConfig

func ParseFrom

func ParseFrom(filename string) (*IgniteConfig, error)

type Provider

type Provider struct {
	Name        string    `hcl:"name,label"`
	Description string    `hcl:"description,optional"`
	RootDir     string    `hcl:"rootdir,attr"`
	Features    *Features `hcl:"features,block"`
}

type Staging

type Staging struct {
	Fallback        bool   `hcl:"fallback,optional"`
	DefaultProvider string `hcl:"default-provider,optional"`
}

type Tier

type Tier struct {
	Name         string   `hcl:"name,label"`
	Inactive     bool     `hcl:"inactive,optional"`
	Dependencies []string `hcl:"dependencies,optional"`
}

type Unit

type Unit struct {
	Name        string   `hcl:"name,label"`
	Description string   `hcl:"description,optional"`
	Path        string   `hcl:"path,attr"`
	Provider    string   `hcl:"provider,optional"`
	Hosts       []string `hcl:"hosts,optional"`
}

type Workspace

type Workspace struct {
	Name        string   `hcl:"name,label"`
	Description string   `hcl:"description,attr"`
	TierList    []string `hcl:"tiers,optional"`
	Tiers       []*Tier  `hcl:"tier,block"`
}

Jump to

Keyboard shortcuts

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