helper

package
v0.0.0-...-abeaa6a Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

func SignRequest(req *http.Request)

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.

Jump to

Keyboard shortcuts

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