deploy

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppFog

type AppFog struct {
}

func (*AppFog) Write

func (a *AppFog) Write(f *buildfile.Buildfile)

type Bash added in v0.2.1

type Bash struct {
	Script  []string `yaml:"script,omitempty"`
	Command string   `yaml:"command,omitempty"`
}

func (*Bash) Write added in v0.2.1

func (g *Bash) Write(f *buildfile.Buildfile)

type CloudControl

type CloudControl struct {
}

func (*CloudControl) Write

func (c *CloudControl) Write(f *buildfile.Buildfile)

type CloudFoundry

type CloudFoundry struct {
	Target   string `yaml:"target,omitempty"`
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
	Org      string `yaml:"org,omitempty"`
	Space    string `yaml:"space,omitempty"`

	App string `yaml:"app,omitempty"`
}

func (*CloudFoundry) Write

func (cf *CloudFoundry) Write(f *buildfile.Buildfile)

type Deploy

type Deploy struct {
	AppFog       *AppFog       `yaml:"appfog,omitempty"`
	CloudControl *CloudControl `yaml:"cloudcontrol,omitempty"`
	CloudFoundry *CloudFoundry `yaml:"cloudfoundry,omitempty"`
	EngineYard   *EngineYard   `yaml:"engineyard,omitempty"`
	Git          *Git          `yaml:"git,omitempty"`
	Heroku       *Heroku       `yaml:"heroku,omitempty"`
	Modulus      *Modulus      `yaml:"modulus,omitempty"`
	Nodejitsu    *Nodejitsu    `yaml:"nodejitsu,omitempty"`
	Openshift    *Openshift    `yaml:"openshift,omitempty"`
	SSH          *SSH          `yaml:"ssh,omitempty"`
	Tsuru        *Tsuru        `yaml:"tsuru,omitempty"`
	Bash         *Bash         `yaml:"bash,omitempty"`
}

Deploy stores the configuration details for deploying build artifacts when a Build has succeeded

func (*Deploy) Write

func (d *Deploy) Write(f *buildfile.Buildfile)

type EngineYard

type EngineYard struct {
}

func (*EngineYard) Write

func (e *EngineYard) Write(f *buildfile.Buildfile)

type Git

type Git struct {
	Target string `yaml:"target,omitempty"`
	Force  bool   `yaml:"force,omitempty"`
	Branch string `yaml:"branch,omitempty"`
}

func (*Git) Write

func (g *Git) Write(f *buildfile.Buildfile)

type Heroku

type Heroku struct {
	App    string `yaml:"app,omitempty"`
	Force  bool   `yaml:"force,omitempty"`
	Branch string `yaml:"branch,omitempty"`
}

func (*Heroku) Write

func (h *Heroku) Write(f *buildfile.Buildfile)

type Modulus

type Modulus struct {
	Project string `yaml:"project,omitempty"`
	Token   string `yaml:"token,omitempty"`
}

func (*Modulus) Write

func (m *Modulus) Write(f *buildfile.Buildfile)

type Nodejitsu

type Nodejitsu struct {
	App   string `yaml:"app,omitempty"`
	User  string `yaml:"user,omitempty"`
	Token string `yaml:"token,omitempty"`
}

func (*Nodejitsu) Write

func (n *Nodejitsu) Write(f *buildfile.Buildfile)

type Openshift

type Openshift struct {
}

func (*Openshift) Write

func (o *Openshift) Write(f *buildfile.Buildfile)

type SSH

type SSH struct {

	// Target is the deployment host in this format
	//   user@hostname:/full/path <PORT>
	//
	// PORT may be omitted if its default to port 22.
	Target string `yaml:"target,omitempty"`

	// Artifacts is a list of files/dirs to be deployed
	// to the target host. If artifacts list more than one file
	// it will be compressed into a single tar.gz file.
	// if artifacts contain:
	//   - GITARCHIVE
	//
	// other file listed in artifacts will be ignored, instead, we will
	// create git archive from the current revision and deploy that file
	// alone.
	// If you need to deploy the git archive along with some other files,
	// please use build script to create the git archive, and then list
	// the archive name here with the other files.
	Artifacts []string `yaml:"artifacts,omitempty"`

	// Cmd is a single command executed at target host after the artifacts
	// is deployed.
	Cmd string `yaml:"cmd,omitempty"`
}

SSH struct holds configuration data for deployment via ssh, deployment done by scp-ing file(s) listed in artifacts to the target host, and then run cmd remotely. It is assumed that the target host already add this repo public key in the host's `authorized_hosts` file. And the private key is already copied to `.ssh/id_rsa` inside the build container. No further check will be done.

func (*SSH) Write

func (s *SSH) Write(f *buildfile.Buildfile)

Write down the buildfile

type Tsuru added in v0.2.1

type Tsuru struct {
	Force  bool   `yaml:"force,omitempty"`
	Branch string `yaml:"branch,omitempty"`
	Remote string `yaml:"remote,omitempty"`
}

func (*Tsuru) Write added in v0.2.1

func (h *Tsuru) Write(f *buildfile.Buildfile)

Jump to

Keyboard shortcuts

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