Documentation
¶
Index ¶
- func CredentialsPresent() bool
- func DistinctIDFromCredentials() string
- func GetAPIKeyAndSecret() (string, string)
- func GetCredentialsConfigPath() string
- func GetPostmanAPIKeyAndEnvironment() (string, string)
- func WriteAPIKeyAndSecret(profile, keyID, keySecret string) error
- func WritePostmanAPIKeyAndEnvironment(profile, postmanApiKey, postmanEnvironment string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredentialsPresent ¶ added in v0.28.4
func CredentialsPresent() bool
Check whether credentials are present, of any variety.
func DistinctIDFromCredentials ¶ added in v0.28.4
func DistinctIDFromCredentials() string
If we can't call /v1/user to get a distinct ID, we can try using the credentials provided -- for now this is just an Akita API Key ID. To use a Postman API key we'd have to both obfuscate it (logging the user's API key would be bad) and have a way to map it to a particular user -- seems better to fall back to local IDs.
func GetAPIKeyAndSecret ¶
func GetCredentialsConfigPath ¶
func GetCredentialsConfigPath() string
func GetPostmanAPIKeyAndEnvironment ¶ added in v0.26.1
Get Postman API key and environment from config file
func WriteAPIKeyAndSecret ¶
Writes API key ID and secret to the config file.
func WritePostmanAPIKeyAndEnvironment ¶ added in v0.26.1
Writes Postman API key and environment to the config file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.