helpers

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TempDir

func TempDir(name string) (string, error)

TempDir creates a temporary directory in tmp/ and returns its path

Temporary test directories are created in reva/tmp because system /tmp directories are often tmpfs mounts which do not support user extended attributes.

func Upload

func Upload(ctx context.Context, fs storage.FS, ref *provider.Reference, content []byte) error

Upload can be used to initiate an upload and do the upload to a storage.FS in one step

Types

This section is empty.

Jump to

Keyboard shortcuts

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