storage

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTemp

func CreateTemp(pattern string) (*os.File, error)

func DownloadFile

func DownloadFile(ctx context.Context, url string, hash string) error

func GetCachePath

func GetCachePath() string

func GetRootPath

func GetRootPath() string

func GetTmpPath

func GetTmpPath() string

func Initialize

func Initialize()

func MkdirTemp

func MkdirTemp(pattern string) (string, error)

func PrepareFile

func PrepareFile(ctx context.Context, url string, hash string) (string, error)

func Upload

func Upload(ctx context.Context, url string, content []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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