Documentation
¶
Index ¶
- Constants
- func RootPath(value source.Source) (string, error)
- type Adapter
- func (a *Adapter) Kind() artifactstore.SourceKind
- func (a *Adapter) NormalizeConfig(ctx context.Context, raw json.RawMessage) (json.RawMessage, error)
- func (a *Adapter) Open(ctx context.Context, value source.Source) (source.Snapshot, error)
- func (a *Adapter) ResolveLocalPath(ctx context.Context, value source.Source, locator artifactstore.Locator) (string, error)
- type Config
- type TraversalPolicy
Constants ¶
View Source
const Kind artifactstore.SourceKind = "fs-directory"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
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) 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 TraversalPolicy ¶ added in v0.2.11
func DefaultTraversalPolicy ¶ added in v0.2.11
func DefaultTraversalPolicy() TraversalPolicy
Click to show internal directories.
Click to hide internal directories.