Documentation
¶
Index ¶
- func ExtractNewRelicAccountID(pc *apisv1alpha1.ProviderConfig) (account int, err error)
- func ExtractNewRelicCredentials(ctx context.Context, kube client.Client, pc *apisv1alpha1.ProviderConfig) (client *newrelic.NewRelic, err error)
- func GetNerdGraphClient(newRelicAPIKey string) (client nerdgraph.NerdGraph, err error)
- func GetNewRelicClient(newRelicAPIKey string, region *string) (client *newrelic.NewRelic, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNewRelicAccountID ¶ added in v0.1.7
func ExtractNewRelicAccountID(pc *apisv1alpha1.ProviderConfig) (account int, err error)
ExtractNewRelicAccountID gets the accountID from the provider config
func ExtractNewRelicCredentials ¶ added in v0.1.7
func ExtractNewRelicCredentials(ctx context.Context, kube client.Client, pc *apisv1alpha1.ProviderConfig) (client *newrelic.NewRelic, err error)
func GetNerdGraphClient ¶
GetNerdGraphClient gets a new client https://github.com/newrelic/newrelic-client-go
func GetNewRelicClient ¶
func GetNewRelicClient(newRelicAPIKey string, region *string) (client *newrelic.NewRelic, err error)
GetNewRelicClient gets a new client https://github.com/newrelic/newrelic-client-go https://pkg.go.dev/github.com/newrelic/newrelic-client-go/v2/pkg/config@v2.23.0#ConfigOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.