s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	Endpoint   string `yaml:"endpoint"`
	Access_Key string `yaml:"access_key"`
	Secret_Key string `yaml:"secret_key"`
}

func (S3) Config

func (S3) Config() any

func (S3) Upload

func (t S3) Upload(path string, name string, c any) error

func (S3) Validate

func (t S3) Validate() error

func (S3) ValidateConfig

func (S3) ValidateConfig(conf any) error

type S3Config

type S3Config struct {
	Bucket string `yaml:"bucket"`
	Prefix string `yaml:"prefix"`
}

Jump to

Keyboard shortcuts

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