Documentation
¶
Overview ¶
Package work implements work inspection command behavior.
Package work implements work inspection command behavior.
Package work implements work inspection command behavior.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(cfg ListConfig) error
List requests available work from a running factory via HTTP.
func Move ¶
func Move(cfg MoveConfig) error
Move relocates one work item to another authored state via HTTP.
func Show ¶
func Show(cfg ShowConfig) error
Show requests one work item from a running factory via HTTP.
Types ¶
type ListConfig ¶
type ListConfig struct {
Server string
SessionID string
StateName string
StateType string
Name string
WorkTypeName string
TraceID string
SortBy string
MaxResults int
NextToken string
JSON bool
Verbose bool
Debug bool
Output io.Writer
Diagnostics io.Writer
}
ListConfig holds parameters for the work list command.
type MoveConfig ¶
type MoveConfig struct {
Server string
SessionID string
WorkID string
StateName string
RequestID string
JSON bool
Verbose bool
Debug bool
Output io.Writer
Diagnostics io.Writer
}
MoveConfig holds parameters for the work move command.
type MoveSuccessResult ¶
type MoveSuccessResult struct {
WorkID string `json:"workId"`
PreviousState string `json:"previousState"`
NewState string `json:"newState"`
SessionID string `json:"sessionId"`
EndpointPath string `json:"endpointPath"`
}
MoveSuccessResult is the stable JSON envelope for a successful operator move.
Click to show internal directories.
Click to hide internal directories.