Documentation ¶
Overview ¶
Package filestate implements the logic for interacting with a filestate backend such as AWS S3, Azure blob storage, or GCP cloud storage.
Index ¶
Constants ¶
const DisableCheckpointBackupsEnvVar = "PULUMI_DISABLE_CHECKPOINT_BACKUPS"
const FilePathPrefix = "file://"
Variables ¶
var DisableIntegrityChecking bool
DisableIntegrityChecking can be set to true to disable checkpoint state integrity verification. This is not recommended, because it could mean proceeding even in the face of a corrupted checkpoint state file, but can be used as a last resort when a command absolutely must be run.
Functions ¶
func GetLogsForTarget ¶
func GetLogsForTarget(target *deploy.Target, query operations.LogQuery) ([]operations.LogEntry, error)
GetLogsForTarget fetches stack logs using the config, decrypter, and checkpoint in the given target.
func IsFileStateBackendURL ¶
Types ¶
type Backend ¶
Backend extends the base backend interface with specific information about local backends.
type Bucket ¶
type Bucket interface { Copy(ctx context.Context, dstKey, srcKey string, opts *blob.CopyOptions) (err error) Delete(ctx context.Context, key string) (err error) List(opts *blob.ListOptions) *blob.ListIterator SignedURL(ctx context.Context, key string, opts *blob.SignedURLOptions) (string, error) ReadAll(ctx context.Context, key string) (_ []byte, err error) WriteAll(ctx context.Context, key string, p []byte, opts *blob.WriterOptions) (err error) Exists(ctx context.Context, key string) (bool, error) }
Bucket is a wrapper around an underlying gocloud blob.Bucket. It ensures that we pass all paths to it normalized to forward-slash form like it requires.