cfg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 GetAPIKeyAndSecret() (string, string)

func GetCredentialsConfigPath

func GetCredentialsConfigPath() string

func GetPostmanAPIKeyAndEnvironment added in v0.26.1

func GetPostmanAPIKeyAndEnvironment() (string, string)

Get Postman API key and environment from config file

func WriteAPIKeyAndSecret

func WriteAPIKeyAndSecret(profile, keyID, keySecret string) error

Writes API key ID and secret to the config file.

func WritePostmanAPIKeyAndEnvironment added in v0.26.1

func WritePostmanAPIKeyAndEnvironment(profile, postmanApiKey, postmanEnvironment string) error

Writes Postman API key and environment to the config file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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