thirdpartyintegration

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is returned when the expected integration is not found
	ErrNotFound = errors.New("integration not found")
)
View Source
var (
	// ErrUnsupportedIntegrationType when the integration type is not supported
	ErrUnsupportedIntegrationType = errors.New("unsupported integration type")
)

Functions

This section is empty.

Types

type DatadogSecrets

type DatadogSecrets struct {
	APIKey string
}

type MicrosoftTeamsSecrets

type MicrosoftTeamsSecrets struct {
	WebhookUrl string
}

type NewRelicSecrets

type NewRelicSecrets struct {
	AccountID  string
	LicenseKey string
	ReadToken  string
	WriteToken string
}

type OpsGenieSecrets

type OpsGenieSecrets struct {
	APIKey string
}

type PagerDutySecrets

type PagerDutySecrets struct {
	ServiceKey string
}

type PrometheusSecrets

type PrometheusSecrets struct {
	Username string
	Password string
}

type SlackSecrets

type SlackSecrets struct {
	APIToken string
}

type ThirdPartyIntegration

type ThirdPartyIntegration struct {
	akov2.AtlasThirdPartyIntegrationSpec
	ID                    string
	DatadogSecrets        *DatadogSecrets
	MicrosoftTeamsSecrets *MicrosoftTeamsSecrets
	NewRelicSecrets       *NewRelicSecrets
	OpsGenieSecrets       *OpsGenieSecrets
	PagerDutySecrets      *PagerDutySecrets
	PrometheusSecrets     *PrometheusSecrets
	SlackSecrets          *SlackSecrets
	VictorOpsSecrets      *VictorOpsSecrets
	WebhookSecrets        *WebhookSecrets
}

func NewFromSpec

func NewFromSpec(crd *akov2.AtlasThirdPartyIntegration, secrets map[string][]byte) (*ThirdPartyIntegration, error)

func (*ThirdPartyIntegration) Comparable

func (tpi *ThirdPartyIntegration) Comparable() *ThirdPartyIntegration

Comparable returns a copy of ThirdPartyIntegration without secrets, so that it is comparable

type ThirdPartyIntegrationService

type ThirdPartyIntegrationService interface {
	Create(ctx context.Context, projectID string, integration *ThirdPartyIntegration) (*ThirdPartyIntegration, error)
	Get(ctx context.Context, projectID, integrationType string) (*ThirdPartyIntegration, error)
	Update(ctx context.Context, projectID string, integration *ThirdPartyIntegration) (*ThirdPartyIntegration, error)
	Delete(ctx context.Context, projectID, integrationType string) error
}

func NewThirdPartyIntegrationService

func NewThirdPartyIntegrationService(integrationsAPI admin.ThirdPartyIntegrationsApi) ThirdPartyIntegrationService

func NewThirdPartyIntegrationServiceFromClientSet

func NewThirdPartyIntegrationServiceFromClientSet(clientSet *atlas.ClientSet) ThirdPartyIntegrationService

type VictorOpsSecrets

type VictorOpsSecrets struct {
	APIKey string
}

type WebhookSecrets

type WebhookSecrets struct {
	URL    string
	Secret string
}

Jump to

Keyboard shortcuts

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