external

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 11 Imported by: 6 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	UCloudPublicKeyEnvVar = "UCLOUD_PUBLIC_KEY"

	UCloudPrivateKeyEnvVar = "UCLOUD_PRIVATE_KEY"

	UCloudProjectIdEnvVar = "UCLOUD_PROJECT_ID"

	UCloudRegionEnvVar = "UCLOUD_REGION"

	UCloudSharedProfileEnvVar = "UCLOUD_PROFILE"

	UCloudSharedConfigFileEnvVar = "UCLOUD_SHARED_CONFIG_FILE"

	UCloudSharedCredentialFileEnvVar = "UCLOUD_SHARED_CREDENTIAL_FILE"
)

Variables

This section is empty.

Functions

func DefaultSharedConfigFile

func DefaultSharedConfigFile() string

DefaultSharedConfigFile will return the default shared config filename

func DefaultSharedCredentialsFile

func DefaultSharedCredentialsFile() string

DefaultSharedCredentialsFile will return the default shared credential filename

Types

type ConfigProvider

type ConfigProvider interface {
	Credential() *auth.Credential

	Config() *ucloud.Config
}

ConfigProvider is the provider to store and provide config/credential instance

func LoadDefaultUCloudConfig

func LoadDefaultUCloudConfig() (ConfigProvider, error)

LoadDefaultUCloudConfig is the default loader to load config

Jump to

Keyboard shortcuts

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