Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + type AuthorizeAccountResponse struct + APIURL string + AbsoluteMinimumPartSize int + AccountID string + Allowed struct{ ... } + AuthorizationToken string + DownloadURL string + MinimumPartSize int + RecommendedPartSize int + type Bucket struct + AccountID string + ID string + Name string + Type string + type CancelLargeFileRequest struct + ID string + type CancelLargeFileResponse struct + AccountID string + BucketID string + ID string + Name string + type CopyFileRequest struct + ContentType string + DestBucketID string + Info map[string]string + MetadataDirective string + Name string + Range string + SourceID string + type CopyPartRequest struct + LargeFileID string + PartNumber int64 + Range string + SourceID string + type CreateBucketRequest struct + AccountID string + Name string + Type string + type DeleteBucketRequest struct + AccountID string + ID string + type DeleteFileRequest struct + ID string + Name string + type Error struct + Code string + Message string + Status int + func (e *Error) Error() string + func (e *Error) Fatal() bool + type File struct + Action string + ContentType string + ID string + Info map[string]string + Name string + SHA1 string + Size int64 + UploadTimestamp Timestamp + type FileInfo struct + AccountID string + Action string + BucketID string + ContentType string + ID string + Info map[string]string + Name string + SHA1 string + Size int64 + UploadTimestamp Timestamp + type FinishLargeFileRequest struct + ID string + SHA1s []string + type GetDownloadAuthorizationRequest struct + B2ContentDisposition string + BucketID string + FileNamePrefix string + ValidDurationInSeconds int64 + type GetDownloadAuthorizationResponse struct + AuthorizationToken string + BucketID string + FileNamePrefix string + type GetFileInfoRequest struct + ID string + type GetUploadPartURLRequest struct + ID string + type GetUploadPartURLResponse struct + AuthorizationToken string + ID string + UploadURL string + type GetUploadURLRequest struct + BucketID string + type GetUploadURLResponse struct + AuthorizationToken string + BucketID string + UploadURL string + type HideFileRequest struct + BucketID string + Name string + type ListBucketsRequest struct + AccountID string + BucketID string + BucketName string + BucketTypes []string + type ListBucketsResponse struct + Buckets []Bucket + type ListFileNamesRequest struct + BucketID string + Delimiter string + MaxFileCount int + Prefix string + StartFileID string + StartFileName string + type ListFileNamesResponse struct + Files []File + NextFileID *string + NextFileName *string + type StartLargeFileRequest struct + BucketID string + ContentType string + Info map[string]string + Name string + type StartLargeFileResponse struct + AccountID string + BucketID string + ContentType string + ID string + Info map[string]string + Name string + UploadTimestamp Timestamp + type Timestamp time.Time + func RemoveVersion(remote string) (t Timestamp, newRemote string) + func (t *Timestamp) MarshalJSON() (out []byte, err error) + func (t *Timestamp) UnmarshalJSON(data []byte) error + func (t Timestamp) AddVersion(remote string) string + func (t Timestamp) Equal(s Timestamp) bool + func (t Timestamp) IsZero() bool + type UploadPartResponse struct + ID string + PartNumber int64 + SHA1 string + Size int64