Documentation ¶
Index ¶
- Constants
- Variables
- func InstallPrefix() (string, error)
- type Config
- type ConfigFile
- type FetchConfig
- type ImageConfig
- type ImageFile
- type PkgConfig
- type Profile
- type PublishConfig
- type RepoConfig
- type TplConfig
- type TplConfigFile
- type TrustConfig
- type ZpsConfig
- func (z *ZpsConfig) CachePath() string
- func (z *ZpsConfig) CertPath() string
- func (z *ZpsConfig) CloudProvider() string
- func (z *ZpsConfig) ConfigForImage(imagePath string) string
- func (z *ZpsConfig) ConfigPath() string
- func (z *ZpsConfig) HclContext(profile string) *hcl.EvalContext
- func (z *ZpsConfig) LoadConfigs() error
- func (z *ZpsConfig) LoadHclContext() error
- func (z *ZpsConfig) LoadImages() error
- func (z *ZpsConfig) LoadMain() error
- func (z *ZpsConfig) LoadRepos() error
- func (z *ZpsConfig) LoadTemplates() error
- func (z *ZpsConfig) LockPath() string
- func (z *ZpsConfig) PkiPath() string
- func (z *ZpsConfig) SelectImage(image string) error
- func (z *ZpsConfig) SetRoot() error
- func (z *ZpsConfig) SetupHelper(overwrite bool) error
- func (z *ZpsConfig) StatePath() string
- func (z *ZpsConfig) TemplatesForPkg(pkg string) []*TplConfig
- func (z *ZpsConfig) UserPath() string
- func (z *ZpsConfig) WorkPath() string
Constants ¶
View Source
const ( RepoPath = "repo.d" ImagePath = "image.d" TplPath = "tpl.d" CfgPath = "cfg.d" )
Variables ¶
View Source
var ZshHelper = `` /* 891-byte string literal not displayed */
Functions ¶
func InstallPrefix ¶
Types ¶
type Config ¶
type ConfigFile ¶
type ConfigFile struct {
Configs *Config `hcl:"Config,block"`
}
type FetchConfig ¶
type ImageConfig ¶
type ImageConfig struct { Name string `hcl:"name"` Path string `hcl:"path"` Os string `hcl:"os"` Arch string `hcl:"arch"` }
func (*ImageConfig) ToHclFile ¶
func (i *ImageConfig) ToHclFile() *hclwrite.File
type ImageFile ¶
type ImageFile struct { Name string `hcl:"name"` Path string `hcl:"path,optional"` Os string `hcl:"os,optional"` Arch string `hcl:"arch,optional"` Repos []*RepoConfig `hcl:"Repo,block"` Configs []*Config `hcl:"Config,block"` Templates []*TplConfig `hcl:"Template,block"` Packages []*PkgConfig `hcl:"Package,block"` Trusts []*TrustConfig `hcl:"Trust,block"` FilePath string }
type PublishConfig ¶
type RepoConfig ¶
type RepoConfig struct { // Used only for Imagefile Name string `hcl:"name,label"` Priority int `hcl:"priority"` Enabled bool `hcl:"enabled"` Channels []string `hcl:"channels,optional"` Fetch *FetchConfig `hcl:"fetch,block"` Publish *PublishConfig `hcl:"publish,block"` }
func (*RepoConfig) ToHclFile ¶
func (r *RepoConfig) ToHclFile() *hclwrite.File
Sadly there is no way yet to dump a struct to HCL so when the struct changes we have to update the HCL encoding
type TplConfig ¶
type TplConfigFile ¶
type TplConfigFile struct {
Templates *TplConfig `hcl:"Template,block"`
}
type TrustConfig ¶
type ZpsConfig ¶
type ZpsConfig struct { Mode string `hcl:"mode"` Security string `hcl:"security"` Root string CurrentImage *ImageConfig Configs []*Config Images []*ImageConfig Repos []*RepoConfig Templates []*TplConfig // contains filtered or unexported fields }
func LoadConfig ¶
func (*ZpsConfig) CloudProvider ¶
func (*ZpsConfig) ConfigForImage ¶
func (*ZpsConfig) ConfigPath ¶
func (*ZpsConfig) HclContext ¶
func (*ZpsConfig) LoadConfigs ¶
func (*ZpsConfig) LoadHclContext ¶
func (*ZpsConfig) LoadImages ¶
func (*ZpsConfig) LoadTemplates ¶
func (*ZpsConfig) SelectImage ¶
func (*ZpsConfig) SetupHelper ¶
func (*ZpsConfig) TemplatesForPkg ¶
Click to show internal directories.
Click to hide internal directories.