config

package
v0.0.0-...-c303a62 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 2 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"`
}

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

Jump to

Keyboard shortcuts

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