config

package
v0.0.0-...-1316712 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultGithubClient *github.Client = nil

Functions

This section is empty.

Types

type Application

type Application struct {
	Name       string
	Repository common.Repository

	Environments []string

	// Called to determine the target and strategy to use for deploying to a
	// given environment.
	DeployEnvironment func(string) *Strategy
}

func (*Application) Wrapper

func (app *Application) Wrapper() *CommonApplicationWrapper

type Applications

type Applications struct {
	List  []*Application
	Store common.Store
}

func (*Applications) FindApplicationByName

func (apps *Applications) FindApplicationByName(name string) *Application

func (*Applications) FindApplicationForGithubRepository

func (apps *Applications) FindApplicationForGithubRepository(githubRepo *github.Repository) *Application

type CommonApplicationWrapper

type CommonApplicationWrapper struct {
	// contains filtered or unexported fields
}

Wraps `Application` struct to fulfill the `common.Application` interface.

func (*CommonApplicationWrapper) Name

func (wrapper *CommonApplicationWrapper) Name() string

func (*CommonApplicationWrapper) Repository

func (wrapper *CommonApplicationWrapper) Repository() common.Repository

func (*CommonApplicationWrapper) StrategyForEnvironment

func (wrapper *CommonApplicationWrapper) StrategyForEnvironment(environment string) common.Strategy

type CommonStrategyWrapper

type CommonStrategyWrapper struct {
	// contains filtered or unexported fields
}

func (*CommonStrategyWrapper) OnError

func (wrapper *CommonStrategyWrapper) OnError(deployment common.Deployment, err error)

func (*CommonStrategyWrapper) Phases

func (wrapper *CommonStrategyWrapper) Phases() []common.Phase

func (*CommonStrategyWrapper) Preconditions

func (wrapper *CommonStrategyWrapper) Preconditions() []common.Precondition

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(owner, name string) *Repository

func (*Repository) Name

func (repo *Repository) Name() string

func (*Repository) Owner

func (repo *Repository) Owner() string

type Strategy

type Strategy struct {
	Preconditions []common.Precondition
	Phases        []common.Phase
	OnError       func(common.Deployment, error)
}

type Target

type Target interface{}

Jump to

Keyboard shortcuts

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