Documentation ¶
Index ¶
- Variables
- func IsHTTPError(err error, statuscode int) bool
- type API
- func (a *API) Info(ctx context.Context, bucket string, key string) (*Info, error)
- func (a *API) Load(ctx context.Context, bucket string, key string, writer io.Writer) (int64, error)
- func (a *API) PresignGetObject(ctx context.Context, bucket string, key string, ttl time.Duration) (string, error)
- func (a *API) PresignPutObject(ctx context.Context, bucket string, key string, ttl time.Duration, ...) (string, error)
- func (a *API) Remove(ctx context.Context, bucket string, key string) error
- func (a *API) Save(ctx context.Context, bucket string, key string, reader io.Reader) error
- type Info
- type S3Config
- type UploadOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
View Source
var DebugWriter = os.Stdout
Functions ¶
func IsHTTPError ¶
Types ¶
type API ¶
func (*API) PresignGetObject ¶
func (*API) PresignPutObject ¶
type S3Config ¶
type UploadOptions ¶
type UploadOptions struct {
ContentLength int64
}
func NewUploadOptions ¶
func NewUploadOptions() *UploadOptions
Click to show internal directories.
Click to hide internal directories.