connector

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 30 Imported by: ? 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 (
	ActionEnableUser  = "enable_user"
	ActionDisableUser = "disable_user"
	ActionUpdateUser  = "update_user"
)
View Source
const (
	ActionIssueOrganizationAPIKey           = "issue_organization_api_key"
	ActionIssueServiceAccountApplicationKey = "issue_service_account_application_key"
)

Variables

This section is empty.

Functions

func New

New returns a new instance of the connector. It matches the cli.NewConnector[*cfg.Datadog] signature required by config.RunConnector for container/V2 deployment.

Types

type Datadog

type Datadog struct {
	SyncSecrets   bool
	SyncSchedules bool
	// AllowOrgAPIKeyDeletion is the operator's explicit grant to destroy
	// Datadog organization API keys. It is deliberately not implied by
	// SyncSecrets: reading a credential inventory is not consent to delete
	// from it, and an install already running with sync-secrets on must not
	// acquire org-wide key deletion merely by upgrading the connector.
	AllowOrgAPIKeyDeletion bool
	// SyncServiceAccountApplicationKeys is the operator's attestation that the
	// connector's Datadog role holds service_account_write. Without it,
	// listing a service account's application keys 403s and fails the whole
	// sync, so registering that syncer unconditionally would break every
	// existing sync-secrets install on upgrade. Off by default for that
	// reason, not because the capability is optional in itself.
	SyncServiceAccountApplicationKeys bool
	// contains filtered or unexported fields
}

func (*Datadog) GlobalActions added in v0.2.5

func (d *Datadog) GlobalActions(ctx context.Context, registry actions.ActionRegistry) error

GlobalActions registers enable_user and disable_user as global (non-resource-scoped) connector actions. C1's account-lifecycle pipeline looks the ACCOUNT_ENABLE / ACCOUNT_DISABLE action schemas up as global (resource_type_id=""), so registering them here — rather than resource-scoped via userBuilder.ResourceActions — is what makes them reachable through the "Account lifecycle action" step. This matches how baton-aws-cognito / baton-atlassian / baton-active-directory register the same actions.

func (*Datadog) Metadata

func (d *Datadog) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

func (*Datadog) ResourceSyncers

func (d *Datadog) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncerV2

ResourceSyncers returns a ResourceSyncer for each resource type that should be synced from the upstream service.

func (*Datadog) Validate

func (d *Datadog) Validate(ctx context.Context) (annotations.Annotations, error)

Validate is called to ensure that the connector is properly configured. It should exercise any API credentials to be sure that they are valid.

Jump to

Keyboard shortcuts

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