minio

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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
}

Client represents a minio client.

func NewClient

func NewClient(c *Config) (*Client, error)

NewClient creates a new minio client.

func (*Client) DeleteObject

func (c *Client) DeleteObject(bucketName, objectName string) error

DeleteObject removes an object from a bucket.

func (*Client) GetObject

func (c *Client) GetObject(bucketName, objectName, filePath string, opts minio.GetObjectOptions) error

GetObject downloads contents of an object to a local file.

func (*Client) ListBuckets

func (c *Client) ListBuckets() ([]minio.BucketInfo, error)

ListBuckets list all buckets owned by this authenticated user.

func (*Client) ListObjects

func (c *Client) ListObjects(bucketName, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan minio.ObjectInfo

ListObjects lists all objects matching the objectPrefix from the specified bucket.

func (*Client) NewBucket

func (c *Client) NewBucket(name string, timezone string) error

NewBucket creates a new bucket.

func (*Client) PutImage

func (c *Client) PutImage(bucketName, objectName, filePath string) (int64, error)

PutImage creates an Image Object in a bucket.

func (*Client) PutObject

func (c *Client) PutObject(bucketName, objectName, filePath string, opts minio.PutObjectOptions) (int64, error)

PutObject creates an object in a bucket, with contents from file at filePath.

func (*Client) PutText

func (c *Client) PutText(bucketName, objectName, filePath string) (int64, error)

PutText creates an Text Object in a bucket.

func (*Client) PutZip

func (c *Client) PutZip(bucketName, objectName, filePath string) (int64, error)

PutZip creates an Zip Object in a bucket.

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config contains the necessary configuration about Client.

Jump to

Keyboard shortcuts

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