output

package
v1.1.961 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *slog.Logger

Logger is the global logger for the SHAR CLI.

View Source
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

func (c *Json) OutputCancelledProcessInstance(id string)

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

func (c *Json) OutputLoadResult(workflowID string)

OutputLoadResult returns a CLI response

func (*Json) OutputStartWorkflowResult added in v1.0.351

func (c *Json) OutputStartWorkflowResult(executionID string, wfID string)

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

func (c *Text) OutputCancelledProcessInstance(id string)

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

func (c *Text) OutputLoadResult(workflowID string)

OutputLoadResult returns a CLI response

func (*Text) OutputStartWorkflowResult added in v1.0.351

func (c *Text) OutputStartWorkflowResult(executionID string, wfID string)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL