Documentation ¶
Overview ¶
Package engine provides the framework for a snapshot repository testing engine
Index ¶
Constants ¶
const (
// S3BucketNameEnvKey is the environment variable required to connect to a repo on S3.
S3BucketNameEnvKey = "S3_BUCKET_NAME"
)
Variables ¶
var ErrS3BucketNameEnvUnset = fmt.Errorf("environment variable required: %v", S3BucketNameEnvKey)
ErrS3BucketNameEnvUnset is the error returned when the S3BucketNameEnvKey environment variable is not set.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { FileWriter *fio.Runner TestRepo snap.Snapshotter MetaStore snapmeta.Persister Checker *checker.Checker // contains filtered or unexported fields }
Engine is the outer level testing framework for robustness testing.
func NewEngine ¶
NewEngine instantiates a new Engine and returns its pointer. It is currently created with: - FIO file writer - Kopia test repo snapshotter - Kopia metadata storage repo - FSWalker data integrity checker.
func (*Engine) InitFilesystem ¶
InitFilesystem attempts to connect to a test repo and metadata repo on the local filesystem. If connection is successful, the engine is populated with the metadata associated with the snapshot in that repo. A new repo will be created if one does not already exist.