providervalidation

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 14 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,
	NumPutBlobWorkers:       3,
	NumGetBlobWorkers:       3,
	NumGetMetadataWorkers:   3,
	NumListBlobsWorkers:     3,
	MaxBlobLength:           10e6,
}

DefaultOptions is the default set of options. nolint:gomnd

Functions

func ValidateProvider

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

ValidateProvider runs a series of tests against provided storage to validate that it can be used with Kopia. nolint:gomnd,funlen,gocyclo

Types

type Options

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

	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