Documentation ¶
Index ¶
- func Json(builder *WorkflowBuilder) ([]byte, error)
- func Validate(builder *WorkflowBuilder) error
- func Yaml(builder *WorkflowBuilder) ([]byte, error)
- type CallBuilder
- type CallKind
- type DoBuilder
- type DocumentBuilder
- func (b *DocumentBuilder) GetDSL() string
- func (b *DocumentBuilder) GetName() string
- func (b *DocumentBuilder) GetNamespace() string
- func (b *DocumentBuilder) GetVersion() string
- func (b *DocumentBuilder) SetDSL(dsl string) *DocumentBuilder
- func (b *DocumentBuilder) SetName(dsl string) *DocumentBuilder
- func (b *DocumentBuilder) SetNamespace(dsl string) *DocumentBuilder
- func (b *DocumentBuilder) SetVersion(dsl string) *DocumentBuilder
- type DurationBuilder
- type MapBuilder
- type UseBuilder
- type WaitBuilder
- type WorkflowBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Json ¶
func Json(builder *WorkflowBuilder) ([]byte, error)
func Validate ¶
func Validate(builder *WorkflowBuilder) error
func Yaml ¶
func Yaml(builder *WorkflowBuilder) ([]byte, error)
Types ¶
type CallBuilder ¶
type CallBuilder struct {
// contains filtered or unexported fields
}
func NewCallBuilder ¶
func NewCallBuilder(root *graph.Node) *CallBuilder
func (*CallBuilder) GetCall ¶
func (b *CallBuilder) GetCall() string
func (*CallBuilder) SetCall ¶
func (b *CallBuilder) SetCall(call CallKind) *CallBuilder
func (*CallBuilder) With ¶
func (b *CallBuilder) With() *MapBuilder
type DoBuilder ¶
type DoBuilder struct {
// contains filtered or unexported fields
}
func NewDoBuilder ¶
func (*DoBuilder) RemoveTask ¶
type DocumentBuilder ¶
type DocumentBuilder struct {
// contains filtered or unexported fields
}
func NewDocumentBuilder ¶
func NewDocumentBuilder(root *graph.Node) *DocumentBuilder
func (*DocumentBuilder) GetDSL ¶
func (b *DocumentBuilder) GetDSL() string
func (*DocumentBuilder) GetName ¶
func (b *DocumentBuilder) GetName() string
func (*DocumentBuilder) GetNamespace ¶
func (b *DocumentBuilder) GetNamespace() string
func (*DocumentBuilder) GetVersion ¶
func (b *DocumentBuilder) GetVersion() string
func (*DocumentBuilder) SetDSL ¶
func (b *DocumentBuilder) SetDSL(dsl string) *DocumentBuilder
func (*DocumentBuilder) SetName ¶
func (b *DocumentBuilder) SetName(dsl string) *DocumentBuilder
func (*DocumentBuilder) SetNamespace ¶
func (b *DocumentBuilder) SetNamespace(dsl string) *DocumentBuilder
func (*DocumentBuilder) SetVersion ¶
func (b *DocumentBuilder) SetVersion(dsl string) *DocumentBuilder
type DurationBuilder ¶
type DurationBuilder struct {
// contains filtered or unexported fields
}
func NewDurationBuilder ¶
func NewDurationBuilder(root *graph.Node) *DurationBuilder
func (*DurationBuilder) GetSeconds ¶
func (b *DurationBuilder) GetSeconds() int
func (*DurationBuilder) SetSeconds ¶
func (b *DurationBuilder) SetSeconds(seconds int) *DurationBuilder
type MapBuilder ¶
type MapBuilder struct {
// contains filtered or unexported fields
}
func NewMapBuilder ¶
func NewMapBuilder(root *graph.Node) *MapBuilder
func (*MapBuilder) Get ¶
func (b *MapBuilder) Get(name string) string
func (*MapBuilder) Set ¶
func (b *MapBuilder) Set(name string, value string)
type UseBuilder ¶
type UseBuilder struct {
// contains filtered or unexported fields
}
func NewUseBuilder ¶
func NewUseBuilder(root *graph.Node) *UseBuilder
type WaitBuilder ¶
type WaitBuilder struct {
// contains filtered or unexported fields
}
func NewWaitBuilder ¶
func NewWaitBuilder(root *graph.Node) *WaitBuilder
func (*WaitBuilder) Duration ¶
func (b *WaitBuilder) Duration() *DurationBuilder
func (*WaitBuilder) GetWait ¶
func (b *WaitBuilder) GetWait() string
func (*WaitBuilder) SetWait ¶
func (b *WaitBuilder) SetWait(wait string)
type WorkflowBuilder ¶
type WorkflowBuilder struct {
// contains filtered or unexported fields
}
func NewWorkflowBuilder ¶
func NewWorkflowBuilder() *WorkflowBuilder
func NewWorkflowBuilderFromFile ¶
func NewWorkflowBuilderFromFile(path string) (*WorkflowBuilder, error)
func NewWorkflowBuilderFromJSONSource ¶
func NewWorkflowBuilderFromJSONSource(source []byte) (*WorkflowBuilder, error)
func NewWorkflowBuilderFromYAMLSource ¶
func NewWorkflowBuilderFromYAMLSource(source []byte) (*WorkflowBuilder, error)
func (*WorkflowBuilder) Do ¶
func (b *WorkflowBuilder) Do() *DoBuilder
func (*WorkflowBuilder) Document ¶
func (b *WorkflowBuilder) Document() *DocumentBuilder
func (*WorkflowBuilder) Node ¶
func (b *WorkflowBuilder) Node() *graph.Node
func (*WorkflowBuilder) Use ¶
func (b *WorkflowBuilder) Use() *UseBuilder
Click to show internal directories.
Click to hide internal directories.