localfileapi

package
v1.0.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(mux *http.ServeMux, service localfileservice.Service)

func AddWorkspaceFindRoutes

func AddWorkspaceFindRoutes(mux *http.ServeMux, factory *vfs.Factory, hitlFor PolicyEvaluatorFactory)

func AddWorkspaceRootsRoutes

func AddWorkspaceRootsRoutes(mux *http.ServeMux, factory *vfs.Factory, mutators *RootsMutators)

func AddWorkspaceRoutes added in v0.36.0

func AddWorkspaceRoutes(mux *http.ServeMux, factory *vfs.Factory, hitlFor PolicyEvaluatorFactory) error

func AddWorkspaceSearchRoutes

func AddWorkspaceSearchRoutes(mux *http.ServeMux, factory *vfs.Factory)

Types

type Entry added in v0.36.0

type Entry struct {
	localfileservice.Entry
	Access *agentview.Verdict `json:"access,omitempty"`
}

type FileFilter added in v0.36.0

type FileFilter interface {
	Name() string
	Apply(ctx context.Context, entries []Entry, ev *agentview.Evaluator) ([]Entry, error)
}

type PolicyEvaluatorFactory added in v0.36.0

type PolicyEvaluatorFactory func(policyName string) hitlservice.Service

type RootsMutators

type RootsMutators struct {
	Add    func(ctx context.Context, path, name string) error
	Remove func(ctx context.Context, path string) error
	Grants func(ctx context.Context) []string
}

Jump to

Keyboard shortcuts

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