Documentation ¶
Overview ¶
Package cmd file carries any specific responses constructed/necessary in multipart operations.
Package cmd This file implements AWS Access Policy Language parser in accordance with http://docs.aws.amazon.com/AmazonS3/latest/dev/access-policy-language-overview.html
Package cmd This file implements helper functions to validate AWS Signature Version '4' authorization header.
This package provides comprehensive helpers for following signature types. - Based on Authorization header. - Based on Query parameters. - Based on Form POST policy.
Package cmd This file implements helper functions to validate Streaming AWS Signature Version '4' authorization header.
Index ¶
- Constants
- Variables
- func AddBucketListenerConfig(bucket string, lcfg *listenerConfig, objAPI ObjectLayer) error
- func DamerauLevenshteinDistance(a string, b string) int
- func IsValidBucketName(bucket string) bool
- func IsValidObjectName(object string) bool
- func IsValidObjectPrefix(object string) bool
- func Main()
- func PutBucketNotificationConfig(bucket string, ncfg *notificationConfig, objAPI ObjectLayer) error
- func RemoveBucketListenerConfig(bucket string, lcfg *listenerConfig, objAPI ObjectLayer)
- func S3PeersUpdateBucketListener(bucket string, lcfg []listenerConfig)
- func S3PeersUpdateBucketNotification(bucket string, ncfg *notificationConfig)
- func S3PeersUpdateBucketPolicy(bucket string, pCh policyChange)
- func UNCPath(path string) string
- type APIError
- type APIErrorCode
- type APIErrorResponse
- type AppendFileArgs
- type AuthRPCClient
- func (authClient *AuthRPCClient) Call(serviceMethod string, args interface{ ... }, reply interface{}) (err error)
- func (authClient *AuthRPCClient) Close() error
- func (authClient *AuthRPCClient) Login() error
- func (authClient *AuthRPCClient) Node() string
- func (authClient *AuthRPCClient) RPCPath() string
- type BackendType
- type BadDigest
- type Bucket
- type BucketExists
- type BucketInfo
- type BucketNameInvalid
- type BucketNotEmpty
- type BucketNotFound
- type BucketPolicyNotFound
- type CommonPrefix
- type CompleteMultipartUploadResponse
- type ConnBuf
- type ConnMux
- type CopyObjectResponse
- type DeleteError
- type DeleteFileArgs
- type DeleteObjectsRequest
- type DeleteObjectsResponse
- type Error
- type EventArgs
- type EventName
- type FileInfo
- type GenerateAuthReply
- type GenericArgs
- type GenericError
- type GenericReply
- type GenericVolArgs
- type GetAuthReply
- type GetBucketPolicyArgs
- type GetBucketPolicyRep
- type HandlerFunc
- type HealBucketArgs
- type HealListArgs
- type HealListReply
- type HealObjectArgs
- type HealObjectReply
- type IncompleteBody
- type InitActions
- type InitiateMultipartUploadResponse
- type Initiator
- type InsufficientReadQuorum
- type InsufficientWriteQuorum
- type InvalidMarkerPrefixCombination
- type InvalidPart
- type InvalidRange
- type InvalidUploadID
- type InvalidUploadIDKeyCombination
- type JWT
- type ListAllBucketPoliciesArgs
- type ListAllBucketPoliciesRep
- type ListBucketsRep
- type ListBucketsResponse
- type ListDirArgs
- type ListMultipartUploadsResponse
- type ListMultipartsInfo
- type ListObjectsArgs
- type ListObjectsInfo
- type ListObjectsRep
- type ListObjectsResponse
- type ListObjectsV2Response
- type ListPartsInfo
- type ListPartsResponse
- type ListVolsReply
- type ListenerMux
- type LocationResponse
- type LockArgs
- type LockClearArgs
- type LockInfoOpsIDNotFound
- type LockInfoOriginNotFound
- type LockInfoStateNotBlocked
- type LockInfoVolPathMssing
- type LoginArgs
- type LoginRep
- type MakeBucketArgs
- type MalformedUploadID
- type NotImplemented
- type NotificationEvent
- type Object
- type ObjectExistsAsDirectory
- type ObjectIdentifier
- type ObjectInfo
- type ObjectLayer
- type ObjectNameInvalid
- type ObjectNotFound
- type ObjectTooLarge
- type ObjectTooSmall
- type OpsLockState
- type Owner
- type Part
- type PartTooSmall
- type PostPolicyForm
- type PrefixAccessDenied
- type PresignedGetArgs
- type PresignedGetRep
- type RPCClient
- type RPCLoginArgs
- type RPCLoginReply
- type RWLocker
- type ReadAllArgs
- type ReadFileArgs
- type RemoveObjectArgs
- type RenameFileArgs
- type SHA256Mismatch
- type ServerInfoRep
- type ServerMux
- type ServiceArgs
- type ServiceConfig
- type ServiceReply
- type SetAuthArgs
- type SetAuthPeerArgs
- type SetAuthReply
- type SetBLPArgs
- type SetBNPArgs
- type SetBPPArgs
- type SetBucketPolicyArgs
- type StatFileArgs
- type StorageAPI
- type StorageFull
- type StorageInfo
- type StorageInfoRep
- type SystemLockState
- type Trie
- type UnsupportedDelimiter
- type Upload
- type VolInfo
- type VolumeLockInfo
- type WebBucketInfo
- type WebGenericArgs
- type WebGenericRep
- type WebObjectInfo
Constants ¶
const ( Byte = 1 << (iota * 10) KiByte MiByte GiByte TiByte PiByte EiByte )
IEC Sizes, kibis of bits
const ( IByte = 1 KByte = IByte * 1000 MByte = KByte * 1000 GByte = MByte * 1000 TByte = GByte * 1000 PByte = TByte * 1000 EByte = PByte * 1000 )
Scientific notation Sizes.
const (
// AWSResourcePrefix - bucket policy resource prefix.
AWSResourcePrefix = "arn:aws:s3:::"
)
const MaxJitter = 1.0
MaxJitter will randomize over the full exponential backoff time
const NoJitter = 0.0
NoJitter disables the use of jitter for randomizing the exponential backoff time
Variables ¶
var ( // GOPATH - GOPATH value at the time of build. GOPATH = "" // Version - version time.RFC3339. Version = "DEVELOPMENT.GOGET" // ReleaseTag - release tag in TAG.%Y-%m-%dT%H-%M-%SZ. ReleaseTag = "DEVELOPMENT.GOGET" // CommitID - latest commit id. CommitID = "DEVELOPMENT.GOGET" // ShortCommitID - first 12 characters from CommitID. ShortCommitID = CommitID[:12] )
DO NOT EDIT THIS FILE DIRECTLY. These are build-time constants set through ‘buildscripts/gen-ldflags.go’.
Functions ¶
func AddBucketListenerConfig ¶
func AddBucketListenerConfig(bucket string, lcfg *listenerConfig, objAPI ObjectLayer) error
AddBucketListenerConfig - Updates on disk state of listeners, and updates all peers with the change in listener config.
func DamerauLevenshteinDistance ¶
DamerauLevenshteinDistance calculates distance between two strings using an algorithm described in https://en.wikipedia.org/wiki/Damerau-Levenshtein_distance
func IsValidBucketName ¶
IsValidBucketName verifies a bucket name in accordance with Amazon's requirements. It must be 3-63 characters long, can contain dashes and periods, but must begin and end with a lowercase letter or a number. See: http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
func IsValidObjectName ¶
IsValidObjectName verifies an object name in accordance with Amazon's requirements. It cannot exceed 1024 characters and must be a valid UTF8 string.
See: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html
You should avoid the following characters in a key name because of significant special handling for consistency across all applications.
Rejects strings with following characters.
- Backslash ("\")
additionally minio does not support object names with trailing "/".
func IsValidObjectPrefix ¶
IsValidObjectPrefix verifies whether the prefix is a valid object name. Its valid to have a empty prefix.
func PutBucketNotificationConfig ¶
func PutBucketNotificationConfig(bucket string, ncfg *notificationConfig, objAPI ObjectLayer) error
PutBucketNotificationConfig - Put a new notification config for a bucket (overwrites any previous config) persistently, updates global in-memory state, and notify other nodes in the cluster (if any)
func RemoveBucketListenerConfig ¶
func RemoveBucketListenerConfig(bucket string, lcfg *listenerConfig, objAPI ObjectLayer)
RemoveBucketListenerConfig - removes a given bucket notification config
func S3PeersUpdateBucketListener ¶
func S3PeersUpdateBucketListener(bucket string, lcfg []listenerConfig)
S3PeersUpdateBucketListener - Sends Update Bucket listeners request to all peers. Currently we log an error and continue.
func S3PeersUpdateBucketNotification ¶
func S3PeersUpdateBucketNotification(bucket string, ncfg *notificationConfig)
S3PeersUpdateBucketNotification - Sends Update Bucket notification request to all peers. Currently we log an error and continue.
func S3PeersUpdateBucketPolicy ¶
func S3PeersUpdateBucketPolicy(bucket string, pCh policyChange)
S3PeersUpdateBucketPolicy - Sends update bucket policy request to all peers. Currently we log an error and continue.
Types ¶
type APIErrorCode ¶
type APIErrorCode int
APIErrorCode type of error status.
const ( ErrNone APIErrorCode = iota ErrAccessDenied ErrBadDigest ErrEntityTooSmall ErrEntityTooLarge ErrIncompleteBody ErrInternalError ErrInvalidAccessKeyID ErrInvalidBucketName ErrInvalidDigest ErrInvalidRange ErrInvalidMaxKeys ErrInvalidMaxUploads ErrInvalidMaxParts ErrInvalidPartNumberMarker ErrInvalidRequestBody ErrInvalidCopySource ErrInvalidCopyDest ErrInvalidPolicyDocument ErrInvalidObjectState ErrMalformedXML ErrMissingContentLength ErrMissingContentMD5 ErrMissingRequestBodyError ErrNoSuchBucket ErrNoSuchBucketPolicy ErrNoSuchKey ErrNoSuchUpload ErrNotImplemented ErrPreconditionFailed ErrRequestTimeTooSkewed ErrSignatureDoesNotMatch ErrMethodNotAllowed ErrInvalidPart ErrInvalidPartOrder ErrAuthorizationHeaderMalformed ErrMalformedPOSTRequest ErrSignatureVersionNotSupported ErrBucketNotEmpty ErrAllAccessDisabled ErrMalformedPolicy ErrMissingFields ErrMissingCredTag ErrCredMalformed ErrInvalidRegion ErrInvalidService ErrInvalidRequestVersion ErrMissingSignTag ErrMissingSignHeadersTag ErrPolicyAlreadyExpired ErrMalformedDate ErrMalformedPresignedDate ErrMalformedCredentialDate ErrMalformedCredentialRegion ErrMalformedExpires ErrNegativeExpires ErrAuthHeaderEmpty ErrExpiredPresignRequest ErrRequestNotReadyYet ErrUnsignedHeaders ErrMissingDateHeader ErrInvalidQuerySignatureAlgo ErrInvalidQueryParams ErrBucketAlreadyOwnedByYou // Bucket notification related errors. ErrEventNotification ErrARNNotification ErrRegionNotification ErrOverlappingFilterNotification ErrFilterNameInvalid ErrFilterNamePrefix ErrFilterNameSuffix ErrFilterValueInvalid ErrOverlappingConfigs // S3 extended errors. ErrContentSHA256Mismatch // Minio extended errors. ErrReadQuorum ErrWriteQuorum ErrStorageFull ErrObjectExistsAsDirectory ErrPolicyNesting ErrInvalidObjectName ErrServerNotInitialized )
Error codes, non exhaustive list - http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
type APIErrorResponse ¶
type APIErrorResponse struct { XMLName xml.Name `xml:"Error" json:"-"` Code string Message string Key string BucketName string Resource string RequestID string `xml:"RequestId"` HostID string `xml:"HostId"` }
APIErrorResponse - error response format
type AppendFileArgs ¶
type AppendFileArgs struct { // Authentication token generated by Login. GenericArgs // Name of the volume. Vol string // Name of the path. Path string // Data buffer to be saved at path. Buffer []byte }
AppendFileArgs represents append file RPC arguments.
type AuthRPCClient ¶
type AuthRPCClient struct {
// contains filtered or unexported fields
}
AuthRPCClient is a wrapper type for RPCClient which provides JWT based authentication across reconnects.
func (*AuthRPCClient) Call ¶
func (authClient *AuthRPCClient) Call(serviceMethod string, args interface { SetToken(token string) SetTimestamp(tstamp time.Time) }, reply interface{}) (err error)
Call - If rpc connection isn't established yet since previous disconnect, connection is established, a jwt authenticated login is performed and then the call is performed.
func (*AuthRPCClient) Close ¶
func (authClient *AuthRPCClient) Close() error
Close - closes underlying rpc connection.
func (*AuthRPCClient) Login ¶
func (authClient *AuthRPCClient) Login() error
Login - a jwt based authentication is performed with rpc server.
func (*AuthRPCClient) Node ¶
func (authClient *AuthRPCClient) Node() string
Node returns the node (network address) of the connection
func (*AuthRPCClient) RPCPath ¶
func (authClient *AuthRPCClient) RPCPath() string
RPCPath returns the RPC path of the connection
type BackendType ¶
type BackendType int
BackendType - represents different backend types.
const ( Unknown BackendType = iota // Filesystem backend. FS // Multi disk single node XL backend. XL )
Enum for different backend types.
type Bucket ¶
type Bucket struct { Name string CreationDate string // time string of format "2006-01-02T15:04:05.000Z" }
Bucket container for bucket metadata
type BucketExists ¶
type BucketExists GenericError
BucketExists bucket exists.
func (BucketExists) Error ¶
func (e BucketExists) Error() string
type BucketInfo ¶
type BucketInfo struct { // Name of the bucket. Name string // Date and time when the bucket was created. Created time.Time }
BucketInfo - represents bucket metadata.
type BucketNameInvalid ¶
type BucketNameInvalid GenericError
BucketNameInvalid - bucketname provided is invalid.
func (BucketNameInvalid) Error ¶
func (e BucketNameInvalid) Error() string
Return string an error formatted as the given text.
type BucketNotEmpty ¶
type BucketNotEmpty GenericError
BucketNotEmpty bucket is not empty.
func (BucketNotEmpty) Error ¶
func (e BucketNotEmpty) Error() string
type BucketNotFound ¶
type BucketNotFound GenericError
BucketNotFound bucket does not exist.
func (BucketNotFound) Error ¶
func (e BucketNotFound) Error() string
type BucketPolicyNotFound ¶
type BucketPolicyNotFound GenericError
BucketPolicyNotFound - no bucket policy found.
func (BucketPolicyNotFound) Error ¶
func (e BucketPolicyNotFound) Error() string
type CommonPrefix ¶
type CommonPrefix struct {
Prefix string
}
CommonPrefix container for prefix response in ListObjectsResponse
type CompleteMultipartUploadResponse ¶
type CompleteMultipartUploadResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CompleteMultipartUploadResult" json:"-"` Location string Bucket string Key string ETag string }
CompleteMultipartUploadResponse container for completed multipart upload response
type ConnBuf ¶
type ConnBuf struct {
// contains filtered or unexported fields
}
ConnBuf - contains network buffer to record data
type ConnMux ¶
ConnMux - implements a Read() which streams twice the firs bytes from the incoming connection, to help peeking protocol
func (*ConnMux) PeekProtocol ¶
PeekProtocol - reads the first bytes, then checks if it is similar to one of the default http methods
type CopyObjectResponse ¶
type CopyObjectResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CopyObjectResult" json:"-"` LastModified string // time string of format "2006-01-02T15:04:05.000Z" ETag string // md5sum of the copied object. }
CopyObjectResponse container returns ETag and LastModified of the successfully copied object
type DeleteError ¶
DeleteError structure.
type DeleteFileArgs ¶
type DeleteFileArgs struct { // Authentication token generated by Login. GenericArgs // Name of the volume. Vol string // Name of the path. Path string }
DeleteFileArgs represents delete file RPC arguments.
type DeleteObjectsRequest ¶
type DeleteObjectsRequest struct { // Element to enable quiet mode for the request Quiet bool // List of objects to be deleted Objects []ObjectIdentifier `xml:"Object"` }
DeleteObjectsRequest - xml carrying the object key names which needs to be deleted.
type DeleteObjectsResponse ¶
type DeleteObjectsResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ DeleteResult" json:"-"` // Collection of all deleted objects DeletedObjects []ObjectIdentifier `xml:"Deleted,omitempty"` // Collection of errors deleting certain objects. Errors []DeleteError `xml:"Error,omitempty"` }
DeleteObjectsResponse container for multiple object deletes.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error - error type containing cause and the stack trace.
type EventArgs ¶
type EventArgs struct { // For Auth GenericArgs // event being sent Event []NotificationEvent // client that it is meant for Arn string }
EventArgs - Arguments collection for Event RPC call
type EventName ¶
type EventName int
EventName is AWS S3 event type: http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
const ( // ObjectCreatedPut is s3:ObjectCreated:Put ObjectCreatedPut EventName = iota // ObjectCreatedPost is s3:ObjectCreated:Post ObjectCreatedPost // ObjectCreatedCopy is s3:ObjectCreated:Copy ObjectCreatedCopy // ObjectCreatedCompleteMultipartUpload is s3:ObjectCreated:CompleteMultipartUpload ObjectCreatedCompleteMultipartUpload // ObjectRemovedDelete is s3:ObjectRemoved:Delete ObjectRemovedDelete )
type FileInfo ¶
type FileInfo struct { // Name of the volume. Volume string // Name of the file. Name string // Date and time when the file was last modified. ModTime time.Time // Total file size. Size int64 // File mode bits. Mode os.FileMode // Hex encoded md5 checksum of the file. MD5Sum string }
FileInfo - represents file stat information.
type GenerateAuthReply ¶
type GenerateAuthReply struct { AccessKey string `json:"accessKey"` SecretKey string `json:"secretKey"` UIVersion string `json:"uiVersion"` }
GenerateAuthReply - reply for GenerateAuth
type GenericArgs ¶
type GenericArgs struct { Token string // Used to authenticate every RPC call. // Used to verify if the RPC call was issued between // the same Login() and disconnect event pair. Timestamp time.Time // Indicates if args should be sent to remote peers as well. Remote bool }
GenericArgs represents any generic RPC arguments.
func (*GenericArgs) SetTimestamp ¶
func (ga *GenericArgs) SetTimestamp(tstamp time.Time)
SetTimestamp - sets the timestamp to the supplied value.
func (*GenericArgs) SetToken ¶
func (ga *GenericArgs) SetToken(token string)
SetToken - sets the token to the supplied value.
type GenericError ¶
GenericError - generic object layer error.
type GenericVolArgs ¶
type GenericVolArgs struct { // Authentication token generated by Login. GenericArgs // Name of the volume. Vol string }
GenericVolArgs - generic volume args.
type GetAuthReply ¶
type GetAuthReply struct { AccessKey string `json:"accessKey"` SecretKey string `json:"secretKey"` UIVersion string `json:"uiVersion"` }
GetAuthReply - Reply current credentials.
type GetBucketPolicyArgs ¶
type GetBucketPolicyArgs struct { BucketName string `json:"bucketName"` Prefix string `json:"prefix"` }
GetBucketPolicyArgs - get bucket policy args.
type GetBucketPolicyRep ¶
type GetBucketPolicyRep struct { UIVersion string `json:"uiVersion"` Policy policy.BucketPolicy `json:"policy"` }
GetBucketPolicyRep - get bucket policy reply.
type HandlerFunc ¶
HandlerFunc - useful to chain different middleware http.Handler
type HealBucketArgs ¶
type HealBucketArgs struct { // Authentication token generated by Login. GenericArgs // Bucket to be healed. Bucket string }
HealBucketArgs - arguments for HealBucket RPC.
type HealListArgs ¶
type HealListArgs struct { // Authentication token generated by Login. GenericArgs Bucket string Prefix string Marker string Delimiter string MaxKeys int }
HealListArgs - argument for ListObjects RPC.
type HealListReply ¶
type HealListReply struct { IsTruncated bool NextMarker string Objects []ObjectInfo }
HealListReply - reply object by ListObjects RPC.
type HealObjectArgs ¶
type HealObjectArgs struct { // Authentication token generated by Login. GenericArgs // Name of the bucket where the object // needs to be healed. Bucket string // Name of the object to be healed. Objects []ObjectInfo }
HealObjectArgs - argument for HealObject RPC.
type HealObjectReply ¶
type HealObjectReply struct {
Results []string
}
HealObjectReply - reply by HealObject RPC.
type IncompleteBody ¶
type IncompleteBody GenericError
IncompleteBody You did not provide the number of bytes specified by the Content-Length HTTP header.
func (IncompleteBody) Error ¶
func (e IncompleteBody) Error() string
Return string an error formatted as the given text.
type InitActions ¶
type InitActions int
InitActions - a type synonym for enumerating initialization activities.
const ( // FormatDisks - see above table for disk states where it is applicable. FormatDisks InitActions = iota // WaitForHeal - Wait for disks to heal. WaitForHeal // WaitForQuorum - Wait for quorum number of disks to be online. WaitForQuorum // WaitForAll - Wait for all disks to be online. WaitForAll // WaitForFormatting - Wait for formatting to be triggered from the '1st' server in the cluster. WaitForFormatting // WaitForConfig - Wait for all servers to have the same config including (credentials, version and time). WaitForConfig // InitObjectLayer - Initialize object layer. InitObjectLayer // Abort initialization of object layer since there aren't enough good // copies of format.json to recover. Abort )
type InitiateMultipartUploadResponse ¶
type InitiateMultipartUploadResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ InitiateMultipartUploadResult" json:"-"` Bucket string Key string UploadID string `xml:"UploadId"` }
InitiateMultipartUploadResponse container for InitiateMultiPartUpload response, provides uploadID to start MultiPart upload
type InsufficientReadQuorum ¶
type InsufficientReadQuorum struct{}
InsufficientReadQuorum storage cannot satisfy quorum for read operation.
func (InsufficientReadQuorum) Error ¶
func (e InsufficientReadQuorum) Error() string
type InsufficientWriteQuorum ¶
type InsufficientWriteQuorum struct{}
InsufficientWriteQuorum storage cannot satisfy quorum for write operation.
func (InsufficientWriteQuorum) Error ¶
func (e InsufficientWriteQuorum) Error() string
type InvalidMarkerPrefixCombination ¶
type InvalidMarkerPrefixCombination struct {
Marker, Prefix string
}
InvalidMarkerPrefixCombination - invalid marker and prefix combination.
func (InvalidMarkerPrefixCombination) Error ¶
func (e InvalidMarkerPrefixCombination) Error() string
type InvalidPart ¶
type InvalidPart struct{}
InvalidPart One or more of the specified parts could not be found
func (InvalidPart) Error ¶
func (e InvalidPart) Error() string
type InvalidRange ¶
type InvalidRange struct {
// contains filtered or unexported fields
}
InvalidRange - invalid range typed error.
func (InvalidRange) Error ¶
func (e InvalidRange) Error() string
type InvalidUploadID ¶
type InvalidUploadID struct {
UploadID string
}
InvalidUploadID invalid upload id.
func (InvalidUploadID) Error ¶
func (e InvalidUploadID) Error() string
type InvalidUploadIDKeyCombination ¶
type InvalidUploadIDKeyCombination struct {
UploadIDMarker, KeyMarker string
}
InvalidUploadIDKeyCombination - invalid upload id and key marker combination.
func (InvalidUploadIDKeyCombination) Error ¶
func (e InvalidUploadIDKeyCombination) Error() string
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
JWT - jwt auth backend
func (*JWT) Authenticate ¶
Authenticate - authenticates incoming access key and secret key.
type ListAllBucketPoliciesArgs ¶
type ListAllBucketPoliciesArgs struct {
BucketName string `json:"bucketName"`
}
ListAllBucketPoliciesArgs - get all bucket policies.
type ListAllBucketPoliciesRep ¶
type ListAllBucketPoliciesRep struct { UIVersion string `json:"uiVersion"` Policies []bucketAccessPolicy `json:"policies"` }
ListAllBucketPoliciesRep - get all bucket policy reply.
type ListBucketsRep ¶
type ListBucketsRep struct { Buckets []WebBucketInfo `json:"buckets"` UIVersion string `json:"uiVersion"` }
ListBucketsRep - list buckets response
type ListBucketsResponse ¶
type ListBucketsResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListAllMyBucketsResult" json:"-"` Owner Owner // Container for one or more buckets. Buckets struct { Buckets []Bucket `xml:"Bucket"` } // Buckets are nested }
ListBucketsResponse - format for list buckets response
type ListDirArgs ¶
type ListDirArgs struct { // Authentication token generated by Login. GenericArgs // Name of the volume. Vol string // Name of the path. Path string }
ListDirArgs represents list contents RPC arguments.
type ListMultipartUploadsResponse ¶
type ListMultipartUploadsResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListMultipartUploadsResult" json:"-"` Bucket string KeyMarker string UploadIDMarker string `xml:"UploadIdMarker"` NextKeyMarker string NextUploadIDMarker string `xml:"NextUploadIdMarker"` Delimiter string Prefix string EncodingType string `xml:"EncodingType,omitempty"` MaxUploads int IsTruncated bool // List of pending uploads. Uploads []Upload `xml:"Upload"` // Delimed common prefixes. CommonPrefixes []CommonPrefix }
ListMultipartUploadsResponse - format for list multipart uploads response.
type ListMultipartsInfo ¶
type ListMultipartsInfo struct { // Together with upload-id-marker, this parameter specifies the multipart upload // after which listing should begin. KeyMarker string // Together with key-marker, specifies the multipart upload after which listing // should begin. If key-marker is not specified, the upload-id-marker parameter // is ignored. UploadIDMarker string // When a list is truncated, this element specifies the value that should be // used for the key-marker request parameter in a subsequent request. NextKeyMarker string // When a list is truncated, this element specifies the value that should be // used for the upload-id-marker request parameter in a subsequent request. NextUploadIDMarker string // Maximum number of multipart uploads that could have been included in the // response. MaxUploads int // Indicates whether the returned list of multipart uploads is truncated. A // value of true indicates that the list was truncated. The list can be truncated // if the number of multipart uploads exceeds the limit allowed or specified // by max uploads. IsTruncated bool // List of all pending uploads. Uploads []uploadMetadata // When a prefix is provided in the request, The result contains only keys // starting with the specified prefix. Prefix string // A character used to truncate the object prefixes. // NOTE: only supported delimiter is '/'. Delimiter string // CommonPrefixes contains all (if there are any) keys between Prefix and the // next occurrence of the string specified by delimiter. CommonPrefixes []string EncodingType string // Not supported yet. }
ListMultipartsInfo - represnets bucket resources for incomplete multipart uploads.
type ListObjectsArgs ¶
ListObjectsArgs - list object args.
type ListObjectsInfo ¶
type ListObjectsInfo struct { // Indicates whether the returned list objects response is truncated. A // value of true indicates that the list was truncated. The list can be truncated // if the number of objects exceeds the limit allowed or specified // by max keys. IsTruncated bool // When response is truncated (the IsTruncated element value in the response // is true), you can use the key name in this field as marker in the subsequent // request to get next set of objects. // // NOTE: This element is returned only if you have delimiter request parameter // specified. NextMarker string // List of objects info for this request. Objects []ObjectInfo // List of prefixes for this request. Prefixes []string }
ListObjectsInfo - container for list objects.
type ListObjectsRep ¶
type ListObjectsRep struct { Objects []WebObjectInfo `json:"objects"` UIVersion string `json:"uiVersion"` }
ListObjectsRep - list objects response.
type ListObjectsResponse ¶
type ListObjectsResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListBucketResult" json:"-"` Name string Prefix string Marker string // When response is truncated (the IsTruncated element value in the response // is true), you can use the key name in this field as marker in the subsequent // request to get next set of objects. Server lists objects in alphabetical // order Note: This element is returned only if you have delimiter request parameter // specified. If response does not include the NextMaker and it is truncated, // you can use the value of the last Key in the response as the marker in the // subsequent request to get the next set of object keys. NextMarker string `xml:"NextMarker,omitempty"` MaxKeys int Delimiter string // A flag that indicates whether or not ListObjects returned all of the results // that satisfied the search criteria. IsTruncated bool Contents []Object CommonPrefixes []CommonPrefix // Encoding type used to encode object keys in the response. EncodingType string `xml:"EncodingType,omitempty"` }
ListObjectsResponse - format for list objects response.
type ListObjectsV2Response ¶
type ListObjectsV2Response struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListBucketResult" json:"-"` Name string Prefix string StartAfter string `xml:"StartAfter,omitempty"` // When response is truncated (the IsTruncated element value in the response // is true), you can use the key name in this field as marker in the subsequent // request to get next set of objects. Server lists objects in alphabetical // order Note: This element is returned only if you have delimiter request parameter // specified. If response does not include the NextMaker and it is truncated, // you can use the value of the last Key in the response as the marker in the // subsequent request to get the next set of object keys. ContinuationToken string `xml:"ContinuationToken,omitempty"` NextContinuationToken string `xml:"NextContinuationToken,omitempty"` KeyCount int MaxKeys int Delimiter string // A flag that indicates whether or not ListObjects returned all of the results // that satisfied the search criteria. IsTruncated bool Contents []Object CommonPrefixes []CommonPrefix // Encoding type used to encode object keys in the response. EncodingType string `xml:"EncodingType,omitempty"` }
ListObjectsV2Response - format for list objects response.
type ListPartsInfo ¶
type ListPartsInfo struct { // Name of the bucket. Bucket string // Name of the object. Object string // Upload ID identifying the multipart upload whose parts are being listed. UploadID string // The class of storage used to store the object. StorageClass string // Part number after which listing begins. PartNumberMarker int // When a list is truncated, this element specifies the last part in the list, // as well as the value to use for the part-number-marker request parameter // in a subsequent request. NextPartNumberMarker int // Maximum number of parts that were allowed in the response. MaxParts int // Indicates whether the returned list of parts is truncated. IsTruncated bool // List of all parts. Parts []partInfo EncodingType string // Not supported yet. }
ListPartsInfo - represents list of all parts.
type ListPartsResponse ¶
type ListPartsResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListPartsResult" json:"-"` Bucket string Key string UploadID string `xml:"UploadId"` Initiator Initiator Owner Owner // The class of storage used to store the object. StorageClass string PartNumberMarker int NextPartNumberMarker int MaxParts int IsTruncated bool // List of parts. Parts []Part `xml:"Part"` }
ListPartsResponse - format for list parts response.
type ListVolsReply ¶
type ListVolsReply struct { // List of volumes stat information. Vols []VolInfo }
ListVolsReply represents list of vols RPC reply.
type ListenerMux ¶
ListenerMux - encapuslates the standard net.Listener to inspect the communication protocol upon network connection
type LocationResponse ¶
type LocationResponse struct { XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ LocationConstraint" json:"-"` Location string `xml:",chardata"` }
LocationResponse - format for location response.
type LockArgs ¶
type LockArgs struct { Name string Token string Timestamp time.Time Node string RPCPath string UID string }
LockArgs besides lock name, holds Token and Timestamp for session authentication and validation server restart.
func (*LockArgs) SetTimestamp ¶
SetTimestamp - sets the timestamp to the supplied value.
type LockClearArgs ¶
type LockClearArgs struct { GenericArgs Bucket string Object string }
LockClearArgs - arguments for LockClear handler
type LockInfoOpsIDNotFound ¶
type LockInfoOpsIDNotFound struct {
// contains filtered or unexported fields
}
LockInfoOpsIDNotFound - Returned when the lock state info exists, but the entry for given operation ID doesn't exist.
func (LockInfoOpsIDNotFound) Error ¶
func (l LockInfoOpsIDNotFound) Error() string
type LockInfoOriginNotFound ¶
type LockInfoOriginNotFound struct {
// contains filtered or unexported fields
}
LockInfoOriginNotFound - While changing the state of the lock info its important that the entry for lock at a given origin exists, if not `LockInfoOriginNotFound` is returned.
func (LockInfoOriginNotFound) Error ¶
func (l LockInfoOriginNotFound) Error() string
type LockInfoStateNotBlocked ¶
type LockInfoStateNotBlocked struct {
// contains filtered or unexported fields
}
LockInfoStateNotBlocked - When an attempt to change the state of the lock form `blocked` to `running` is done, its necessary that the state before the transsition is "blocked", otherwise LockInfoStateNotBlocked returned.
func (LockInfoStateNotBlocked) Error ¶
func (l LockInfoStateNotBlocked) Error() string
type LockInfoVolPathMssing ¶
type LockInfoVolPathMssing struct {
// contains filtered or unexported fields
}
LockInfoVolPathMssing - Error interface. Returned when the info the
func (LockInfoVolPathMssing) Error ¶
func (l LockInfoVolPathMssing) Error() string
type LoginArgs ¶
type LoginArgs struct { Username string `json:"username" form:"username"` Password string `json:"password" form:"password"` }
LoginArgs - login arguments.
type MakeBucketArgs ¶
type MakeBucketArgs struct {
BucketName string `json:"bucketName"`
}
MakeBucketArgs - make bucket args.
type MalformedUploadID ¶
type MalformedUploadID struct {
UploadID string
}
MalformedUploadID malformed upload id.
func (MalformedUploadID) Error ¶
func (e MalformedUploadID) Error() string
type NotImplemented ¶
type NotImplemented struct{}
NotImplemented If a feature is not implemented
func (NotImplemented) Error ¶
func (e NotImplemented) Error() string
type NotificationEvent ¶
type NotificationEvent struct { EventVersion string `json:"eventVersion"` EventSource string `json:"eventSource"` AwsRegion string `json:"awsRegion"` EventTime string `json:"eventTime"` EventName string `json:"eventName"` UserIdentity identity `json:"userIdentity"` RequestParameters map[string]string `json:"requestParameters"` ResponseElements map[string]string `json:"responseElements"` S3 eventMeta `json:"s3"` }
NotificationEvent represents an Amazon an S3 bucket notification event.
type Object ¶
type Object struct { Key string LastModified string // time string of format "2006-01-02T15:04:05.000Z" ETag string Size int64 // Owner of the object. Owner Owner // The class of storage used to store the object. StorageClass string }
Object container for object metadata
type ObjectExistsAsDirectory ¶
type ObjectExistsAsDirectory GenericError
ObjectExistsAsDirectory object already exists as a directory.
func (ObjectExistsAsDirectory) Error ¶
func (e ObjectExistsAsDirectory) Error() string
type ObjectIdentifier ¶
type ObjectIdentifier struct {
ObjectName string `xml:"Key"`
}
ObjectIdentifier carries key name for the object to delete.
type ObjectInfo ¶
type ObjectInfo struct { // Name of the bucket. Bucket string // Name of the object. Name string // Date and time when the object was last modified. ModTime time.Time // Total object size. Size int64 // IsDir indicates if the object is prefix. IsDir bool // Hex encoded md5 checksum of the object. MD5Sum string // A standard MIME type describing the format of the object. ContentType string // Specifies what content encodings have been applied to the object and thus // what decoding mechanisms must be applied to obtain the object referenced // by the Content-Type header field. ContentEncoding string // User-Defined metadata UserDefined map[string]string }
ObjectInfo - represents object metadata.
type ObjectLayer ¶
type ObjectLayer interface { // Storage operations. Shutdown() error StorageInfo() StorageInfo // Bucket operations. MakeBucket(bucket string) error GetBucketInfo(bucket string) (bucketInfo BucketInfo, err error) ListBuckets() (buckets []BucketInfo, err error) DeleteBucket(bucket string) error ListObjects(bucket, prefix, marker, delimiter string, maxKeys int) (result ListObjectsInfo, err error) // Object operations. GetObject(bucket, object string, startOffset int64, length int64, writer io.Writer) (err error) GetObjectInfo(bucket, object string) (objInfo ObjectInfo, err error) PutObject(bucket, object string, size int64, data io.Reader, metadata map[string]string, sha256sum string) (objInto ObjectInfo, err error) DeleteObject(bucket, object string) error // Multipart operations. ListMultipartUploads(bucket, prefix, keyMarker, uploadIDMarker, delimiter string, maxUploads int) (result ListMultipartsInfo, err error) NewMultipartUpload(bucket, object string, metadata map[string]string) (uploadID string, err error) PutObjectPart(bucket, object, uploadID string, partID int, size int64, data io.Reader, md5Hex string, sha256sum string) (md5 string, err error) ListObjectParts(bucket, object, uploadID string, partNumberMarker int, maxParts int) (result ListPartsInfo, err error) AbortMultipartUpload(bucket, object, uploadID string) error CompleteMultipartUpload(bucket, object, uploadID string, uploadedParts []completePart) (md5 string, err error) // Healing operations. HealBucket(bucket string) error HealObject(bucket, object string) error ListObjectsHeal(bucket, prefix, marker, delimiter string, maxKeys int) (ListObjectsInfo, error) }
ObjectLayer implements primitives for object API layer.
type ObjectNameInvalid ¶
type ObjectNameInvalid GenericError
ObjectNameInvalid - object name provided is invalid.
func (ObjectNameInvalid) Error ¶
func (e ObjectNameInvalid) Error() string
Return string an error formatted as the given text.
type ObjectNotFound ¶
type ObjectNotFound GenericError
ObjectNotFound object does not exist.
func (ObjectNotFound) Error ¶
func (e ObjectNotFound) Error() string
type ObjectTooLarge ¶
type ObjectTooLarge GenericError
ObjectTooLarge error returned when the size of the object > max object size allowed (5G) per request.
func (ObjectTooLarge) Error ¶
func (e ObjectTooLarge) Error() string
type ObjectTooSmall ¶
type ObjectTooSmall GenericError
ObjectTooSmall error returned when the size of the object < what is expected.
func (ObjectTooSmall) Error ¶
func (e ObjectTooSmall) Error() string
type OpsLockState ¶
type OpsLockState struct { OperationID string `json:"opsID"` // String containing operation ID. LockOrigin string `json:"lockOrigin"` // Operation type (GetObject, PutObject...) LockType lockType `json:"lockType"` // Lock type (RLock, WLock) Status statusType `json:"status"` // Status can be Running/Ready/Blocked. Since time.Time `json:"statusSince"` // Time when the lock was initially held. Duration time.Duration `json:"statusDuration"` // Duration since the lock was held. }
OpsLockState - structure to fill in state information of the lock. structure to fill in status information for each operation with given operation ID.
type PartTooSmall ¶
PartTooSmall - error if part size is less than 5MB.
func (PartTooSmall) Error ¶
func (e PartTooSmall) Error() string
type PostPolicyForm ¶
type PostPolicyForm struct { Expiration time.Time // Expiration date and time of the POST policy. Conditions struct { Policies map[string]struct { Operator string Value string } ContentLengthRange contentLengthRange } }
PostPolicyForm provides strict static type conversion and validation for Amazon S3's POST policy JSON string.
type PrefixAccessDenied ¶
type PrefixAccessDenied GenericError
PrefixAccessDenied object access is denied.
func (PrefixAccessDenied) Error ¶
func (e PrefixAccessDenied) Error() string
type PresignedGetArgs ¶
type PresignedGetArgs struct { // Host header required for signed headers. HostName string `json:"host"` // Bucket name of the object to be presigned. BucketName string `json:"bucket"` // Object name to be presigned. ObjectName string `json:"object"` }
PresignedGetArgs - presigned-get API args.
type PresignedGetRep ¶
type PresignedGetRep struct { UIVersion string `json:"uiVersion"` // Presigned URL of the object. URL string `json:"url"` }
PresignedGetRep - presigned-get URL reply.
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
RPCClient is a wrapper type for rpc.Client which provides reconnect on first failure.
func (*RPCClient) Call ¶
Call makes a RPC call to the remote endpoint using the default codec, namely encoding/gob.
type RPCLoginArgs ¶
RPCLoginArgs - login username and password for RPC.
type RPCLoginReply ¶
RPCLoginReply - login reply provides generated token to be used with subsequent requests.
type ReadAllArgs ¶
type ReadAllArgs struct { // Authentication token generated by Login. GenericArgs // Name of the volume. Vol string // Name of the path. Path string }
ReadAllArgs represents read all RPC arguments.
type ReadFileArgs ¶
type ReadFileArgs struct { // Authentication token generated by Login. GenericArgs // Name of the volume. Vol string // Name of the path. Path string // Starting offset to start reading into Buffer. Offset int64 // Data size read from the path at offset. Size int }
ReadFileArgs represents read file RPC arguments.
type RemoveObjectArgs ¶
type RemoveObjectArgs struct { TargetHost string `json:"targetHost"` BucketName string `json:"bucketName"` ObjectName string `json:"objectName"` }
RemoveObjectArgs - args to remove an object
type RenameFileArgs ¶
type RenameFileArgs struct { // Authentication token generated by Login. GenericArgs // Name of source volume. SrcVol string // Source path to be renamed. SrcPath string // Name of destination volume. DstVol string // Destination path of renamed file. DstPath string }
RenameFileArgs represents rename file RPC arguments.
type SHA256Mismatch ¶
type SHA256Mismatch struct{}
SHA256Mismatch - when content sha256 does not match with what was sent from client.
func (SHA256Mismatch) Error ¶
func (e SHA256Mismatch) Error() string
type ServerInfoRep ¶
type ServerInfoRep struct { MinioVersion string MinioMemory string MinioPlatform string MinioRuntime string MinioEnvVars []string UIVersion string `json:"uiVersion"` }
ServerInfoRep - server info reply.
type ServerMux ¶
type ServerMux struct { http.Server WaitGroup *sync.WaitGroup GracefulTimeout time.Duration // contains filtered or unexported fields }
ServerMux - the main mux server
func NewServerMux ¶
NewServerMux constructor to create a ServerMux
func (*ServerMux) ListenAndServe ¶
ListenAndServe - Same as the http.Server version
func (*ServerMux) ListenAndServeTLS ¶
ListenAndServeTLS - similar to the http.Server version. However, it has the ability to redirect http requests to the correct HTTPS url if the client mistakenly initiates a http connection over the https port
type ServiceArgs ¶
type ServiceArgs struct { // Authentication token generated by Login. GenericArgs // Represents the type of operation server is requested // to perform. Currently supported signals are // stop, restart and status. Signal serviceSignal }
ServiceArgs - argument for Service RPC.
type ServiceConfig ¶
type ServiceConfig struct { Events []string `xml:"Event" json:"Event"` Filter filterStruct `xml:"Filter" json:"Filter"` ID string `xml:"Id" json:"Id"` }
ServiceConfig - Common elements of service notification.
type ServiceReply ¶
type ServiceReply struct {
StorageInfo StorageInfo
}
ServiceReply - represents service operation success info.
type SetAuthArgs ¶
SetAuthArgs - argument for SetAuth
type SetAuthPeerArgs ¶
type SetAuthPeerArgs struct { // For Auth GenericArgs // New credentials that receiving peer should update to. Creds credential }
SetAuthPeerArgs - Arguments collection for SetAuth RPC call
type SetAuthReply ¶
type SetAuthReply struct { Token string `json:"token"` UIVersion string `json:"uiVersion"` PeerErrMsgs map[string]string `json:"peerErrMsgs"` }
SetAuthReply - reply for SetAuth
type SetBLPArgs ¶
type SetBLPArgs struct { // For Auth GenericArgs Bucket string // Listener config for a given bucket. LCfg []listenerConfig }
SetBLPArgs - Arguments collection to SetBucketListenerPeer RPC call
type SetBNPArgs ¶
type SetBNPArgs struct { // For Auth GenericArgs Bucket string // Notification config for the given bucket. NCfg *notificationConfig }
SetBNPArgs - Arguments collection to SetBucketNotificationPeer RPC call
type SetBPPArgs ¶
type SetBPPArgs struct { // For Auth GenericArgs Bucket string // Policy change (serialized to JSON) PChBytes []byte }
SetBPPArgs - Arguments collection for SetBucketPolicyPeer RPC call
type SetBucketPolicyArgs ¶
type SetBucketPolicyArgs struct { BucketName string `json:"bucketName"` Prefix string `json:"prefix"` Policy string `json:"policy"` }
SetBucketPolicyArgs - set bucket policy args.
type StatFileArgs ¶
type StatFileArgs struct { // Authentication token generated by Login. GenericArgs // Name of the volume. Vol string // Name of the path. Path string }
StatFileArgs represents stat file RPC arguments.
type StorageAPI ¶
type StorageAPI interface { // Stringified version of disk. String() string // Storage operations. DiskInfo() (info disk.Info, err error) // Volume operations. MakeVol(volume string) (err error) ListVols() (vols []VolInfo, err error) StatVol(volume string) (vol VolInfo, err error) DeleteVol(volume string) (err error) // File operations. ListDir(volume, dirPath string) ([]string, error) ReadFile(volume string, path string, offset int64, buf []byte) (n int64, err error) AppendFile(volume string, path string, buf []byte) (err error) RenameFile(srcVolume, srcPath, dstVolume, dstPath string) error StatFile(volume string, path string) (file FileInfo, err error) DeleteFile(volume string, path string) (err error) // Read all. ReadAll(volume string, path string) (buf []byte, err error) }
StorageAPI interface.
type StorageFull ¶
type StorageFull struct{}
StorageFull storage ran out of space.
func (StorageFull) Error ¶
func (e StorageFull) Error() string
type StorageInfo ¶
type StorageInfo struct { // Total disk space. Total int64 // Free available disk space. Free int64 // Backend type. Backend struct { // Represents various backend types, currently on FS and XL. Type BackendType // Following fields are only meaningful if BackendType is XL. OnlineDisks int // Online disks during server startup. OfflineDisks int // Offline disks during server startup. ReadQuorum int // Minimum disks required for successful read operations. WriteQuorum int // Minimum disks required for successful write operations. } }
StorageInfo - represents total capacity of underlying storage.
type StorageInfoRep ¶
type StorageInfoRep struct { StorageInfo StorageInfo `json:"storageInfo"` UIVersion string `json:"uiVersion"` }
StorageInfoRep - contains storage usage statistics.
type SystemLockState ¶
type SystemLockState struct { TotalLocks int64 `json:"totalLocks"` // Count of operations which are blocked waiting for the lock to // be released. TotalBlockedLocks int64 `json:"totalBlockedLocks"` // Count of operations which has successfully acquired the lock but // hasn't unlocked yet( operation in progress). TotalAcquiredLocks int64 `json:"totalAcquiredLocks"` LocksInfoPerObject []VolumeLockInfo `json:"locksInfoPerObject"` }
SystemLockState - Structure to fill the lock state of entire object storage. That is the total locks held, total calls blocked on locks and state of all the locks for the entire system.
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
Trie trie container
func (*Trie) PrefixMatch ¶
PrefixMatch - prefix match
type UnsupportedDelimiter ¶
type UnsupportedDelimiter struct {
Delimiter string
}
UnsupportedDelimiter - unsupported delimiter.
func (UnsupportedDelimiter) Error ¶
func (e UnsupportedDelimiter) Error() string
type Upload ¶
type Upload struct { Key string UploadID string `xml:"UploadId"` Initiator Initiator Owner Owner StorageClass string Initiated string }
Upload container for in progress multipart upload
type VolInfo ¶
type VolInfo struct { // Name of the volume. Name string // Date and time when the volume was created. Created time.Time }
VolInfo - represents volume stat information.
type VolumeLockInfo ¶
type VolumeLockInfo struct { Bucket string `json:"bucket"` Object string `json:"object"` // All locks blocked + running for given <volume,path> pair. LocksOnObject int64 `json:"locksOnObject"` // Count of operations which has successfully acquired the lock // but hasn't unlocked yet( operation in progress). LocksAcquiredOnObject int64 `json:"locksAcquiredOnObject"` // Count of operations which are blocked waiting for the lock // to be released. TotalBlockedLocks int64 `json:"locksBlockedOnObject"` // State information containing state of the locks for all operations // on given <volume,path> pair. LockDetailsOnObject []OpsLockState `json:"lockDetailsOnObject"` }
VolumeLockInfo - Structure to contain the lock state info for volume, path pair.
type WebBucketInfo ¶
type WebBucketInfo struct { // The name of the bucket. Name string `json:"name"` // Date the bucket was created. CreationDate time.Time `json:"creationDate"` }
WebBucketInfo container for list buckets metadata.
type WebGenericArgs ¶
type WebGenericArgs struct{}
WebGenericArgs - empty struct for calls that don't accept arguments for ex. ServerInfo, GenerateAuth
type WebGenericRep ¶
type WebGenericRep struct {
UIVersion string `json:"uiVersion"`
}
WebGenericRep - reply structure for calls for which reply is success/failure for ex. RemoveObject MakeBucket
type WebObjectInfo ¶
type WebObjectInfo struct { // Name of the object Key string `json:"name"` // Date and time the object was last modified. LastModified time.Time `json:"lastModified"` // Size in bytes of the object. Size int64 `json:"size"` // ContentType is mime type of the object. ContentType string `json:"contentType"` }
WebObjectInfo container for list objects metadata.
Source Files ¶
- access-key.go
- api-datatypes.go
- api-errors.go
- api-headers.go
- api-resources.go
- api-response-multipart.go
- api-response.go
- api-router.go
- auth-handler.go
- auth-rpc-client.go
- bucket-handlers-listobjects.go
- bucket-handlers.go
- bucket-notification-datatypes.go
- bucket-notification-handlers.go
- bucket-notification-utils.go
- bucket-policy-handlers.go
- bucket-policy-migrate.go
- bucket-policy-parser.go
- bucket-policy.go
- build-constants.go
- certs.go
- checkport.go
- commands.go
- config-migrate.go
- config-old.go
- config-v9.go
- config.go
- control-handlers.go
- control-heal-main.go
- control-lock-main.go
- control-main.go
- control-router.go
- control-service-main.go
- crossdomain-xml-handler.go
- damerau-levenshtein.go
- erasure-createfile.go
- erasure-healfile.go
- erasure-readfile.go
- erasure-utils.go
- errors.go
- event-notifier.go
- format-config-v1.go
- fs-createfile.go
- fs-v1-errors.go
- fs-v1-metadata.go
- fs-v1-multipart-common.go
- fs-v1-multipart.go
- fs-v1.go
- generic-handlers.go
- globals.go
- handler-utils.go
- httprange.go
- interface-ips.go
- lock-instrument.go
- lock-rpc-server-common.go
- lock-rpc-server.go
- lockinfo-handlers.go
- logger-console-hook.go
- logger-file-hook.go
- logger-syslog-hook_nix.go
- logger.go
- main.go
- namespace-lock.go
- net-rpc-client.go
- notifiers.go
- notify-amqp.go
- notify-elasticsearch.go
- notify-listener.go
- notify-nats.go
- notify-postgresql.go
- notify-redis.go
- object-common.go
- object-datatypes.go
- object-errors.go
- object-handlers-common.go
- object-handlers.go
- object-interface.go
- object-multipart-common.go
- object-utils.go
- posix-dirent-ino.go
- posix-errors.go
- posix-list-dir-nix.go
- posix-prepare-path.go
- posix-utils_common.go
- posix-utils_nix.go
- posix.go
- postpolicyform.go
- prepare-storage-msg.go
- prepare-storage.go
- rate-limit-handler.go
- retry.go
- routers.go
- runtime-checks.go
- s3-peer-client.go
- s3-peer-router.go
- s3-peer-rpc-handlers.go
- scan-bar.go
- server-main.go
- server-mux.go
- server-rlimit-nix.go
- server-startup-msg.go
- service.go
- signals.go
- signature-jwt.go
- signature-v2.go
- signature-v4-parser.go
- signature-v4-utils.go
- signature-v4.go
- storage-datatypes.go
- storage-errors.go
- storage-interface.go
- storage-rpc-client.go
- storage-rpc-server-datatypes.go
- storage-rpc-server.go
- strconv-bytes.go
- streaming-signature-v4.go
- tree-walk-pool.go
- tree-walk.go
- trie.go
- typed-errors.go
- update-main.go
- update-notifier.go
- utils.go
- version-main.go
- web-handlers.go
- web-peer-rpc.go
- web-router.go
- web-rpc-router.go
- xl-v1-bucket.go
- xl-v1-common.go
- xl-v1-errors.go
- xl-v1-healing-common.go
- xl-v1-healing.go
- xl-v1-list-objects-heal.go
- xl-v1-list-objects.go
- xl-v1-metadata.go
- xl-v1-multipart-common.go
- xl-v1-multipart.go
- xl-v1-object.go
- xl-v1-utils.go
- xl-v1.go