session

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *sess) error

Option represents the functional option for session.

func WithAccessKey

func WithAccessKey(ak string) Option

WithAccessKey returns the option to set the accessKey.

func WithEnable100Continue added in v0.0.41

func WithEnable100Continue(enabled bool) Option

WithEnable100Continue returns the option to set the enable100Continue.

func WithEnableContentMD5Validation added in v0.0.41

func WithEnableContentMD5Validation(enabled bool) Option

WithEnableContentMD5Validation returns the option to set the enableContentMD5Validation.

func WithEnableEndpointDiscovery added in v0.0.41

func WithEnableEndpointDiscovery(enabled bool) Option

WithEnableEndpointDiscovery returns the option to set the enableEndpointDiscovery.

func WithEnableEndpointHostPrefix added in v0.0.41

func WithEnableEndpointHostPrefix(enabled bool) Option

WithEnableEndpointHostPrefix returns the option to set the enableEndpointHostPrefix.

func WithEnableParamValidation added in v0.0.41

func WithEnableParamValidation(enabled bool) Option

WithEnableParamValidation returns the option to set the enableParamValidation.

func WithEnableSSL added in v0.0.41

func WithEnableSSL(enabled bool) Option

WithEnableSSL returns the option to set the enableSSL.

func WithEndpoint

func WithEndpoint(ep string) Option

WithEndpoint returns the option to set the endpoint.

func WithForcePathStyle added in v0.0.41

func WithForcePathStyle(enabled bool) Option

WithForcePathStyle returns the option to set the forcePathStyle.

func WithHTTPClient added in v0.0.41

func WithHTTPClient(client *http.Client) Option

WithHTTPClient returns the option to set the client.

func WithMaxRetries added in v0.0.41

func WithMaxRetries(r int) Option

WithMaxRetries returns the option to set the maxRetries.

func WithRegion

func WithRegion(rg string) Option

WithRegion returns the option to set the region.

func WithSecretAccessKey

func WithSecretAccessKey(sak string) Option

WithSecretAccessKey returns the option to set the secretAccessKey.

func WithToken

func WithToken(tk string) Option

WithToken returns the option to set the token.

func WithUseARNRegion added in v0.0.41

func WithUseARNRegion(enabled bool) Option

WithUseARNRegion returns the option to set the useARNRegion.

func WithUseAccelerate added in v0.0.41

func WithUseAccelerate(enabled bool) Option

WithUseAccelerate returns the option to set the useAccelerate.

func WithUseDualStack added in v0.0.41

func WithUseDualStack(enabled bool) Option

WithUseDualStack returns the option to set the useDualStack.

type Session

type Session interface {
	Session() (*session.Session, error)
}

Session represents the interface to get AWS S3 session.

func New

func New(opts ...Option) Session

New returns the session implementation.

Jump to

Keyboard shortcuts

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