fsdir

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Kind basespec.SourceKind = "fs-directory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func New

func New() *Adapter

func NewWithTraversalPolicy added in v0.2.11

func NewWithTraversalPolicy(policy *TraversalPolicy) (*Adapter, error)

func (*Adapter) Kind

func (a *Adapter) Kind() basespec.SourceKind

func (*Adapter) NormalizeConfig

func (a *Adapter) NormalizeConfig(
	ctx context.Context,
	raw json.RawMessage,
) (json.RawMessage, error)

func (*Adapter) Open

func (a *Adapter) Open(
	ctx context.Context,
	value source.Source,
) (source.Snapshot, error)

func (*Adapter) ResolveLocalPath added in v0.2.11

func (a *Adapter) ResolveLocalPath(
	ctx context.Context,
	value source.Source,
	locator basespec.Locator,
) (string, error)

ResolveLocalPath returns the existing native path for a locator inside this filesystem source. It is used only by trusted runtime integrations after a consumer has approved a selected record.

The returned path is never part of a portable definition or public API projection.

type Config

type Config struct {
	RootPath string `json:"rootPath"`
}

type TraversalPolicy added in v0.2.11

type TraversalPolicy struct {
	ExcludedDirectoryNames []string
	SkipGitSubmodules      bool
}

func DefaultTraversalPolicy added in v0.2.11

func DefaultTraversalPolicy() TraversalPolicy

Jump to

Keyboard shortcuts

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