files

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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 BufferedFile

type BufferedFile struct {
	Name string
	Data []byte
}

BufferedFile represents an archive file buffered for later processing.

func LoadDir

func LoadDir(filesystem fs.FS, dir string) ([]*BufferedFile, error)

LoadDir loads from a directory.

This loads charts only from directories.

type ContentLoader

type ContentLoader interface {
	Load() ([]*BufferedFile, error)
}

ContentLoader loads file content.

func Loader

func Loader(filesystem fs.FS, name string) (ContentLoader, error)

Loader returns a new BufferedFile list from given path name.

type DirLoader

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

DirLoader loads a chart from a directory

func (DirLoader) Load

func (l DirLoader) Load() ([]*BufferedFile, error)

Load loads the chart

Jump to

Keyboard shortcuts

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