Documentation ¶
Index ¶
- Constants
- func AuthzFromCtx(ctx context.Context) (*string, bool)
- func CtxWithAuthz(ctx context.Context, authz string) context.Context
- func CtxWithTimeout(ctx context.Context, timeout time.Duration) context.Context
- func Delete(c *http.Client, url string, u *stdurl.URL) error
- func NewFileInfo(name string, size int64) os.FileInfo
- func NewObject(client *http.Client, url string, u *stdurl.URL, size int64) driver.Object
- func RegisterDefaultDriver()
- func Stat(c *http.Client, url string) (int64, error)
- func TimeoutFromCtx(ctx context.Context) (*time.Duration, bool)
- type Driver
Constants ¶
View Source
const ( CtxAuthorization = "CTX_AUTHORIZATION" CtxTimeout = "CTX_TIMEOUT" )
Variables ¶
This section is empty.
Functions ¶
func CtxWithTimeout ¶
func NewObject ¶
NewObject opens an HTTP URL as an Object. If size is negative, a HEAD request will be performed to determine the actual size.
func RegisterDefaultDriver ¶
func RegisterDefaultDriver()
Types ¶
Click to show internal directories.
Click to hide internal directories.