Documentation
¶
Index ¶
- type ArgoCDIntegration
- func (aci *ArgoCDIntegration) DeleteIntegration(ctx context.Context, namespace, integrationName string) error
- func (aci *ArgoCDIntegration) GetIntegrationByName(ctx context.Context, namespace, name string) (*ArgoCDIntegrationData, error)
- func (aci *ArgoCDIntegration) GetIntegrations(ctx context.Context, namespace string) (map[string]ArgoCDIntegrationData, error)
- func (aci *ArgoCDIntegration) SetIntegration(ctx context.Context, namespace, integrationName string, ...) error
- type ArgoCDIntegrationData
- type DataDogIntegration
- func (ddi *DataDogIntegration) DeleteIntegration(ctx context.Context, namespace, integrationName string) error
- func (ddi *DataDogIntegration) GetIntegrationByName(ctx context.Context, namespace, name string) (*DataDogIntegrationData, error)
- func (ddi *DataDogIntegration) GetIntegrations(ctx context.Context, namespace string) (map[string]DataDogIntegrationData, error)
- func (ddi *DataDogIntegration) SetIntegration(ctx context.Context, namespace, integrationName string, ...) error
- type DataDogIntegrationData
- type Integration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoCDIntegration ¶
type ArgoCDIntegration struct {
K8sClient kubernetes.Interface
}
func (*ArgoCDIntegration) DeleteIntegration ¶
func (aci *ArgoCDIntegration) DeleteIntegration(ctx context.Context, namespace, integrationName string) error
DeleteIntegration removes a named integration from the "mdai-argocd-integration" secret in the provided namespace.
func (*ArgoCDIntegration) GetIntegrationByName ¶
func (aci *ArgoCDIntegration) GetIntegrationByName(ctx context.Context, namespace, name string) (*ArgoCDIntegrationData, error)
GetIntegrationByName retrieves the existing integration in the provided namespace for the "mdai-argocd-integration" secret, if it exists.
func (*ArgoCDIntegration) GetIntegrations ¶
func (aci *ArgoCDIntegration) GetIntegrations(ctx context.Context, namespace string) (map[string]ArgoCDIntegrationData, error)
GetIntegrations retrieves any existing integrations in the provided namespace for the "mdai-argocd-integration" secret.
func (*ArgoCDIntegration) SetIntegration ¶
func (aci *ArgoCDIntegration) SetIntegration(ctx context.Context, namespace, integrationName string, integrationData ArgoCDIntegrationData) error
SetIntegration adds or updates the "mdai-argocd-integration" secret for the provided namespace.
type ArgoCDIntegrationData ¶
type DataDogIntegration ¶
type DataDogIntegration struct {
K8sClient kubernetes.Interface
}
func (*DataDogIntegration) DeleteIntegration ¶
func (ddi *DataDogIntegration) DeleteIntegration(ctx context.Context, namespace, integrationName string) error
DeleteIntegration removes a named integration from the "mdai-gateway-integration" secret in the provided namespace.
func (*DataDogIntegration) GetIntegrationByName ¶
func (ddi *DataDogIntegration) GetIntegrationByName(ctx context.Context, namespace, name string) (*DataDogIntegrationData, error)
GetIntegrationByName retrieves the existing integration in the provided namespace for the "mdai-gateway-integration" secret, if it exists.
func (*DataDogIntegration) GetIntegrations ¶
func (ddi *DataDogIntegration) GetIntegrations(ctx context.Context, namespace string) (map[string]DataDogIntegrationData, error)
GetIntegrations retrieves any existing integrations in the provided namespace for the "mdai-gateway-integration" secret.
func (*DataDogIntegration) SetIntegration ¶
func (ddi *DataDogIntegration) SetIntegration(ctx context.Context, namespace, integrationName string, integrationData DataDogIntegrationData) error
SetIntegration adds or updates the "mdai-gateway-integration" secret for the provided namespace.
type DataDogIntegrationData ¶
func (DataDogIntegrationData) IsKnownDatadogTLD ¶ added in v0.1.9
func (d DataDogIntegrationData) IsKnownDatadogTLD() bool
type Integration ¶
type Integration[T any] interface { GetIntegrations(ctx context.Context, namespace string) (map[string]T, error) GetIntegrationByName(ctx context.Context, namespace, name string) (*T, error) SetIntegration(ctx context.Context, namespace, integrationName string, integrationData T) error DeleteIntegration(ctx context.Context, namespace, integrationName string) error }