helper

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// minmal are liberr.MIN_AVAILABLE + get a hope free range 1000 + 10 for aws-config liberr.
	ErrorResponse liberr.CodeError = iota + liberr.MinPkgAws + 60
	ErrorConfigEmpty
	ErrorAwsEmpty
	ErrorAws
	ErrorBucketNotFound
	ErrorParamsEmpty
)
View Source
const (
	STATE_SUSPENDED = "Suspended"
	STATE_ENABLED   = "Enabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

func New

func New(ctx context.Context, bucket, region string) Helper

func (*Helper) Close

func (c *Helper) Close(req *http.Request, rsp *http.Response)

func (*Helper) GetBucketAws

func (c *Helper) GetBucketAws() *string

func (*Helper) GetBucketName

func (c *Helper) GetBucketName() string

func (*Helper) GetCloser

func (c *Helper) GetCloser(req *http.Request, rsp *http.Response) []io.Closer

func (*Helper) GetContext

func (cli *Helper) GetContext() context.Context

func (Helper) GetError

func (cli Helper) GetError(err ...error) error

func (*Helper) GetRegion added in v1.5.0

func (c *Helper) GetRegion() string

func (*Helper) GetRegionAws added in v1.5.0

func (c *Helper) GetRegionAws() *string

func (*Helper) SetBucketName

func (c *Helper) SetBucketName(bucket string)

Jump to

Keyboard shortcuts

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