models

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortMultipartUploadReq added in v1.3.2

type AbortMultipartUploadReq struct {
	ConnectionId string `json:"connectionId"`
	UploadID     string `json:"uploadId"`
	Bucket       string `json:"bucket"`
	Key          string `json:"key"`
}

type Acl added in v1.3.0

type Acl struct {
	Permission  string `json:"permission"`
	DisplayName string `json:"displayName"`
}

type AddCustomBucketReq

type AddCustomBucketReq struct {
	ConnectionId string `json:"connectionId"`
	Bucket       string `json:"bucket"`
}

type BaseResponse

type BaseResponse struct {
	ErrCode string      `json:"err_code"`
	ErrMsg  string      `json:"err_msg"`
	Data    interface{} `json:"data"`
}

type BucketDetail

type BucketDetail struct {
	Bucket string `json:"bucket"`
	Custom bool   `json:"custom"`
}

type BucketInfo added in v1.3.0

type BucketInfo struct {
	Location string `json:"location"`
	Policy   string `json:"policy"`
	Acls     []*Acl `json:"acls"`
}

type CompleteMultipartUploadReq added in v1.3.2

type CompleteMultipartUploadReq struct {
	ConnectionId string       `json:"connectionId"`
	UploadID     string       `json:"uploadId"`
	Bucket       string       `json:"bucket"`
	Key          string       `json:"key"`
	Etags        []*Multipart `json:"etags"`
}

type ConnectionDetail

type ConnectionDetail struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Endpoint  string `json:"endpoint"`
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey"`
	Region    string `json:"region"`
	PathStyle int8   `json:"pathStyle"`
}

type ConnectionItem

type ConnectionItem struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type CreateBucketReq

type CreateBucketReq struct {
	ConnectionId string `json:"connectionId"`
	Bucket       string `json:"bucket"`
}

type CreateFolderReq added in v1.4.2

type CreateFolderReq struct {
	ConnectionId string `json:"connectionId"`
	Bucket       string `json:"bucket"`
	Path         string `json:"path"`
}

type CreateMultipartUploadReq added in v1.3.2

type CreateMultipartUploadReq struct {
	ConnectionId string `json:"connectionId"`
	Bucket       string `json:"bucket"`
	Key          string `json:"key"`
}

type DeleteBucketReq

type DeleteBucketReq struct {
	ConnectionId string `json:"connectionId"`
	Bucket       string `json:"bucket"`
	Custom       bool   `json:"custom"`
}

type DeleteConnectionReq

type DeleteConnectionReq struct {
	ConnectionId string `json:"connectionId"`
}

type DeleteObjectsReq

type DeleteObjectsReq struct {
	ConnectionId string   `json:"connectionId"`
	Bucket       string   `json:"bucket"`
	Keys         []string `json:"keys"`
}

type DownloadObjectsReq

type DownloadObjectsReq struct {
	ConnectionId string   `json:"connectionId"`
	Bucket       string   `json:"bucket"`
	Keys         []string `json:"keys"`
}

type DownloadUpgradeFileReq added in v1.2.0

type DownloadUpgradeFileReq struct {
	DownloadUrl string `json:"downloadUrl"`
}

type EditConnectionReq

type EditConnectionReq struct {
	ConnectionDetail
}

type GetBucketInfoReq added in v1.3.0

type GetBucketInfoReq struct {
	ConnectionId string `json:"connectionId"`
	Bucket       string `json:"bucket"`
}

type GetConnectionDetailReq

type GetConnectionDetailReq struct {
	ConnectionId string `json:"connectionId"`
}

type InitializeMultipartUploadRes added in v1.3.2

type InitializeMultipartUploadRes struct {
	UploadID string `json:"uploadId"`
}

type ListBucketsReq

type ListBucketsReq struct {
	ConnectionId string `json:"connectionId"`
}

type ListObjectsReq

type ListObjectsReq struct {
	ConnectionId  string `json:"connectionId"`
	Bucket        string `json:"bucket"`
	Delimiter     string `json:"delimiter"`
	Prefix        string `json:"prefix"`
	ContinueToken string `json:"continueToken"`
	PageSize      int32  `json:"pageSize"`
}

type ListObjectsRes

type ListObjectsRes struct {
	Objects               []*ObjectItem `json:"objects"`
	NextContinuationToken string        `json:"nextContinuationToken"`
}

type Multipart added in v1.3.2

type Multipart struct {
	Part  int32  `json:"part"`
	Value string `json:"value"`
}

type NewConnectionReq

type NewConnectionReq struct {
	ConnectionDetail
}

type ObjectItem

type ObjectItem struct {
	ID           string     `json:"id"`
	Key          string     `json:"key"`
	RealKey      string     `json:"realKey"` //the object storage key
	Size         int64      `json:"size"`
	LastModified *time.Time `json:"lastModified"`
	CommonPrefix bool       `json:"commonPrefix"`
}

type PutMultipartUploadReq added in v1.3.2

type PutMultipartUploadReq struct {
	ConnectionId string      `json:"connectionId"`
	UploadID     string      `json:"uploadId"`
	Bucket       string      `json:"bucket"`
	Key          string      `json:"key"`
	PartNumber   int32       `json:"partNumber"`
	Chunk        interface{} `json:"chunk"`
}

type PutMultipartUploadRes added in v1.3.2

type PutMultipartUploadRes struct {
	ETag       string `json:"eTag"`
	PartNumber int32  `json:"partNumber"`
}

type ReleaseDetail added in v1.2.0

type ReleaseDetail struct {
	CurrentVersion string `json:"currentVersion"`
	OS             string `json:"os"`
	ARCH           string `json:"arch"`
}

type UpgradeProgress added in v1.2.0

type UpgradeProgress struct {
	//store the percentage progress
	Percentage float64 `json:"percentage"`
	//store the download rate,unit:kb/s
	Rate float64 `json:"rate"`
}

type UploadDetail added in v1.3.2

type UploadDetail struct {
	FileNameKey string `json:"fileNameKey"`
	PartSize    int    `json:"partSize"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL