driver

package
v0.0.0-...-c5aacf0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 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 MinioClientAdmin

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

MinioClientAdmin is a wrapper for madmin.AdminClient

func NewMinioClientAdmin

func NewMinioClientAdmin(context context.Context, endpoint string, accessKeyID string, secretAccessKey string, secure bool) (*MinioClientAdmin, error)

func (*MinioClientAdmin) AddUserToInitialGroup

func (mca *MinioClientAdmin) AddUserToInitialGroup(user string) error

AddUserToInitialGroup - creates a user group in minio.

func (*MinioClientAdmin) CreateBucket

func (mca *MinioClientAdmin) CreateBucket(bucketName string, region string, ignoreExisting bool) error

CreateBucket - creates a bucket in minio.

func (*MinioClientAdmin) CreateInitialGroup

func (mca *MinioClientAdmin) CreateInitialGroup() error

CreateInitialGroup - creates a user group in minio.

func (*MinioClientAdmin) CreateInitialPolicy

func (mca *MinioClientAdmin) CreateInitialPolicy() error

CreateInitialPolicy - creates a canned policy.

func (*MinioClientAdmin) CreateUser

func (mca *MinioClientAdmin) CreateUser(accessKey string, secretKey string) error

CreateUser - creates a user in minio.

func (*MinioClientAdmin) DataUsageInfo

func (mca *MinioClientAdmin) DataUsageInfo(bucketName string) (*madmin.DataUsageInfo, error)

DataUsageInfo - returns the bucket info.

func (*MinioClientAdmin) DeleteBucket

func (mca *MinioClientAdmin) DeleteBucket(bucketName string) error

DeleteBucket - deletes a bucket in minio.

func (*MinioClientAdmin) DeleteUser

func (mca *MinioClientAdmin) DeleteUser(accessKey string) error

DeleteUser - deletes a user in minio.

func (*MinioClientAdmin) EnableVersioning

func (mca *MinioClientAdmin) EnableVersioning(bucketName string) error

EnableVersioning - enable a bucket versioning in minio.

func (*MinioClientAdmin) GetServerInfo

func (mca *MinioClientAdmin) GetServerInfo() (*madmin.InfoMessage, error)

GetServerInfo - returns the server info.

func (*MinioClientAdmin) SetBucketPolicy

func (mca *MinioClientAdmin) SetBucketPolicy(bucketName string, policy v1.BucketPolicy) error

SetBucketPolicy - sets a bucket policy in minio.

func (*MinioClientAdmin) SetBucketQuota

func (mca *MinioClientAdmin) SetBucketQuota(bucketName string, quota resource.Quantity) error

SetBucketQuota - sets a bucket quota in minio.

Jump to

Keyboard shortcuts

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