storage

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndRead

func CheckAndRead(paths []string, kind string) ([]byte, string, error)

func EnsureNoLockFiles

func EnsureNoLockFiles(files *Files)

func Read

func Read(files *Files) ([]byte, string, error)

func RemoteStoragePaths

func RemoteStoragePaths(paths []string) []string

func Write

func Write(data []byte, files *Files) (bool, []error)

Types

type File

type File struct {
	Kind    string
	Path    string
	Exist   bool
	Size    int64
	ModTime time.Time
	Locked  bool
}

type Files

type Files struct {
	Kind  string
	Files []File
}

func Check

func Check(paths []string, kind string) (*Files, []error)

Jump to

Keyboard shortcuts

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