transientfile

package
v0.0.0-...-dd75922 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Overview

Package transientfile provides helpers for creating files that do not survive machine reboots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(transientDir, name string) (*os.File, error)

Create a transient file with the specified name inside transientDir. The function will attempt to create any missing folders leading up to the place where the transient file is to be created.

For *nix targets, the caller is expected to provide a suitable transient directory (e.g. a tmpfs mount) that will be automatically purged after a reboot.

For windows targets, any directory can be specified as transientDir but in order to ensure that the file will get removed, the process must be able to access the windows registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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