Documentation
¶
Index ¶
- type ACL
- type AbortMultipartUploadRequest
- type Acl
- type BucketInfo
- type Bucketclient
- type ByPart
- type Cluster
- type Clusters
- type CompleteMultipartUploadRequest
- type Contents
- type CopyObjRequest
- type CopyObjsRequest
- type CreateMultipartUploadRequest
- type CreateSession
- type DeleteBucketRequest
- type DeleteObjRequest
- type FputObjRequest
- type GetBucketAclRequest
- type GetBucketPolicyRequest
- type GetBucketReplicationRequest
- type GetMultipartObjRequest
- type GetObjAclRequest
- type GetObjRequest
- type HealthCheck
- type HealthCode
- type LevelDBMeta
- type LevelDBMetadata
- type ListBucketRequest
- type ListMultipartObjRequest
- type ListObjLdbRequest
- type ListObjRequest
- type ListObjV2Request
- type ListObjVersionsRequest
- type Location
- type MakeBucketRequest
- type MultiPartUploadRequest
- type PutBucketAclRequest
- type PutObjRequest
- type PutObjRequest3
- type PutObjectAclRequest
- type RaftBucket
- type RaftLeader
- type RaftMembers
- type RaftSession
- type RaftSessionInfo
- type RaftSessions
- type RaftState
- type Rb
- type Rc
- type Repds
- type ReplicationInfo
- type Reqm
- type Rh
- type Rlb
- type Rm
- type Ro
- type Robj
- type Rp
- type S3Metadata
- type StatBucketRequest
- type StatObjRequest
- type StatObjRequestV2
- type Tags
- type UploadPartRequest
- type Value
- type Vault
- type Wsbs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACL ¶
type ACL struct { Canned string `json:"Canned"` FULLCONTROL []interface{} `json:"FULL_CONTROL"` WRITEACP []interface{} `json:"WRITE_ACP"` READ []interface{} `json:"READ"` READACP []interface{} `json:"READ_ACP"` }
type AbortMultipartUploadRequest ¶
type AbortMultipartUploadRequest struct { Service *s3.S3 Resp *s3.CreateMultipartUploadOutput }
type BucketInfo ¶
type BucketInfo struct { Name string `json:"name"` Owner string `json:"owner"` OwnerDisplayName string `json:"ownerDisplayName"` CreationDate time.Time `json:"creationDate"` MdBucketModelVersion int `json:"mdBucketModelVersion"` Transient bool `json:"transient"` Deleted bool `json:"deleted"` ServerSideEncryption interface{} `json:"serverSideEncryption"` VersioningConfiguration interface{} `json:"versioningConfiguration"` LocationConstraint string `json:"locationConstraint"` Cors interface{} `json:"cors"` ReplicationConfiguration interface{} `json:"replicationConfiguration"` LifecycleConfiguration interface{} `json:"lifecycleConfiguration"` }
type Bucketclient ¶
type Clusters ¶
type Clusters struct {
Topology []Cluster `json:"topology"`
}
func (Clusters) GetCluster ¶
type CompleteMultipartUploadRequest ¶
type CompleteMultipartUploadRequest struct { Service *s3.S3 Resp *s3.CreateMultipartUploadOutput CompletedParts []*s3.CompletedPart }
type CopyObjRequest ¶
type CopyObjsRequest ¶
type CreateSession ¶
type DeleteBucketRequest ¶
type DeleteObjRequest ¶
type FputObjRequest ¶
type GetBucketAclRequest ¶
type GetBucketPolicyRequest ¶
type GetMultipartObjRequest ¶
type GetObjRequest ¶
type HealthCheck ¶
type HealthCheck struct { CnNorth1 HealthCode `json:"cn-north-1,omitempty"` UsWest1 HealthCode `json:"us-west-1,omitempty"` UsEast1 HealthCode `json:"us-east-1,omitempty"` UsEast2 HealthCode `json:"us-east-2,omitempty"` ApNortheast1 HealthCode `json:"ap-northeast-1,omitempty"` SaEast1 HealthCode `json:"sa-east-1,omitempty"` CaCentral1 HealthCode `json:"ca-central-1,omitempty"` ApSoutheast2 HealthCode `json:"ap-southeast-2,omitempty"` UsWest2 HealthCode `json:"us-west-2,omitempty"` Dc1 HealthCode `json:"dc-1,omitempty"` EuCentral1 HealthCode `json:"eu-central-1,omitempty"` EU HealthCode `json:"EU,omitempty"` ApSoutheast1 HealthCode `json:"ap-southeast-1,omitempty"` ApNortheast2 HealthCode `json:"ap-northeast-2,omitempty"` EuWest2 HealthCode `json:"eu-west-2,omitempty"` Sproxyd HealthCode `json:"sproxyd"` ApSouth1 HealthCode `json:"ap-south-1,omitempty"` EuWest1 HealthCode `json:"eu-west-1,omitempty"` Bucketclient Bucketclient `json:"bucketclient"` Vault Vault `json:"vault"` }
func (HealthCheck) GetBucketCode ¶
func (h HealthCheck) GetBucketCode() Bucketclient
func (HealthCheck) GetEUCode ¶
func (h HealthCheck) GetEUCode() HealthCode
func (HealthCheck) GetSproxyd ¶
func (h HealthCheck) GetSproxyd() HealthCode
func (HealthCheck) GetVaultCode ¶
func (h HealthCheck) GetVaultCode() Vault
func (HealthCheck) Print ¶
func (h HealthCheck) Print(name string)
type HealthCode ¶
type LevelDBMeta ¶
type LevelDBMeta struct { Bucket struct { Name string `json:"name"` Owner string `json:"owner"` OwnerDisplayName string `json:"ownerDisplayName"` CreationDate time.Time `json:"creationDate"` MdBucketModelVersion int `json:"mdBucketModelVersion"` Transient bool `json:"transient"` Deleted bool `json:"deleted"` ServerSideEncryption interface{} `json:"serverSideEncryption"` VersioningConfiguration interface{} `json:"versioningConfiguration"` LocationConstraint string `json:"locationConstraint"` Cors interface{} `json:"cors"` ReplicationConfiguration interface{} `json:"replicationConfiguration"` LifecycleConfiguration interface{} `json:"lifecycleConfiguration"` } `json:"bucket"` Obj struct { OwnerDisplayName string `json:"owner-display-name"` OwnerID string `json:"owner-id"` ContentLength int `json:"content-length"` ContentMd5 string `json:"content-md5"` XAmzVersionID string `json:"x-amz-version-id"` XAmzServerVersionID string `json:"x-amz-server-version-id"` XAmzStorageClass string `json:"x-amz-storage-class"` XAmzServerSideEncryption string `json:"x-amz-server-side-encryption"` XAmzServerSideEncryptionAwsKmsKeyID string `json:"x-amz-server-side-encryption-aws-kms-key-id"` XAmzServerSideEncryptionCustomerAlgorithm string `json:"x-amz-server-side-encryption-customer-algorithm"` XAmzWebsiteRedirectLocation string `json:"x-amz-website-redirect-location"` ACL struct { Canned string `json:"Canned"` FULLCONTROL []interface{} `json:"FULL_CONTROL"` WRITEACP []interface{} `json:"WRITE_ACP"` READ []interface{} `json:"READ"` READACP []interface{} `json:"READ_ACP"` } `json:"acl"` Key string `json:"key"` Location interface{} `json:"location"` IsDeleteMarker bool `json:"isDeleteMarker"` Tags struct { } `json:"tags"` ReplicationInfo struct { Status string `json:"status"` Backends []interface{} `json:"backends"` Content []interface{} `json:"content"` Destination string `json:"destination"` StorageClass string `json:"storageClass"` Role string `json:"role"` StorageType string `json:"storageType"` DataStoreVersionID string `json:"dataStoreVersionId"` } `json:"replicationInfo"` DataStoreName string `json:"dataStoreName"` LastModified time.Time `json:"last-modified"` MdModelVersion int `json:"md-model-version"` XAmzMetaUsermd string `json:"x-amz-meta-usermd"` } `json:"obj"` }
structure returned by LevelDB GET
type LevelDBMetadata ¶
type LevelDBMetadata struct { Bucket BucketInfo `json:"bucket"` Object Value `json:"obj,omitempty"` }
type ListBucketRequest ¶
type ListMultipartObjRequest ¶
type ListObjLdbRequest ¶
type ListObjRequest ¶
type ListObjV2Request ¶
type ListObjVersionsRequest ¶
type MakeBucketRequest ¶
type MultiPartUploadRequest ¶
type PutObjRequest ¶
type PutObjRequest3 ¶
type PutObjectAclRequest ¶
type RaftBucket ¶
type RaftBucket struct { RaftSessionID int `json:"raftSessionId"` Leader RaftLeader `json:"leader"` Creating bool `json:"creating"` Deleting bool `json:"deleting"` Version int `json:"version"` }
type RaftLeader ¶
type RaftMembers ¶
type RaftSession ¶
type RaftSession struct { ID int `json:"id"` RaftMembers []RaftMembers `json:"raftMembers"` ConnectedToLeader bool `json:"connectedToLeader"` }
type RaftSessionInfo ¶
type RaftSessionInfo struct { Leader RaftMembers `json:"leader"` Connected []RaftMembers `json:"connected"` Disconnected []RaftMembers `json:"disconnected"` }
type RaftSessions ¶
type RaftSessions []struct { ID int `json:"id"` RaftMembers []RaftMembers `json:"raftMembers"` ConnectedToLeader bool `json:"connectedToLeader"` }
func (RaftSessions) GetRaftSessions ¶
func (c RaftSessions) GetRaftSessions(file string) (error, *RaftSessions)
type ReplicationInfo ¶
type ReplicationInfo struct { Status string `json:"status"` Backends []struct { Site string `json:"site"` Status string `json:"status"` DataStoreVersionID string `json:"dataStoreVersionId"` } `json:"backends"` Content []string `json:"content"` Destination string `json:"destination"` StorageClass string `json:"storageClass"` Role string `json:"role"` StorageType string `json:"storageType"` }
type S3Metadata ¶
type StatBucketRequest ¶
type StatObjRequestV2 ¶
type UploadPartRequest ¶
type Value ¶
type Value struct { OwnerDisplayName string `json:"owner-display-name"` OwnerID string `json:"owner-id"` ContentLength int `json:"content-length"` ContentMd5 string `json:"content-md5"` XAmzVersionID string `json:"x-amz-version-id"` XAmzServerVersionID string `json:"x-amz-server-version-id"` XAmzStorageClass string `json:"x-amz-storage-class"` XAmzServerSideEncryption string `json:"x-amz-server-side-encryption"` XAmzServerSideEncryptionAwsKmsKeyID string `json:"x-amz-server-side-encryption-aws-kms-key-id"` XAmzServerSideEncryptionCustomerAlgorithm string `json:"x-amz-server-side-encryption-customer-algorithm"` XAmzWebsiteRedirectLocation string `json:"x-amz-website-redirect-location"` ACL ACL `json:"acl"` Key string `json:"key"` Location Location `json:"location"` IsDeleteMarker bool `json:"isDeleteMarker"` Tags Tags `json:"tags"` ReplicationInfo ReplicationInfo `json:"replicationInfo"` DataStoreName string `json:"dataStoreName"` LastModified time.Time `json:"last-modified"` MdModelVersion int `json:"md-model-version"` XAmzMetaUsermd string `json:"x-amz-meta-usermd"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.