installation

package
v0.0.1-dev.15 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 97 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() []*cobra.Command

func ControlPlane

func ControlPlane(name string) protocol.Plane

func HTTPStatus

func HTTPStatus(err error) int

func ProjectJSONSchema

func ProjectJSONSchema() ([]byte, error)

func ServerJSONSchema

func ServerJSONSchema() ([]byte, error)

func SessionReady

func SessionReady(session protocol.SessionResponse) (bool, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, config ClientConfig) (*Client, error)

func (*Client) Call

func (m *Client) Call(ctx context.Context, plane protocol.Plane, tool string, input, output any) error

func (*Client) DeleteSession

func (m *Client) DeleteSession(ctx context.Context, name, uid string, skip bool) error

func (*Client) Session

func (m *Client) Session(ctx context.Context, name string) (protocol.SessionResponse, error)

func (*Client) StreamLogs

func (m *Client) StreamLogs(ctx context.Context, input protocol.SessionLogsRequest, stdout io.Writer) error

StreamLogs follows session logs until ctx ends or the server rejects the request. A dropped stream resumes from the last record received, skipping the records the server replays.

type ClientConfig

type ClientConfig struct {
	Env            []string
	Origin         string
	ConfigDir      string
	Output         io.Writer
	HTTPClient     *http.Client
	RequestTimeout time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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