local

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: 9 Imported by: 0

Documentation

Overview

Package local implements client.Client as thin, direct calls into an already-open *app.App — the exact same calls the CLI made before the client abstraction existed. Behavior is unchanged from the walking skeleton; this package only moves those calls behind the interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	App *app.App
}

func New

func New(a *app.App) *Client

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