Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketClient ¶
type BucketClient interface { BucketExists(bucketName string) (bool, error) MakeBucket(bucketName string, location string) (err error) SetBucketPolicy(bucketName, policy string) error }
BucketClient handles bucket operations on Minio
type Config ¶
type Config struct { PrivatePrefix string `envconfig:"default=private"` PublicPrefix string `envconfig:"default=public"` Region string `envconfig:"default=us-east-1"` }
Config stores configuration data for Handler
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles basic bucket operations
func NewHandler ¶
func NewHandler(client BucketClient, cfg Config) *Handler
New returns a new instance of Handler
func (*Handler) CreateIfDoesntExist ¶
CreateBucketIfDoesntExist makes a new bucket on remote server if it doesn't exist yet
func (*Handler) CreateSystemBuckets ¶
func (h *Handler) CreateSystemBuckets() (SystemBucketNames, error)
CreateSystemBuckets creates two system buckets: private and public ones
type SystemBucketNames ¶
SystemBucketNames stores names for system buckets
Click to show internal directories.
Click to hide internal directories.