fsdir

package
v0.2.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Kind artifactstore.SourceKind = "fs-directory"

Variables

This section is empty.

Functions

func RootPath added in v0.2.11

func RootPath(value source.Source) (string, error)

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() artifactstore.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 artifactstore.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