Documentation ¶
Index ¶
- Constants
- func HandleHttp(store *ObjectStore, secret string)
- func MustNewObjectStore(config Config) osi.ObjectStore
- func NewObjectStore(config Config) (oss osi.ObjectStore, err error)
- func Sign(method string, path string, expires int, secret string) string
- type Config
- type HttpHandler
- func (t *HttpHandler) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (t *HttpHandler) GetBucketAndPath(r *http.Request) (string, string, error)
- func (t *HttpHandler) GetHandler(w http.ResponseWriter, r *http.Request)
- func (t *HttpHandler) HeadHandler(w http.ResponseWriter, r *http.Request)
- func (t *HttpHandler) PutHandler(w http.ResponseWriter, r *http.Request)
- type ObjectStore
Constants ¶
View Source
const (
Name = "local"
)
Variables ¶
This section is empty.
Functions ¶
func HandleHttp ¶
func HandleHttp(store *ObjectStore, secret string)
func MustNewObjectStore ¶
func MustNewObjectStore(config Config) osi.ObjectStore
func NewObjectStore ¶
func NewObjectStore(config Config) (oss osi.ObjectStore, err error)
Types ¶
type HttpHandler ¶
type HttpHandler struct { Secret string // contains filtered or unexported fields }
func (*HttpHandler) DeleteHandler ¶
func (t *HttpHandler) DeleteHandler(w http.ResponseWriter, r *http.Request)
func (*HttpHandler) GetBucketAndPath ¶
func (*HttpHandler) GetHandler ¶
func (t *HttpHandler) GetHandler(w http.ResponseWriter, r *http.Request)
func (*HttpHandler) HeadHandler ¶
func (t *HttpHandler) HeadHandler(w http.ResponseWriter, r *http.Request)
func (*HttpHandler) PutHandler ¶
func (t *HttpHandler) PutHandler(w http.ResponseWriter, r *http.Request)
type ObjectStore ¶
type ObjectStore struct {
// contains filtered or unexported fields
}
func (*ObjectStore) ACLEnum ¶
func (t *ObjectStore) ACLEnum() osi.ACLEnum
func (*ObjectStore) Name ¶
func (t *ObjectStore) Name() string
Click to show internal directories.
Click to hide internal directories.