work

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 17 Imported by: 0

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.

type ShowConfig

type ShowConfig struct {
	Server      string
	SessionID   string
	WorkID      string
	JSON        bool
	Verbose     bool
	Debug       bool
	Output      io.Writer
	Diagnostics io.Writer
}

ShowConfig holds parameters for the work show command.

Jump to

Keyboard shortcuts

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