Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyClosed = errors.New("already closed")
)
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:"required" yaml:"url"`
Retry int `json:"retry" validate:"gte=1" yaml:"retry"`
Timeout int `json:"timeout" validate:"gte=1" yaml:"timeout"`
Ak string `json:"ak" yaml:"ak"`
Sk string `json:"sk" yaml:"sk"`
Region string `json:"region" yaml:"region"`
BeginPos int64 `json:"beginPos" yaml:"beginPos"`
}
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.