config

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EscapeConfig

type EscapeConfig struct {
	ActiveProfile string                          `json:"current_profile"`
	Profiles      map[string]*EscapeConfigProfile `json:"profiles"`
	// contains filtered or unexported fields
}

func NewEscapeConfig

func NewEscapeConfig() *EscapeConfig

func (*EscapeConfig) FromJson

func (e *EscapeConfig) FromJson(cfgFile string) error

func (*EscapeConfig) GetCurrentProfile

func (e *EscapeConfig) GetCurrentProfile() *EscapeConfigProfile

func (*EscapeConfig) GetInventory

func (c *EscapeConfig) GetInventory() inventory.Inventory

func (*EscapeConfig) LoadConfig

func (e *EscapeConfig) LoadConfig(cfgFile string) error

func (*EscapeConfig) NewProfile

func (c *EscapeConfig) NewProfile(profileName string) error

func (*EscapeConfig) Save

func (e *EscapeConfig) Save() error

func (*EscapeConfig) SetActiveProfile

func (e *EscapeConfig) SetActiveProfile(profile string) error

type EscapeConfigProfile

type EscapeConfigProfile struct {
	ApiServer          string `json:"api_server"`
	AuthToken          string `json:"escape_auth_token"`
	BasicAuthUsername  string `json:"basic_auth_username"`
	BasicAuthPassword  string `json:"basic_auth_password"`
	InsecureSkipVerify bool   `json:"insecure_skip_verify"`
	StatePath          string `json:"state_path"`
	// contains filtered or unexported fields
}

func (*EscapeConfigProfile) GetApiServer

func (t *EscapeConfigProfile) GetApiServer() string

func (*EscapeConfigProfile) GetAuthToken

func (t *EscapeConfigProfile) GetAuthToken() string

func (*EscapeConfigProfile) GetInsecureSkipVerify

func (t *EscapeConfigProfile) GetInsecureSkipVerify() bool

func (*EscapeConfigProfile) GetInventory

func (t *EscapeConfigProfile) GetInventory() inventory.Inventory

func (*EscapeConfigProfile) GetStatePath

func (t *EscapeConfigProfile) GetStatePath() string

func (*EscapeConfigProfile) Save

func (t *EscapeConfigProfile) Save() error

func (*EscapeConfigProfile) SetApiServer

func (t *EscapeConfigProfile) SetApiServer(v string)

func (*EscapeConfigProfile) SetAuthToken

func (t *EscapeConfigProfile) SetAuthToken(v string)

func (*EscapeConfigProfile) SetBasicAuthCredentials

func (t *EscapeConfigProfile) SetBasicAuthCredentials(username, password string)

func (*EscapeConfigProfile) SetInsecureSkipVerify

func (t *EscapeConfigProfile) SetInsecureSkipVerify(v bool)

func (*EscapeConfigProfile) ToJson

func (t *EscapeConfigProfile) ToJson() string

Jump to

Keyboard shortcuts

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