s3shared

package
v0.0.0-...-86a80c6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCrossRegion

func IsCrossRegion(req *request.Request, otherRegion string) bool

IsCrossRegion returns true if request signing region is not same as configured region

Types

type ConfigurationError

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

ConfigurationError is used to denote a client configuration error

func NewClientConfiguredForAccelerateError

func NewClientConfiguredForAccelerateError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewClientConfiguredForAccelerateError denotes client config error for unsupported S3 accelerate

func NewClientConfiguredForCrossRegionFIPSError

func NewClientConfiguredForCrossRegionFIPSError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewClientConfiguredForCrossRegionFIPSError denotes client config error for unsupported cross region FIPS request

func NewClientConfiguredForDualStackError

func NewClientConfiguredForDualStackError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewClientConfiguredForDualStackError denotes client config error for unsupported S3 Dual-stack

func NewClientConfiguredForFIPSError

func NewClientConfiguredForFIPSError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewClientConfiguredForFIPSError denotes client config error for unsupported cross region FIPS access

func NewClientPartitionMismatchError

func NewClientPartitionMismatchError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewClientPartitionMismatchError stub

func NewClientRegionMismatchError

func NewClientRegionMismatchError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewClientRegionMismatchError denotes cross region access error

func NewFIPSConfigurationError

func NewFIPSConfigurationError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewFIPSConfigurationError denotes a configuration error when a client or request is configured for FIPS

func NewFailedToResolveEndpointError

func NewFailedToResolveEndpointError(resource arn.Resource, clientPartitionID, clientRegion string, err error) ConfigurationError

NewFailedToResolveEndpointError denotes endpoint resolving error

func (ConfigurationError) Code

func (e ConfigurationError) Code() string

Code returns configuration error's error-code

func (ConfigurationError) Error

func (e ConfigurationError) Error() string

Error returns the Configuration error string

func (ConfigurationError) Message

func (e ConfigurationError) Message() string

Message returns the configuration error message

func (ConfigurationError) OrigErr

func (e ConfigurationError) OrigErr() error

OrigErr is the original error wrapped by Configuration Error

type InvalidARNError

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

InvalidARNError denotes the error for Invalid ARN

func NewInvalidARNError

func NewInvalidARNError(resource arn.Resource, err error) InvalidARNError

NewInvalidARNError denotes invalid arn error

func NewInvalidARNWithCustomEndpointError

func NewInvalidARNWithCustomEndpointError(resource arn.Resource, err error) InvalidARNError

NewInvalidARNWithCustomEndpointError ARN not supported for custom clients endpoints

func NewInvalidARNWithFIPSError deprecated

func NewInvalidARNWithFIPSError(resource arn.Resource, err error) InvalidARNError

NewInvalidARNWithFIPSError ARN not supported for FIPS region

Deprecated: FIPS will not appear in the ARN region component.

func NewInvalidARNWithUnsupportedPartitionError

func NewInvalidARNWithUnsupportedPartitionError(resource arn.Resource, err error) InvalidARNError

NewInvalidARNWithUnsupportedPartitionError ARN not supported for the target partition

func (InvalidARNError) Code

func (e InvalidARNError) Code() string

Code returns the invalid ARN error code

func (InvalidARNError) Error

func (e InvalidARNError) Error() string

Error returns the InvalidARNError

func (InvalidARNError) Message

func (e InvalidARNError) Message() string

Message returns the message for Invalid ARN error

func (InvalidARNError) OrigErr

func (e InvalidARNError) OrigErr() error

OrigErr is the original error wrapped by Invalid ARN Error

type ResourceRequest

type ResourceRequest struct {
	Resource arn.Resource
	Request  *request.Request
}

ResourceRequest represents the request and arn resource

func (ResourceRequest) ARN

func (r ResourceRequest) ARN() awsarn.ARN

ARN returns the resource ARN

func (ResourceRequest) AllowCrossRegion

func (r ResourceRequest) AllowCrossRegion() bool

AllowCrossRegion returns a bool value to denote if S3UseARNRegion flag is set

func (ResourceRequest) HasCustomEndpoint

func (r ResourceRequest) HasCustomEndpoint() bool

HasCustomEndpoint returns true if custom client endpoint is provided

func (ResourceRequest) IsCrossPartition

func (r ResourceRequest) IsCrossPartition() bool

IsCrossPartition returns true if client is configured for another partition, than the partition that resource ARN region resolves to.

func (ResourceRequest) IsCrossRegion

func (r ResourceRequest) IsCrossRegion() bool

IsCrossRegion returns true if ARN region is different than client configured region

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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