Documentation
¶
Index ¶
Constants ¶
const ( StatementSymbolicLink = "link" StatementFile = "file" StatementEnv = "env" StatementScript = "script" StatementDir = "dir" )
Variables ¶
This section is empty.
Functions ¶
func ExpandList ¶ added in v0.1.5
func SetOrAppend ¶ added in v0.1.5
Types ¶
type BuildContext ¶
type Dir ¶ added in v0.1.5
type Dir struct {
// contains filtered or unexported fields
}
Dir recursively copies a directory into the container. Accepts the following parameters:
1. "src": where to retrieve the directory from
2. "dst": where to place the directory in the container
func (*Dir) SetOptions ¶ added in v0.1.5
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env exports one or more environment variables. Options should be a key-value map where key is the name and the value is the value to set.
func (*Env) SetOptions ¶ added in v0.1.2
type File ¶
type File struct {
// contains filtered or unexported fields
}
File downloads or adds a file. Accepts the following parameters:
1. "path": where to place the file in the container
2. "uri": URI indicating where to get the file from. Supports https:// and file:// schemes and will default to file:// if none is provided.
3. "executable": make the file executable
4. "sub-path": if the file is an archive, extract a file from it
5. "checksum": hash of the file for checksum validation
func (*File) SetOptions ¶ added in v0.1.2
type OrderedPipelineStatement ¶ added in v0.1.2
type OrderedPipelineStatement struct { ID string Options cbev1.Options Statement PipelineStatement DependsOn []string }
type PipelineStatement ¶
type Script ¶ added in v0.1.7
type Script struct {
// contains filtered or unexported fields
}
Script executes an arbitrary script. Accepts the following parameters:
1. "command": command to execute
2. "args": additional arguments to pass to the command.
func (*Script) SetOptions ¶ added in v0.1.7
type StatementFinder ¶
type StatementFinder = func(name string, options cbev1.Options) PipelineStatement
type SymbolicLink ¶
type SymbolicLink struct {
// contains filtered or unexported fields
}
SymbolicLink creates one or more symbolic links. Options should be a key-value map where key is the source and the value is the name of the link.
func (*SymbolicLink) Name ¶
func (*SymbolicLink) Name() string
func (*SymbolicLink) Run ¶
func (s *SymbolicLink) Run(ctx *BuildContext, _ ...cbev1.Options) (cbev1.Options, error)
func (*SymbolicLink) SetOptions ¶ added in v0.1.2
func (s *SymbolicLink) SetOptions(options cbev1.Options)