Documentation
¶
Index ¶
- Constants
- func New(ctx context.Context, ddc *cfg.Datadog, _ *cli.ConnectorOpts) (connectorbuilder.ConnectorBuilderV2, []connectorbuilder.Opt, error)
- type Datadog
- func (d *Datadog) GlobalActions(ctx context.Context, registry actions.ActionRegistry) error
- func (d *Datadog) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
- func (d *Datadog) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncerV2
- func (d *Datadog) Validate(ctx context.Context) (annotations.Annotations, error)
Constants ¶
const ( ActionEnableUser = "enable_user" ActionDisableUser = "disable_user" ActionUpdateUser = "update_user" )
const ( ActionIssueOrganizationAPIKey = "issue_organization_api_key" ActionIssueServiceAccountApplicationKey = "issue_service_account_application_key" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, ddc *cfg.Datadog, _ *cli.ConnectorOpts) (connectorbuilder.ConnectorBuilderV2, []connectorbuilder.Opt, error)
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
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) 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.