minio

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config) (oss.Client, error)

Types

type Bucket

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

func (*Bucket) FileURL

func (b *Bucket) FileURL(ctx context.Context, objectName string) (string, error)

func (*Bucket) GetObject

func (b *Bucket) GetObject(ctx context.Context, objectName string) (oss.Object, error)

func (*Bucket) PreSignedGetObject

func (b *Bucket) PreSignedGetObject(ctx context.Context, objectName string, expires time.Duration) (u *url.URL, err error)

func (*Bucket) PreSignedPutObject

func (b *Bucket) PreSignedPutObject(ctx context.Context, objectName string, expires time.Duration) (u *url.URL, err error)

func (*Bucket) PutObject

func (b *Bucket) PutObject(ctx context.Context, objectName string, r io.Reader, objectSize int64) error

func (*Bucket) RemoveObject

func (b *Bucket) RemoveObject(ctx context.Context, objectName string) error

type Client

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

func (*Client) Bucket

func (c *Client) Bucket(ctx context.Context, bucket string) (oss.Bucket, error)

func (*Client) ListBuckets

func (c *Client) ListBuckets(ctx context.Context) ([]*oss.BucketInfo, error)

func (*Client) URL

func (c *Client) URL() string

type Config

type Config struct {
	Endpoint        string
	AccessKeyID     string
	SecretAccessKey string
	UseSSL          bool
	URL             string
}

Jump to

Keyboard shortcuts

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