cache

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileCache

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

FileCache is metadata for files cached at file system.

func NewFileCache

func NewFileCache(rootDir string, maxAge time.Duration) *FileCache

NewFileCache initialize FileCache obj.

func (*FileCache) FileContent

func (f *FileCache) FileContent(expID int, path string) ([]byte, error)

FileContent returns file with given experiment id and path.

func (*FileCache) FileTreeNested

func (f *FileCache) FileTreeNested(expID int) ([]*experimentv1.FileNode, error)

FileTreeNested returns folder tree structure with given experiment id.

Jump to

Keyboard shortcuts

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