Documentation ¶
Index ¶
- Constants
- func CopyDir(source string, dest string) (err error)
- func CopyFile(source string, dest string) (err error)
- func FindGitBranch(file string) (string, error)
- func FindGitRevision(file string) (shortSha string, sha string, err error)
- func FindGithubRepo(file string) (string, error)
- type Conditional
- type Drawing
- type Executor
- func NewConditionalExecutor(conditional Conditional, trueExecutor Executor, falseExecutor Executor) Executor
- func NewErrorExecutor(err error) Executor
- func NewGitCloneExecutor(input NewGitCloneExecutorInput) Executor
- func NewParallelExecutor(executors ...Executor) Executor
- func NewPipelineExecutor(executors ...Executor) Executor
- type NewGitCloneExecutorInput
- type Pen
- type Style
- type Warning
Constants ¶
View Source
const ( StyleDoubleLine = iota StyleSingleLine StyleDashedLine StyleNoLine )
Styles
Variables ¶
This section is empty.
Functions ¶
func FindGitBranch ¶
FindGitBranch get the current git branch
func FindGitRevision ¶
FindGitRevision get the current git revision
Types ¶
type Conditional ¶
type Conditional func() bool
Conditional define contract for the conditional predicate
type Executor ¶
type Executor func() error
Executor define contract for the steps of a workflow
func NewConditionalExecutor ¶
func NewConditionalExecutor(conditional Conditional, trueExecutor Executor, falseExecutor Executor) Executor
NewConditionalExecutor creates a new executor based on conditions
func NewErrorExecutor ¶
NewErrorExecutor creates a new executor that always errors out
func NewGitCloneExecutor ¶
func NewGitCloneExecutor(input NewGitCloneExecutorInput) Executor
NewGitCloneExecutor creates an executor to clone git repos
func NewParallelExecutor ¶
NewParallelExecutor creates a new executor from a parallel of other executors
func NewPipelineExecutor ¶
NewPipelineExecutor creates a new executor from a series of other executors
type NewGitCloneExecutorInput ¶
type NewGitCloneExecutorInput struct { URL *url.URL Ref string Dir string Logger *log.Entry Dryrun bool }
NewGitCloneExecutorInput the input for the NewGitCloneExecutor
Click to show internal directories.
Click to hide internal directories.