Documentation ¶
Overview ¶
Package pkg provides common libraries for the Deis builder.
The Deis builder is responsible for building slugs and docker images for use in the Deis on the Deis PaaS platform.
Index ¶
Constants ¶
const ( StatusOk = iota StatusLocalError )
Return codes that will be sent to the shell.
Variables ¶
This section is empty.
Functions ¶
func KillOnExit ¶
KillOnExit kills PIDs when the program exits.
Otherwise, this blocks until an os.Interrupt or os.Kill is received.
Params:
This treats Params as a map of process names (unimportant) to PIDs. It then
attempts to kill all of the pids that it receives.
func RunBuilder ¶
func RunBuilder(sshHostIP string, sshHostPort int, gitHomeDir string, sshServerCircuit *sshd.Circuit, pushLock sshd.RepositoryLock) int
RunBuilder starts the Builder service.
The Builder service is responsible for setting up the local container environment and then listening for new builds. The main listening service is SSH. Builder listens for new Git commands and then sends those on to Git.
Run returns on of the Status* status code constants.
Types ¶
type BuildHook ¶
type BuildHook struct { Sha string `json:"sha"` ReceiveUser string `json:"receive_user"` ReceiveRepo string `json:"receive_repo"` Image string `json:"image"` Procfile ProcessType `json:"procfile"` Dockerfile string `json:"dockerfile"` }
BuildHook represents a controller's build-hook object.
type BuildHookResponse ¶
BuildHookResponse represents a controller's build-hook response object.
type Config ¶
type Config struct { Owner string `json:"owner"` App string `json:"app"` Values map[string]interface{} `json:"values"` Memory map[string]string `json:"memory"` CPU map[string]int `json:"cpu"` Tags map[string]string `json:"tags"` UUID string `json:"uuid"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` }
Config represents a Deis application's configuration.
type ConfigHook ¶
type ConfigHook struct { ReceiveUser string `json:"receive_user"` ReceiveRepo string `json:"receive_repo"` }
ConfigHook represents a repository from which to extract the configuration and user to use.
type ProcessType ¶
ProcessType represents the key/value mappings of a process type to a process inside a Heroku Procfile.
Directories ¶
Path | Synopsis |
---|---|
Package cleaner is a background process that compares the kubernetes namespace list with the folders in the local git home directory, deleting what's not in the namespace list.
|
Package cleaner is a background process that compares the kubernetes namespace list with the folders in the local git home directory, deleting what's not in the namespace list. |
Package sshd implements an SSH server.
|
Package sshd implements an SSH server. |