Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// default limit to use when streaming build output.
DefaultLimit = 2000000
)
Functions ¶
This section is empty.
Types ¶
type BuildState ¶
BuildState stores information about a build process including the Exit status and various Runtime statistics (coming soon).
type Builder ¶
type Builder struct {
// Build specifies the configuration details for building,
// testing and deploying code.
Build *script.Build
// Repo specifies the repository details for the code that
// that we are testing.
//
// The source repository may be a local repository
// on the current filesystem, or a remote repository
// on GitHub, Bitbucket, etc.
Repo *repo.Repo
// Key is an identify file, such as an RSA private key, that
// will be copied into the environments ~/.ssh/id_rsa file.
Key []byte
// Timeout is the maximum amount of to will wait for a process
// to exit. The default is no timeout.
Timeout time.Duration
// Privileged indicates the build should be executed in privileged
// mode. The default is false.
Privileged bool
// Stdout specifies the builds's standard output.
//
// If stdout is nil, Run connects the corresponding file descriptor
// to the null device (os.DevNull).
Stdout io.Writer
// BuildState contains information about an exited build,
// available after a call to Run.
BuildState *BuildState
// contains filtered or unexported fields
}
Builder represents a build process being prepared to run.
Click to show internal directories.
Click to hide internal directories.