Documentation ¶
Index ¶
- func CeilTimeUpToMicroseconds(timeToCeil time.Time) time.Time
- func NewError(err error, format string, args ...interface{}) storage.Error
- type Folder
- func (folder *Folder) CopyObject(srcPath string, dstPath string) error
- func (folder *Folder) DeleteObjects(objectRelativePaths []string) error
- func (folder *Folder) Exists(objectRelativePath string) (bool, error)
- func (folder *Folder) GetPath() string
- func (folder *Folder) GetSubFolder(subFolderRelativePath string) storage.Folder
- func (folder *Folder) ListFolder() (objects []storage.Object, subFolders []storage.Folder, err error)
- func (folder *Folder) PutObject(name string, content io.Reader) error
- func (folder *Folder) ReadObject(objectRelativePath string) (io.ReadCloser, error)
- type Storage
- type TimeStampedData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CeilTimeUpToMicroseconds ¶
This function is needed for being cross-platform
Types ¶
type Folder ¶
type Folder struct { Storage *Storage // contains filtered or unexported fields }
func (*Folder) DeleteObjects ¶
func (*Folder) GetSubFolder ¶
func (*Folder) ListFolder ¶
func (*Folder) ReadObject ¶
func (folder *Folder) ReadObject(objectRelativePath string) (io.ReadCloser, error)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is supposed to be used for tests. It doesn't guarantee data safety!
func NewStorage ¶
func NewStorage() *Storage
func (*Storage) Load ¶
func (storage *Storage) Load(key string) (value TimeStampedData, exists bool)
type TimeStampedData ¶
func TimeStampData ¶
func TimeStampData(data bytes.Buffer) TimeStampedData
Click to show internal directories.
Click to hide internal directories.