ecs

package module
v0.0.0-...-c5709b3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

README

ECS Object Client for Go

The ecs-object-client-go is an extended SDK for Dell/EMC ECS based on official AWS SDK for the Go programming language.

Checkout our EMC ECS REST API for ECS S3 Extension Features

Installing

  • go get -u github.com/EMCECS/ecs-object-client-go

  • go get -u github.com/aws/aws-sdk-go

    or

    import github.com/EMCECS/ecs-object-client-go in your code and leverage glide or similar tool to pull ecs-object-client-go and aws-sdk-go automatially

  • glide init

  • glide install

New APIs

  • DeleteBucketMetadataSearch
  • GetSystemMetadataSearchKeys
  • ListBucketMetadataSearch
  • ListBucketQuery
  • PutBucketIsStaleAllowed

Enhanced APIs

  • CreateBucket
  • GetObject
  • HeadBucket
  • HeadObject
  • PutObject

Testing

  • Setup configrations in test_config.yaml
  • glide install
  • go test -v

Usage

package main

import (
    "github.com/aws/aws-sdk-go/aws"
    "github.com/aws/aws-sdk-go/aws/credentials"
    "github.com/aws/aws-sdk-go/aws/session"
    "github.com/EMCECS/ecs-object-client-go"
)

func main() {
    s3Config := &aws.Config{
        Credentials: credentials.NewStaticCredentials("<s3.access_key>", "<s3.secret_key>", ""),
        Endpoint:    aws.String("<s3.endpoint>"),
        Region:      aws.String("<s3.region>"),
    }

    // Create S3 Session
    sess := session.Must(session.NewSession(s3Config))

    // Get Session for ECS extension
    s3client := ecs.New(sess)

    // Create Bucket
    _, err = s3client.CreateBucketExt(&ecs.CreateBucketInput{
        Bucket: aws.String("DEMO"),
        // RetentionPeriod is only supported by ECS
        RetentionPeriod: aws.Int64(3600),
    })
    // check err
}

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.

Documentation

Overview

Package ecs provides a client for ECS Extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBucketInput

type CreateBucketInput struct {

	// The canned ACL to apply to the bucket.
	ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`
	// Bucket is a required field
	Bucket                    *string                       `location:"uri" locationName:"Bucket" type:"string" required:"true"`
	ComplianceEnabled         *bool                         `location:"header" locationName:"x-emc-compliance-enabled" type:"boolean"`
	CreateBucketConfiguration *s3.CreateBucketConfiguration `locationName:"CreateBucketConfiguration" type:"structure"`
	FileSystemAccess          *bool                         `location:"header" locationName:"x-emc-file-system-access-enabled" type:"boolean"`
	// Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
	GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
	// Allows grantee to list the objects in the bucket.
	GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
	// Allows grantee to read the bucket ACL.
	GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
	// Allows grantee to create, overwrite, and delete any object in the bucket.
	GrantWrite *string `location:"header" locationName:"x-amz-grant-write" type:"string"`
	// Allows grantee to write the ACL for the applicable bucket.
	GrantWriteACP   *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
	IsStaleAllowed  *bool   `location:"header" locationName:"x-emc-is-stale-allowed" type:"boolean"`
	MetadataSearch  *string `location:"header" locationName:"x-emc-metadata-search" type:"string"`
	NameSpace       *string `location:"header" locationName:"x-emc-namespace" type:"string"`
	RetentionPeriod *int64  `location:"header" locationName:"x-emc-retention-period" type:"integer"`
	SSEEnabled      *bool   `location:"header" locationName:"x-emc-server-side-encryption-enabled" type:"boolean"`
	VPool           *string `location:"header" locationName:"x-emc-vpool" type:"string"`
	// contains filtered or unexported fields
}

func (CreateBucketInput) GoString

func (s CreateBucketInput) GoString() string

GoString returns the string representation

func (*CreateBucketInput) SetACL

SetACL sets the ACL field's value.

func (*CreateBucketInput) SetBucket

func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput

SetBucket sets the Bucket field's value.

func (*CreateBucketInput) SetComplianceEnabled

func (s *CreateBucketInput) SetComplianceEnabled(v bool) *CreateBucketInput

SetComplianceEnabled sets the ComplianceEnabled field's value.

func (*CreateBucketInput) SetCreateBucketConfiguration

func (s *CreateBucketInput) SetCreateBucketConfiguration(v *s3.CreateBucketConfiguration) *CreateBucketInput

SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value.

func (*CreateBucketInput) SetFileSystemAccess

func (s *CreateBucketInput) SetFileSystemAccess(v bool) *CreateBucketInput

SetFileSystemAccess sets the FileSystemAccess field's value.

func (*CreateBucketInput) SetGrantFullControl

func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput

SetGrantFullControl sets the GrantFullControl field's value.

func (*CreateBucketInput) SetGrantRead

func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput

SetGrantRead sets the GrantRead field's value.

func (*CreateBucketInput) SetGrantReadACP

func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput

SetGrantReadACP sets the GrantReadACP field's value.

func (*CreateBucketInput) SetGrantWrite

func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput

SetGrantWrite sets the GrantWrite field's value.

func (*CreateBucketInput) SetGrantWriteACP

func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput

SetGrantWriteACP sets the GrantWriteACP field's value.

func (*CreateBucketInput) SetIsStaleAllowed

func (s *CreateBucketInput) SetIsStaleAllowed(v bool) *CreateBucketInput

SetIsStaleAllowed sets the IsStaleAllowed field's value.

func (*CreateBucketInput) SetMetadataSearch

func (s *CreateBucketInput) SetMetadataSearch(v string) *CreateBucketInput

SetMetadataSearch sets the MetadataSearch field's value.

func (*CreateBucketInput) SetNameSpace

func (s *CreateBucketInput) SetNameSpace(v string) *CreateBucketInput

SetNameSpace sets the NameSpace field's value.

func (*CreateBucketInput) SetRetentionPeriod

func (s *CreateBucketInput) SetRetentionPeriod(v int64) *CreateBucketInput

SetRetentionPeriod sets the RetentionPeriod field's value.

func (*CreateBucketInput) SetSSEEnabled

func (s *CreateBucketInput) SetSSEEnabled(v bool) *CreateBucketInput

SetSSEEnabled sets the SSEEnabled field's value.

func (*CreateBucketInput) SetVPool

func (s *CreateBucketInput) SetVPool(v string) *CreateBucketInput

SetVPool sets the VPool field's value.

func (CreateBucketInput) String

func (s CreateBucketInput) String() string

String returns the string representation

func (*CreateBucketInput) Validate

func (s *CreateBucketInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteBucketMetadataSearchInput

type DeleteBucketMetadataSearchInput struct {

	// Bucket is a required field
	Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteBucketMetadataSearchInput) GoString

GoString returns the string representation

func (*DeleteBucketMetadataSearchInput) SetBucket

SetBucket sets the Bucket field's value.

func (DeleteBucketMetadataSearchInput) String

String returns the string representation

func (*DeleteBucketMetadataSearchInput) Validate

func (s *DeleteBucketMetadataSearchInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteBucketMetadataSearchOutput

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

func (DeleteBucketMetadataSearchOutput) GoString

GoString returns the string representation

func (DeleteBucketMetadataSearchOutput) String

String returns the string representation

type EcsIndexableKey

type EcsIndexableKey struct {
	Datatype *string `type:"string"`
	Name     *string `type:"string"`
	// contains filtered or unexported fields
}

func (EcsIndexableKey) GoString

func (s EcsIndexableKey) GoString() string

GoString returns the string representation

func (*EcsIndexableKey) SetDatatype

func (s *EcsIndexableKey) SetDatatype(v string) *EcsIndexableKey

SetDatatype sets the Datatype field's value.

func (*EcsIndexableKey) SetName

func (s *EcsIndexableKey) SetName(v string) *EcsIndexableKey

SetName sets the Name field's value.

func (EcsIndexableKey) String

func (s EcsIndexableKey) String() string

String returns the string representation

type EcsObjectMatch

type EcsObjectMatch struct {
	IndexKey        *string             `locationName:"indexKey" type:"string"`
	ObjectId        *string             `locationName:"objectId" type:"string"`
	ObjectName      *string             `locationName:"objectName" type:"string"`
	ObjectOwnerZone *string             `locationName:"objectOwnerZone" type:"string"`
	QueryMetadata   []*EcsQueryMetadata `locationName:"queryMds" type:"list" flattened:"true"`
	VersionId       *string             `locationName:"versionId" type:"string"`
	// contains filtered or unexported fields
}

func (EcsObjectMatch) GoString

func (s EcsObjectMatch) GoString() string

GoString returns the string representation

func (*EcsObjectMatch) SetIndexKey

func (s *EcsObjectMatch) SetIndexKey(v string) *EcsObjectMatch

SetIndexKey sets the IndexKey field's value.

func (*EcsObjectMatch) SetObjectId

func (s *EcsObjectMatch) SetObjectId(v string) *EcsObjectMatch

SetObjectId sets the ObjectId field's value.

func (*EcsObjectMatch) SetObjectName

func (s *EcsObjectMatch) SetObjectName(v string) *EcsObjectMatch

SetObjectName sets the ObjectName field's value.

func (*EcsObjectMatch) SetObjectOwnerZone

func (s *EcsObjectMatch) SetObjectOwnerZone(v string) *EcsObjectMatch

SetObjectOwnerZone sets the ObjectOwnerZone field's value.

func (*EcsObjectMatch) SetQueryMetadata

func (s *EcsObjectMatch) SetQueryMetadata(v []*EcsQueryMetadata) *EcsObjectMatch

SetQueryMetadata sets the QueryMetadata field's value.

func (*EcsObjectMatch) SetVersionId

func (s *EcsObjectMatch) SetVersionId(v string) *EcsObjectMatch

SetVersionId sets the VersionId field's value.

func (EcsObjectMatch) String

func (s EcsObjectMatch) String() string

String returns the string representation

type EcsOptionalAttribute

type EcsOptionalAttribute struct {
	Datatype *string `type:"string"`
	Name     *string `type:"string"`
	// contains filtered or unexported fields
}

func (EcsOptionalAttribute) GoString

func (s EcsOptionalAttribute) GoString() string

GoString returns the string representation

func (*EcsOptionalAttribute) SetDatatype

SetDatatype sets the Datatype field's value.

func (*EcsOptionalAttribute) SetName

SetName sets the Name field's value.

func (EcsOptionalAttribute) String

func (s EcsOptionalAttribute) String() string

String returns the string representation

type EcsQueryMetadata

type EcsQueryMetadata struct {
	MetadataMap  map[string]*string `locationName:"mdMap" type:"map"`
	MetadataType *string            `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

func (EcsQueryMetadata) GoString

func (s EcsQueryMetadata) GoString() string

GoString returns the string representation

func (*EcsQueryMetadata) SetMetadataMap

func (s *EcsQueryMetadata) SetMetadataMap(v map[string]*string) *EcsQueryMetadata

SetMetadataMap sets the MetadataMap field's value.

func (*EcsQueryMetadata) SetMetadataType

func (s *EcsQueryMetadata) SetMetadataType(v string) *EcsQueryMetadata

SetMetadataType sets the MetadataType field's value.

func (EcsQueryMetadata) String

func (s EcsQueryMetadata) String() string

String returns the string representation

type GetObjectOutput

type GetObjectOutput struct {
	AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"`
	// Object data.
	Body io.ReadCloser `type:"blob"`
	// Specifies caching behavior along the request/reply chain.
	CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
	// Specifies presentational information for the object.
	ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
	// Specifies what content encodings have been applied to the object and thus
	// what decoding mechanisms must be applied to obtain the media-type referenced
	// by the Content-Type header field.
	ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
	// The language the content is in.
	ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
	// Size of the body in bytes.
	ContentLength *int64  `location:"header" locationName:"Content-Length" type:"long"`
	ContentMD5EMC *string `location:"header" locationName:"x-emc-content-md5" type:"string"`
	// The portion of the object returned in the response.
	ContentRange *string `location:"header" locationName:"Content-Range" type:"string"`
	// A standard MIME type describing the format of the object data.
	ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
	// Specifies whether the object retrieved was (true) or was not (false) a Delete
	// Marker. If false, this response header does not appear in the response.
	DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
	// An ETag is an opaque identifier assigned by a web server to a specific version
	// of a resource found at a URL
	ETag *string `location:"header" locationName:"ETag" type:"string"`
	// If the object expiration is configured (see PUT Bucket lifecycle), the response
	// includes this header. It includes the expiry-date and rule-id key value pairs
	// providing object expiration information. The value of the rule-id is URL
	// encoded.
	Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
	// The date and time at which the object is no longer cacheable.
	Expires *string `location:"header" locationName:"Expires" type:"string"`
	// Last modified date of the object
	LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
	// A map of metadata to store with the object in S3.
	Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
	// This is set to the number of metadata entries not returned in x-amz-meta
	// headers. This can happen if you create metadata using an API like SOAP that
	// supports more flexible metadata than the REST API. For example, using SOAP,
	// you can create metadata whose values are not legal HTTP headers.
	MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"`
	// The count of parts this object has.
	PartsCount        *int64  `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
	ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
	// If present, indicates that the requester was successfully charged for the
	// request.
	RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
	// Provides information about object restoration operation and expiration time
	// of the restored object copy.
	Restore         *string `location:"header" locationName:"x-amz-restore" type:"string"`
	RetentionPeriod *int64  `location:"header" locationName:"x-emc-retention-period" type:"integer"`
	RetentionPolicy *string `location:"header" locationName:"x-emc-retention-policy" type:"string"`
	// If server-side encryption with a customer-provided encryption key was requested,
	// the response will include this header confirming the encryption algorithm
	// used.
	SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
	// If server-side encryption with a customer-provided encryption key was requested,
	// the response will include this header to provide round trip message integrity
	// verification of the customer-provided encryption key.
	SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
	// If present, specifies the ID of the AWS Key Management Service (KMS) master
	// encryption key that was used for the object.
	SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
	// The Server-side encryption algorithm used when storing this object in S3
	// (e.g., AES256, aws:kms).
	ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
	StorageClass         *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
	// The number of tags, if any, on the object.
	TagCount *int64 `location:"header" locationName:"x-amz-tagging-count" type:"integer"`
	// Version of the object.
	VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
	// If the bucket is configured as a website, redirects requests for this object
	// to another object in the same bucket or to an external URL. Amazon S3 stores
	// the value of this header in the object metadata.
	WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
	// contains filtered or unexported fields
}

func (GetObjectOutput) GoString

func (s GetObjectOutput) GoString() string

GoString returns the string representation

func (*GetObjectOutput) SetAcceptRanges

func (s *GetObjectOutput) SetAcceptRanges(v string) *GetObjectOutput

SetAcceptRanges sets the AcceptRanges field's value.

func (*GetObjectOutput) SetBody

SetBody sets the Body field's value.

func (*GetObjectOutput) SetCacheControl

func (s *GetObjectOutput) SetCacheControl(v string) *GetObjectOutput

SetCacheControl sets the CacheControl field's value.

func (*GetObjectOutput) SetContentDisposition

func (s *GetObjectOutput) SetContentDisposition(v string) *GetObjectOutput

SetContentDisposition sets the ContentDisposition field's value.

func (*GetObjectOutput) SetContentEncoding

func (s *GetObjectOutput) SetContentEncoding(v string) *GetObjectOutput

SetContentEncoding sets the ContentEncoding field's value.

func (*GetObjectOutput) SetContentLanguage

func (s *GetObjectOutput) SetContentLanguage(v string) *GetObjectOutput

SetContentLanguage sets the ContentLanguage field's value.

func (*GetObjectOutput) SetContentLength

func (s *GetObjectOutput) SetContentLength(v int64) *GetObjectOutput

SetContentLength sets the ContentLength field's value.

func (*GetObjectOutput) SetContentMD5EMC

func (s *GetObjectOutput) SetContentMD5EMC(v string) *GetObjectOutput

SetContentMD5EMC sets the ContentMD5EMC field's value.

func (*GetObjectOutput) SetContentRange

func (s *GetObjectOutput) SetContentRange(v string) *GetObjectOutput

SetContentRange sets the ContentRange field's value.

func (*GetObjectOutput) SetContentType

func (s *GetObjectOutput) SetContentType(v string) *GetObjectOutput

SetContentType sets the ContentType field's value.

func (*GetObjectOutput) SetDeleteMarker

func (s *GetObjectOutput) SetDeleteMarker(v bool) *GetObjectOutput

SetDeleteMarker sets the DeleteMarker field's value.

func (*GetObjectOutput) SetETag

func (s *GetObjectOutput) SetETag(v string) *GetObjectOutput

SetETag sets the ETag field's value.

func (*GetObjectOutput) SetExpiration

func (s *GetObjectOutput) SetExpiration(v string) *GetObjectOutput

SetExpiration sets the Expiration field's value.

func (*GetObjectOutput) SetExpires

func (s *GetObjectOutput) SetExpires(v string) *GetObjectOutput

SetExpires sets the Expires field's value.

func (*GetObjectOutput) SetLastModified

func (s *GetObjectOutput) SetLastModified(v time.Time) *GetObjectOutput

SetLastModified sets the LastModified field's value.

func (*GetObjectOutput) SetMetadata

func (s *GetObjectOutput) SetMetadata(v map[string]*string) *GetObjectOutput

SetMetadata sets the Metadata field's value.

func (*GetObjectOutput) SetMissingMeta

func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput

SetMissingMeta sets the MissingMeta field's value.

func (*GetObjectOutput) SetPartsCount

func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput

SetPartsCount sets the PartsCount field's value.

func (*GetObjectOutput) SetReplicationStatus

func (s *GetObjectOutput) SetReplicationStatus(v string) *GetObjectOutput

SetReplicationStatus sets the ReplicationStatus field's value.

func (*GetObjectOutput) SetRequestCharged

func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput

SetRequestCharged sets the RequestCharged field's value.

func (*GetObjectOutput) SetRestore

func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput

SetRestore sets the Restore field's value.

func (*GetObjectOutput) SetRetentionPeriod

func (s *GetObjectOutput) SetRetentionPeriod(v int64) *GetObjectOutput

SetRetentionPeriod sets the RetentionPeriod field's value.

func (*GetObjectOutput) SetRetentionPolicy

func (s *GetObjectOutput) SetRetentionPolicy(v string) *GetObjectOutput

SetRetentionPolicy sets the RetentionPolicy field's value.

func (*GetObjectOutput) SetSSECustomerAlgorithm

func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.

func (*GetObjectOutput) SetSSECustomerKeyMD5

func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.

func (*GetObjectOutput) SetSSEKMSKeyId

func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput

SetSSEKMSKeyId sets the SSEKMSKeyId field's value.

func (*GetObjectOutput) SetServerSideEncryption

func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput

SetServerSideEncryption sets the ServerSideEncryption field's value.

func (*GetObjectOutput) SetStorageClass

func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput

SetStorageClass sets the StorageClass field's value.

func (*GetObjectOutput) SetTagCount

func (s *GetObjectOutput) SetTagCount(v int64) *GetObjectOutput

SetTagCount sets the TagCount field's value.

func (*GetObjectOutput) SetVersionId

func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput

SetVersionId sets the VersionId field's value.

func (*GetObjectOutput) SetWebsiteRedirectLocation

func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput

SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.

func (GetObjectOutput) String

func (s GetObjectOutput) String() string

String returns the string representation

type GetSystemMetadataSearchKeysInput

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

func (GetSystemMetadataSearchKeysInput) GoString

GoString returns the string representation

func (GetSystemMetadataSearchKeysInput) String

String returns the string representation

type GetSystemMetadataSearchKeysOutput

type GetSystemMetadataSearchKeysOutput struct {
	IndexableKeys      []*EcsIndexableKey      `locationNameList:"Key" type:"list"`
	OptionalAttributes []*EcsOptionalAttribute `locationNameList:"Attribute" type:"list"`
	// contains filtered or unexported fields
}

func (GetSystemMetadataSearchKeysOutput) GoString

GoString returns the string representation

func (*GetSystemMetadataSearchKeysOutput) SetIndexableKeys

SetIndexableKeys sets the IndexableKeys field's value.

func (*GetSystemMetadataSearchKeysOutput) SetOptionalAttributes

SetOptionalAttributes sets the OptionalAttributes field's value.

func (GetSystemMetadataSearchKeysOutput) String

String returns the string representation

type HeadBucketOutput

type HeadBucketOutput struct {
	RetentionPeriod *int64 `location:"header" locationName:"x-emc-retention-period" type:"integer"`
	// contains filtered or unexported fields
}

func (HeadBucketOutput) GoString

func (s HeadBucketOutput) GoString() string

GoString returns the string representation

func (*HeadBucketOutput) SetRetentionPeriod

func (s *HeadBucketOutput) SetRetentionPeriod(v int64) *HeadBucketOutput

SetRetentionPeriod sets the RetentionPeriod field's value.

func (HeadBucketOutput) String

func (s HeadBucketOutput) String() string

String returns the string representation

type HeadObjectOutput

type HeadObjectOutput struct {
	AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"`
	// Specifies caching behavior along the request/reply chain.
	CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
	// Specifies presentational information for the object.
	ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
	// Specifies what content encodings have been applied to the object and thus
	// what decoding mechanisms must be applied to obtain the media-type referenced
	// by the Content-Type header field.
	ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
	// The language the content is in.
	ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
	// Size of the body in bytes.
	ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
	// A standard MIME type describing the format of the object data.
	ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
	// Specifies whether the object retrieved was (true) or was not (false) a Delete
	// Marker. If false, this response header does not appear in the response.
	DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
	// An ETag is an opaque identifier assigned by a web server to a specific version
	// of a resource found at a URL
	ETag *string `location:"header" locationName:"ETag" type:"string"`
	// If the object expiration is configured (see PUT Bucket lifecycle), the response
	// includes this header. It includes the expiry-date and rule-id key value pairs
	// providing object expiration information. The value of the rule-id is URL
	// encoded.
	Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
	// The date and time at which the object is no longer cacheable.
	Expires *string `location:"header" locationName:"Expires" type:"string"`
	// Last modified date of the object
	LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
	// A map of metadata to store with the object in S3.
	Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
	// This is set to the number of metadata entries not returned in x-amz-meta
	// headers. This can happen if you create metadata using an API like SOAP that
	// supports more flexible metadata than the REST API. For example, using SOAP,
	// you can create metadata whose values are not legal HTTP headers.
	MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"`
	// The count of parts this object has.
	PartsCount        *int64  `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
	ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
	// If present, indicates that the requester was successfully charged for the
	// request.
	RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
	// Provides information about object restoration operation and expiration time
	// of the restored object copy.
	Restore         *string `location:"header" locationName:"x-amz-restore" type:"string"`
	RetentionPeriod *int64  `location:"header" locationName:"x-emc-retention-period" type:"integer"`
	RetentionPolicy *string `location:"header" locationName:"x-emc-retention-policy" type:"string"`
	// If server-side encryption with a customer-provided encryption key was requested,
	// the response will include this header confirming the encryption algorithm
	// used.
	SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
	// If server-side encryption with a customer-provided encryption key was requested,
	// the response will include this header to provide round trip message integrity
	// verification of the customer-provided encryption key.
	SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
	// If present, specifies the ID of the AWS Key Management Service (KMS) master
	// encryption key that was used for the object.
	SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
	// The Server-side encryption algorithm used when storing this object in S3
	// (e.g., AES256, aws:kms).
	ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
	StorageClass         *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
	// Version of the object.
	VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
	// If the bucket is configured as a website, redirects requests for this object
	// to another object in the same bucket or to an external URL. Amazon S3 stores
	// the value of this header in the object metadata.
	WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
	// contains filtered or unexported fields
}

func (HeadObjectOutput) GoString

func (s HeadObjectOutput) GoString() string

GoString returns the string representation

func (*HeadObjectOutput) SetAcceptRanges

func (s *HeadObjectOutput) SetAcceptRanges(v string) *HeadObjectOutput

SetAcceptRanges sets the AcceptRanges field's value.

func (*HeadObjectOutput) SetCacheControl

func (s *HeadObjectOutput) SetCacheControl(v string) *HeadObjectOutput

SetCacheControl sets the CacheControl field's value.

func (*HeadObjectOutput) SetContentDisposition

func (s *HeadObjectOutput) SetContentDisposition(v string) *HeadObjectOutput

SetContentDisposition sets the ContentDisposition field's value.

func (*HeadObjectOutput) SetContentEncoding

func (s *HeadObjectOutput) SetContentEncoding(v string) *HeadObjectOutput

SetContentEncoding sets the ContentEncoding field's value.

func (*HeadObjectOutput) SetContentLanguage

func (s *HeadObjectOutput) SetContentLanguage(v string) *HeadObjectOutput

SetContentLanguage sets the ContentLanguage field's value.

func (*HeadObjectOutput) SetContentLength

func (s *HeadObjectOutput) SetContentLength(v int64) *HeadObjectOutput

SetContentLength sets the ContentLength field's value.

func (*HeadObjectOutput) SetContentType

func (s *HeadObjectOutput) SetContentType(v string) *HeadObjectOutput

SetContentType sets the ContentType field's value.

func (*HeadObjectOutput) SetDeleteMarker

func (s *HeadObjectOutput) SetDeleteMarker(v bool) *HeadObjectOutput

SetDeleteMarker sets the DeleteMarker field's value.

func (*HeadObjectOutput) SetETag

func (s *HeadObjectOutput) SetETag(v string) *HeadObjectOutput

SetETag sets the ETag field's value.

func (*HeadObjectOutput) SetExpiration

func (s *HeadObjectOutput) SetExpiration(v string) *HeadObjectOutput

SetExpiration sets the Expiration field's value.

func (*HeadObjectOutput) SetExpires

func (s *HeadObjectOutput) SetExpires(v string) *HeadObjectOutput

SetExpires sets the Expires field's value.

func (*HeadObjectOutput) SetLastModified

func (s *HeadObjectOutput) SetLastModified(v time.Time) *HeadObjectOutput

SetLastModified sets the LastModified field's value.

func (*HeadObjectOutput) SetMetadata

func (s *HeadObjectOutput) SetMetadata(v map[string]*string) *HeadObjectOutput

SetMetadata sets the Metadata field's value.

func (*HeadObjectOutput) SetMissingMeta

func (s *HeadObjectOutput) SetMissingMeta(v int64) *HeadObjectOutput

SetMissingMeta sets the MissingMeta field's value.

func (*HeadObjectOutput) SetPartsCount

func (s *HeadObjectOutput) SetPartsCount(v int64) *HeadObjectOutput

SetPartsCount sets the PartsCount field's value.

func (*HeadObjectOutput) SetReplicationStatus

func (s *HeadObjectOutput) SetReplicationStatus(v string) *HeadObjectOutput

SetReplicationStatus sets the ReplicationStatus field's value.

func (*HeadObjectOutput) SetRequestCharged

func (s *HeadObjectOutput) SetRequestCharged(v string) *HeadObjectOutput

SetRequestCharged sets the RequestCharged field's value.

func (*HeadObjectOutput) SetRestore

func (s *HeadObjectOutput) SetRestore(v string) *HeadObjectOutput

SetRestore sets the Restore field's value.

func (*HeadObjectOutput) SetRetentionPeriod

func (s *HeadObjectOutput) SetRetentionPeriod(v int64) *HeadObjectOutput

SetRetentionPeriod sets the RetentionPeriod field's value.

func (*HeadObjectOutput) SetRetentionPolicy

func (s *HeadObjectOutput) SetRetentionPolicy(v string) *HeadObjectOutput

SetRetentionPolicy sets the RetentionPolicy field's value.

func (*HeadObjectOutput) SetSSECustomerAlgorithm

func (s *HeadObjectOutput) SetSSECustomerAlgorithm(v string) *HeadObjectOutput

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.

func (*HeadObjectOutput) SetSSECustomerKeyMD5

func (s *HeadObjectOutput) SetSSECustomerKeyMD5(v string) *HeadObjectOutput

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.

func (*HeadObjectOutput) SetSSEKMSKeyId

func (s *HeadObjectOutput) SetSSEKMSKeyId(v string) *HeadObjectOutput

SetSSEKMSKeyId sets the SSEKMSKeyId field's value.

func (*HeadObjectOutput) SetServerSideEncryption

func (s *HeadObjectOutput) SetServerSideEncryption(v string) *HeadObjectOutput

SetServerSideEncryption sets the ServerSideEncryption field's value.

func (*HeadObjectOutput) SetStorageClass

func (s *HeadObjectOutput) SetStorageClass(v string) *HeadObjectOutput

SetStorageClass sets the StorageClass field's value.

func (*HeadObjectOutput) SetVersionId

func (s *HeadObjectOutput) SetVersionId(v string) *HeadObjectOutput

SetVersionId sets the VersionId field's value.

func (*HeadObjectOutput) SetWebsiteRedirectLocation

func (s *HeadObjectOutput) SetWebsiteRedirectLocation(v string) *HeadObjectOutput

SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.

func (HeadObjectOutput) String

func (s HeadObjectOutput) String() string

String returns the string representation

type ListBucketMetadataSearchInput

type ListBucketMetadataSearchInput struct {

	// Bucket is a required field
	Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListBucketMetadataSearchInput) GoString

GoString returns the string representation

func (*ListBucketMetadataSearchInput) SetBucket

SetBucket sets the Bucket field's value.

func (ListBucketMetadataSearchInput) String

String returns the string representation

func (*ListBucketMetadataSearchInput) Validate

func (s *ListBucketMetadataSearchInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListBucketMetadataSearchOutput

type ListBucketMetadataSearchOutput struct {
	IndexableKeys         []*EcsIndexableKey      `locationNameList:"Key" type:"list"`
	MetadataSearchEnabled *bool                   `type:"boolean"`
	OptionalAttributes    []*EcsOptionalAttribute `locationNameList:"Attribute" type:"list"`
	// contains filtered or unexported fields
}

func (ListBucketMetadataSearchOutput) GoString

GoString returns the string representation

func (*ListBucketMetadataSearchOutput) SetIndexableKeys

SetIndexableKeys sets the IndexableKeys field's value.

func (*ListBucketMetadataSearchOutput) SetMetadataSearchEnabled

func (s *ListBucketMetadataSearchOutput) SetMetadataSearchEnabled(v bool) *ListBucketMetadataSearchOutput

SetMetadataSearchEnabled sets the MetadataSearchEnabled field's value.

func (*ListBucketMetadataSearchOutput) SetOptionalAttributes

SetOptionalAttributes sets the OptionalAttributes field's value.

func (ListBucketMetadataSearchOutput) String

String returns the string representation

type ListBucketQueryInput

type ListBucketQueryInput struct {
	Attributes *string `location:"querystring" locationName:"attributes" type:"string"`
	// Bucket is a required field
	Bucket              *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
	IncludeOlderVersion *bool   `location:"querystring" locationName:"include-older-version" type:"boolean"`
	Marker              *string `location:"querystring" locationName:"marker" type:"string"`
	MaxKeys             *int64  `location:"querystring" locationName:"max-keys" type:"integer"`
	// Query is a required field
	Query  *string `location:"querystring" locationName:"query" type:"string" required:"true"`
	Sorted *string `location:"querystring" locationName:"sorted" type:"string"`
	// contains filtered or unexported fields
}

func (ListBucketQueryInput) GoString

func (s ListBucketQueryInput) GoString() string

GoString returns the string representation

func (*ListBucketQueryInput) SetAttributes

func (s *ListBucketQueryInput) SetAttributes(v string) *ListBucketQueryInput

SetAttributes sets the Attributes field's value.

func (*ListBucketQueryInput) SetBucket

SetBucket sets the Bucket field's value.

func (*ListBucketQueryInput) SetIncludeOlderVersion

func (s *ListBucketQueryInput) SetIncludeOlderVersion(v bool) *ListBucketQueryInput

SetIncludeOlderVersion sets the IncludeOlderVersion field's value.

func (*ListBucketQueryInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListBucketQueryInput) SetMaxKeys

SetMaxKeys sets the MaxKeys field's value.

func (*ListBucketQueryInput) SetQuery

SetQuery sets the Query field's value.

func (*ListBucketQueryInput) SetSorted

SetSorted sets the Sorted field's value.

func (ListBucketQueryInput) String

func (s ListBucketQueryInput) String() string

String returns the string representation

func (*ListBucketQueryInput) Validate

func (s *ListBucketQueryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListBucketQueryOutput

type ListBucketQueryOutput struct {
	MaxKeys       *int64            `type:"integer"`
	Name          *string           `type:"string"`
	NextMarker    *string           `type:"string"`
	ObjectMatches []*EcsObjectMatch `locationNameList:"object" type:"list"`
	// contains filtered or unexported fields
}

func (ListBucketQueryOutput) GoString

func (s ListBucketQueryOutput) GoString() string

GoString returns the string representation

func (*ListBucketQueryOutput) SetMaxKeys

SetMaxKeys sets the MaxKeys field's value.

func (*ListBucketQueryOutput) SetName

SetName sets the Name field's value.

func (*ListBucketQueryOutput) SetNextMarker

func (s *ListBucketQueryOutput) SetNextMarker(v string) *ListBucketQueryOutput

SetNextMarker sets the NextMarker field's value.

func (*ListBucketQueryOutput) SetObjectMatches

func (s *ListBucketQueryOutput) SetObjectMatches(v []*EcsObjectMatch) *ListBucketQueryOutput

SetObjectMatches sets the ObjectMatches field's value.

func (ListBucketQueryOutput) String

func (s ListBucketQueryOutput) String() string

String returns the string representation

type PutBucketIsStaleAllowedInput

type PutBucketIsStaleAllowedInput struct {

	// Bucket is a required field
	Bucket         *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
	IsStaleAllowed *bool   `location:"header" locationName:"x-emc-is-stale-allowed" type:"boolean"`
	// contains filtered or unexported fields
}

func (PutBucketIsStaleAllowedInput) GoString

func (s PutBucketIsStaleAllowedInput) GoString() string

GoString returns the string representation

func (*PutBucketIsStaleAllowedInput) SetBucket

SetBucket sets the Bucket field's value.

func (*PutBucketIsStaleAllowedInput) SetIsStaleAllowed

SetIsStaleAllowed sets the IsStaleAllowed field's value.

func (PutBucketIsStaleAllowedInput) String

String returns the string representation

func (*PutBucketIsStaleAllowedInput) Validate

func (s *PutBucketIsStaleAllowedInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutBucketIsStaleAllowedOutput

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

func (PutBucketIsStaleAllowedOutput) GoString

GoString returns the string representation

func (PutBucketIsStaleAllowedOutput) String

String returns the string representation

type PutObjectInput

type PutObjectInput struct {

	// The canned ACL to apply to the object.
	ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
	// Object data.
	Body io.ReadSeeker `type:"blob"`
	// Name of the bucket to which the PUT operation was initiated.
	// Bucket is a required field
	Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
	// Specifies caching behavior along the request/reply chain.
	CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
	// Specifies presentational information for the object.
	ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
	// Specifies what content encodings have been applied to the object and thus
	// what decoding mechanisms must be applied to obtain the media-type referenced
	// by the Content-Type header field.
	ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
	// The language the content is in.
	ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
	// Size of the body in bytes. This parameter is useful when the size of the
	// body cannot be determined automatically.
	ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
	// A standard MIME type describing the format of the object data.
	ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
	// The date and time at which the object is no longer cacheable.
	Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
	// Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
	GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
	// Allows grantee to read the object data and its metadata.
	GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
	// Allows grantee to read the object ACL.
	GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
	// Allows grantee to write the ACL for the applicable object.
	GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
	IfNoneMatch   *string `location:"header" locationName:"If-None-Match" type:"string"`
	// Object key for which the PUT operation was initiated.
	// Key is a required field
	Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
	// A map of metadata to store with the object in S3.
	Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
	Range    *string            `location:"header" locationName:"Range" type:"string"`
	// Confirms that the requester knows that she or he will be charged for the
	// request. Bucket owners need not specify this parameter in their requests.
	// Documentation on downloading objects from requester pays buckets can be found
	// at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
	RequestPayer    *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
	RetentionPeriod *int64  `location:"header" locationName:"x-emc-retention-period" type:"integer"`
	RetentionPolicy *string `location:"header" locationName:"x-emc-retention-policy" type:"string"`
	// Specifies the algorithm to use to when encrypting the object (e.g., AES256).
	SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
	// Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
	// data. This value is used to store the object and then it is discarded; Amazon
	// does not store the encryption key. The key must be appropriate for use with
	// the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
	// header.
	SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
	// Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
	// Amazon S3 uses this header for a message integrity check to ensure the encryption
	// key was transmitted without error.
	SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
	// Specifies the AWS KMS key ID to use for object encryption. All GET and PUT
	// requests for an object protected by AWS KMS will fail if not made via SSL
	// or using SigV4. Documentation on configuring any of the officially supported
	// AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
	SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
	// The Server-side encryption algorithm used when storing this object in S3
	// (e.g., AES256, aws:kms).
	ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
	// The type of storage to use for the object. Defaults to 'STANDARD'.
	StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
	// The tag-set for the object. The tag-set must be encoded as URL Query parameters
	Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`
	// If the bucket is configured as a website, redirects requests for this object
	// to another object in the same bucket or to an external URL. Amazon S3 stores
	// the value of this header in the object metadata.
	WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
	// contains filtered or unexported fields
}

func (PutObjectInput) GoString

func (s PutObjectInput) GoString() string

GoString returns the string representation

func (*PutObjectInput) SetACL

func (s *PutObjectInput) SetACL(v string) *PutObjectInput

SetACL sets the ACL field's value.

func (*PutObjectInput) SetBody

func (s *PutObjectInput) SetBody(v io.ReadSeeker) *PutObjectInput

SetBody sets the Body field's value.

func (*PutObjectInput) SetBucket

func (s *PutObjectInput) SetBucket(v string) *PutObjectInput

SetBucket sets the Bucket field's value.

func (*PutObjectInput) SetCacheControl

func (s *PutObjectInput) SetCacheControl(v string) *PutObjectInput

SetCacheControl sets the CacheControl field's value.

func (*PutObjectInput) SetContentDisposition

func (s *PutObjectInput) SetContentDisposition(v string) *PutObjectInput

SetContentDisposition sets the ContentDisposition field's value.

func (*PutObjectInput) SetContentEncoding

func (s *PutObjectInput) SetContentEncoding(v string) *PutObjectInput

SetContentEncoding sets the ContentEncoding field's value.

func (*PutObjectInput) SetContentLanguage

func (s *PutObjectInput) SetContentLanguage(v string) *PutObjectInput

SetContentLanguage sets the ContentLanguage field's value.

func (*PutObjectInput) SetContentLength

func (s *PutObjectInput) SetContentLength(v int64) *PutObjectInput

SetContentLength sets the ContentLength field's value.

func (*PutObjectInput) SetContentType

func (s *PutObjectInput) SetContentType(v string) *PutObjectInput

SetContentType sets the ContentType field's value.

func (*PutObjectInput) SetExpires

func (s *PutObjectInput) SetExpires(v time.Time) *PutObjectInput

SetExpires sets the Expires field's value.

func (*PutObjectInput) SetGrantFullControl

func (s *PutObjectInput) SetGrantFullControl(v string) *PutObjectInput

SetGrantFullControl sets the GrantFullControl field's value.

func (*PutObjectInput) SetGrantRead

func (s *PutObjectInput) SetGrantRead(v string) *PutObjectInput

SetGrantRead sets the GrantRead field's value.

func (*PutObjectInput) SetGrantReadACP

func (s *PutObjectInput) SetGrantReadACP(v string) *PutObjectInput

SetGrantReadACP sets the GrantReadACP field's value.

func (*PutObjectInput) SetGrantWriteACP

func (s *PutObjectInput) SetGrantWriteACP(v string) *PutObjectInput

SetGrantWriteACP sets the GrantWriteACP field's value.

func (*PutObjectInput) SetIfNoneMatch

func (s *PutObjectInput) SetIfNoneMatch(v string) *PutObjectInput

SetIfNoneMatch sets the IfNoneMatch field's value.

func (*PutObjectInput) SetKey

func (s *PutObjectInput) SetKey(v string) *PutObjectInput

SetKey sets the Key field's value.

func (*PutObjectInput) SetMetadata

func (s *PutObjectInput) SetMetadata(v map[string]*string) *PutObjectInput

SetMetadata sets the Metadata field's value.

func (*PutObjectInput) SetRange

func (s *PutObjectInput) SetRange(v string) *PutObjectInput

SetRange sets the Range field's value.

func (*PutObjectInput) SetRequestPayer

func (s *PutObjectInput) SetRequestPayer(v string) *PutObjectInput

SetRequestPayer sets the RequestPayer field's value.

func (*PutObjectInput) SetRetentionPeriod

func (s *PutObjectInput) SetRetentionPeriod(v int64) *PutObjectInput

SetRetentionPeriod sets the RetentionPeriod field's value.

func (*PutObjectInput) SetRetentionPolicy

func (s *PutObjectInput) SetRetentionPolicy(v string) *PutObjectInput

SetRetentionPolicy sets the RetentionPolicy field's value.

func (*PutObjectInput) SetSSECustomerAlgorithm

func (s *PutObjectInput) SetSSECustomerAlgorithm(v string) *PutObjectInput

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.

func (*PutObjectInput) SetSSECustomerKey

func (s *PutObjectInput) SetSSECustomerKey(v string) *PutObjectInput

SetSSECustomerKey sets the SSECustomerKey field's value.

func (*PutObjectInput) SetSSECustomerKeyMD5

func (s *PutObjectInput) SetSSECustomerKeyMD5(v string) *PutObjectInput

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.

func (*PutObjectInput) SetSSEKMSKeyId

func (s *PutObjectInput) SetSSEKMSKeyId(v string) *PutObjectInput

SetSSEKMSKeyId sets the SSEKMSKeyId field's value.

func (*PutObjectInput) SetServerSideEncryption

func (s *PutObjectInput) SetServerSideEncryption(v string) *PutObjectInput

SetServerSideEncryption sets the ServerSideEncryption field's value.

func (*PutObjectInput) SetStorageClass

func (s *PutObjectInput) SetStorageClass(v string) *PutObjectInput

SetStorageClass sets the StorageClass field's value.

func (*PutObjectInput) SetTagging

func (s *PutObjectInput) SetTagging(v string) *PutObjectInput

SetTagging sets the Tagging field's value.

func (*PutObjectInput) SetWebsiteRedirectLocation

func (s *PutObjectInput) SetWebsiteRedirectLocation(v string) *PutObjectInput

SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.

func (PutObjectInput) String

func (s PutObjectInput) String() string

String returns the string representation

func (*PutObjectInput) Validate

func (s *PutObjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutObjectOutput

type PutObjectOutput struct {
	ContentMD5EMC *string `location:"header" locationName:"x-emc-content-md5" type:"string"`
	// Entity tag for the uploaded object.
	ETag *string `location:"header" locationName:"ETag" type:"string"`
	// If the object expiration is configured, this will contain the expiration
	// date (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded.
	Expiration         *string `location:"header" locationName:"x-amz-expiration" type:"string"`
	PreviousObjectSize *int64  `location:"header" locationName:"x-emc-previous-object-size" type:"integer"`
	// If present, indicates that the requester was successfully charged for the
	// request.
	RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
	// If server-side encryption with a customer-provided encryption key was requested,
	// the response will include this header confirming the encryption algorithm
	// used.
	SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
	// If server-side encryption with a customer-provided encryption key was requested,
	// the response will include this header to provide round trip message integrity
	// verification of the customer-provided encryption key.
	SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
	// If present, specifies the ID of the AWS Key Management Service (KMS) master
	// encryption key that was used for the object.
	SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
	// The Server-side encryption algorithm used when storing this object in S3
	// (e.g., AES256, aws:kms).
	ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
	// Version of the object.
	VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
	// contains filtered or unexported fields
}

func (PutObjectOutput) GoString

func (s PutObjectOutput) GoString() string

GoString returns the string representation

func (*PutObjectOutput) SetContentMD5EMC

func (s *PutObjectOutput) SetContentMD5EMC(v string) *PutObjectOutput

SetContentMD5EMC sets the ContentMD5EMC field's value.

func (*PutObjectOutput) SetETag

func (s *PutObjectOutput) SetETag(v string) *PutObjectOutput

SetETag sets the ETag field's value.

func (*PutObjectOutput) SetExpiration

func (s *PutObjectOutput) SetExpiration(v string) *PutObjectOutput

SetExpiration sets the Expiration field's value.

func (*PutObjectOutput) SetPreviousObjectSize

func (s *PutObjectOutput) SetPreviousObjectSize(v int64) *PutObjectOutput

SetPreviousObjectSize sets the PreviousObjectSize field's value.

func (*PutObjectOutput) SetRequestCharged

func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput

SetRequestCharged sets the RequestCharged field's value.

func (*PutObjectOutput) SetSSECustomerAlgorithm

func (s *PutObjectOutput) SetSSECustomerAlgorithm(v string) *PutObjectOutput

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.

func (*PutObjectOutput) SetSSECustomerKeyMD5

func (s *PutObjectOutput) SetSSECustomerKeyMD5(v string) *PutObjectOutput

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.

func (*PutObjectOutput) SetSSEKMSKeyId

func (s *PutObjectOutput) SetSSEKMSKeyId(v string) *PutObjectOutput

SetSSEKMSKeyId sets the SSEKMSKeyId field's value.

func (*PutObjectOutput) SetServerSideEncryption

func (s *PutObjectOutput) SetServerSideEncryption(v string) *PutObjectOutput

SetServerSideEncryption sets the ServerSideEncryption field's value.

func (*PutObjectOutput) SetVersionId

func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput

SetVersionId sets the VersionId field's value.

func (PutObjectOutput) String

func (s PutObjectOutput) String() string

String returns the string representation

type S3

type S3 struct {
	*s3.S3
}

func New

func New(s *s3.S3) *S3

func (*S3) CreateBucketExtension

func (c *S3) CreateBucketExtension(input *CreateBucketInput) (*s3.CreateBucketOutput, error)

CreateBucketExtension API operation for ECS Extension.

func (*S3) CreateBucketExtensionRequest

func (c *S3) CreateBucketExtensionRequest(input *CreateBucketInput) (req *request.Request, output *s3.CreateBucketOutput)

CreateBucketExtensionRequest generates a request.Request

func (*S3) CreateBucketExtensionWithContext

func (c *S3) CreateBucketExtensionWithContext(ctx aws.Context, input *CreateBucketInput, opts ...request.Option) (*s3.CreateBucketOutput, error)

CreateBucketExtensionWithContext is the same as CreateBucket with the addition of the ability to pass a context and additional request options.

func (*S3) DeleteBucketMetadataSearch

func (c *S3) DeleteBucketMetadataSearch(input *DeleteBucketMetadataSearchInput) (*DeleteBucketMetadataSearchOutput, error)

DeleteBucketMetadataSearch API operation for ECS Extension.

func (*S3) DeleteBucketMetadataSearchRequest

func (c *S3) DeleteBucketMetadataSearchRequest(input *DeleteBucketMetadataSearchInput) (req *request.Request, output *DeleteBucketMetadataSearchOutput)

DeleteBucketMetadataSearchRequest generates a request.Request"

func (*S3) DeleteBucketMetadataSearchWithContext

func (c *S3) DeleteBucketMetadataSearchWithContext(ctx aws.Context, input *DeleteBucketMetadataSearchInput, opts ...request.Option) (*DeleteBucketMetadataSearchOutput, error)

DeleteBucketMetadataSearchWithContext is the same as DeleteBucketMetadataSearch with the addition of the ability to pass a context and additional request options.

func (*S3) GetObjectExtension

func (c *S3) GetObjectExtension(input *s3.GetObjectInput) (*GetObjectOutput, error)

GetObjectExtension API operation for ECS Extension.

func (*S3) GetObjectExtensionRequest

func (c *S3) GetObjectExtensionRequest(input *s3.GetObjectInput) (req *request.Request, output *GetObjectOutput)

GetObjectExtensionRequest generates a request.Request

func (*S3) GetObjectExtensionWithContext

func (c *S3) GetObjectExtensionWithContext(ctx aws.Context, input *s3.GetObjectInput, opts ...request.Option) (*GetObjectOutput, error)

GetObjectExtensionWithContext is the same as GetObject with the addition of the ability to pass a context and additional request options.

func (*S3) GetSystemMetadataSearchKeys

func (c *S3) GetSystemMetadataSearchKeys(input *GetSystemMetadataSearchKeysInput) (*GetSystemMetadataSearchKeysOutput, error)

GetSystemMetadataSearchKeys API operation for ECS Extension.

func (*S3) GetSystemMetadataSearchKeysRequest

func (c *S3) GetSystemMetadataSearchKeysRequest(input *GetSystemMetadataSearchKeysInput) (req *request.Request, output *GetSystemMetadataSearchKeysOutput)

GetSystemMetadataSearchKeysRequest generates request.Request

func (*S3) GetSystemMetadataSearchKeysWithContext

func (c *S3) GetSystemMetadataSearchKeysWithContext(ctx aws.Context, input *GetSystemMetadataSearchKeysInput, opts ...request.Option) (*GetSystemMetadataSearchKeysOutput, error)

GetSystemMetadataSearchKeysWithContext is the same as GetSystemMetadataSearchKeys with the addition of the ability to pass a context and additional request options.

func (*S3) HeadBucketExtension

func (c *S3) HeadBucketExtension(input *s3.HeadBucketInput) (*HeadBucketOutput, error)

HeadBucket API operation for ECS Extension

func (*S3) HeadBucketExtensionRequest

func (c *S3) HeadBucketExtensionRequest(input *s3.HeadBucketInput) (req *request.Request, output *HeadBucketOutput)

HeadBucketExtensionRequest generates a request.Request

func (*S3) HeadBucketExtensionWithContext

func (c *S3) HeadBucketExtensionWithContext(ctx aws.Context, input *s3.HeadBucketInput, opts ...request.Option) (*HeadBucketOutput, error)

HeadBucketExtensionWithContext is the same as HeadBucket with the addition of the ability to pass a context and additional request options.

func (*S3) HeadObjectExtension

func (c *S3) HeadObjectExtension(input *s3.HeadObjectInput) (*HeadObjectOutput, error)

HeadObjectExtension API operation for ECS Extension.

func (*S3) HeadObjectExtensionRequest

func (c *S3) HeadObjectExtensionRequest(input *s3.HeadObjectInput) (req *request.Request, output *HeadObjectOutput)

HeadObjectExtensionRequest generates a request.Request

func (*S3) HeadObjectExtensionWithContext

func (c *S3) HeadObjectExtensionWithContext(ctx aws.Context, input *s3.HeadObjectInput, opts ...request.Option) (*HeadObjectOutput, error)

HeadObjectExtensionWithContext is the same as HeadObject with the addition of the ability to pass a context and additional request options.

func (*S3) ListBucketMetadataSearch

func (c *S3) ListBucketMetadataSearch(input *ListBucketMetadataSearchInput) (*ListBucketMetadataSearchOutput, error)

ListBucketMetadataSearch API operation for ECS Extension.

func (*S3) ListBucketMetadataSearchRequest

func (c *S3) ListBucketMetadataSearchRequest(input *ListBucketMetadataSearchInput) (req *request.Request, output *ListBucketMetadataSearchOutput)

ListBucketMetadataSearchRequest generates a request.Request

func (*S3) ListBucketMetadataSearchWithContext

func (c *S3) ListBucketMetadataSearchWithContext(ctx aws.Context, input *ListBucketMetadataSearchInput, opts ...request.Option) (*ListBucketMetadataSearchOutput, error)

ListBucketMetadataSearchWithContext is the same as ListBucketMetadataSearch with the addition of the ability to pass a context and additional request options.

func (*S3) ListBucketQuery

func (c *S3) ListBucketQuery(input *ListBucketQueryInput) (*ListBucketQueryOutput, error)

ListBucketQuery API operation for ECS Extension.

func (*S3) ListBucketQueryRequest

func (c *S3) ListBucketQueryRequest(input *ListBucketQueryInput) (req *request.Request, output *ListBucketQueryOutput)

ListBucketQueryRequest generates a request.Request

func (*S3) ListBucketQueryWithContext

func (c *S3) ListBucketQueryWithContext(ctx aws.Context, input *ListBucketQueryInput, opts ...request.Option) (*ListBucketQueryOutput, error)

ListBucketQueryWithContext is the same as ListBucketQuery with the addition of the ability to pass a context and additional request options.

func (*S3) PutBucketIsStaleAllowed

func (c *S3) PutBucketIsStaleAllowed(input *PutBucketIsStaleAllowedInput) (*PutBucketIsStaleAllowedOutput, error)

PutBucketIsStaleAllowed API operation for ECS Extension

func (*S3) PutBucketIsStaleAllowedRequest

func (c *S3) PutBucketIsStaleAllowedRequest(input *PutBucketIsStaleAllowedInput) (req *request.Request, output *PutBucketIsStaleAllowedOutput)

PutBucketIsStaleAllowedRequest generates request.Request

func (*S3) PutBucketIsStaleAllowedWithContext

func (c *S3) PutBucketIsStaleAllowedWithContext(ctx aws.Context, input *PutBucketIsStaleAllowedInput, opts ...request.Option) (*PutBucketIsStaleAllowedOutput, error)

PutBucketIsStaleAllowedWithContext is the same as PutBucketIsStaleAllowed with the addition of the ability to pass a context and additional request options.

func (*S3) PutObjectExtension

func (c *S3) PutObjectExtension(input *PutObjectInput) (*PutObjectOutput, error)

PutObjectExtension API operation for ECS Extension.

func (*S3) PutObjectExtensionRequest

func (c *S3) PutObjectExtensionRequest(input *PutObjectInput) (req *request.Request, output *PutObjectOutput)

PutObjectExtensionRequest generates a request.Request

func (*S3) PutObjectExtensionWithContext

func (c *S3) PutObjectExtensionWithContext(ctx aws.Context, input *PutObjectInput, opts ...request.Option) (*PutObjectOutput, error)

PutObjectExtensionWithContext is the same as PutObject with the addition of the ability to pass a context and additional request options.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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