filestorage

package module
v0.0.0-...-6f463b7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0 Imports: 1 Imported by: 1

README

Scholarship Tracker Utilities - File Storage

gopherbadger-tag-do-not-edit

Custom file storage package for Scholarship Tracker

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStats

type FileStats struct {
	Name         string
	CreatedAt    *time.Time
	LastModified time.Time
	Size         int64
	IsDir        bool
}

type FileStorager

type FileStorager interface {
	Get(name string) ([]byte, error)
	Save(name string, data []byte) error
	Copy(from, to string) error
	Delete(name string) error
	Exists(name string) (bool, error)
	List(name string) ([]*FileStats, error)
	Stats(name string) (*FileStats, error)
}

Directories

Path Synopsis
storages
fs
s3

Jump to

Keyboard shortcuts

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