s3file

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "s3file"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable           bool          `env:"S3_FILE_ENABLE" default:"false" yaml:"enable"`
	AutoCreateBucket bool          `env:"S3_FILE_AUTO_CREATE_BUCKET" default:"true" yaml:"autoCreateBucket"`
	URL              string        `env:"S3_FILE_URL" yaml:"url"`
	AccessKeyID      string        `env:"S3_FILE_ACCESS_KEY_ID" yaml:"accessKeyId"`
	AccessKey        string        `env:"S3_FILE_ACCESS_KEY" yaml:"accessKey"`
	Timeout          time.Duration `env:"S3_FILE_TIMEOUT" default:"30s" yaml:"timeout"`
	UseSSL           bool          `env:"S3_FILE_USE_SSL" default:"true" yaml:"useSsl"`
}

type Plugin

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

func New

func New() *Plugin

func (*Plugin) Boot

func (p *Plugin) Boot(conf interface{}, dependencies ...interface{}) plugins.Plugin

func (*Plugin) Close

func (p *Plugin) Close() error

func (*Plugin) IsEnabled

func (p *Plugin) IsEnabled() bool

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Put

func (p *Plugin) Put(bucketName string, fileName string, data []byte) (string, error)

func (*Plugin) Start

func (p *Plugin) Start() error

Jump to

Keyboard shortcuts

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