cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct{}

Cache handles cache directory operations and file validation

func CacheManager

func CacheManager() *Cache

GetCacheManager creates a new cache manager

func (*Cache) EnsureDir

func (m *Cache) EnsureDir(dir string) error

EnsureDir creates a directory and all parent directories

func (*Cache) FileExists

func (m *Cache) FileExists(filename string) bool

FileExists checks if a file exists

func (*Cache) GetBundlePath

func (m *Cache) GetBundlePath(patch, bundleName string) string

GetBundlePath returns the path to a bundle file for a patch

func (*Cache) GetCacheDir

func (m *Cache) GetCacheDir() string

GetPatchDir returns the cache directory for a patch version

func (*Cache) GetFileSize

func (m *Cache) GetFileSize(filename string) int64

GetFileSize returns the size of a file, or 0 if it doesn't exist

func (*Cache) GetIndexPath

func (m *Cache) GetIndexPath(patch string) string

GetIndexPath returns the path to the index file for a patch

func (*Cache) GetPatchDir

func (m *Cache) GetPatchDir(patch string) string

GetPatchDir returns the cache directory for a patch version

func (*Cache) GetSchemaPath

func (m *Cache) GetSchemaPath() string

GetSchemaPath returns the path to a bundle file for a patch

Jump to

Keyboard shortcuts

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