Documentation ¶
Index ¶
- func AskForEnvironmentAddInput(env *types.EnvironmentPost)
- func AskForEnvironmentUpdateInput(env *types.EnvironmentPut)
- func AskForGeneralConfigUpdateInput(config *types.GeneralConfig)
- func AskForTowerConfigUpdateInput(config *types.TowerConfiguration)
- func PrintAPIError(body []byte)
- func SignRequest(req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskForEnvironmentAddInput ¶
func AskForEnvironmentAddInput(env *types.EnvironmentPost)
AskForEnvironmentAddInput asks the user for values used in the new Environment. The updated values will be written back to the EnvironmentPost struct (call by reference)
func AskForEnvironmentUpdateInput ¶
func AskForEnvironmentUpdateInput(env *types.EnvironmentPut)
AskForEnvironmentUpdateInput sets the current Environment configuration as default and asks the user for new (updated) values. The updated values will be written back to the EnvironmentPut struct (call by reference)
func AskForGeneralConfigUpdateInput ¶
func AskForGeneralConfigUpdateInput(config *types.GeneralConfig)
AskForGeneralConfigUpdateInput sets the current general Repository configuration as default and asks the user for new (updated) values. The updated values will be written back to the GeneralConfig struct (call by reference)
func AskForTowerConfigUpdateInput ¶
func AskForTowerConfigUpdateInput(config *types.TowerConfiguration)
AskForTowerConfigUpdateInput sets the current Tower configuration as default and asks the user for new (updated) values. The updated values will be written back to the TowerConfiguration struct (call by reference)
func PrintAPIError ¶
func PrintAPIError(body []byte)
PrintAPIError unmarshals the Tower API error body and prints the error message to console
func SignRequest ¶
SignRequest signs the Tower API request with AWS Signature v4 by using the local AWS IAM access key and secret access key.
Types ¶
This section is empty.