storage

package
v0.13.0-test.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileContents

func GetFileContents(ctx context.Context, name string) ([]byte, error)

func Initialize

func Initialize(ctx context.Context)

Types

type FileInfo

type FileInfo struct {
	Name         string
	Hash         string
	LastModified time.Time
}

func ListFiles

func ListFiles(ctx context.Context, extension string) ([]FileInfo, error)

type StorageMonitor

type StorageMonitor struct {
	Added    func(FileInfo) error
	Modified func(FileInfo) error
	Removed  func(FileInfo) error
	Changed  func([]error)
	// contains filtered or unexported fields
}

func NewStorageMonitor

func NewStorageMonitor(extension string) *StorageMonitor

func (*StorageMonitor) Start

func (sm *StorageMonitor) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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