Documentation
¶
Index ¶
- Constants
- func InboxName(name string) string
- func NewAgentPermissions(agentID string) jwt.Permissions
- func StreamName(name string) string
- type Client
- func (c *Client) CreateConsumer(ctx context.Context, agentID string, subjects []string) (jetstream.Consumer, error)
- func (c *Client) Discover(ctx context.Context) (map[string]DiscoverResult, error)
- func (c *Client) ListAgentIDs(ctx context.Context) ([]string, error)
- func (c *Client) ListAllJobs(ctx context.Context) (map[string]Job, error)
- func (c *Client) ListJobs(ctx context.Context, agentID string) (map[string]Job, error)
- func (c *Client) ListMessages(ctx context.Context, agentID string, subjects []string) ([]Message, error)
- func (c *Client) StartWorker(ctx context.Context, agentID, workerID, command string, args, env []string) error
- func (c *Client) StopWorker(ctx context.Context, agentID, workerID string) error
- func (c *Client) WriteWorkerStdin(ctx context.Context, agentID, workerID string) error
- type DiscoverResult
- type Job
- type Message
Constants ¶
View Source
const ( JobStatusPending = "Pending" JobStatusRunning = "Running" JobStatusCancelling = "Cancelling" JobStatusCancelled = "Cancelled" JobStatusFinished = "Finished" JobStatusFailed = "Failed" )
View Source
const InboxPrefix = "_INBOX_"
View Source
const StreamPrefix = "FJ_"
Variables ¶
This section is empty.
Functions ¶
func NewAgentPermissions ¶
func NewAgentPermissions(agentID string) jwt.Permissions
func StreamName ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateConsumer ¶
func (*Client) ListAllJobs ¶
func (*Client) ListMessages ¶
func (*Client) StartWorker ¶
func (*Client) StopWorker ¶
type DiscoverResult ¶
Click to show internal directories.
Click to hide internal directories.