internal

package
v0.20.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePath added in v0.19.0

func ValidatePath(path string) (string, error)

ValidatePath validates a path.

func ValidatePrefix added in v0.19.0

func ValidatePrefix(prefix string) (string, error)

ValidatePrefix validates a prefix.

Types

type ObjectInfo added in v0.19.0

type ObjectInfo struct {
	// contains filtered or unexported fields
}

ObjectInfo is an embeddable ObjectInfo.

func NewObjectInfo

func NewObjectInfo(
	size uint32,
	path string,
	externalPath string,
) ObjectInfo

NewObjectInfo returns a new ObjectInfo.

func (ObjectInfo) ExternalPath added in v0.19.0

func (o ObjectInfo) ExternalPath() string

ExternalPath implements ObjectInfo.

func (ObjectInfo) Path added in v0.19.0

func (o ObjectInfo) Path() string

Path implements ObjectInfo.

func (ObjectInfo) Size added in v0.19.0

func (o ObjectInfo) Size() uint32

Size implements ObjectInfo.

type WalkChecker added in v0.19.0

type WalkChecker interface {
	Check(ctx context.Context) error
}

WalkChecker does validation for every step of a walk.

func NewWalkChecker added in v0.19.0

func NewWalkChecker() WalkChecker

NewWalkChecker returns a new WalkChecker.

Directories

Path Synopsis
Package storagetesting implements testing utilities and integration tests for storage.
Package storagetesting implements testing utilities and integration tests for storage.

Jump to

Keyboard shortcuts

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