storageutil

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 11

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.

This is intentially static and should not be modifiable. If constructing an object, do not use an ObjectInfo to build it.

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