miniodriver

package
v0.0.0-...-f2ab1bc Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinioClient

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

func AssertClient

func AssertClient(ctx context.Context) (*MinioClient, error)

func (*MinioClient) FPutObject

func (c *MinioClient) FPutObject(ctx context.Context, objectName string, filePath string, tags Tags) error

func (*MinioClient) GetPresignedURL

func (c *MinioClient) GetPresignedURL(ctx context.Context, objectName string) (*url.URL, error)

func (*MinioClient) GetTags

func (c *MinioClient) GetTags(ctx context.Context, objectName string) (Tags, error)

func (*MinioClient) List

func (c *MinioClient) List(ctx context.Context, prefix string) ([]minio.ObjectInfo, error)

func (*MinioClient) PutTags

func (c *MinioClient) PutTags(ctx context.Context, objectName string, newTags Tags) error

func (*MinioClient) RemoveObject

func (c *MinioClient) RemoveObject(ctx context.Context, objectName string) error

type Tags

type Tags map[string]string

Jump to

Keyboard shortcuts

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