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 ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) DeleteTag(ctx context.Context, uri, name string) error
- func (c *Client) Diff(ctx context.Context, targetA, targetB string) (diff.Result, error)
- func (c *Client) GetManifest(ctx context.Context, idOrRun string) (manifest.Manifest, error)
- func (c *Client) GetResource(ctx context.Context, uri string) (resource.Resource, error)
- func (c *Client) GetSnapshot(ctx context.Context, id string) (snapshot.Snapshot, error)
- func (c *Client) History(ctx context.Context, uri string) ([]snapshot.Snapshot, error)
- func (c *Client) ListResources(ctx context.Context) ([]resource.Resource, error)
- func (c *Client) ListTags(ctx context.Context, uri string) ([]tag.Tag, error)
- func (c *Client) RegisterResource(ctx context.Context, r resource.Resource) error
- func (c *Client) Replay(ctx context.Context, idOrRun string) (replay.Result, error)
- func (c *Client) Resolve(ctx context.Context, uri string) (resolver.ResolveResult, error)
- func (c *Client) RunCommit(ctx context.Context, runID string) (manifest.Manifest, error)
- func (c *Client) RunMount(ctx context.Context, runID, uri string) (resolver.ResolveResult, int, error)
- func (c *Client) RunStart(ctx context.Context, runID string) error
- func (c *Client) SetTag(ctx context.Context, uri, name, snapshotID string) (tag.Tag, error)
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 ¶
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) GetManifest ¶
func (*Client) GetResource ¶
func (*Client) GetSnapshot ¶
func (*Client) ListResources ¶
func (*Client) RegisterResource ¶
Click to show internal directories.
Click to hide internal directories.