providervalidation

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package providervalidation implements validation to ensure the blob storage is compatible with Kopia requirements.

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	MaxClockDrift:                   3 * time.Minute,
	ConcurrencyTestDuration:         30 * time.Second,
	NumEquivalentStorageConnections: 5,
	NumPutBlobWorkers:               3,
	NumGetBlobWorkers:               3,
	NumGetMetadataWorkers:           3,
	NumListBlobsWorkers:             3,
	MaxBlobLength:                   10e6,
}

DefaultOptions is the default set of options.

Functions

func ValidateProvider

func ValidateProvider(ctx context.Context, st0 blob.Storage, opt Options) error

ValidateProvider runs a series of tests against provided storage to validate that it can be used with Kopia.

Types

type Options

type Options struct {
	MaxClockDrift           time.Duration
	ConcurrencyTestDuration time.Duration

	NumEquivalentStorageConnections int

	NumPutBlobWorkers     int
	NumGetBlobWorkers     int
	NumGetMetadataWorkers int
	NumListBlobsWorkers   int
	MaxBlobLength         int
}

Options provides options for provider validation.

Jump to

Keyboard shortcuts

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