s3

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Region          string
	AccessKeyID     string
	SecretAccessKey string
	BucketName      string
	Debug           bool
}

Config represents the configuration

type Service

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

Service represents the s3 service

func New

func New(cfg *Config) *Service

New initializes s3 service with default config

func (*Service) GetPresignedURL

func (s *Service) GetPresignedURL(key string, expireTime int, presignedURL *string) error

GetPresignedURL to get object presigned || get object with signed URL

func (*Service) PreparePresignedURL

func (s *Service) PreparePresignedURL(key string, expireTime int, presignedURL *string) error

PreparePresignedURL to get object presign then return a PUT url

Jump to

Keyboard shortcuts

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