operatorclient

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package operatorclient implements the BrokerKit Operator V1 Source contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL    string
	Token      string
	HTTPClient *http.Client
}

func NewUnix added in v0.2.0

func NewUnix(socketPath, token string) (*Client, error)

NewUnix returns a Source client connected to an operator-only Unix socket.

func (*Client) Decide added in v0.2.0

func (c *Client) Decide(ctx context.Context, id string, action operatorv1.Action, decision operatorv1.Decision) (operatorv1.Request, error)

func (*Client) Discover added in v0.2.0

func (c *Client) Discover(ctx context.Context) (operatorv1.Descriptor, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (operatorv1.Request, error)

func (*Client) Health added in v0.2.0

func (c *Client) Health(ctx context.Context) error

func (*Client) List

func (c *Client) List(ctx context.Context, query operatorv1.Query) (operatorv1.Page, error)

func (*Client) Watch added in v0.2.0

func (c *Client) Watch(ctx context.Context, cursor string) (operatorv1.EventStream, error)

type Error

type Error struct {
	Status        int
	Code          string
	Message       string
	CorrelationID string
	Current       *operatorv1.Request
	RetryAfter    time.Duration
}

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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