configuration

package
v0.0.0-...-6f463b7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func LoadS3

func LoadS3(config *S3) (filestorage.FileStorager, error)

func SetDefaultAWSConfig

func SetDefaultAWSConfig(fn DefaultAWSConfigFn)

Types

type DefaultAWSConfigFn

type DefaultAWSConfigFn func(ctx context.Context, optFns ...func(*awsConfig.LoadOptions) error) (cfg aws.Config, err error)

type S3

type S3 struct {
	Endpoint     string `toml:"endpoint,omitempty" json:"endpoint,omitempty"`
	Region       string `toml:"region,omitempty" json:"region,omitempty"`
	Key          string `toml:"key,omitempty" json:"key,omitempty"`
	Secret       string `toml:"secret,omitempty" json:"secret,omitempty"`
	UsePathStyle bool   `toml:"usePathStyle,omitempty" json:"usePathStyle,omitempty"`
}

Jump to

Keyboard shortcuts

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