config

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL