storage

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 14 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, patterns ...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(patterns ...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