Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶ added in v0.0.7
LoadConfig() will load a YAML config file at the specified path. There are some general considerations about how this is done with spf13/viper:
1. There are intentionally no search paths set, so config path has to be set explicitly 2. No data will be written to the config file from the tool 3. Parameters passed as CLI flags and envirnoment variables should always have precedence over values set in the config.
func Login ¶ added in v0.0.7
Login() initiates the process to retrieve an access token from an identity provider. This function is especially designed to work by OPAAL, but will propably be changed in the future to be more agnostic.
The 'targetHost' and 'targetPort' parameters should point to the target host/port to create a temporary server to receive the access token. If an empty 'targetHost' or an invalid port range is passed, then neither of the parameters will be used and no server will be started.
Returns an access token as a string if successful and nil error. Otherwise, returns an empty string with an error set.
Types ¶
This section is empty.