utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkWrite

func BulkWrite(fsys fs.FS, writes ...BulkWriteRequest) error

BulkWrite accepts multiple write requests and perform them sequentially. If it encounters an error it stops it's operation and returns this error.

default file permission is 0644.

Types

type BulkWriteRequest

type BulkWriteRequest struct {
	Filename string
	Data     []byte
	Perm     os.FileMode
	ErrMsg   string
}

Jump to

Keyboard shortcuts

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