buf: github.com/bufbuild/buf/internal/pkg/storage/internal Index | Files | Directories

package internal

import "github.com/bufbuild/buf/internal/pkg/storage/internal"

Index

Package Files

internal.go

func ValidatePath Uses

func ValidatePath(path string) (string, error)

ValidatePath validates a path.

func ValidatePrefix Uses

func ValidatePrefix(prefix string) (string, error)

ValidatePrefix validates a prefix.

type ObjectInfo Uses

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

ObjectInfo is an embeddable ObjectInfo.

func NewObjectInfo Uses

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

NewObjectInfo returns a new ObjectInfo.

func (ObjectInfo) ExternalPath Uses

func (o ObjectInfo) ExternalPath() string

ExternalPath implements ObjectInfo.

func (ObjectInfo) Path Uses

func (o ObjectInfo) Path() string

Path implements ObjectInfo.

func (ObjectInfo) Size Uses

func (o ObjectInfo) Size() uint32

Size implements ObjectInfo.

type WalkChecker Uses

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

WalkChecker does validation for every step of a walk.

func NewWalkChecker Uses

func NewWalkChecker() WalkChecker

NewWalkChecker returns a new WalkChecker.

Directories

PathSynopsis
storagetestingPackage storagetesting implements all testing for the storage packages.

Package internal imports 4 packages (graph) and is imported by 4 packages. Updated 2020-08-14. Refresh now. Tools for package owners.