Documentation
¶
Index ¶
- Constants
- Variables
- func FetchAllLicenseKeys(ctx context.Context, client *newrelic.NewRelic, accountID int) ([]apiaccess.APIKey, error)
- func FetchLicenseKey(accountID int, profileName string, maxTimeoutSeconds *int) (string, error)
- func LicenseKeyAutoFetched() bool
- func NewClient(profileName string) (*newrelic.NewRelic, error)
- func RequireClient(cmd *cobra.Command, args []string)
Constants ¶
const (
PreferredIngestKeyName = "Installer Ingest License Key"
)
Variables ¶
var (
NRClient *newrelic.NewRelic
)
Functions ¶
func FetchAllLicenseKeys ¶ added in v0.115.9
func FetchAllLicenseKeys(ctx context.Context, client *newrelic.NewRelic, accountID int) ([]apiaccess.APIKey, error)
FetchAllLicenseKeys returns every LICENSE ingest key for the given account, following pagination cursors until all pages are collected.
func FetchLicenseKey ¶ added in v0.30.0
FetchLicenseKey attempts to fetch and return a customer's license key. If the initial request to fetch a license key fails, we retry the request for a maximum time duration per config.DefaultMaxTimeoutSeconds.
func LicenseKeyAutoFetched ¶ added in v0.115.9
func LicenseKeyAutoFetched() bool
LicenseKeyAutoFetched reports whether the license key in use was discovered automatically by the CLI this run, rather than provided by the user.
func RequireClient ¶ added in v0.30.0
Types ¶
This section is empty.