factory

package
v0.0.0-...-a81463c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinioS3Client

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

func (*MinioS3Client) BucketExists

func (minioS3Client *MinioS3Client) BucketExists(name string) (bool, error)

func (*MinioS3Client) CreateBucket

func (minioS3Client *MinioS3Client) CreateBucket(name string) error

func (*MinioS3Client) CreatePath

func (minioS3Client *MinioS3Client) CreatePath(bucketname string, name string) error

func (*MinioS3Client) DeleteBucket

func (minioS3Client *MinioS3Client) DeleteBucket(name string) error

func (*MinioS3Client) GetQuota

func (minioS3Client *MinioS3Client) GetQuota(name string) (int64, error)

func (*MinioS3Client) PathExists

func (minioS3Client *MinioS3Client) PathExists(bucketname string, name string) error

func (*MinioS3Client) SetQuota

func (minioS3Client *MinioS3Client) SetQuota(name string, quota int64) error

type MockedS3Client

type MockedS3Client struct{}

func (*MockedS3Client) BucketExists

func (mockedS3Provider *MockedS3Client) BucketExists(name string) (bool, error)

func (*MockedS3Client) CreateBucket

func (mockedS3Provider *MockedS3Client) CreateBucket(name string) error

func (*MockedS3Client) CreatePath

func (mockedS3Provider *MockedS3Client) CreatePath(bucketname string, name string) error

func (*MockedS3Client) DeleteBucket

func (mockedS3Provider *MockedS3Client) DeleteBucket(name string) error

func (*MockedS3Client) GetQuota

func (mockedS3Provider *MockedS3Client) GetQuota(name string) (int64, error)

func (*MockedS3Client) PathExists

func (mockedS3Provider *MockedS3Client) PathExists(bucketname string, name string) error

func (*MockedS3Client) SetQuota

func (mockedS3Provider *MockedS3Client) SetQuota(name string, quota int64) error

type S3Client

type S3Client interface {
	BucketExists(name string) (bool, error)
	CreateBucket(name string) error
	DeleteBucket(name string) error
	SetQuota(name string, quota int64) error
	GetQuota(name string) (int64, error)
	CreatePath(bucketname string, name string) error
	PathExists(bucketname string, name string) error
}

func GetS3Client

func GetS3Client(s3Provider string, S3Config *S3Config) (S3Client, error)

type S3Config

type S3Config struct {
	S3Provider    string
	S3UrlEndpoint string
	Region        string
	AccessKey     string
	SecretKey     string
	UseSsl        bool
}

Jump to

Keyboard shortcuts

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