Documentation
¶
Index ¶
- type BoshDeploymentConfig
- type BoshDeploymentData
- type BoshManifest
- type BoshRelease
- type Config
- type Formatter
- type GithubRef
- type GithubReleaseConfig
- type GithubReleaseData
- type Manager
- func (a *Manager) FormatVersion(ref string, item GithubReleaseConfig) string
- func (a *Manager) GetBoshDeployments() []BoshDeploymentData
- func (a *Manager) GetContent(ref string, item BoshDeploymentConfig, path string) ([]byte, error)
- func (a *Manager) GetGithubReleases() []GithubReleaseData
- func (a *Manager) GetLastRef(refs []GithubRef) (string, error)
- func (a *Manager) GetRefs(item GithubReleaseConfig) ([]GithubRef, error)
- func (a *Manager) RenderManifest(manifest []byte, item BoshDeploymentData) []byte
- type ReleaseData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoshDeploymentConfig ¶
type BoshDeploymentConfig struct {
GithubReleaseConfig `yaml:",inline"`
Manifest string `json:"manifest" yaml:"manifest"`
Ops []string `json:"ops" yaml:"ops"`
Vars []string `json:"vars" yaml:"vars"`
}
BoshDeploymentConfig -
type BoshDeploymentData ¶
type BoshDeploymentData struct {
BoshDeploymentConfig `yaml:",inline"`
ReleaseData `yaml:",inline"`
Deployment string `json:"deployment" yaml:"deployment"`
Releases []BoshRelease `json:"releases" yaml:"releases"`
}
BoshDeploymentData -
func NewBoshDeploymentData ¶
func NewBoshDeploymentData(config BoshDeploymentConfig, name string) BoshDeploymentData
NewBoshDeploymentData -
type BoshManifest ¶
type BoshManifest struct {
Releases []BoshRelease `yaml:"releases"`
}
BoshManifest -
type BoshRelease ¶
type BoshRelease struct {
Name string `yaml:"name" json:"name"`
URL string `yaml:"url" json:"url"`
Version string `yaml:"version" json:"version"`
}
BoshRelease -
type Config ¶
type Config struct {
Log struct {
JSON bool `json:"json" yaml:"json"`
Level string `json:"level" yaml:"level"`
} `json:"log" yaml:"log"`
GithubToken string `json:"github-token" yaml:"github-token"`
BoshDeployment map[string]*BoshDeploymentConfig `json:"bosh-deployments" yaml:"bosh-deployment"`
GithubRelease map[string]*GithubReleaseConfig `json:"github-releases" yaml:"github-release"`
}
Config -
type Formatter ¶
type Formatter struct {
Match string `json:"match" yaml:"match"`
Replace string `json:"replace" yaml:"replace"`
}
type Formatter
type GithubReleaseConfig ¶
type GithubReleaseConfig struct {
Owner string `json:"owner" yaml:"owner"`
Repo string `json:"repo" yaml:"repo"`
Types []string `json:"types" yaml:"types"`
Format *Formatter `json:"format" yaml:"format"`
}
GithubReleaseConfig -
func (*GithubReleaseConfig) HasType ¶
func (c *GithubReleaseConfig) HasType(name string) bool
HasType -
type GithubReleaseData ¶
type GithubReleaseData struct {
GithubReleaseConfig `yaml:",inline"`
ReleaseData `yaml:",inline"`
Name string `json:"name" yaml:"name"`
}
GithubReleaseData -
func NewGithubReleaseData ¶
func NewGithubReleaseData(config GithubReleaseConfig, name string) GithubReleaseData
NewGithubReleaseData -
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager -
func (*Manager) FormatVersion ¶
func (a *Manager) FormatVersion(ref string, item GithubReleaseConfig) string
FormatVersion -
func (*Manager) GetBoshDeployments ¶
func (a *Manager) GetBoshDeployments() []BoshDeploymentData
GetBoshDeployments -
func (*Manager) GetContent ¶
GetContent -
func (*Manager) GetGithubReleases ¶
func (a *Manager) GetGithubReleases() []GithubReleaseData
GetGithubReleases -
func (*Manager) GetLastRef ¶
GetLastRef -
func (*Manager) GetRefs ¶
func (a *Manager) GetRefs(item GithubReleaseConfig) ([]GithubRef, error)
GetRefs -
func (*Manager) RenderManifest ¶
func (a *Manager) RenderManifest(manifest []byte, item BoshDeploymentData) []byte
RenderManifest -
type ReleaseData ¶
type ReleaseData struct {
HasError bool `json:"has-error" yaml:"has-error"`
LastRef string `json:"last-ref" yaml:"last-ref"`
Version string `json:"version" yaml:"version"`
}
ReleaseData -
Click to show internal directories.
Click to hide internal directories.