credentials

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*ncloud.APIKey
	ApiUrl string
}

func NewCredentialConfig

func NewCredentialConfig(configPath string, profile string) (*Config, error)

func NewCredentialFromEnv

func NewCredentialFromEnv() *Config

func NewCredentialFromFile

func NewCredentialFromFile(configPath string, profile string) *Config

func (*Config) NewCredentialFromCommandLine

func (c *Config) NewCredentialFromCommandLine() error

func (*Config) Valid

func (c *Config) Valid() bool

func (*Config) WriteCredentialToFile

func (c *Config) WriteCredentialToFile(configPath string, profile string)

Jump to

Keyboard shortcuts

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