Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveGlobalConfig ¶
func SaveGlobalConfig() error
Types ¶
type Compose ¶
type Compose struct { Mode string `json:"mode" yaml:"mode"` Inline string `json:"inline,omitempty" yaml:"inline,omitempty"` Include []string `json:"include,omitempty" yaml:"include,omitempty"` Context string `json:"context,omitempty" yaml:"context,omitempty"` Sudo bool `json:"sudo,omitempty" yaml:"sudo,omitempty"` }
type GlobalConfig ¶
type GlobalConfig struct { Hosts map[string]Host `json:"hosts" yaml:"hosts"` Workspaces map[string]string `json:"scopes" yaml:"scopes"` Paths *GlobalPaths `json:"paths" yaml:"paths"` }
func GetGlobalConfig ¶
func GetGlobalConfig() (*GlobalConfig, error)
type GlobalConfigFile ¶
type GlobalConfigFile struct { File string Config *GlobalConfig }
func (*GlobalConfigFile) Load ¶
func (cfg *GlobalConfigFile) Load() error
func (*GlobalConfigFile) Save ¶
func (cfg *GlobalConfigFile) Save() error
type GlobalPaths ¶
type GlobalPaths struct {
Cache string `json:"cache" yaml:"cache"`
}
type Hooks ¶
type Hooks struct { Before []Task `json:"before" yaml:"before"` After []Task `json:"after" yaml:"after"` BeforeDeploy []Task `json:"before-deploy" yaml:"before-deploy"` AfterDeploy []Task `json:"after-deploy" yaml:"after-deploy"` BeforeRemove []Task `json:"before-remove" yaml:"before-remove"` AfterRemove []Task `json:"after-remove" yaml:"after-remove"` }
type Jolt9 ¶
type Jolt9 struct { Name string `json:"name" yaml:"name"` Secrets []Secret `json:"secrets,omitempty" yaml:"secrets,omitempty"` Vaults []Vault `json:"vaults,omitempty" yaml:"vaults,omitempty"` Env map[string]string `json:"env,omitempty" yaml:"env,omitempty"` Dns *Dns `json:"dns,omitempty" yaml:"dns,omitempty"` Files []string `json:"files,omitempty" yaml:"files,omitempty"` Hooks *Hooks `json:"hooks,omitempty" yaml:"hooks,omitempty"` Inherits []string `json:"inherits,omitempty" yaml:"inherits,omitempty"` Compose *Compose `json:"compose,omitempty" yaml:"compose,omitempty"` Ssh *Ssh `json:"ssh,omitempty" yaml:"ssh,omitempty"` }
func (*Jolt9) MergeSecrets ¶
func (*Jolt9) MergeVaults ¶
func (*Jolt9) PrependMergeSecrets ¶
func (*Jolt9) PrependMergeVaults ¶
type Project ¶
func (*Project) UnmarshalYAML ¶
type Secret ¶
type Secret struct { Name string `json:"name" yaml:"name"` Use string `json:"use" yaml:"use"` Key string `json:"key" yaml:"key"` Vault string `json:"vault" yaml:"vault"` Gen bool `json:"gen" yaml:"gen"` Special string `json:"special" yaml:"special"` Digits bool `json:"digits" yaml:"digits"` Lower bool `json:"lower" yaml:"lower"` Upper bool `json:"upper" yaml:"upper"` Size int `json:"size" yaml:"size"` }
func (*Secret) UnmarshalYAML ¶
type Workspace ¶
type Workspace struct { Name string `json:"name" yaml:"name"` Vaults []Vault `json:"vaults,omitempty" yaml:"vaults,omitempty"` Secrets []Secret `json:"secrets,omitempty" yaml:"secrets,omitempty"` Dns map[string]Dns `json:"dns,omitempty" yaml:"dns,omitempty"` Projects map[string]Project `json:"projects" yaml:"projects"` Discovery *Discovery `json:"discovery,omitempty" yaml:"discovery,omitempty"` }
type WorkspaceFile ¶
func (*WorkspaceFile) Load ¶
func (cfg *WorkspaceFile) Load() error
func (*WorkspaceFile) Save ¶
func (cfg *WorkspaceFile) Save() error
Click to show internal directories.
Click to hide internal directories.