storageutil

package
v0.43.3-0...-9926edd Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package storageutil provides helpers for storage implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePath

func ValidatePath(path string) (string, error)

ValidatePath validates a path.

func ValidatePrefix

func ValidatePrefix(prefix string) (string, error)

ValidatePrefix validates a prefix.

Types

type ObjectInfo

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

ObjectInfo is an embeddable ObjectInfo.

func NewObjectInfo

func NewObjectInfo(
	path string,
	externalPath string,
) ObjectInfo

NewObjectInfo returns a new ObjectInfo.

func (ObjectInfo) ExternalPath

func (o ObjectInfo) ExternalPath() string

ExternalPath implements ObjectInfo.

func (ObjectInfo) Path

func (o ObjectInfo) Path() string

Path implements ObjectInfo.

type WalkChecker

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

WalkChecker does validation for every step of a walk.

func NewWalkChecker

func NewWalkChecker() WalkChecker

NewWalkChecker returns a new WalkChecker.

Jump to

Keyboard shortcuts

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