client

package
v0.117.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PreferredIngestKeyName = "Installer Ingest License Key"
)

Variables

View Source
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

func FetchLicenseKey(accountID int, profileName string, maxTimeoutSeconds *int) (string, error)

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 NewClient added in v0.30.0

func NewClient(profileName string) (*newrelic.NewRelic, error)

NewClient initializes the New Relic client.

func RequireClient added in v0.30.0

func RequireClient(cmd *cobra.Command, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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