Documentation
¶
Index ¶
- Constants
- func GetBase64ChecksumLength(checksumType string) (int64, error)
- type CORSConfiguration
- type CORSRule
- type CreateBucketCommand
- type CreateBucketCommandXML
- type DataSource
- type FileDataSource
- func (f *FileDataSource) CalculateSHA256HashString() (string, error)
- func (f *FileDataSource) Close() error
- func (f *FileDataSource) GetReader() (io.Reader, error)
- func (f *FileDataSource) GetTeeReader(checksumWriter io.Writer) (io.Reader, error)
- func (f *FileDataSource) SourceDataByteSize() (int64, error)
- type HeaderValue
- type OpenSSLPayloadManager
- type Payload
- type PayloadChunked
- type PayloadChunkedAWS
- type PayloadSizeCalculator
- type PayloadStreamingAWS4HMACSHA256
- type PayloadType
- type PutBucketTaggingCommand
- type PutObjectTaggingCommand
- type PutTaggingCommand
- type S3Command
- type S3CommandConverter
- type StreamingUnsignedPayloadWithTrailer
- type StringDataSource
- func (s *StringDataSource) CalculateSHA256HashString() (string, error)
- func (s *StringDataSource) Close() error
- func (s *StringDataSource) GetReader() (io.Reader, error)
- func (s *StringDataSource) GetTeeReader(checksumWriter io.Writer) (io.Reader, error)
- func (s *StringDataSource) SourceDataByteSize() (int64, error)
- type Tag
- type TagAdder
- type TagSet
- type Tagging
- type TaggingFields
- type WholePayload
Constants ¶
View Source
const ( AllowedMethods = "allowedMethods" AllowedOrigins = "allowedOrigins" AllowedHeaders = "allowedHeaders" ExposedHeaders = "exposedHeaders" ID = "id" MaxAgeSeconds = "maxAgeSeconds" )
View Source
const ( CURL = "curl" OPENSSL = "openssl" )
View Source
const ( UnsignedPayload = "UNSIGNED-PAYLOAD" StreamingAWS4HMACSHA256Payload = "STREAMING-AWS4-HMAC-SHA256-PAYLOAD" StreamingAWS4HMACSHA256PayloadTrailer = "STREAMING-AWS4-HMAC-SHA256-PAYLOAD-TRAILER" StreamingUnsignedPayloadTrailer = "STREAMING-UNSIGNED-PAYLOAD-TRAILER" StreamingAWS4ECDSAP256SHA256Payload = "STREAMING-AWS4-ECDSA-P256-SHA256-PAYLOAD" StreamingAWS4ECDSAP256SHA256PayloadTrailer = "STREAMING-AWS4-ECDSA-P256-SHA256-PAYLOAD-TRAILER" )
View Source
const ( ChecksumCRC32 = "crc32" ChecksumCRC32C = "crc32c" ChecksumCRC64NVME = "crc64nvme" ChecksumSHA1 = "sha1" ChecksumSHA256 = "sha256" )
View Source
const SHA256HashZeroBytes = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
Variables ¶
This section is empty.
Functions ¶
func GetBase64ChecksumLength ¶ added in v1.0.19
Types ¶
type CORSConfiguration ¶ added in v1.3.1
type CORSRule ¶ added in v1.3.1
type CORSRule struct {
XMLName xml.Name `xml:"CORSRule"`
AllowedMethod []string `xml:"AllowedMethod"`
AllowedOrigin []string `xml:"AllowedOrigin"`
AllowedHeader []string `xml:"AllowedHeader,omitempty"`
ExposeHeader []string `xml:"ExposeHeader,omitempty"`
ID string `xml:"ID,omitempty"`
MaxAgeSeconds string `xml:"MaxAgeSeconds,omitempty"`
}
type CreateBucketCommand ¶ added in v1.0.20
type CreateBucketCommand struct {
*S3Command
Config *CreateBucketCommandXML
}
func NewCreateBucketCommand ¶ added in v1.0.20
func NewCreateBucketCommand(s3Command *S3Command, locationConstraint string, constraintSet bool) (*CreateBucketCommand, error)
type CreateBucketCommandXML ¶ added in v1.0.20
type DataSource ¶ added in v1.0.19
type FileDataSource ¶ added in v1.0.19
func NewFileDataSource ¶ added in v1.0.19
func NewFileDataSource(filePath string) *FileDataSource
func (*FileDataSource) CalculateSHA256HashString ¶ added in v1.0.19
func (f *FileDataSource) CalculateSHA256HashString() (string, error)
func (*FileDataSource) Close ¶ added in v1.0.19
func (f *FileDataSource) Close() error
func (*FileDataSource) GetReader ¶ added in v1.0.19
func (f *FileDataSource) GetReader() (io.Reader, error)
func (*FileDataSource) GetTeeReader ¶ added in v1.0.19
func (*FileDataSource) SourceDataByteSize ¶ added in v1.0.19
func (f *FileDataSource) SourceDataByteSize() (int64, error)
type HeaderValue ¶ added in v1.3.1
type OpenSSLPayloadManager ¶ added in v1.0.19
type Payload ¶ added in v1.0.19
type Payload struct {
// contains filtered or unexported fields
}
func (*Payload) GetDataSize ¶ added in v1.0.19
type PayloadChunked ¶ added in v1.0.19
type PayloadChunked struct {
*Payload
// contains filtered or unexported fields
}
type PayloadChunkedAWS ¶ added in v1.0.19
type PayloadChunkedAWS struct {
*PayloadChunked
// contains filtered or unexported fields
}
type PayloadSizeCalculator ¶ added in v1.0.19
type PayloadSizeCalculator interface {
CalculatePayloadSize() int64
}
type PayloadStreamingAWS4HMACSHA256 ¶ added in v1.0.19
type PayloadStreamingAWS4HMACSHA256 struct {
*PayloadChunkedAWS
// contains filtered or unexported fields
}
func NewPayloadStreamingAWS4HMACSHA256 ¶ added in v1.0.19
func NewPayloadStreamingAWS4HMACSHA256(source DataSource, chunkSize int64, payloadType PayloadType, serviceString string, currentDateTime, yyyymmdd, checksumType string) *PayloadStreamingAWS4HMACSHA256
func (*PayloadStreamingAWS4HMACSHA256) AddInitialSignatureAndSigningKey ¶ added in v1.0.19
func (s *PayloadStreamingAWS4HMACSHA256) AddInitialSignatureAndSigningKey(initialSignature string, signingKey []byte)
func (*PayloadStreamingAWS4HMACSHA256) GetContentLength ¶ added in v1.0.19
func (s *PayloadStreamingAWS4HMACSHA256) GetContentLength() (int64, error)
func (*PayloadStreamingAWS4HMACSHA256) WritePayload ¶ added in v1.0.19
func (s *PayloadStreamingAWS4HMACSHA256) WritePayload(filePath string) error
type PayloadType ¶ added in v1.0.19
type PayloadType string
type PutBucketTaggingCommand ¶ added in v1.0.19
type PutBucketTaggingCommand struct {
*PutTaggingCommand
}
func NewPutBucketTaggingCommand ¶ added in v1.0.19
func NewPutBucketTaggingCommand(s3Command *S3Command, fields *TaggingFields) (*PutBucketTaggingCommand, error)
type PutObjectTaggingCommand ¶ added in v1.0.20
type PutObjectTaggingCommand struct {
*PutTaggingCommand
}
func NewPutObjectTaggingCommand ¶ added in v1.0.20
func NewPutObjectTaggingCommand(s3Command *S3Command, fields *TaggingFields) (*PutObjectTaggingCommand, error)
type PutTaggingCommand ¶ added in v1.0.20
type S3Command ¶
type S3Command struct {
Client string
Method string
Url string
BucketName string
ObjectKey string
Query string
AwsRegion string
AwsAccessKeyId string
AwsSecretAccessKey string
ServiceName string
SignedParams map[string]string
UnsignedParams map[string]string
PayloadFile string
IncorrectSignature bool
AuthorizationHeaderMalformed bool
AuthorizationScheme string
IncorrectCredential string
IncorrectYearMonthDay bool
InvalidYearMonthDay bool
Payload string
ContentMD5 bool
IncorrectContentMD5 bool
CustomContentMD5 string
MissingHostParam bool
FilePath string
CustomHostParam string
CustomHostParamSet bool
PayloadType string
ChunkSize int
ChecksumType string
OmitPayloadTrailer bool
OmitPayloadTrailerKey bool
OmitContentLength bool
// contains filtered or unexported fields
}
func NewPutBucketCORSCommand ¶ added in v1.3.1
func NewPutObjectCommand ¶ added in v1.0.19
func (*S3Command) CurlShellCommand ¶
func (*S3Command) OpenSSLCommand ¶
type S3CommandConverter ¶ added in v1.0.19
type StreamingUnsignedPayloadWithTrailer ¶ added in v1.0.19
type StreamingUnsignedPayloadWithTrailer struct {
*PayloadChunked
// contains filtered or unexported fields
}
func NewStreamingUnsignedPayloadWithTrailer ¶ added in v1.0.19
func NewStreamingUnsignedPayloadWithTrailer(source DataSource, chunkSize int64, checksumType string) *StreamingUnsignedPayloadWithTrailer
func (*StreamingUnsignedPayloadWithTrailer) GetContentLength ¶ added in v1.0.19
func (s *StreamingUnsignedPayloadWithTrailer) GetContentLength() (int64, error)
func (*StreamingUnsignedPayloadWithTrailer) OmitTrailerOrKey ¶ added in v1.0.19
func (s *StreamingUnsignedPayloadWithTrailer) OmitTrailerOrKey(omitTrailer, omitTrailerKey bool)
func (*StreamingUnsignedPayloadWithTrailer) WritePayload ¶ added in v1.0.19
func (s *StreamingUnsignedPayloadWithTrailer) WritePayload(filePath string) error
type StringDataSource ¶ added in v1.0.19
type StringDataSource struct {
// contains filtered or unexported fields
}
func NewStringDataSource ¶ added in v1.0.19
func NewStringDataSource(dataString string) *StringDataSource
func (*StringDataSource) CalculateSHA256HashString ¶ added in v1.0.19
func (s *StringDataSource) CalculateSHA256HashString() (string, error)
func (*StringDataSource) Close ¶ added in v1.0.19
func (s *StringDataSource) Close() error
func (*StringDataSource) GetReader ¶ added in v1.0.19
func (s *StringDataSource) GetReader() (io.Reader, error)
func (*StringDataSource) GetTeeReader ¶ added in v1.0.19
func (*StringDataSource) SourceDataByteSize ¶ added in v1.0.19
func (s *StringDataSource) SourceDataByteSize() (int64, error)
type Tagging ¶ added in v1.0.20
type Tagging struct {
XMLName xml.Name `xml:"Tagging"`
XMLNamespace string `xml:"xmlns,attr"`
TagSet TagSet `xml:"TagSet"`
}
func (*Tagging) GenerateKeyValuePairs ¶ added in v1.0.20
type TaggingFields ¶ added in v1.0.20
type WholePayload ¶ added in v1.0.19
type WholePayload struct {
*Payload
}
func NewWholePayload ¶ added in v1.0.19
func NewWholePayload(dataSource DataSource) *WholePayload
func (*WholePayload) CalculatePayloadSize ¶ added in v1.0.19
func (w *WholePayload) CalculatePayloadSize() (int64, error)
func (*WholePayload) GetContentLength ¶ added in v1.0.19
func (w *WholePayload) GetContentLength() (int64, error)
func (*WholePayload) WritePayload ¶ added in v1.0.19
func (w *WholePayload) WritePayload(filePath string) error
Source Files
¶
- createBucketCommand.go
- dataSource.go
- fileDataSource.go
- openSSLPayloadManager.go
- payload.go
- payloadAdder.go
- payloadChunked.go
- payloadChunkedAWS.go
- payloadSizeCalculator.go
- payloadStreamingAWSHMACSHA256.go
- putBucketCorsCommand.go
- putBucketTaggingCommand.go
- putObjectCommand.go
- putObjectTaggingCommand.go
- putTaggingCommand.go
- s3Command.go
- s3CommandConverter.go
- streamingUnsignedPayloadTrailer.go
- stringDataSource.go
- tagging.go
- wholePayload.go
Click to show internal directories.
Click to hide internal directories.