Documentation
¶
Index ¶
- Constants
- func GetBase64ChecksumLength(checksumType string) (int64, error)
- 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 OpenSSLPayloadManager
- type Payload
- type PayloadChunked
- type PayloadChunkedAWS
- type PayloadSizeCalculator
- type PayloadStreamingAWS4HMACSHA256
- type PayloadType
- type PutBucketTaggingCommand
- type PutBucketTaggingFields
- type PutBucketTaggingTags
- type S3Command
- type S3CommandConverter
- type S3CommandErrors
- type S3RESTCommand
- 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 WholePayload
Constants ¶
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 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 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
}
func NewPayloadStreamingAWS4HMACSHA256 ¶ added in v1.0.19
func NewPayloadStreamingAWS4HMACSHA256(source DataSource, chunkSize int64, serviceString, currentDateTime 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 {
*S3Command
TagCount *int
Tags *PutBucketTaggingTags
}
func NewPutBucketTaggingCommand ¶ added in v1.0.19
func NewPutBucketTaggingCommand(s3Command *S3Command, fields *PutBucketTaggingFields) (*PutBucketTaggingCommand, error)
type PutBucketTaggingFields ¶ added in v1.0.19
type PutBucketTaggingTags ¶ added in v1.0.19
type PutBucketTaggingTags struct {
XMLName xml.Name `xml:"Tagging"`
XMLNamespace string `xml:"xmlns,attr"`
TagSet TagSet `xml:"TagSet"`
}
func (*PutBucketTaggingTags) AddTags ¶ added in v1.0.19
func (p *PutBucketTaggingTags) AddTags(keys, values []string) error
func (*PutBucketTaggingTags) GenerateKeyValuePairs ¶ added in v1.0.19
func (p *PutBucketTaggingTags) GenerateKeyValuePairs(count int)
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
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 NewPutObjectCommand ¶ added in v1.0.19
func (*S3Command) CurlShellCommand ¶
func (*S3Command) OpenSSLCommand ¶
type S3CommandConverter ¶ added in v1.0.19
type S3CommandErrors ¶ added in v1.0.19
type S3RESTCommand ¶ 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 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
¶
- dataSource.go
- fileDataSource.go
- openSSLPayloadManager.go
- payload.go
- payloadAdder.go
- payloadChunked.go
- payloadChunkedAWS.go
- payloadSizeCalculator.go
- payloadStreamingAWSHMACSHA256.go
- putBucketTaggingCommand.go
- putObjectCommand.go
- s3Command.go
- s3CommandConverter.go
- streamingUnsignedPayloadTrailer.go
- stringDataSource.go
- wholePayload.go
Click to show internal directories.
Click to hide internal directories.