Back to godoc.org

Package internal

v0.20.5
Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/buf

Index

func ValidatePath

func ValidatePath(path string) (string, error)

ValidatePath validates a path.

func ValidatePrefix

func ValidatePrefix(prefix string) (string, error)

ValidatePrefix validates a prefix.

type ObjectInfo

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

func (o ObjectInfo) ExternalPath() string

ExternalPath implements ObjectInfo.

func (ObjectInfo) Path

func (o ObjectInfo) Path() string

Path implements ObjectInfo.

func (ObjectInfo) Size

func (o ObjectInfo) Size() uint32

Size 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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier