provisionclient

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 8 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

Overview

Package provisionclient implements the host side of physical USB provisioning.

Index

Constants

This section is empty.

Variables

View Source
var ErrConfiguration = errors.New("provision client: invalid configuration")
View Source
var ErrResponseSync = errors.New("provision client: correlated response missing within stream budget")

Functions

This section is empty.

Types

type Client

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

func New

func New(stream io.ReadWriter) (*Client, error)

func NewCorrelated

func NewCorrelated(stream io.ReadWriter) (*Client, error)

NewCorrelated creates an ESP32 v3 client. The transport must bound each Read; the serial CLI uses 500ms polls. There is no legacy fallback or mutation retry.

func NewFor

func NewFor(stream io.ReadWriter, codec provision.Codec) (*Client, error)

func (*Client) Codec

func (c *Client) Codec() provision.Codec

Codec retains the Pico default for offline request preparation without a client.

func (*Client) Execute

func (c *Client) Execute(request provision.Request) (provision.Response, error)

func (*Client) SetManager added in v0.3.0

func (c *Client) SetManager(endpoint string) (provision.Response, error)

SetManager inspects once, then changes only the endpoint if needed. An ambiguous acknowledgement is never retried. Reopen USB and inspect before another attempt.

type RemoteError

type RemoteError struct{ Code provision.Code }

RemoteError reports an acknowledged operation failure. Inspect the returned response State before deciding what to do; a failed write may have committed.

func (*RemoteError) Error

func (e *RemoteError) Error() string

Jump to

Keyboard shortcuts

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