storageutil

package
v0.0.0-...-26f4575 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 5 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.

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