files

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyOperatorToFs

func CopyOperatorToFs(fs afero.Fs, opath string, base string)

CopyOperatorToFs used with afero usually for tests to copy files into a filesystem. copy from local file system into in mem

func FullPathToTarget

func FullPathToTarget(fs afero.Fs, destination string, name string, overwrite bool) (string, error)

FullPathToTarget takes destination path and file name and provides a clean full path while optionally ensuring the file does not already exist

func Sha256Sum

func Sha256Sum(r io.Reader) (string, error)

Sha256Sum calculates and returns the sha256 checksum

Types

This section is empty.

Jump to

Keyboard shortcuts

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