storage

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 39 Imported by: 2

Documentation

Overview

Package storage provides the API client, operations, and parameter types for the API.

Index

Constants

View Source
const ServiceAPIVersion = "2006-03-01"
View Source
const ServiceID = "storage"

Variables

This section is empty.

Functions

func GetHostIDMetadata

func GetHostIDMetadata(metadata middleware.Metadata) (string, bool)

GetHostIDMetadata retrieves the host id from middleware metadata returns host id as string along with a boolean indicating presence of hostId on middleware metadata.

func NewDefaultEndpointResolver

func NewDefaultEndpointResolver() *internalendpoints.Resolver

NewDefaultEndpointResolver constructs a new service endpoint resolver

func WithAPIOptions

func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)

WithAPIOptions returns a functional option for setting the Client's APIOptions option.

func WithEndpointResolver

func WithEndpointResolver(v EndpointResolver) func(*Options)

WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.

Types

type AbortMultipartUploadInput

type AbortMultipartUploadInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	// This member is required.
	UploadId *string
	// contains filtered or unexported fields
}

type AbortMultipartUploadOutput

type AbortMultipartUploadOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type Client

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

Client provides the API client to make operations call for the API.

func New

func New(options Options, optFns ...func(*Options)) *Client

New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.

func NewFromConfig

func NewFromConfig(cfg nifcloud.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a new client from the provided config.

func (*Client) AbortMultipartUpload

func (c *Client) AbortMultipartUpload(ctx context.Context, params *AbortMultipartUploadInput, optFns ...func(*Options)) (*AbortMultipartUploadOutput, error)

func (*Client) CompleteMultipartUpload

func (c *Client) CompleteMultipartUpload(ctx context.Context, params *CompleteMultipartUploadInput, optFns ...func(*Options)) (*CompleteMultipartUploadOutput, error)

func (*Client) DeleteBucket

func (c *Client) DeleteBucket(ctx context.Context, params *DeleteBucketInput, optFns ...func(*Options)) (*DeleteBucketOutput, error)

func (*Client) DeleteBucketCors

func (c *Client) DeleteBucketCors(ctx context.Context, params *DeleteBucketCorsInput, optFns ...func(*Options)) (*DeleteBucketCorsOutput, error)

func (*Client) DeleteBucketLifecycle

func (c *Client) DeleteBucketLifecycle(ctx context.Context, params *DeleteBucketLifecycleInput, optFns ...func(*Options)) (*DeleteBucketLifecycleOutput, error)

func (*Client) DeleteBucketPolicy

func (c *Client) DeleteBucketPolicy(ctx context.Context, params *DeleteBucketPolicyInput, optFns ...func(*Options)) (*DeleteBucketPolicyOutput, error)

func (*Client) DeleteBucketTagging

func (c *Client) DeleteBucketTagging(ctx context.Context, params *DeleteBucketTaggingInput, optFns ...func(*Options)) (*DeleteBucketTaggingOutput, error)

func (*Client) DeleteMultipleObjects

func (c *Client) DeleteMultipleObjects(ctx context.Context, params *DeleteMultipleObjectsInput, optFns ...func(*Options)) (*DeleteMultipleObjectsOutput, error)

func (*Client) DeleteObject

func (c *Client) DeleteObject(ctx context.Context, params *DeleteObjectInput, optFns ...func(*Options)) (*DeleteObjectOutput, error)

func (*Client) DeleteObjectTagging

func (c *Client) DeleteObjectTagging(ctx context.Context, params *DeleteObjectTaggingInput, optFns ...func(*Options)) (*DeleteObjectTaggingOutput, error)

func (*Client) GetBucket

func (c *Client) GetBucket(ctx context.Context, params *GetBucketInput, optFns ...func(*Options)) (*GetBucketOutput, error)

func (*Client) GetBucketACL

func (c *Client) GetBucketACL(ctx context.Context, params *GetBucketACLInput, optFns ...func(*Options)) (*GetBucketACLOutput, error)

func (*Client) GetBucketConsistency

func (c *Client) GetBucketConsistency(ctx context.Context, params *GetBucketConsistencyInput, optFns ...func(*Options)) (*GetBucketConsistencyOutput, error)

func (*Client) GetBucketCors

func (c *Client) GetBucketCors(ctx context.Context, params *GetBucketCorsInput, optFns ...func(*Options)) (*GetBucketCorsOutput, error)

func (*Client) GetBucketLifecycleConfiguration

func (c *Client) GetBucketLifecycleConfiguration(ctx context.Context, params *GetBucketLifecycleConfigurationInput, optFns ...func(*Options)) (*GetBucketLifecycleConfigurationOutput, error)

func (*Client) GetBucketObjectVersions

func (c *Client) GetBucketObjectVersions(ctx context.Context, params *GetBucketObjectVersionsInput, optFns ...func(*Options)) (*GetBucketObjectVersionsOutput, error)

func (*Client) GetBucketPolicy

func (c *Client) GetBucketPolicy(ctx context.Context, params *GetBucketPolicyInput, optFns ...func(*Options)) (*GetBucketPolicyOutput, error)

func (*Client) GetBucketTagging

func (c *Client) GetBucketTagging(ctx context.Context, params *GetBucketTaggingInput, optFns ...func(*Options)) (*GetBucketTaggingOutput, error)

func (*Client) GetBucketVersion2

func (c *Client) GetBucketVersion2(ctx context.Context, params *GetBucketVersion2Input, optFns ...func(*Options)) (*GetBucketVersion2Output, error)

func (*Client) GetBucketVersioning

func (c *Client) GetBucketVersioning(ctx context.Context, params *GetBucketVersioningInput, optFns ...func(*Options)) (*GetBucketVersioningOutput, error)

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, params *GetObjectInput, optFns ...func(*Options)) (*GetObjectOutput, error)

func (*Client) GetObjectACL

func (c *Client) GetObjectACL(ctx context.Context, params *GetObjectACLInput, optFns ...func(*Options)) (*GetObjectACLOutput, error)

func (*Client) GetObjectTagging

func (c *Client) GetObjectTagging(ctx context.Context, params *GetObjectTaggingInput, optFns ...func(*Options)) (*GetObjectTaggingOutput, error)

func (*Client) GetService

func (c *Client) GetService(ctx context.Context, params *GetServiceInput, optFns ...func(*Options)) (*GetServiceOutput, error)

func (*Client) HeadBucket

func (c *Client) HeadBucket(ctx context.Context, params *HeadBucketInput, optFns ...func(*Options)) (*HeadBucketOutput, error)

func (*Client) HeadObject

func (c *Client) HeadObject(ctx context.Context, params *HeadObjectInput, optFns ...func(*Options)) (*HeadObjectOutput, error)

func (*Client) InitiateMultipartUpload

func (c *Client) InitiateMultipartUpload(ctx context.Context, params *InitiateMultipartUploadInput, optFns ...func(*Options)) (*InitiateMultipartUploadOutput, error)

func (*Client) ListMultipartUploads

func (c *Client) ListMultipartUploads(ctx context.Context, params *ListMultipartUploadsInput, optFns ...func(*Options)) (*ListMultipartUploadsOutput, error)

func (*Client) ListParts

func (c *Client) ListParts(ctx context.Context, params *ListPartsInput, optFns ...func(*Options)) (*ListPartsOutput, error)

func (*Client) PutBucket

func (c *Client) PutBucket(ctx context.Context, params *PutBucketInput, optFns ...func(*Options)) (*PutBucketOutput, error)

func (*Client) PutBucketConsistency

func (c *Client) PutBucketConsistency(ctx context.Context, params *PutBucketConsistencyInput, optFns ...func(*Options)) (*PutBucketConsistencyOutput, error)

func (*Client) PutBucketCors

func (c *Client) PutBucketCors(ctx context.Context, params *PutBucketCorsInput, optFns ...func(*Options)) (*PutBucketCorsOutput, error)

func (*Client) PutBucketLifecycleConfiguration

func (c *Client) PutBucketLifecycleConfiguration(ctx context.Context, params *PutBucketLifecycleConfigurationInput, optFns ...func(*Options)) (*PutBucketLifecycleConfigurationOutput, error)

func (*Client) PutBucketPolicy

func (c *Client) PutBucketPolicy(ctx context.Context, params *PutBucketPolicyInput, optFns ...func(*Options)) (*PutBucketPolicyOutput, error)

func (*Client) PutBucketTagging

func (c *Client) PutBucketTagging(ctx context.Context, params *PutBucketTaggingInput, optFns ...func(*Options)) (*PutBucketTaggingOutput, error)

func (*Client) PutBucketVersioning

func (c *Client) PutBucketVersioning(ctx context.Context, params *PutBucketVersioningInput, optFns ...func(*Options)) (*PutBucketVersioningOutput, error)

func (*Client) PutObject

func (c *Client) PutObject(ctx context.Context, params *PutObjectInput, optFns ...func(*Options)) (*PutObjectOutput, error)

func (*Client) PutObjectCopy

func (c *Client) PutObjectCopy(ctx context.Context, params *PutObjectCopyInput, optFns ...func(*Options)) (*PutObjectCopyOutput, error)

func (*Client) PutObjectTagging

func (c *Client) PutObjectTagging(ctx context.Context, params *PutObjectTaggingInput, optFns ...func(*Options)) (*PutObjectTaggingOutput, error)

func (*Client) UploadPart

func (c *Client) UploadPart(ctx context.Context, params *UploadPartInput, optFns ...func(*Options)) (*UploadPartOutput, error)

func (*Client) UploadPartCopy

func (c *Client) UploadPartCopy(ctx context.Context, params *UploadPartCopyInput, optFns ...func(*Options)) (*UploadPartCopyOutput, error)

type CompleteMultipartUploadInput

type CompleteMultipartUploadInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	CompleteMultipartUpload *types.RequestCompleteMultipartUpload

	// This member is required.
	Object *string

	// This member is required.
	UploadId *string
	// contains filtered or unexported fields
}

type CompleteMultipartUploadOutput

type CompleteMultipartUploadOutput struct {
	Bucket *string

	ContentType *string

	ETag *string

	Key *string

	Location *string

	XAmzExpiration *string

	XAmzServerSideEncryption *string

	XAmzServerSideEncryptionAwsKmsKeyId *string

	XAmzServerSideEncryptionCustomerAlgorithm *string

	XAmzVersionId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteBucketCorsInput

type DeleteBucketCorsInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type DeleteBucketCorsOutput

type DeleteBucketCorsOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteBucketInput

type DeleteBucketInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type DeleteBucketLifecycleInput

type DeleteBucketLifecycleInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type DeleteBucketLifecycleOutput

type DeleteBucketLifecycleOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteBucketOutput

type DeleteBucketOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteBucketPolicyInput

type DeleteBucketPolicyInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type DeleteBucketPolicyOutput

type DeleteBucketPolicyOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteBucketTaggingInput

type DeleteBucketTaggingInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type DeleteBucketTaggingOutput

type DeleteBucketTaggingOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteMultipleObjectsInput

type DeleteMultipleObjectsInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	ContentMd5 *string

	// This member is required.
	Delete *types.RequestDelete
	// contains filtered or unexported fields
}

type DeleteMultipleObjectsOutput

type DeleteMultipleObjectsOutput struct {
	ContentType *string

	Deleted []types.Deleted

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteObjectInput

type DeleteObjectInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	VersionId *string
	// contains filtered or unexported fields
}

type DeleteObjectOutput

type DeleteObjectOutput struct {
	XAmzVersionId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteObjectTaggingInput

type DeleteObjectTaggingInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	VersionId *string
	// contains filtered or unexported fields
}

type DeleteObjectTaggingOutput

type DeleteObjectTaggingOutput struct {
	XAmzVersionId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type EndpointParameters added in v1.22.1

type EndpointParameters struct {
}

EndpointParameters provides the parameters that influence how endpoints are resolved.

type EndpointResolver

type EndpointResolver interface {
	ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}

EndpointResolver interface for resolving service endpoints.

func EndpointResolverFromURL

func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver

EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.

type EndpointResolverFunc

type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)

EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.

func (EndpointResolverFunc) ResolveEndpoint

func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)

type EndpointResolverOptions

type EndpointResolverOptions = internalendpoints.Options

EndpointResolverOptions is the service endpoint resolver options

type EndpointResolverV2 added in v1.22.1

type EndpointResolverV2 interface {
	// ResolveEndpoint attempts to resolve the endpoint with the provided options,
	// returning the endpoint if found. Otherwise an error is returned.
	ResolveEndpoint(ctx context.Context, params EndpointParameters) (
		smithyendpoints.Endpoint, error,
	)
}

EndpointResolverV2 provides the interface for resolving service endpoints.

func NewDefaultEndpointResolverV2 added in v1.22.1

func NewDefaultEndpointResolverV2() EndpointResolverV2

type GetBucketACLInput

type GetBucketACLInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type GetBucketACLOutput

type GetBucketACLOutput struct {
	AccessControlList []types.AccessControlListOfGetBucketACL

	ContentType *string

	Owner *types.Owner

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketConsistencyInput

type GetBucketConsistencyInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type GetBucketConsistencyOutput

type GetBucketConsistencyOutput struct {
	Consistency *string

	ContentType *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketCorsInput

type GetBucketCorsInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type GetBucketCorsOutput

type GetBucketCorsOutput struct {
	CORSRule []types.CORSRule

	ContentType *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketInput

type GetBucketInput struct {

	// This member is required.
	Bucket *string

	Delimiter *string

	EncodingType *string

	Marker *string

	MaxKeys *string

	Prefix *string
	// contains filtered or unexported fields
}

type GetBucketLifecycleConfigurationInput

type GetBucketLifecycleConfigurationInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type GetBucketLifecycleConfigurationOutput

type GetBucketLifecycleConfigurationOutput struct {
	Rule *types.Rule

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketObjectVersionsInput

type GetBucketObjectVersionsInput struct {

	// This member is required.
	Bucket *string

	Delimiter *string

	EncodingType *string

	KeyMarker *string

	MaxKeys *string

	Prefix *string

	VersionIdMarker *string
	// contains filtered or unexported fields
}

type GetBucketObjectVersionsOutput

type GetBucketObjectVersionsOutput struct {
	ContentType *string

	IsTruncated *bool

	KeyMarker *string

	MaxKeys *string

	Name *string

	Prefix *string

	Version []types.Version

	VersionIdMarker *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketOutput

type GetBucketOutput struct {
	CommonPrefixes *string

	ContentType *string

	Contents []types.Contents

	Delimiter *string

	EncodingType *string

	IsTruncated *bool

	Marker *string

	MaxKeys *string

	Name *string

	NextMarker *string

	Prefix *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketPolicyInput

type GetBucketPolicyInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type GetBucketPolicyOutput

type GetBucketPolicyOutput struct {
	ContentType *string

	Policy *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketTaggingInput

type GetBucketTaggingInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type GetBucketTaggingOutput

type GetBucketTaggingOutput struct {
	ContentType *string

	TagSet []types.TagSetOfGetBucketTagging

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketVersion2Input

type GetBucketVersion2Input struct {

	// This member is required.
	Bucket *string

	// This member is required.
	ListType *string

	ContinuationToken *string

	Delimiter *string

	EncodingType *string

	FetchOwner *string

	Marker *string

	MaxKeys *string

	Prefix *string

	StartAfter *string
	// contains filtered or unexported fields
}

type GetBucketVersion2Output

type GetBucketVersion2Output struct {
	CommonPrefixes *string

	ContentType *string

	Contents []types.Contents

	ContinuationToken *string

	Delimiter *string

	EncodingType *string

	IsTruncated *bool

	KeyCount *string

	MaxKeys *string

	Name *string

	NextContinuationToken *string

	Prefix *string

	StartAfter *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetBucketVersioningInput

type GetBucketVersioningInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type GetBucketVersioningOutput

type GetBucketVersioningOutput struct {
	ContentType *string

	Status *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetObjectACLInput

type GetObjectACLInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	VersionId *string
	// contains filtered or unexported fields
}

type GetObjectACLOutput

type GetObjectACLOutput struct {
	AccessControlList *types.AccessControlList

	ContentType *string

	Owner *types.Owner

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetObjectInput

type GetObjectInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	PartNumber *string

	Range *string

	ResponseContentDisposition *string

	ResponseContentEncoding *string

	ResponseContentType *string

	VersionId *string

	XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfGetObjectRequest

	XAmzServerSideEncryptionCustomerKey *string

	XAmzServerSideEncryptionCustomerKeyMd5 *string
	// contains filtered or unexported fields
}

type GetObjectOutput

type GetObjectOutput struct {
	AcceptRanges *string

	Body []byte

	ContentRange *string

	ContentType *string

	ETag *string

	LastModified *string

	XAmzExpiration *string

	XAmzMpPartsCount *string

	XAmzServerSideEncryption *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetObjectTaggingInput

type GetObjectTaggingInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	VersionId *string
	// contains filtered or unexported fields
}

type GetObjectTaggingOutput

type GetObjectTaggingOutput struct {
	ContentType *string

	TagSet *types.TagSet

	XAmzVersionId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetServiceInput

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

type GetServiceOutput

type GetServiceOutput struct {
	Buckets []types.Buckets

	Owner *types.Owner

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type HTTPClient

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

type HTTPSignerV4

type HTTPSignerV4 interface {
	SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error
}

type HeadBucketInput

type HeadBucketInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type HeadBucketOutput

type HeadBucketOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type HeadObjectInput

type HeadObjectInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	ConsistencyControl *string

	PartNumber *string

	VersionId *string

	XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfHeadObjectRequest

	XAmzServerSideEncryptionCustomerKey *string

	XAmzServerSideEncryptionCustomerKeyMd5 *string
	// contains filtered or unexported fields
}

type HeadObjectOutput

type HeadObjectOutput struct {
	AcceptRanges *string

	ContentType *string

	ETag *string

	LastModified *string

	XAmzExpiration *string

	XAmzMpPartsCount *string

	XAmzServerSideEncryption *string

	XAmzVersionId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type InitiateMultipartUploadInput

type InitiateMultipartUploadInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	ContentDisposition *string

	ContentEncoding *string

	ContentType *string

	XAmzMeta *string

	XAmzServerSideEncryption *string

	XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfInitiateMultipartUploadRequest

	XAmzServerSideEncryptionCustomerKey *string

	XAmzServerSideEncryptionCustomerKeyMd5 *string

	XAmzStorageClass types.XAmzStorageClassOfInitiateMultipartUploadRequest

	XAmzTagging types.XAmzTaggingOfInitiateMultipartUploadRequest
	// contains filtered or unexported fields
}

type InitiateMultipartUploadOutput

type InitiateMultipartUploadOutput struct {
	Bucket *string

	ContentType *string

	Key *string

	UploadId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type ListMultipartUploadsInput

type ListMultipartUploadsInput struct {

	// This member is required.
	Bucket *string

	EncodingType *string

	KeyMarker *string

	MaxUploads *int32

	Prefix *string

	UploadIdMarker *string
	// contains filtered or unexported fields
}

type ListMultipartUploadsOutput

type ListMultipartUploadsOutput struct {
	Bucket *string

	ContentType *string

	IsTruncated *bool

	KeyMarker *string

	MaxUploads *int32

	NextKeyMarker *string

	NextUploadIdMarker *string

	Upload []types.Upload

	UploadIdMarker *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type ListPartsInput

type ListPartsInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	// This member is required.
	UploadId *string

	EncodingType *string

	MaxParts *string

	PartNumberMarker *string
	// contains filtered or unexported fields
}

type ListPartsOutput

type ListPartsOutput struct {
	Bucket *string

	ContentType *string

	EncodingType *string

	Initiator *types.Initiator

	IsTruncated *bool

	Key *string

	MaxParts *int32

	NextPartNumberMarker *int32

	Owner *types.Owner

	Part []types.Part

	PartNumberMarker *int32

	StorageClass *string

	UploadId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type Options

type Options struct {
	// Set of options to modify how an operation is invoked. These apply to all
	// operations invoked for this client. Use functional options on operation call to
	// modify this list for per operation behavior.
	APIOptions []func(*middleware.Stack) error

	// This endpoint will be given as input to an EndpointResolverV2. It is used for
	// providing a custom base endpoint that is subject to modifications by the
	// processing EndpointResolverV2.
	BaseEndpoint *string

	// Configures the events that will be sent to the configured logger.
	ClientLogMode aws.ClientLogMode

	// The credentials object to use when signing requests.
	Credentials aws.CredentialsProvider

	// The configuration DefaultsMode that the SDK should use when constructing the
	// clients initial default settings.
	DefaultsMode aws.DefaultsMode

	// Allows you to disable S3 Multi-Region access points feature.
	DisableMultiRegionAccessPoints bool

	// The endpoint options to be used when attempting to resolve an endpoint.
	EndpointOptions EndpointResolverOptions

	// The service endpoint resolver.
	EndpointResolver EndpointResolver

	// Signature Version 4 (SigV4) Signer
	HTTPSignerV4 HTTPSignerV4

	// The logger writer interface to write logging messages to.
	Logger logging.Logger

	// The region to send requests to. (Required)
	Region string

	// RetryMaxAttempts specifies the maximum number attempts an API client will call
	// an operation that fails with a retryable error. A value of 0 is ignored, and
	// will not be used to configure the API client created default retryer, or modify
	// per operation call's retry max attempts. When creating a new API Clients this
	// member will only be used if the Retryer Options member is nil. This value will
	// be ignored if Retryer is not nil. If specified in an operation call's functional
	// options with a value that is different than the constructed client's Options,
	// the Client's Retryer will be wrapped to use the operation's specific
	// RetryMaxAttempts value.
	RetryMaxAttempts int

	// RetryMode specifies the retry mode the API client will be created with, if
	// Retryer option is not also specified. When creating a new API Clients this
	// member will only be used if the Retryer Options member is nil. This value will
	// be ignored if Retryer is not nil. Currently does not support per operation call
	// overrides, may in the future.
	RetryMode aws.RetryMode

	// Retryer guides how HTTP requests should be retried in case of recoverable
	// failures. When nil the API client will use a default retryer. The kind of
	// default retry created by the API client can be changed with the RetryMode
	// option.
	Retryer aws.Retryer

	// The RuntimeEnvironment configuration, only populated if the DefaultsMode is set
	// to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You
	// should not populate this structure programmatically, or rely on the values here
	// within your applications.
	RuntimeEnvironment aws.RuntimeEnvironment

	// Allows you to enable arn region support for the service.
	UseARNRegion bool

	// Allows you to enable S3 Accelerate feature. All operations compatible with S3
	// Accelerate will use the accelerate endpoint for requests. Requests not
	// compatible will fall back to normal S3 requests. The bucket must be enabled for
	// accelerate to be used with S3 client with accelerate enabled. If the bucket is
	// not enabled for accelerate an error will be returned. The bucket name must be
	// DNS compatible to work with accelerate.
	UseAccelerate bool

	// Allows you to enable dual-stack endpoint support for the service.
	//
	// Deprecated: Set dual-stack by setting UseDualStackEndpoint on
	// EndpointResolverOptions. When EndpointResolverOptions' UseDualStackEndpoint
	// field is set it overrides this field value.
	UseDualstack bool

	// Allows you to enable the client to use path-style addressing, i.e.,
	// https://s3.amazonaws.com/BUCKET/KEY . By default, the S3 client will use virtual
	// hosted bucket addressing when possible( https://BUCKET.s3.amazonaws.com/KEY ).
	UsePathStyle bool

	// The HTTP client to invoke API calls with. Defaults to client's default HTTP
	// implementation if nil.
	HTTPClient HTTPClient
	// contains filtered or unexported fields
}

func (Options) Copy

func (o Options) Copy() Options

Copy creates a clone where the APIOptions list is deep copied.

type PutBucketConsistencyInput

type PutBucketConsistencyInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	XNtapSgConsistency types.XNtapSgConsistencyOfPutBucketConsistencyRequest
	// contains filtered or unexported fields
}

type PutBucketConsistencyOutput

type PutBucketConsistencyOutput struct {
	ComtentType *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutBucketCorsInput

type PutBucketCorsInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	CORSConfiguration *types.RequestCORSConfiguration
	// contains filtered or unexported fields
}

type PutBucketCorsOutput

type PutBucketCorsOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutBucketInput

type PutBucketInput struct {

	// This member is required.
	Bucket *string
	// contains filtered or unexported fields
}

type PutBucketLifecycleConfigurationInput

type PutBucketLifecycleConfigurationInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	LifecycleConfiguration *types.RequestLifecycleConfiguration
	// contains filtered or unexported fields
}

type PutBucketLifecycleConfigurationOutput

type PutBucketLifecycleConfigurationOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutBucketOutput

type PutBucketOutput struct {
	Location *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutBucketPolicyInput

type PutBucketPolicyInput struct {

	// This member is required.
	Bucket *string

	ContentMd5 *string

	Policy *string
	// contains filtered or unexported fields
}

type PutBucketPolicyOutput

type PutBucketPolicyOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutBucketTaggingInput

type PutBucketTaggingInput struct {

	// This member is required.
	Bucket *string

	ContentMd5 *string

	Tagging *types.RequestTaggingOfPutBucketTagging
	// contains filtered or unexported fields
}

type PutBucketTaggingOutput

type PutBucketTaggingOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutBucketVersioningInput

type PutBucketVersioningInput struct {

	// This member is required.
	Bucket *string

	ContentMd5 *string

	VersioningConfiguration *types.RequestVersioningConfiguration
	// contains filtered or unexported fields
}

type PutBucketVersioningOutput

type PutBucketVersioningOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutObjectCopyInput

type PutObjectCopyInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	// This member is required.
	XAmzCopySource *string

	XAmzCopySourceIfMatch *string

	XAmzCopySourceIfModifiedSince *string

	XAmzCopySourceIfNoneMatch *string

	XAmzCopySourceIfUnmodifiedSince *string

	XAmzCopySourceServerSideEncryptionCustomerAlgorithm types.XAmzCopySourceServerSideEncryptionCustomerAlgorithmOfPutObjectCopyRequest

	XAmzCopySourceServerSideEncryptionCustomerKey *string

	XAmzCopySourceServerSideEncryptionCustomerKeyMd5 *string

	XAmzMetadataDirective types.XAmzMetadataDirectiveOfPutObjectCopyRequest

	XAmzServerSideEncryption *string

	XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfPutObjectCopyRequest

	XAmzServerSideEncryptionCustomerKey *string

	XAmzServerSideEncryptionCustomerKeyMd5 *string

	XAmzStorageClass types.XAmzStorageClassOfPutObjectCopyRequest

	XAmzTagging *string

	XAmzTaggingDirective types.XAmzTaggingDirectiveOfPutObjectCopyRequest
	// contains filtered or unexported fields
}

type PutObjectCopyOutput

type PutObjectCopyOutput struct {
	ContentType *string

	ETag *string

	LastModified *time.Time

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutObjectInput

type PutObjectInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	Body []byte

	ContentDisposition *string

	ContentEncoding types.ContentEncodingOfPutObjectRequest

	ContentMd5 *string

	ContentType *string

	XAmzMeta *string

	XAmzServerSideEncryption types.XAmzServerSideEncryptionOfPutObjectRequest

	XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfPutObjectRequest

	XAmzServerSideEncryptionCustomerKey *string

	XAmzServerSideEncryptionCustomerKeyMd5 *string

	XAmzStorageClass types.XAmzStorageClassOfPutObjectRequest

	XAmzTagging *string
	// contains filtered or unexported fields
}

type PutObjectOutput

type PutObjectOutput struct {
	ETag *string

	XAmzVersionId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type PutObjectTaggingInput

type PutObjectTaggingInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	ContentMd5 *string

	Tagging *types.RequestTagging

	VersionId *string
	// contains filtered or unexported fields
}

type PutObjectTaggingOutput

type PutObjectTaggingOutput struct {
	XAmzVersionId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type ResolveEndpoint

type ResolveEndpoint struct {
	Resolver EndpointResolver
	Options  EndpointResolverOptions
}

func (*ResolveEndpoint) HandleSerialize

func (*ResolveEndpoint) ID

func (*ResolveEndpoint) ID() string

type ResponseError

type ResponseError interface {
	error

	ServiceHostID() string
	ServiceRequestID() string
}

ResponseError provides the HTTP centric error type wrapping the underlying error with the HTTP response value and the deserialized RequestID.

type UploadPartCopyInput

type UploadPartCopyInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	// This member is required.
	PartNumber *string

	// This member is required.
	UploadId *string

	// This member is required.
	XAmzCopySource *string

	XAmzCopySourceIfMatch *string

	XAmzCopySourceIfModifiedSince *string

	XAmzCopySourceIfNoneMatch *string

	XAmzCopySourceIfUnmodifiedSince *string

	XAmzCopySourceRange *string

	XAmzCopySourceServerSideEncryptionCustomerAlgorithm types.XAmzCopySourceServerSideEncryptionCustomerAlgorithmOfUploadPartCopyRequest

	XAmzCopySourceServerSideEncryptionCustomerKey *string

	XAmzCopySourceServerSideEncryptionCustomerKeyMd5 *string

	XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfUploadPartCopyRequest

	XAmzServerSideEncryptionCustomerKey *string

	XAmzServerSideEncryptionCustomerKeyMd5 *string
	// contains filtered or unexported fields
}

type UploadPartCopyOutput

type UploadPartCopyOutput struct {
	ContentType *string

	ETag *string

	LastModified *time.Time

	XAmzCopySourceVersionId *string

	XAmzServerSideEncryption *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type UploadPartInput

type UploadPartInput struct {

	// This member is required.
	Bucket *string

	// This member is required.
	Object *string

	// This member is required.
	PartNumber *string

	// This member is required.
	UploadId *string

	Body []byte

	ContentMd5 *string

	XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfUploadPartRequest

	XAmzServerSideEncryptionCustomerKey *string

	XAmzServerSideEncryptionCustomerKeyMd5 *string
	// contains filtered or unexported fields
}

type UploadPartOutput

type UploadPartOutput struct {
	ETag *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

Directories

Path Synopsis
internal
arn

Jump to

Keyboard shortcuts

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