githubrelease

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 -

func (*BoshDeploymentConfig) Validate

func (c *BoshDeploymentConfig) Validate() error

Validate -

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 -

func NewConfig

func NewConfig(file io.Reader) *Config

NewConfig -

func (*Config) Validate

func (c *Config) Validate() error

Validate -

type Formatter

type Formatter struct {
	Match   string `json:"match" yaml:"match"`
	Replace string `json:"replace" yaml:"replace"`
}

type Formatter

type GithubRef

type GithubRef struct {
	Ref  string
	Unix int64
}

GithubRef -

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 -

func (*GithubReleaseConfig) Validate

func (c *GithubReleaseConfig) Validate() error

Validate -

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 NewManager

func NewManager(config Config) Manager

NewManager -

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

func (a *Manager) GetContent(ref string, item BoshDeploymentConfig, path string) ([]byte, error)

GetContent -

func (*Manager) GetGithubReleases

func (a *Manager) GetGithubReleases() []GithubReleaseData

GetGithubReleases -

func (*Manager) GetLastRef

func (a *Manager) GetLastRef(refs []GithubRef) (string, error)

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 -

Jump to

Keyboard shortcuts

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