Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
Path string
Name string
LastModified *time.Time
StorageInterface StorageInterface
}
Object content object
type StorageInterface ¶
type StorageInterface interface {
Get(path string) (*os.File, error)
GetStream(path string) (io.ReadCloser, error)
Put(path string, reader io.Reader) (*Object, error)
Delete(path string) error
List(path string) ([]*Object, error)
GetURL(path string) (string, error)
GetEndpoint() string
}
StorageInterface define common API to operate storage
Click to show internal directories.
Click to hide internal directories.