fslocal

package
v0.3.0-victorialogs Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// Pattern is used for matching one or multiple files.
	// The pattern may describe hierarchical names such as
	// /usr/*/bin/ed (assuming the Separator is '/').
	Pattern string
}

FS represents a local file system

func (*FS) Init

func (fs *FS) Init() error

Init verifies that configured Pattern is correct

func (*FS) List added in v1.89.0

func (fs *FS) List() ([]string, error)

List returns the list of file names which will be read via Read fn

func (*FS) Read

func (fs *FS) Read(files []string) (map[string][]byte, error)

Read returns a map of read files where key is the file name and value is file's content.

func (*FS) String

func (fs *FS) String() string

String implements Stringer interface

Jump to

Keyboard shortcuts

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