Documentation ¶
Index ¶
Constants ¶
View Source
const EmptyRegion = " "
EmptyRegion is required to allow us to use the AWS SDK against S3 compatible blobstores which do not have the concept of a region
View Source
const NoneCredentialsSource = "none"
NoneCredentialsSource specifies that credentials will be empty. The blobstore client operates in read only mode.
View Source
const StaticCredentialsSource = "static"
StaticCredentialsSource specifies that credentials will be supplied using access_key_id and secret_access_key
Variables ¶
This section is empty.
Functions ¶
func AWSHostToRegion ¶ added in v0.0.53
func AlicloudHostToRegion ¶ added in v0.0.65
Types ¶
type S3Cli ¶
type S3Cli struct { AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"secret_access_key"` BucketName string `json:"bucket_name"` FolderName string `json:"folder_name"` CredentialsSource string `json:"credentials_source"` Host string `json:"host"` Port int `json:"port"` // 0 means no custom port Region string `json:"region"` SSLVerifyPeer bool `json:"ssl_verify_peer"` UseSSL bool `json:"use_ssl"` SignatureVersion int `json:"signature_version,string"` ServerSideEncryption string `json:"server_side_encryption"` SSEKMSKeyID string `json:"sse_kms_key_id"` AssumeRoleArn string `json:"assume_role_arn"` MultipartUpload bool `json:"multipart_upload"` UseV2SigningMethod bool HostStyle bool `json:"host_style"` }
The S3Cli represents configuration for the s3cli
func NewFromReader ¶
NewFromReader returns a new s3cli configuration struct from the contents of reader. reader.Read() is expected to return valid JSON
func (*S3Cli) S3Endpoint ¶
S3Endpoint returns the S3 URI to use if custom host information has been provided
Click to show internal directories.
Click to hide internal directories.