ship

package
v0.0.0-...-f2cb69b Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2015 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestBuild

func RequestBuild(url, command, wd string) (version string, err error)

func RequestDeploy

func RequestDeploy(url, command, wd, version string, targets []string) (err error)

func RequestRollback

func RequestRollback(url, command, wd string, targets []string) (err error)

Types

type App

type App struct {
	Name    string `json:"app"`
	URL     string `json:"url"`
	Version string `json:"md5"`
}

type Build

type Build struct {
	Name     string            `json:"package"`
	Filename string            `json:"file"`
	User     string            `json:"by"`
	When     time.Time         `json:"when"`
	Versions map[string]string `json:"versions"`
}

func NewBuild

func NewBuild(command, wd string) (result *Build, err error)

func (*Build) Send

func (b *Build) Send(url string) (result []byte, err error)

type Builder

type Builder struct {
	Workspace string
	Root      string
	Name      string
	Build     *Build
	// contains filtered or unexported fields
}

func (*Builder) Make

func (b *Builder) Make() (result string, err error)

type Deploy

type Deploy struct {
	Name     string    `json:"package"`
	Filename string    `json:"file"`
	User     string    `json:"by"`
	When     time.Time `json:"when"`
	Version  string    `json:"version"`
	Targets  []string  `json:"targets"`
	Logs     []string  `json:"logs"`
}

func NewDeploy

func NewDeploy(command, wd string, targets []string) (result *Deploy, err error)

func (*Deploy) Send

func (d *Deploy) Send(url string) (err error)

type Project

type Project struct {
	Name     string
	Filename string
	// contains filtered or unexported fields
}

func NewProject

func NewProject(name, wd string) (p *Project, err error)

func (*Project) Dependencies

func (p *Project) Dependencies() (result map[string]string, err error)

type Requests

type Requests struct {
	Name        string
	Root        string
	Builds      []*Build
	Deployments []*Deploy
	// contains filtered or unexported fields
}

type Server

type Server struct {
	Host     string
	Root     string
	Builds   string
	Builders map[string]*Builder
	Requests map[string]*Requests
	// contains filtered or unexported fields
}

func (*Server) Process

func (s *Server) Process(w io.Writer, r interface{}) (err error)

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) Write

func (s *Server) Write(w http.ResponseWriter)

Jump to

Keyboard shortcuts

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