s3x

package
v0.0.0-...-f15602e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package s3x contains utils to work with S3 storages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, config *S3Config) (*minio.Client, error)

NewClient create instance of s3 storage.

Types

type S3Config

type S3Config struct {
	Endpoint        string `envconfig:"ENDPOINT" required:"true"`
	AccessKeyID     string `envconfig:"ACCESS_KEY_ID" required:"true"`
	SecretAccessKey string `envconfig:"SECRET_ACCESS_KEY" required:"true"`
	UseSSL          bool   `envconfig:"USE_SSL" required:"true"`
	BucketName      string `envconfig:"BUCKET_NAME" required:"true"`
	Location        string `envconfig:"LOCATION" required:"true"`
}

S3Config is s3 storage configuration.

Jump to

Keyboard shortcuts

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