images

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EndPoint    string = os.Getenv("ENDPOINT")
	AccountID   string = os.Getenv("ACCOUNT_ID")
	AccessKeyID string = os.Getenv("ACCESS_KEY_ID")
)
View Source
var (
	Bucket = os.Getenv("BUCKET_NAME")
)

Functions

This section is empty.

Types

type R2Conns

type R2Conns struct {
	Crud r2.R2crud
	// contains filtered or unexported fields
}

func (*R2Conns) DeleteImage

func (r *R2Conns) DeleteImage(path string) error

func (*R2Conns) GetImages

func (r *R2Conns) GetImages(path string) ([]string, error)

func (*R2Conns) Init

func (r *R2Conns) Init()

func (*R2Conns) UploadImage

func (r *R2Conns) UploadImage(file *os.File, path string) error

Jump to

Keyboard shortcuts

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