s3

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Init(ctx context.Context, ns string, opts ...Option) error
}

func New

func New(provider string, cfg *rest.Config) (Interface, error)

func NewMinio

func NewMinio(cfg *rest.Config) (Interface, error)

type Option

type Option interface {
	With(opts *Options)
}

func WithBucket

func WithBucket(bucket string) Option

func WithKey

func WithKey(ak, sk string) Option

type OptionFunc

type OptionFunc func(*Options)

func (OptionFunc) With

func (f OptionFunc) With(opts *Options)

type Options

type Options struct {
	Bucket    string
	AccessKey string
	SecretKey string
}

func DefaultMinioOptions

func DefaultMinioOptions() *Options

Jump to

Keyboard shortcuts

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