astios

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 13 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(path string) (checksum string, err error)

Checksum computes the checksum of a file

func Copy

func Copy(ctx context.Context, src, dst string) (err error)

Copy is a cross partitions cancellable copy If src is a file, dst must be the full path to file once copied If src is a dir, dst must be the full path to the dir once copied

func HandleSignals

func HandleSignals(fn SignalsFunc)

func Move

func Move(ctx context.Context, src, dst string) (err error)

Move is a cross partitions cancellable move even if files are on different partitions

func TempDir

func TempDir(prefix string) (path string, err error)

TempDir creates a temp dir

func TempFile

func TempFile(i []byte) (name string, err error)

TempFile writes a content to a temp file

Types

type SignalsFunc

type SignalsFunc func(s os.Signal)

func ContextSignalsFunc

func ContextSignalsFunc(c context.CancelFunc) SignalsFunc

Jump to

Keyboard shortcuts

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