Documentation ¶
Index ¶
- Constants
- func IsErrorInit() bool
- type Helper
- func (c *Helper) Close(req *http.Request, rsp *http.Response)
- func (c *Helper) GetBucketAws() *string
- func (c *Helper) GetBucketName() string
- func (c *Helper) GetCloser(req *http.Request, rsp *http.Response) []io.Closer
- func (cli *Helper) GetContext() context.Context
- func (cli Helper) GetError(err ...error) liberr.Error
- func (c *Helper) GetRegion() string
- func (c *Helper) GetRegionAws() *string
- func (c *Helper) SetBucketName(bucket string)
- type PartSize
- type ReaderPartSize
Constants ¶
View Source
const ( // minmal are liberr.MIN_AVAILABLE + get a hope free range 1000 + 10 for aws-config liberr. ErrorResponse liberr.CodeError = iota + liberr.MinPkgAws + 60 ErrorConfigEmpty ErrorAwsEmpty ErrorAws ErrorBucketNotFound ErrorParamsEmpty )
View Source
const ( STATE_SUSPENDED = "Suspended" STATE_ENABLED = "Enabled" )
View Source
const ( SizeBytes PartSize = 1 SizeKiloBytes = 1024 * SizeBytes SizeMegaBytes = 1024 * SizeKiloBytes SizeGigaBytes = 1024 * SizeMegaBytes SizeTeraBytes = 1024 * SizeGigaBytes SizePetaBytes = 1024 * SizeTeraBytes )
Variables ¶
This section is empty.
Functions ¶
func IsErrorInit ¶
func IsErrorInit() bool
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
func (*Helper) GetBucketAws ¶
func (*Helper) GetBucketName ¶
func (*Helper) GetContext ¶
func (*Helper) GetRegionAws ¶ added in v1.5.0
func (*Helper) SetBucketName ¶
type ReaderPartSize ¶ added in v1.4.0
type ReaderPartSize interface { io.Reader NextPart(eTag *string) CurrPart() int32 CompPart() *sdktps.CompletedMultipartUpload IeOEF() bool }
func NewReaderPartSize ¶ added in v1.4.0
func NewReaderPartSize(rd io.Reader, p PartSize) ReaderPartSize
Click to show internal directories.
Click to hide internal directories.