physical

package
v0.0.0-...-56d1af4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2016 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Folder

type Folder struct {
	*logical.Folder
	Path            string
	AuthorizedMails map[string]bool
}

Folder is a phyisical representation of a shared file

type Folders

type Folders map[string]Folder

Folders is the folder list type

func Load

func Load(r io.Reader) (Folders, error)

Load loads the slice from the reader

func New

func New() Folders

New creates a new Folders list

func (Folders) IsAuthorized

func (f Folders) IsAuthorized(folderID string, mail string) bool

IsAuthorized returns true if the mail can access folderID

func (Folders) Save

func (f Folders) Save(w io.Writer)

Save allows you to save the slice

func (Folders) ToLogical

func (f Folders) ToLogical() logical.Folders

ToLogical translates the Physical folders into Logical ones (ie without path).

Jump to

Keyboard shortcuts

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