minio

package
v0.0.0-...-d36ff20 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

func (*Cluster) CreateBucket

func (p *Cluster) CreateBucket(ctx context.Context, name string, public bool, expiration_days int) (string, error)

func (*Cluster) PermanentUrl

func (p *Cluster) PermanentUrl(ctx context.Context, bucket string, object string, title string, content_type *string) (*url.URL, error)

func (*Cluster) PresignedUrl

func (p *Cluster) PresignedUrl(ctx context.Context, bucket string, object string, title string, content_type *string, ttl time.Duration) (*url.URL, error)

func (*Cluster) RemoveObject

func (p *Cluster) RemoveObject(ctx context.Context, bucket string, object string) error

type Config

type Config struct {
	Namespace string `toml:"namespace"`
	Nodes     []Node `toml:"nodes"`
}

func (*Config) Open

func (p *Config) Open() (*Cluster, error)

type Node

type Node struct {
	Endpoint  string `toml:"endpoint"`
	AccessKey string `toml:"access-key"`
	SecretKey string `toml:"secret-key"`
	Secure    bool   `toml:"secure"`
	Weight    uint8  `toml:"weight"`
}

Jump to

Keyboard shortcuts

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