remote

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package remote implements client.Client over HTTP calls to a running readproofd, using the same internal/wire types the server encodes/decodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(baseURL, apiKey string) *Client

New constructs a remote client. apiKey is sent as "Authorization: Bearer <apiKey>" on every request when non-empty; pass "" for a readproofd instance with no --api-key configured.

func (*Client) Close

func (c *Client) Close() error

func (*Client) DeleteTag

func (c *Client) DeleteTag(ctx context.Context, uri, name string) error

func (*Client) Diff

func (c *Client) Diff(ctx context.Context, targetA, targetB string) (diff.Result, error)

func (*Client) GetManifest

func (c *Client) GetManifest(ctx context.Context, idOrRun string) (manifest.Manifest, error)

func (*Client) GetResource

func (c *Client) GetResource(ctx context.Context, uri string) (resource.Resource, error)

func (*Client) GetSnapshot

func (c *Client) GetSnapshot(ctx context.Context, id string) (snapshot.Snapshot, error)

func (*Client) History

func (c *Client) History(ctx context.Context, uri string) ([]snapshot.Snapshot, error)

func (*Client) ListResources

func (c *Client) ListResources(ctx context.Context) ([]resource.Resource, error)

func (*Client) ListTags

func (c *Client) ListTags(ctx context.Context, uri string) ([]tag.Tag, error)

func (*Client) RegisterResource

func (c *Client) RegisterResource(ctx context.Context, r resource.Resource) error

func (*Client) Replay

func (c *Client) Replay(ctx context.Context, idOrRun string) (replay.Result, error)

func (*Client) Resolve

func (c *Client) Resolve(ctx context.Context, uri string) (resolver.ResolveResult, error)

func (*Client) RunCommit

func (c *Client) RunCommit(ctx context.Context, runID string) (manifest.Manifest, error)

func (*Client) RunMount

func (c *Client) RunMount(ctx context.Context, runID, uri string) (resolver.ResolveResult, int, error)

func (*Client) RunStart

func (c *Client) RunStart(ctx context.Context, runID string) error

func (*Client) SetTag

func (c *Client) SetTag(ctx context.Context, uri, name, snapshotID string) (tag.Tag, error)

Jump to

Keyboard shortcuts

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