filemgr

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package filemgr contains a manager for files based on byte slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

A Manager manages temporary files created from data.

func New

func New(cacheDir string) *Manager

New creates a new Manager.

func (*Manager) CreateFile

func (mgr *Manager) CreateFile(fileName string, data []byte) (filePath string, err error)

CreateFile creates a new file based on the passed in data.

func (*Manager) DeleteFiles

func (mgr *Manager) DeleteFiles() error

DeleteFiles deletes all the files managed by the file manager.

Jump to

Keyboard shortcuts

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