Documentation ¶
Index ¶
- type Client
- func (c *Client) AllFiles() (records.FileIterator, error)
- func (c *Client) AllTags() (records.TagIterator, error)
- func (c *Client) CreateFile(filename string, documentDate time.Time) (uuid.UUID, error)
- func (c *Client) CreateFileWithID(filename string, documentDate time.Time, fileID uuid.UUID) error
- func (c *Client) CreateFileWithIDAndTags(filename string, documentDate time.Time, fileID uuid.UUID, tagNames []string) error
- func (c *Client) CreateFileWithTags(filename string, documentDate time.Time, tagNames []string) (uuid.UUID, error)
- func (c *Client) CreateMetadataWithID(hash string, fileSize uint64, id uuid.UUID) error
- func (c *Client) CreateTags(names []string) ([]uuid.UUID, error)
- func (c *Client) FindFilesWithDate(documentDate time.Time) ([]*records.File, error)
- func (c *Client) FindFilesWithIdPrefix(idPrefix string) ([]*records.File, error)
- func (c *Client) FindFilesWithTags(tagNames []string) ([]*records.File, error)
- func (c *Client) FindMetadataByHash(hash string) (*records.FileMetadata, error)
- func (c *Client) FindTagByName(name string) (*records.Tag, error)
- func (c *Client) GetFile(id uuid.UUID) (*records.File, error)
- func (c *Client) GetFileByHash(hash string) (*records.File, error)
- func (c *Client) GetFileDays(year int, month int) ([]int, error)
- func (c *Client) GetFileMonths(year int) ([]int, error)
- func (c *Client) GetFileWithDate(filename string, date time.Time) (*records.File, error)
- func (c *Client) GetFileYears() ([]int, error)
- func (c *Client) GetTags(names []string) ([]*records.Tag, error)
- func (c *Client) GetTagsForFile(id uuid.UUID) (records.TagIterator, error)
- func (c *Client) Migrate() error
- func (c *Client) RemoveFile(id uuid.UUID) error
- func (c *Client) UpdateFile(file *records.File) error
- func (c *Client) UpdateFileDate(id uuid.UUID, newFilename string, newDate time.Time) error
- func (c *Client) UpdateFileHash(id uuid.UUID, hash string) error
- func (c *Client) UpdateFileTags(id uuid.UUID, addedTags, removedTags []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateFile ¶
func (*Client) CreateFileWithID ¶
func (*Client) CreateFileWithIDAndTags ¶
func (*Client) CreateFileWithTags ¶
func (*Client) CreateMetadataWithID ¶
func (*Client) FindFilesWithDate ¶
func (*Client) FindFilesWithIdPrefix ¶
func (*Client) FindFilesWithTags ¶
func (*Client) FindMetadataByHash ¶
func (c *Client) FindMetadataByHash(hash string) (*records.FileMetadata, error)
func (*Client) GetFileWithDate ¶
func (*Client) GetFileYears ¶
func (*Client) GetTagsForFile ¶
func (*Client) UpdateFileDate ¶
Click to show internal directories.
Click to hide internal directories.