Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendWriter ¶
type AppendWriter struct {
*Cfg
Pos int
NoDeleteFirst bool
// contains filtered or unexported fields
}
func NewAppendWriter ¶
func NewAppendWriter() *AppendWriter
func (*AppendWriter) Close ¶
func (w *AppendWriter) Close() error
type Cfg ¶
type Cfg struct {
URL string `json:"url" validate:"min=1" yaml:"url"`
Ak string `json:"ak" validate:"min=1" yaml:"ak"`
Sk string `json:"sk" validate:"min=1" yaml:"sk"`
Retry int `json:"retry" validate:"gte=1" yaml:"retry"`
Timeout int `json:"timeout" validate:"gte=1" yaml:"timeout"`
Region string `json:"region" yaml:"region"`
}
type CompleteMultipartUpload ¶
type CompleteMultipartUpload struct {
Parts []*Part `xml:"Part"`
}
type InitiateMultipartUploadResult ¶
type InitiateMultipartUploadResult struct {
UploadID string `xml:"UploadId"`
}
type MultiPartWriter ¶
type MultiPartWriter struct {
*Cfg
// contains filtered or unexported fields
}
func NewMultiPartWriter ¶
func NewMultiPartWriter() *MultiPartWriter
func (*MultiPartWriter) Abort ¶
func (w *MultiPartWriter) Abort() error
func (*MultiPartWriter) Close ¶
func (w *MultiPartWriter) Close() error
func (*MultiPartWriter) Complete ¶
func (w *MultiPartWriter) Complete() error
Click to show internal directories.
Click to hide internal directories.