aws

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

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 NewClient

func NewClient() *Client

func (*Client) ExportState added in v0.8.0

func (c *Client) ExportState(ctx context.Context, host string, dst io.Writer) error

func (*Client) FetchResources

func (c *Client) FetchResources(ctx context.Context, host string) ([]emulator.Resource, error)

func (*Client) FetchVersion

func (c *Client) FetchVersion(ctx context.Context, host string) (string, error)

func (*Client) ImportState added in v0.10.0

func (c *Client) ImportState(ctx context.Context, host string, src io.Reader, strategy string) error

func (*Client) ListPodsRemote added in v0.15.0

func (c *Client) ListPodsRemote(ctx context.Context, host, remoteName string, params map[string]string, authToken, creator string) ([]snapshot.RemotePod, error)

ListPodsRemote lists the snapshots stored on the named remote via GET /_localstack/pods (with the remote passed in the request body).

func (*Client) LoadPodRemote added in v0.15.0

func (c *Client) LoadPodRemote(ctx context.Context, host, podName, remoteName string, params map[string]string, authToken, strategy string) ([]string, error)

LoadPodRemote loads podName from the named remote with the given merge strategy.

func (*Client) LoadPodSnapshot added in v0.10.0

func (c *Client) LoadPodSnapshot(ctx context.Context, host, podName, authToken, strategy string) ([]string, error)

func (*Client) RegisterRemote added in v0.15.0

func (c *Client) RegisterRemote(ctx context.Context, host, name, remoteURL string) error

RegisterRemote upserts a named remote on the running emulator. The emulator persists it (idempotently replacing any same-named entry) so subsequent save/load/list calls can reference it by name.

func (*Client) RemovePodSnapshot added in v0.12.0

func (c *Client) RemovePodSnapshot(ctx context.Context, host, podName, authToken string) error

func (*Client) ResetState added in v0.9.0

func (c *Client) ResetState(ctx context.Context, host string) error

func (*Client) S3BucketExists added in v0.15.0

func (c *Client) S3BucketExists(ctx context.Context, bucket string) (bool, error)

S3BucketExists reports whether an S3 bucket exists, via an unsigned HEAD to the S3 endpoint: a 404 means the bucket does not exist; any other status (200, 403, or a redirect for a bucket in another region) means it does. This lets lstk reject a missing bucket up front instead of letting the emulator auto-create it.

func (*Client) SavePodRemote added in v0.15.0

func (c *Client) SavePodRemote(ctx context.Context, host, podName, remoteName string, params map[string]string, authToken string) (snapshot.PodSaveResult, error)

SavePodRemote saves the running state to podName on the named remote.

func (*Client) SavePodSnapshot added in v0.9.0

func (c *Client) SavePodSnapshot(ctx context.Context, host, podName, authToken string) (snapshot.PodSaveResult, error)

Jump to

Keyboard shortcuts

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