Documentation ¶
Overview ¶
Package s3kv provide k/v storage by S3 Resty API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context of s3kv client
func NewContext ¶
NewContext return a new Context of s3kv
Context was initialized from client that named `s3kv_name` in config file NewContext will return nil if no client found by name `s3kv_name`
type ListCommonPrefixes ¶
type ListCommonPrefixes struct {
Prefix []string `xml:"Prefix"`
}
ListCommonPrefixes is container of ListResult
type ListContent ¶
type ListContent struct { Key string `xml:"Key"` ETag string `xml:"ETag"` Size string `xml:"Size"` Type string `xml:"Type"` LastModified string `xml:"LastModified"` StorageClass string `xml:"StorageClass"` Owner ListContentOwner `xml:"Owner"` }
ListContent is container of ListResult
type ListContentOwner ¶
ListContentOwner is container of ListContent
type ListResult ¶
type ListResult struct { Name string `xml:"Name"` Marker string `xml:"Marker"` Prefix string `xml:"Prefix"` MaxKeys string `xml:"MaxKeys"` Delimiter string `xml:"Delimiter"` NextMarker string `xml:"NextMarker"` IsTruncated string `xml:"IsTruncated"` Contents []ListContent `xml:"Contents"` CommonPrefixes ListCommonPrefixes `xml:"CommonPrefixes"` }
ListResult indicates xml of s3 list result
Click to show internal directories.
Click to hide internal directories.