Documentation
¶
Index ¶
- Constants
- type Storage
- func (s *Storage) Append(path, data string) bool
- func (s *Storage) Copy(from, to string) bool
- func (s *Storage) Delete(path string) bool
- func (s *Storage) DeleteDir(dir string) bool
- func (s *Storage) Exists(path string) bool
- func (s *Storage) Get(path string) ([]byte, error)
- func (s *Storage) GetStream(path string) (io.ReadCloser, error)
- func (s *Storage) LastModified(path string) time.Time
- func (s *Storage) MakeDir(dir string) bool
- func (s *Storage) Move(from, to string) bool
- func (s *Storage) Put(path, contents string) bool
- func (s *Storage) PutData(path string, contents []byte) bool
- func (s *Storage) PutFile(path string, fileSource *os.File) bool
- func (s *Storage) PutFilepath(path, filePath string, options ...interface{}) bool
- func (s *Storage) Size(path string) int64
- func (s *Storage) Url(path string) string
Constants ¶
View Source
const (
Type = storage.Type("cs3")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
func (*Storage) GetStream ¶ added in v1.2.2
func (s *Storage) GetStream(path string) (io.ReadCloser, error)
GetStream returns a stream (io.ReadCloser) for the object at the given path This allows for efficient streaming without loading the entire file into memory
func (*Storage) PutFilepath ¶
Click to show internal directories.
Click to hide internal directories.