Documentation
¶
Index ¶
- type Client
- func (c *Client) ExportState(ctx context.Context, host string, dst io.Writer) error
- func (c *Client) FetchResources(ctx context.Context, host string) ([]emulator.Resource, error)
- func (c *Client) FetchVersion(ctx context.Context, host string) (string, error)
- func (c *Client) ImportState(ctx context.Context, host string, src io.Reader, strategy string) error
- func (c *Client) ListPodsRemote(ctx context.Context, host, remoteName string, params map[string]string, ...) ([]snapshot.RemotePod, error)
- func (c *Client) LoadPodRemote(ctx context.Context, host, podName, remoteName string, ...) ([]string, error)
- func (c *Client) LoadPodSnapshot(ctx context.Context, host, podName, authToken, strategy string) ([]string, error)
- func (c *Client) RegisterRemote(ctx context.Context, host, name, remoteURL string) error
- func (c *Client) RemovePodSnapshot(ctx context.Context, host, podName, authToken string) error
- func (c *Client) ResetState(ctx context.Context, host string) error
- func (c *Client) S3BucketExists(ctx context.Context, bucket string) (bool, error)
- func (c *Client) SavePodRemote(ctx context.Context, host, podName, remoteName string, ...) (snapshot.PodSaveResult, error)
- func (c *Client) SavePodSnapshot(ctx context.Context, host, podName, authToken string) (snapshot.PodSaveResult, 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 (*Client) ExportState ¶ added in v0.8.0
func (*Client) FetchResources ¶
func (*Client) FetchVersion ¶
func (*Client) ImportState ¶ added in v0.10.0
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 (*Client) RegisterRemote ¶ added in v0.15.0
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 (*Client) ResetState ¶ added in v0.9.0
func (*Client) S3BucketExists ¶ added in v0.15.0
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.