client

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0, MIT Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoReceiptFound = errors.New("missing receipt link")

Functions

This section is empty.

Types

type Client

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

func New

func New(servicePrincipal ucan.Principal, serviceURL url.URL, options ...Option) (*Client, error)

func (*Client) CacheClaim

func (c *Client) CacheClaim(ctx context.Context, issuer principal.Signer, cacheClaim delegation.Delegation, provider claim.Provider, options ...delegation.Option) error

func (*Client) PublishEqualsClaim

func (c *Client) PublishEqualsClaim(ctx context.Context, issuer principal.Signer, caveats assert.EqualsCaveats, options ...delegation.Option) error

func (*Client) PublishIndexClaim

func (c *Client) PublishIndexClaim(ctx context.Context, issuer principal.Signer, caveats assert.IndexCaveats, options ...delegation.Option) error

func (*Client) QueryClaims

func (c *Client) QueryClaims(ctx context.Context, query types.Query) (types.QueryResult, error)

type ErrFailedResponse

type ErrFailedResponse struct {
	StatusCode int
	Body       string
}

func (ErrFailedResponse) Error

func (e ErrFailedResponse) Error() string

type Option added in v1.10.6

type Option func(*Client)

func WithHTTPClient added in v1.10.6

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient configures the HTTP client to use for making query requests and invocations.

func WithTelemetryEnabled added in v1.12.1

func WithTelemetryEnabled(enabled bool) Option

WithTelemetryEnabled toggles client-side tracing and context propagation.

Jump to

Keyboard shortcuts

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