config

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 21 Imported by: 1 module, 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

This section is empty.

Variables

This section is empty.

Functions

func CacheOptions added in v1.8.0

func CacheOptions(logger logr.Logger, opts WatchOptions) cache.Options

CacheOptions function configures Controller Runtime cache options on a resource level (supported in v0.16+). Datadog CRDs and additional resources required for their reconciliation will be cached only if the respective feature is enabled.

Types

type CredentialManager added in v0.6.0

type CredentialManager struct {
	// contains filtered or unexported fields
}

CredentialManager provides the credentials from the operator configuration.

func NewCredentialManager added in v0.6.0

func NewCredentialManager() *CredentialManager

NewCredentialManager returns a CredentialManager.

func (*CredentialManager) GetCredentials added in v0.6.0

func (cm *CredentialManager) GetCredentials() (Creds, error)

GetCredentials returns the API and APP keys respectively from the operator configurations. This function tries to decrypt the secrets using the secret backend if needed. It returns an error if the creds aren't configured or if the secret backend fails to decrypt.

type Creds added in v0.6.0

type Creds struct {
	APIKey string
	AppKey string
}

Creds holds the api and app keys.

type WatchOptions added in v1.8.0

type WatchOptions struct {
	DatadogAgentEnabled        bool
	DatadogMonitorEnabled      bool
	DatadogSLOEnabled          bool
	DatadogAgentProfileEnabled bool
	IntrospectionEnabled       bool
}

Jump to

Keyboard shortcuts

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