Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CondConfig ¶
type CondConfig struct { Expiration string `json:"expiration"` Conditions []interface{} `json:"conditions"` }
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 GetUploadPolicy(prefix string, maxSize int32, expireInSeconds int32) (policy *UploadPolicy, err error) }
StorageInterface define common API to operate storage
Click to show internal directories.
Click to hide internal directories.