Documentation ¶
Index ¶
- type Option
- type TableOfContent
- func (t *TableOfContent) Add(f *kirinuki.File) bool
- func (t TableOfContent) Exist(name string) bool
- func (t TableOfContent) Find(pattern string) []*kirinuki.File
- func (t TableOfContent) Get(name string) (*kirinuki.File, bool)
- func (t *TableOfContent) Load(email string, password string) error
- func (t *TableOfContent) Size() int
- func (t *TableOfContent) Store(email string, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TableOfContent ¶
type TableOfContent struct { Lastupdate int64 `json:"lastupdate"` Files []*kirinuki.File `json:"files"` // contains filtered or unexported fields }
TOC handles the table of content of the Kirinuki files
func New ¶
func New(ms *storage.MultiStorage, opts ...Option) (*TableOfContent, error)
func (TableOfContent) Exist ¶
func (t TableOfContent) Exist(name string) bool
Exist returns true if the Kirinuki file with the given name exists
func (TableOfContent) Get ¶
func (t TableOfContent) Get(name string) (*kirinuki.File, bool)
Get returns the Kirinuki file with the given name and true if the file exists This method returns the Kirinuki file without the data
func (*TableOfContent) Size ¶
func (t *TableOfContent) Size() int
Click to show internal directories.
Click to hide internal directories.