Documentation ¶
Index ¶
- type Option
- func WithAccessKey(ak string) Option
- func WithEnable100Continue(enabled bool) Option
- func WithEnableContentMD5Validation(enabled bool) Option
- func WithEnableEndpointDiscovery(enabled bool) Option
- func WithEnableEndpointHostPrefix(enabled bool) Option
- func WithEnableParamValidation(enabled bool) Option
- func WithEnableSSL(enabled bool) Option
- func WithEndpoint(ep string) Option
- func WithForcePathStyle(enabled bool) Option
- func WithHTTPClient(client *http.Client) Option
- func WithMaxRetries(r int) Option
- func WithRegion(rg string) Option
- func WithSecretAccessKey(sak string) Option
- func WithToken(tk string) Option
- func WithUseARNRegion(enabled bool) Option
- func WithUseAccelerate(enabled bool) Option
- func WithUseDualStack(enabled bool) Option
- type Session
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 ¶
WithAccessKey returns the option to set the accessKey.
func WithEnable100Continue ¶ added in v0.0.41
WithEnable100Continue returns the option to set the enable100Continue.
func WithEnableContentMD5Validation ¶ added in v0.0.41
WithEnableContentMD5Validation returns the option to set the enableContentMD5Validation.
func WithEnableEndpointDiscovery ¶ added in v0.0.41
WithEnableEndpointDiscovery returns the option to set the enableEndpointDiscovery.
func WithEnableEndpointHostPrefix ¶ added in v0.0.41
WithEnableEndpointHostPrefix returns the option to set the enableEndpointHostPrefix.
func WithEnableParamValidation ¶ added in v0.0.41
WithEnableParamValidation returns the option to set the enableParamValidation.
func WithEnableSSL ¶ added in v0.0.41
WithEnableSSL returns the option to set the enableSSL.
func WithEndpoint ¶
WithEndpoint returns the option to set the endpoint.
func WithForcePathStyle ¶ added in v0.0.41
WithForcePathStyle returns the option to set the forcePathStyle.
func WithHTTPClient ¶ added in v0.0.41
WithHTTPClient returns the option to set the client.
func WithMaxRetries ¶ added in v0.0.41
WithMaxRetries returns the option to set the maxRetries.
func WithRegion ¶
WithRegion returns the option to set the region.
func WithSecretAccessKey ¶
WithSecretAccessKey returns the option to set the secretAccessKey.
func WithUseARNRegion ¶ added in v0.0.41
WithUseARNRegion returns the option to set the useARNRegion.
func WithUseAccelerate ¶ added in v0.0.41
WithUseAccelerate returns the option to set the useAccelerate.
func WithUseDualStack ¶ added in v0.0.41
WithUseDualStack returns the option to set the useDualStack.