Documentation ¶
Index ¶
- type EscapeConfig
- func (e *EscapeConfig) FromJson(cfgFile string) error
- func (e *EscapeConfig) GetCurrentProfile() *EscapeConfigProfile
- func (c *EscapeConfig) GetInventory() inventory.Inventory
- func (e *EscapeConfig) LoadConfig(cfgFile string) error
- func (c *EscapeConfig) NewProfile(profileName string) error
- func (e *EscapeConfig) Save() error
- func (e *EscapeConfig) SetActiveProfile(profile string) error
- type EscapeConfigProfile
- func (t *EscapeConfigProfile) GetApiServer() string
- func (t *EscapeConfigProfile) GetAuthToken() string
- func (t *EscapeConfigProfile) GetInsecureSkipVerify() bool
- func (t *EscapeConfigProfile) GetInventory() inventory.Inventory
- func (t *EscapeConfigProfile) GetStatePath() string
- func (t *EscapeConfigProfile) Save() error
- func (t *EscapeConfigProfile) SetApiServer(v string)
- func (t *EscapeConfigProfile) SetAuthToken(v string)
- func (t *EscapeConfigProfile) SetBasicAuthCredentials(username, password string)
- func (t *EscapeConfigProfile) SetInsecureSkipVerify(v bool)
- func (t *EscapeConfigProfile) ToJson() string
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
Click to show internal directories.
Click to hide internal directories.