apifs

package
v0.0.0-...-2bc12df Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package apifs is used by the Wash API to convert local files/directories into Wash entries

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntry

func NewEntry(ctx context.Context, path string) (plugin.Entry, error)

NewEntry constructs a new Wash entry from the given FS path

Types

type Root

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

Root of the local filesystem plugin

func (*Root) ChildSchemas

func (d *Root) ChildSchemas() []*plugin.EntrySchema

func (*Root) Init

func (r *Root) Init(cfg map[string]interface{}) error

Init for root

func (*Root) List

func (d *Root) List(ctx context.Context) ([]plugin.Entry, error)

func (*Root) Schema

func (r *Root) Schema() *plugin.EntrySchema

Schema returns the root's schema

Jump to

Keyboard shortcuts

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