walker

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package walker wraps calls to the the fswalker Walker

Index

Constants

View Source
const (
	// MaxFileSizeToHash gives an upper bound to the size of file that can be hashed by the walker
	MaxFileSizeToHash = 1 << 32
)

Variables

This section is empty.

Functions

func Walk

func Walk(ctx context.Context, policy *fspb.Policy) (*fspb.Walk, error)

Walk performs a walk governed by the contents of the provided Policy, and returns the pointer to the Walk.

func WalkPathHash

func WalkPathHash(ctx context.Context, path string) (*fspb.Walk, error)

WalkPathHash performs a walk at the path prvided and returns a pointer to the Walk result

Types

This section is empty.

Jump to

Keyboard shortcuts

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