Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds stuff.
func NewBuilder ¶
NewBuilder creates a new builder that builds stuff.
func (*Builder) ReadWorkspace ¶
ReadWorkspace reads and loads the WORKSPACE file into the build env.
type Bundle ¶
Bundle is a set of build rules in a bundle. A bundle has no build actions; it just group rules together.
type Config ¶
type Config struct { Root string // Root directory AlwaysRebuild bool // Always rebuild everything. UseDockerBuildCache bool // Use docker build cache. }
Config provide the configuration to start a builder.
type DockerBuild ¶
type DockerBuild struct { Name string Dockerfile string `json:",omitempty"` From []string `json:",omitempty"` Input []string `json:",omitempty"` ArchiveInput []string `json:",omitempty"` PrefixDir string `json:",omitempty"` Args []string `json:",omitempty"` OutputTar bool `json:",omitempty"` }
DockerBuild is a rule to build a docker container image.
type DockerPull ¶
type DockerPull struct { Name string Pull string `json:",omitempty"` Digest string `json:",omitempty"` OutputTar bool `json:",omitempty"` }
DockerPull is a rule to pull down a docker container image.
type DockerRun ¶
type DockerRun struct { Name string Image string User string `json:",omitempty"` Envs []string `json:",omitempty"` WorkDir string `json:",omitempty"` MountWorkspace string `json:",omitempty"` Command []string `json:",omitempty"` // Map from input to file inside the container. Input map[string]string // Map files from zip or tarball archives to directories // inside the container. ArchiveInput map[string]string // Map from output path to file inside the container. Output map[string]string `json:",omitempty"` // Extra dependencies. Deps []string `json:",omitempty"` }
DockerRun is a rule to run a command inside a docker container image.
type FileSet ¶
type FileSet struct { Name string // The list of files to include in the fileset. Files []string `json:",omitempty"` // Selects a set of source input files. Select []string `json:",omitempty"` // Ignores a set of source input files after selection. Ignore []string `json:",omitempty"` // Merge in other file sets Include []string `json:",omitempty"` }
FileSet selects a set of files.
type GitRemote ¶
GitRemote defines a set of remote URLs for a given name. It provides a more consistent remote setup for the repositories in the workspace.
type RepoMap ¶
type RepoMap struct { GitHosting map[string]string `json:",omitempty"` Src map[string]string ExtraRemotes []*GitRemote `json:",omitempty"` }
RepoMap contains the list of repos to clone down.
type RepoSums ¶
RepoSums records the checkums and git commits of a build.
func ReadRepoSums ¶
ReadRepoSums reads in the workspaces's repo checksum file.
type SubBuilds ¶
type SubBuilds struct {
Dirs []string
}
SubBuilds is a rule to build a set of sub-builds.
type SyncOptions ¶
type SyncOptions struct { // Set remotes for existing repositories. SetRemotes bool }
SyncOptions contains options for syncing remote repositories.
Source Files ¶
- build_cache.go
- build_context.go
- build_file.go
- build_node.go
- build_node_digest.go
- build_opts.go
- build_path.go
- build_rule.go
- builder.go
- built.go
- bundle.go
- cmds.go
- digests.go
- docker_build.go
- docker_pull.go
- docker_repo_tag.go
- docker_run.go
- docker_sum.go
- download.go
- env.go
- file_set.go
- file_stat.go
- git_remote.go
- load_tracer.go
- loader.go
- rules.go
- sub_builds.go
- sync.go
- vars.go
- workspace.go