Documentation ¶
Index ¶
- type Client
- func (c *Client) FPutObject(bucketName string, objectName string, filePath string, ...) (*UploadInfo, error)
- func (c *Client) GetObject(bucketName, objectName string) (*minioClient.Object, error)
- func (c *Client) GetObjectByte(bucketName, objectName string) ([]byte, error)
- func (c *Client) GetObjectRead(bucketName, objectName string) (io.ReadCloser, *minioClient.ObjectInfo, *http.Header, error)
- func (c *Client) MakeBucket(bucketName string, objectLocking ...bool) error
- func (c *Client) PutObject(bucketName string, objectName string, reader io.Reader, objectSize int64, ...) (*UploadInfo, error)
- func (c *Client) RemoveObject(bucketName, objectName string) error
- func (c *Client) StatObject(bucketName, objectName string) (*ObjectInfo, error)
- type ObjectInfo
- type Option
- type UploadInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FPutObject ¶
func (c *Client) FPutObject(bucketName string, objectName string, filePath string, userTags map[string]string) (*UploadInfo, error)
FPutObject Put Object
func (*Client) GetObject ¶
func (c *Client) GetObject(bucketName, objectName string) (*minioClient.Object, error)
GetObject Get Object
func (*Client) GetObjectByte ¶
GetObjectByte Get Object Byte
func (*Client) GetObjectRead ¶
func (c *Client) GetObjectRead(bucketName, objectName string) (io.ReadCloser, *minioClient.ObjectInfo, *http.Header, error)
GetObjectRead Get Object read
func (*Client) MakeBucket ¶
MakeBucket Make Bucket
func (*Client) PutObject ¶
func (c *Client) PutObject(bucketName string, objectName string, reader io.Reader, objectSize int64, userTags map[string]string) (*UploadInfo, error)
PutObject Put Object
func (*Client) RemoveObject ¶
RemoveObject Remove Object
func (*Client) StatObject ¶
func (c *Client) StatObject(bucketName, objectName string) (*ObjectInfo, error)
StatObject Stat Object
type ObjectInfo ¶
type ObjectInfo struct { // An ETag is optionally set to md5sum of an object. In case of multipart objects, // ETag is of the form MD5SUM-N where MD5SUM is md5sum of all individual md5sums of // each parts concatenated into one string. ETag string `json:"etag"` Key string `json:"name"` // Name of the object LastModified time.Time `json:"lastModified"` // Date and time the object was last modified. Size int64 `json:"size"` // Size in bytes of the object. ContentType string `json:"contentType"` // A standard MIME type describing the format of the object data. // x-amz-meta-* headers stripped "x-amz-meta-" prefix containing the first value. UserMetadata map[string]string `json:"userMetadata"` // x-amz-tagging values in their k/v values. UserTags map[string]string `json:"userTags"` // x-amz-tagging-count value UserTagCount int // The class of storage used to store the object. StorageClass string `json:"storageClass"` // Versioning related information IsLatest bool IsDeleteMarker bool VersionID string `xml:"VersionId"` }
ObjectInfo container for object metadata.
type Option ¶
type Option func(*Client)
Option for queue system
func WithAccess ¶
WithAccess set accessKeyID, secretAccessKey function
func WithEncryption ¶
WithEncryption set password function
Click to show internal directories.
Click to hide internal directories.