resources

package
v0.0.0-...-47ab97e Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2015 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Service string
	Tag     string
}

func (*Build) Equals

func (build *Build) Equals(cmpBuild *Build) bool

func (*Build) Exists

func (build *Build) Exists(db *bolt.DB) (bool, error)

func (*Build) FieldMap

func (build *Build) FieldMap() binding.FieldMap

func (*Build) Save

func (build *Build) Save(db *bolt.DB) error

type Deploy

type Deploy struct {
	Env             *Environment
	LastRelease     *Release
	Release         *Release
	ChangedServices []string
	EnvConfig       interface{}
}

type DeployRequest

type DeployRequest struct {
	Src  string `form:"src"`
	Dest string `form:"dest"`
}

type Environment

type Environment struct {
	ReleaseId    int    `json:'release'`
	Updated      string `json:'updated'`
	DeployActive bool   `json:'active'`
}

func GetEnvironment

func GetEnvironment(db *bolt.DB, name string) (*Environment, error)

type EnvironmentType

type EnvironmentType interface {
	Deploy(*Deploy) error
}

type Release

type Release struct {
	Id       int               `json:"id"`
	Name     string            `json:"name"`
	Config   interface{}       `json:"config"`
	Services map[string]string `json:"services"`
}

func GetRelease

func GetRelease(db *bolt.DB, id int) (*Release, error)

func NewRelease

func NewRelease(db *bolt.DB, build *Build) (*Release, error)

func (*Release) Deploy

func (r *Release) Deploy(db *bolt.DB, dest string, envConfig interface{}, envType EnvironmentType) error

Jump to

Keyboard shortcuts

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