Documentation
¶
Index ¶
- func Write(c *State, filePath string) error
- type State
- func (s *State) GetAWSCredentials(engine, role string) *client.AWSCredentials
- func (s *State) GetCachedEngineRoles(engine string) []string
- func (s *State) GetCachedEngines() []string
- func (s *State) GetCurrentAWSCredentials() *client.AWSCredentials
- func (s *State) SetAWSCredentials(engine, role string, creds *client.AWSCredentials)
- func (s *State) SetCurrentAWSCredentials(creds *client.AWSCredentials)
- func (s *State) SetCurrentEngine(engine string)
- func (s *State) SetCurrentRole(role string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type State ¶
type State struct {
Current struct {
Engine string `json:"engine,omitempty"`
Role string `json:"role,omitempty"`
} `json:"current,omitempty"`
AWSCredentials map[string]map[string]*client.AWSCredentials `json:"creds,omitempty"`
}
State ..
func (*State) GetAWSCredentials ¶
func (s *State) GetAWSCredentials(engine, role string) *client.AWSCredentials
GetAWSCredentials ..
func (*State) GetCachedEngineRoles ¶
GetCachedEngineRoles ..
func (*State) GetCurrentAWSCredentials ¶
func (s *State) GetCurrentAWSCredentials() *client.AWSCredentials
GetCurrentAWSCredentials ..
func (*State) SetAWSCredentials ¶
func (s *State) SetAWSCredentials(engine, role string, creds *client.AWSCredentials)
SetAWSCredentials ..
func (*State) SetCurrentAWSCredentials ¶
func (s *State) SetCurrentAWSCredentials(creds *client.AWSCredentials)
SetCurrentAWSCredentials ..
func (*State) SetCurrentEngine ¶
SetCurrentEngine ..
Click to show internal directories.
Click to hide internal directories.