Documentation
¶
Index ¶
- func New(config Config) (http.Handler, error)
- func PolicyMiddleware(policySvc policy.Service) func(next http.Handler) http.Handler
- func S3Middleware() func(next http.Handler) http.Handler
- func SwiftMiddleware() func(next http.Handler) http.Handler
- type Config
- type Router
- type StorageProxy
- type SwiftStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PolicyMiddleware ¶ added in v0.7.0
Types ¶
type Config ¶ added in v0.7.0
type Router ¶
type Router interface {
Route(r *http.Request) (resp *http.Response, task []tasks.ReplicationTask, storage string, isApiErr bool, err error)
}
func NewS3Router ¶ added in v0.7.0
func NewSwiftRouter ¶ added in v0.7.0
func NewSwiftRouter( conf map[string]*SwiftStorage, limit ratelimit.RPM) Router
type StorageProxy ¶ added in v0.7.0
type SwiftStorage ¶ added in v0.7.0
type SwiftStorage struct {
StorageURL string `yaml:"storageURL"`
}
func (*SwiftStorage) HasUser ¶ added in v0.7.0
func (s *SwiftStorage) HasUser(user string) bool
func (*SwiftStorage) UserList ¶ added in v0.7.0
func (s *SwiftStorage) UserList() []string
func (*SwiftStorage) Validate ¶ added in v0.7.0
func (s *SwiftStorage) Validate() error
Click to show internal directories.
Click to hide internal directories.