Documentation
¶
Index ¶
- func EvalShell(statement string, env conf.Configuration) (string, error)
- func Exe(cmd string, dir string, env conf.Configuration, interactive bool) (string, error)
- func ExeAsync(cmd string, dir string, env conf.Configuration, interactive bool) (string, error)
- func ExeStream(cmd string, dir string, env conf.Configuration, interactive bool) error
- type BuildHandler
- type Builder
- func (b *Builder) Build(from, fromPath, gitToken string, name *core.PackageName, profileName string, ...) error
- func (b *Builder) Execute(name *core.PackageName, function string, credentials string, interactive bool, ...) error
- func (b *Builder) Run(function string, path string, interactive bool, env conf.Configuration) error
- func (b *Builder) SetBProc(p BuildHandler)
- func (b *Builder) SetRProc(p data.RunHandler)
- func (b *Builder) SetVProc(p data.VerifyHandler)
- func (b *Builder) WorkDirPackageFilename() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildHandler ¶
type Builder ¶
type Builder struct { RepoName *core.PackageName // contains filtered or unexported fields }
func NewBuilder ¶
func (*Builder) Build ¶
func (b *Builder) Build(from, fromPath, gitToken string, name *core.PackageName, profileName string, copy bool, interactive bool, target, openP, runP, signP string) error
Build the package from: the source to build, either http based git repository or local system git repository gitToken: if provided it is used to clone a remote repository that has authentication enabled name: the full name of the package to be built including the tag profileName: the name of the profile to be built. If empty then the default profile is built. If no default profile exists, the first profile is built. copy: indicates whether a copy should be made of the project files before packaging (only valid for from location in the file system) interactive: true if the console should survey for missing variables target: a specific target without relying on a build file (can be either relative or absolute)
func (*Builder) Execute ¶
func (b *Builder) Execute(name *core.PackageName, function string, credentials string, interactive bool, path string, preserveFiles bool, env conf.Configuration, authorisedAuthors []string, ignoreExports bool) error
Execute an exported function in a package
func (*Builder) SetBProc ¶
func (b *Builder) SetBProc(p BuildHandler)
func (*Builder) SetRProc ¶
func (b *Builder) SetRProc(p data.RunHandler)
func (*Builder) SetVProc ¶
func (b *Builder) SetVProc(p data.VerifyHandler)
func (*Builder) WorkDirPackageFilename ¶
WorkDirPackageFilename the fully qualified name of the zip file in the working directory