files

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 5 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(fs afero.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(fs afero.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