Documentation ¶
Index ¶
- Variables
- type Json
- func (c *Json) OutputCancelledProcessInstance(id string)
- func (c *Json) OutputExecutionStatus(executionID string, states map[string][]*model.WorkflowState)
- func (c *Json) OutputListExecution(res []*model.ListExecutionItem)
- func (c *Json) OutputLoadResult(workflowID string)
- func (c *Json) OutputStartWorkflowResult(executionID string, wfID string)
- func (c *Json) OutputUserTaskIDs(ut []*model.GetUserTaskResponse)
- func (c *Json) OutputWorkflow(res []*model.ListWorkflowResponse)
- type Method
- type Text
- func (c *Text) OutputCancelledProcessInstance(id string)
- func (c *Text) OutputExecutionStatus(executionID string, states map[string][]*model.WorkflowState)
- func (c *Text) OutputListExecution(res []*model.ListExecutionItem)
- func (c *Text) OutputLoadResult(workflowID string)
- func (c *Text) OutputStartWorkflowResult(executionID string, wfID string)
- func (c *Text) OutputUserTaskIDs(ut []*model.GetUserTaskResponse)
- func (c *Text) OutputWorkflow(res []*model.ListWorkflowResponse)
Constants ¶
This section is empty.
Variables ¶
var Logger *slog.Logger
Logger is the global logger for the SHAR CLI.
var Stream io.Writer = os.Stdout
Stream contains the output stream. By default this os.Stdout, however, for testing it can be set to a byte buffer for instance.
Functions ¶
This section is empty.
Types ¶
type Json ¶ added in v1.0.351
type Json struct { }
Json contains the output methods for returning json CLI responses
func (*Json) OutputCancelledProcessInstance ¶ added in v1.0.645
OutputCancelledProcessInstance returns a CLI response
func (*Json) OutputExecutionStatus ¶ added in v1.0.645
func (c *Json) OutputExecutionStatus(executionID string, states map[string][]*model.WorkflowState)
OutputExecutionStatus outputs an execution status to console
func (*Json) OutputListExecution ¶ added in v1.0.645
func (c *Json) OutputListExecution(res []*model.ListExecutionItem)
OutputListExecution returns a CLI response
func (*Json) OutputLoadResult ¶ added in v1.0.351
OutputLoadResult returns a CLI response
func (*Json) OutputStartWorkflowResult ¶ added in v1.0.351
OutputStartWorkflowResult returns a CLI response
func (*Json) OutputUserTaskIDs ¶ added in v1.0.351
func (c *Json) OutputUserTaskIDs(ut []*model.GetUserTaskResponse)
OutputUserTaskIDs returns a CLI response
func (*Json) OutputWorkflow ¶ added in v1.0.351
func (c *Json) OutputWorkflow(res []*model.ListWorkflowResponse)
OutputWorkflow returns a CLI response
type Method ¶ added in v1.0.351
type Method interface { OutputExecutionStatus(executionID string, states map[string][]*model.WorkflowState) OutputLoadResult(executionID string) OutputListExecution(res []*model.ListExecutionItem) OutputCancelledProcessInstance(id string) OutputUserTaskIDs(ut []*model.GetUserTaskResponse) OutputWorkflow(res []*model.ListWorkflowResponse) OutputStartWorkflowResult(wfiID string, wfID string) }
Method represents the output method
var Current Method
Current is the currently selected output method.
type Text ¶ added in v1.0.351
type Text struct { }
Text provides a client output implementation for console
func (*Text) OutputCancelledProcessInstance ¶ added in v1.0.645
OutputCancelledProcessInstance returns a CLI response
func (*Text) OutputExecutionStatus ¶ added in v1.0.645
func (c *Text) OutputExecutionStatus(executionID string, states map[string][]*model.WorkflowState)
OutputExecutionStatus outputs an execution status
func (*Text) OutputListExecution ¶ added in v1.0.645
func (c *Text) OutputListExecution(res []*model.ListExecutionItem)
OutputListExecution returns a CLI response
func (*Text) OutputLoadResult ¶ added in v1.0.351
OutputLoadResult returns a CLI response
func (*Text) OutputStartWorkflowResult ¶ added in v1.0.351
OutputStartWorkflowResult returns a CLI response
func (*Text) OutputUserTaskIDs ¶ added in v1.0.351
func (c *Text) OutputUserTaskIDs(ut []*model.GetUserTaskResponse)
OutputUserTaskIDs returns a CLI response
func (*Text) OutputWorkflow ¶ added in v1.0.351
func (c *Text) OutputWorkflow(res []*model.ListWorkflowResponse)
OutputWorkflow returns a CLI response