Documentation ¶
Index ¶
- type Data
- type Distro
- type GitHubDistro
- func (d *GitHubDistro) Download(dir string) error
- func (d *GitHubDistro) GetCachePath() string
- func (d *GitHubDistro) GetCacheSaltStackSourcePath() string
- func (d *GitHubDistro) GetModeState(mode string) (string, error)
- func (d *GitHubDistro) GetName() string
- func (d *GitHubDistro) GetRelease() *github.RepositoryRelease
- func (d *GitHubDistro) GetReleaseAssets() []*github.ReleaseAsset
- func (d *GitHubDistro) GetReleaseName() string
- func (d *GitHubDistro) GetSaltstackPillars() (pillars map[string]string)
- type LocalConfig
- type LocalDistro
- func (d *LocalDistro) Download(dir string) error
- func (d *LocalDistro) GetCachePath() string
- func (d *LocalDistro) GetCacheSaltStackSourcePath() string
- func (d *LocalDistro) GetModeState(mode string) (string, error)
- func (d *LocalDistro) GetName() string
- func (d *LocalDistro) GetReleaseName() string
- func (d *LocalDistro) GetSaltstackPillars() (pillars map[string]string)
- type Manifest
- type Mode
- type Saltstack
- type SupportedOS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Distro ¶
type Distro interface { GetName() string GetReleaseName() string GetModeState(mode string) (string, error) GetCachePath() string GetCacheSaltStackSourcePath() string GetSaltstackPillars() (pillars map[string]string) Download(dir string) error }
type GitHubDistro ¶ added in v0.7.0
type GitHubDistro struct { Owner string Repo string Version string Name string Dir string SaltDir string Alias string IsAlias bool Manifest *Manifest IncludePreReleases bool // contains filtered or unexported fields }
func (*GitHubDistro) Download ¶ added in v0.7.0
func (d *GitHubDistro) Download(dir string) error
func (*GitHubDistro) GetCachePath ¶ added in v0.7.0
func (d *GitHubDistro) GetCachePath() string
func (*GitHubDistro) GetCacheSaltStackSourcePath ¶ added in v0.7.0
func (d *GitHubDistro) GetCacheSaltStackSourcePath() string
func (*GitHubDistro) GetModeState ¶ added in v0.7.0
func (d *GitHubDistro) GetModeState(mode string) (string, error)
func (*GitHubDistro) GetName ¶ added in v0.7.0
func (d *GitHubDistro) GetName() string
func (*GitHubDistro) GetRelease ¶ added in v0.7.0
func (d *GitHubDistro) GetRelease() *github.RepositoryRelease
func (*GitHubDistro) GetReleaseAssets ¶ added in v0.7.0
func (d *GitHubDistro) GetReleaseAssets() []*github.ReleaseAsset
func (*GitHubDistro) GetReleaseName ¶ added in v0.7.0
func (d *GitHubDistro) GetReleaseName() string
func (*GitHubDistro) GetSaltstackPillars ¶ added in v0.7.0
func (d *GitHubDistro) GetSaltstackPillars() (pillars map[string]string)
type LocalConfig ¶ added in v0.7.0
type LocalConfig struct {
Manifest *Manifest `yaml:"manifest"`
}
type LocalDistro ¶ added in v0.7.0
type LocalDistro struct { Owner string Repo string Version string Name string Dir string SaltDir string Alias string IsAlias bool IsLocal bool Manifest *Manifest IncludePreReleases bool // contains filtered or unexported fields }
func (*LocalDistro) Download ¶ added in v0.7.0
func (d *LocalDistro) Download(dir string) error
func (*LocalDistro) GetCachePath ¶ added in v0.7.0
func (d *LocalDistro) GetCachePath() string
func (*LocalDistro) GetCacheSaltStackSourcePath ¶ added in v0.7.0
func (d *LocalDistro) GetCacheSaltStackSourcePath() string
func (*LocalDistro) GetModeState ¶ added in v0.7.0
func (d *LocalDistro) GetModeState(mode string) (string, error)
func (*LocalDistro) GetName ¶ added in v0.7.0
func (d *LocalDistro) GetName() string
func (*LocalDistro) GetReleaseName ¶ added in v0.7.0
func (d *LocalDistro) GetReleaseName() string
func (*LocalDistro) GetSaltstackPillars ¶ added in v0.7.0
func (d *LocalDistro) GetSaltstackPillars() (pillars map[string]string)
type Manifest ¶
type Manifest struct { Version int `json:"version" yaml:"version" default:"2"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Base string `json:"base_dir" yaml:"base_dir" default:"."` Modes []Mode `json:"modes" yaml:"modes"` Saltstack Saltstack `json:"saltstack,omitempty" yaml:"saltstack,omitempty"` SupportedOS []SupportedOS `json:"supported_os,omitempty" yaml:"supported_os,omitempty"` }
func ParseManifest ¶
type SupportedOS ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.