files

package
v0.0.0-...-11c8b56 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package files provides definitions for abstracting away filesystem interaction in Praelatus

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenUniqueFileName

func GenUniqueFileName(file *os.File) (string, error)

GenUniqueFileName takes a file and hashes it's name with a salt to avoid collisions.

Types

type FS

type FS interface {
	Init() error

	Get(path string) (io.ReadCloser, error)
	Save(file *os.File) (string, error)
}

FS is the interface all filesystem abstractions must implement.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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