Documentation
¶
Index ¶
- type Option
- type Service
- func (s *Service) DecodeYAML(encoded []byte) (*model.Workflow, error)
- func (s *Service) Load(ctx context.Context, URL string) (*model.Workflow, error)
- func (s *Service) ParseWorkflow(URL string, node *yaml.Node) (*model.Workflow, error)
- func (s *Service) Refresh(location string)
- func (s *Service) RootTaskNodeName() string
- func (s *Service) Upsert(location string, wf *model.Workflow)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
func WithMetaService ¶
WithMetaService sets the meta service
func WithRootTaskNodeName ¶
WithRootTaskNodeName sets the root task node name
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DecodeYAML ¶
DecodeYAML decodes a workflow from YAML
func (*Service) ParseWorkflow ¶
func (*Service) Refresh ¶ added in v0.1.19
Refresh discards any cached copy of the workflow definition identified by the provided location. The next Load call will reload the file via the meta-service.
func (*Service) RootTaskNodeName ¶
RootTaskNodeName returns the root task node name
Click to show internal directories.
Click to hide internal directories.