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 OpsGenieSecrets ¶
type OpsGenieSecrets struct {
APIKey string
}
type PagerDutySecrets ¶
type PagerDutySecrets struct {
ServiceKey string
}
type PrometheusSecrets ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.