configuration

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2016 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCertToLocalStore

func AddCertToLocalStore(cert *x509.Certificate) error

func ChangeConfigFileContents

func ChangeConfigFileContents(content string) error

func GetCertsFromLocalStore

func GetCertsFromLocalStore() (*x509.CertPool, error)

func RemoveCertFromLocalStore

func RemoveCertFromLocalStore(cert *x509.Certificate) error

func RemoveConfigFile

func RemoveConfigFile() error

func SaveConfig

func SaveConfig(config *Configuration) error

Save configuration into config file, will overwrite config file

Types

type Configuration

type Configuration struct {
	CloudTarget       string
	Token             string
	IgnoreCertificate bool
	Tenant            *TenantConfiguration
	Project           *ProjectConfiguration
}

func LoadConfig

func LoadConfig() (*Configuration, error)

Load configuration in config file

type ProjectConfiguration

type ProjectConfiguration struct {
	Name string
	ID   string
}

type TenantConfiguration

type TenantConfiguration struct {
	Name string
	ID   string
}

Jump to

Keyboard shortcuts

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