storage

package
v0.0.0-...-26cdc11 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c *cli.Context) error

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func Open

func Open(c *cli.Context) *Storage

func (*Storage) AddFiles

func (s *Storage) AddFiles(filePaths []string, period string, tags []string) error

func (*Storage) AddTags

func (s *Storage) AddTags(tags []string) error

func (*Storage) ContentPath

func (s *Storage) ContentPath(contentPath string) string

func (*Storage) DeleteTag

func (s *Storage) DeleteTag(tagToDelete string) error

func (*Storage) GetFiles

func (s *Storage) GetFiles(period string, tags []string) format.Files

func (*Storage) GetTags

func (s *Storage) GetTags() []string

type StorageFile

type StorageFile struct {
	Id                uint64
	Name              string
	Period            string
	Tags              []tagIdType
	CreationTimestamp uint64
}

func (*StorageFile) Match

func (f *StorageFile) Match(tags []string, tagIdMap map[string]tagIdType) bool

Jump to

Keyboard shortcuts

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