Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliStorageConfig ¶
type AliStorageConfig struct {
AccessKeyID string `json:"access_key_id"`
AccessKeySecret string `json:"access_key_secret"`
Endpoint string `json:"endpoint"`
BucketName string `json:"bucket_name"`
HTTPRequestTimeout string `json:"http_request_timeout"`
HTTPResponseHeaderTimeout string `json:"http_response_header_timeout"`
}
func NewFromReader ¶
func NewFromReader(reader io.Reader) (AliStorageConfig, error)
NewFromReader returns a new ali-storage-cli configuration struct from the contents of reader. reader.Read() is expected to return valid JSON
func (AliStorageConfig) HTTPRequestTimeoutSeconds ¶ added in v1.0.6
func (c AliStorageConfig) HTTPRequestTimeoutSeconds() (int64, error)
func (AliStorageConfig) HTTPResponseHeaderTimeoutDuration ¶ added in v1.0.6
func (c AliStorageConfig) HTTPResponseHeaderTimeoutDuration() (time.Duration, error)
Click to show internal directories.
Click to hide internal directories.