Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (_c Client) Assets(ctx context.Context, relativeURL string) (res *http.Response, err error)
- func (_c Client) ContinueFlow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) Dashboard(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) FlowDetail(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) ForHost(host string) Client
- func (_c Client) ListFlows(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) ListWorkflows(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) PollFlow(ctx context.Context, relativeURL string) (res *http.Response, err error)
- func (_c Client) RestartFlow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) RestartFromStep(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) ResumeFlow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) RunWorkflow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) StepDetail(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) TaskDetail(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- func (_c Client) WithOptions(opts ...pub.Option) Client
- func (_c Client) WorkflowDetail(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
- type MulticastClient
- func (_c MulticastClient) Assets(ctx context.Context, relativeURL string) iter.Seq[*pub.Response]
- func (_c MulticastClient) ContinueFlow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) Dashboard(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) FlowDetail(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) ForHost(host string) MulticastClient
- func (_c MulticastClient) ListFlows(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) ListWorkflows(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) PollFlow(ctx context.Context, relativeURL string) iter.Seq[*pub.Response]
- func (_c MulticastClient) RestartFlow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) RestartFromStep(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) ResumeFlow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) RunWorkflow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) StepDetail(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) TaskDetail(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
- func (_c MulticastClient) WithOptions(opts ...pub.Option) MulticastClient
- func (_c MulticastClient) WorkflowDetail(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
Constants ¶
const Description = `AgentStudio is a developer console for inspecting flows running under the Foreman.`
Description is the human-readable summary of the microservice, surfaced in OpenAPI and discovery.
const Hostname = "agentstudio.dev"
Hostname is the default hostname of the microservice.
const Name = "AgentStudio"
Name is the decorative PascalCase name of the microservice.
const Version = 7
Version is a generation counter bumped on each regeneration, not a semantic version.
Variables ¶
var Assets = define.Web{ Host: Hostname, Method: "GET", Route: "//bespa/{path...}", }
Assets serves the bespa CSS and JavaScript assets at /bespa/.
var ContinueFlow = define.Web{ Host: Hostname, Method: "ANY", Route: "/continue-flow", }
ContinueFlow renders a form to continue a completed flow's thread with additional state.
var Dashboard = define.Web{ Host: Hostname, Method: "ANY", Route: "/dashboard", }
Dashboard renders an HTML page with operator dashboards for flows and workflows.
var FlowDetail = define.Web{ Host: Hostname, Method: "ANY", Route: "/flows/{flowKey}", }
FlowDetail renders an HTML page with the details, DAG diagram, and step log of a flow.
var ListFlows = define.Web{ Host: Hostname, Method: "ANY", Route: "/flows", }
ListFlows renders an HTML page with a paginated, sortable table of flows.
var ListWorkflows = define.Web{ Host: Hostname, Method: "ANY", Route: "/workflows", }
ListWorkflows renders an HTML page listing the workflows available in the system.
var PollFlow = define.Web{ Host: Hostname, Method: "GET", Route: "/poll-flow", }
PollFlow returns a JSON status payload driving the FlowDetail live-update progress bar.
var RestartFlow = define.Web{ Host: Hostname, Method: "ANY", Route: "/restart-flow", }
RestartFlow renders a form to restart a terminated flow from its entry step with optional state overrides.
var RestartFromStep = define.Web{ Host: Hostname, Method: "ANY", Route: "/restart-from-step", }
RestartFromStep renders a form to restart a flow from a specific step with optional state overrides.
var ResumeFlow = define.Web{ Host: Hostname, Method: "ANY", Route: "/resume-flow", }
ResumeFlow renders a form to resume an interrupted flow with a resume payload.
var RunWorkflow = define.Web{ Host: Hostname, Method: "ANY", Route: "/run-workflow", }
RunWorkflow renders a form to create and start a workflow with an initial state and FlowOptions.
var StepDetail = define.Web{ Host: Hostname, Method: "ANY", Route: "/steps/{stepKey}", }
StepDetail renders an HTML page with the details of one execution step.
var TaskDetail = define.Web{ Host: Hostname, Method: "ANY", Route: "/task-detail", }
TaskDetail renders an HTML page with the metadata of a single task in a workflow graph.
var WorkflowDetail = define.Web{ Host: Hostname, Method: "ANY", Route: "/workflows/{workflowURL...}", }
WorkflowDetail renders an HTML page with the structure and definition of a single workflow graph.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a lightweight proxy for making unicast calls to the microservice.
func (Client) ContinueFlow ¶ added in v1.41.0
func (_c Client) ContinueFlow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
ContinueFlow renders a form to continue a completed flow's thread with additional state.
func (Client) Dashboard ¶
func (_c Client) Dashboard(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
Dashboard renders an HTML page with operator dashboards for flows and workflows.
func (Client) FlowDetail ¶
func (_c Client) FlowDetail(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
FlowDetail renders an HTML page with the details, DAG diagram, and step log of a flow.
func (Client) ForHost ¶
ForHost returns a copy of the client with a different hostname to be applied to requests.
func (Client) ListFlows ¶
func (_c Client) ListFlows(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
ListFlows renders an HTML page with a paginated, sortable table of flows.
func (Client) ListWorkflows ¶
func (_c Client) ListWorkflows(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
ListWorkflows renders an HTML page listing the workflows available in the system.
func (Client) PollFlow ¶ added in v1.41.0
PollFlow returns a JSON status payload driving the FlowDetail live-update progress bar.
func (Client) RestartFlow ¶ added in v1.41.0
func (_c Client) RestartFlow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
RestartFlow renders a form to restart a terminated flow from its entry step with optional state overrides.
func (Client) RestartFromStep ¶ added in v1.41.0
func (_c Client) RestartFromStep(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
RestartFromStep renders a form to restart a flow from a specific step with optional state overrides.
func (Client) ResumeFlow ¶ added in v1.41.0
func (_c Client) ResumeFlow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
ResumeFlow renders a form to resume an interrupted flow with a resume payload.
func (Client) RunWorkflow ¶ added in v1.41.0
func (_c Client) RunWorkflow(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
RunWorkflow renders a form to create and start a workflow with an initial state and FlowOptions.
func (Client) StepDetail ¶ added in v1.41.0
func (_c Client) StepDetail(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
StepDetail renders an HTML page with the details of one execution step.
func (Client) TaskDetail ¶
func (_c Client) TaskDetail(ctx context.Context, method string, relativeURL string, body any) (res *http.Response, err error)
TaskDetail renders an HTML page with the metadata of a single task in a workflow graph.
func (Client) WithOptions ¶
WithOptions returns a copy of the client with options to be applied to requests.
type MulticastClient ¶
type MulticastClient struct {
// contains filtered or unexported fields
}
MulticastClient is a lightweight proxy for making multicast calls to the microservice.
func NewMulticastClient ¶
func NewMulticastClient(caller service.Publisher) MulticastClient
NewMulticastClient creates a new multicast client proxy to the microservice.
func (MulticastClient) ContinueFlow ¶ added in v1.41.0
func (_c MulticastClient) ContinueFlow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
ContinueFlow renders a form to continue a completed flow's thread with additional state.
func (MulticastClient) Dashboard ¶
func (_c MulticastClient) Dashboard(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
Dashboard renders an HTML page with operator dashboards for flows and workflows.
func (MulticastClient) FlowDetail ¶
func (_c MulticastClient) FlowDetail(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
FlowDetail renders an HTML page with the details, DAG diagram, and step log of a flow.
func (MulticastClient) ForHost ¶
func (_c MulticastClient) ForHost(host string) MulticastClient
ForHost returns a copy of the client with a different hostname to be applied to requests.
func (MulticastClient) ListFlows ¶
func (_c MulticastClient) ListFlows(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
ListFlows renders an HTML page with a paginated, sortable table of flows.
func (MulticastClient) ListWorkflows ¶
func (_c MulticastClient) ListWorkflows(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
ListWorkflows renders an HTML page listing the workflows available in the system.
func (MulticastClient) PollFlow ¶ added in v1.41.0
PollFlow returns a JSON status payload driving the FlowDetail live-update progress bar.
func (MulticastClient) RestartFlow ¶ added in v1.41.0
func (_c MulticastClient) RestartFlow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
RestartFlow renders a form to restart a terminated flow from its entry step with optional state overrides.
func (MulticastClient) RestartFromStep ¶ added in v1.41.0
func (_c MulticastClient) RestartFromStep(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
RestartFromStep renders a form to restart a flow from a specific step with optional state overrides.
func (MulticastClient) ResumeFlow ¶ added in v1.41.0
func (_c MulticastClient) ResumeFlow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
ResumeFlow renders a form to resume an interrupted flow with a resume payload.
func (MulticastClient) RunWorkflow ¶ added in v1.41.0
func (_c MulticastClient) RunWorkflow(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
RunWorkflow renders a form to create and start a workflow with an initial state and FlowOptions.
func (MulticastClient) StepDetail ¶ added in v1.41.0
func (_c MulticastClient) StepDetail(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
StepDetail renders an HTML page with the details of one execution step.
func (MulticastClient) TaskDetail ¶
func (_c MulticastClient) TaskDetail(ctx context.Context, method string, relativeURL string, body any) iter.Seq[*pub.Response]
TaskDetail renders an HTML page with the metadata of a single task in a workflow graph.
func (MulticastClient) WithOptions ¶
func (_c MulticastClient) WithOptions(opts ...pub.Option) MulticastClient
WithOptions returns a copy of the client with options to be applied to requests.