Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidS3URLScheme ¶
func IsValidS3URLScheme(s3URL string) bool
IsValidS3URLScheme returns true if the scheme is http:// or https:// and the url parses correctly, otherwise, return false
Types ¶
type ObjectStore ¶
type ObjectStore struct {
// contains filtered or unexported fields
}
func (*ObjectStore) GetObject ¶
func (o *ObjectStore) GetObject(ctx context.Context) (io.ReadCloser, error)
type Options ¶
type Options struct {
Bucket string `json:"bucket,omitempty"`
Key string `json:"key,omitempty"`
SkipClientCredentials bool `json:"skip-client-credentials,omitempty" url:"skip-client-credentials"`
AccessKeyID string `json:"access-key-id,omitempty" url:"access-key-id,base64"`
SecretAccessKey string `json:"secret-access-key,omitempty" url:"secret-access-key,base64"`
SessionToken string `json:"session-token,omitempty" url:"session-token,base64"`
Region string `json:"region,omitempty" url:"region"`
Profile string `json:"profile,omitempty" url:"profile"`
S3URL string `json:"url,omitempty" url:"url,base64"`
PublicURL string `json:"public-url,omitempty" url:"public-url,base64"`
KmsKeyID string `json:"kms-key-id,omitempty" url:"kms-key-id,base64"`
Tagging string `json:"tagging,omitempty" url:"tagging,base64"`
S3ForcePathStyle bool `json:"force-path-style,omitempty" url:"force-path-style"`
InsecureSkipTLSVerify bool `json:"insecure-skip-tls-verify,omitempty" url:"insecure-skip-tls-verify"`
CustomerKeyEncryptionFile string `json:"custom-key-encryption-file,omitempty" url:"custom-key-encryption-file,base64"`
CredentialsFile string `json:"credentials-file,omitempty" url:"credentials-file,base64"`
ServerSideEncryption string `json:"server-side-encryption,omitempty" url:"server-side-encryption,base64"`
CaCert string `json:"ca-cert,omitempty" url:"ca-cert,base64"`
ChecksumAlgorithm string `json:"checksum-algorithm,omitempty" url:"checksum-algorithm"`
}
func (*Options) FillCredentials ¶
func (o *Options) FillCredentials(isClient bool)
Click to show internal directories.
Click to hide internal directories.