minio

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*minio.Client
	Conf Config
}

func (*Client) Close

func (e *Client) Close() error

Close is a no-op; MinIO client requires no explicit cleanup.

func (*Client) Config

func (e *Client) Config() any

Config returns the embedded Conf as the configuration for injection.

func (*Client) Init

func (e *Client) Init() error

Init creates the MinIO client and stores it.

type Config

type Config struct {
	Endpoint        string
	AccessKeyID     string
	SecretAccessKey string
	Token           string
	SignerType      credentials.SignatureType
	minio.Options
}

func (*Config) AfterInject

func (c *Config) AfterInject()

AfterInject initializes default credentials when not explicitly set.

func (*Config) BeforeInject

func (c *Config) BeforeInject()

BeforeInject is a no-op satisfying the Config interface.

func (*Config) Build

func (c *Config) Build() (*minio.Client, error)

Build creates a MinIO client using the configured endpoint and credentials.

Jump to

Keyboard shortcuts

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