Documentation
¶
Index ¶
- func IsNotFound(err error) bool
- func NewLoaderContext(ctx context.Context, projects Projects) context.Context
- func UpsertPrometheusServiceIntegration(ctx context.Context, impersonator Impersonator, ...) error
- type AivenClient
- type FakeAivenClient
- func (f *FakeAivenClient) ProjectAlertsList(ctx context.Context, p string) ([]project.AlertOut, error)
- func (f *FakeAivenClient) ServiceGet(_ context.Context, _ string, serviceName string, _ ...[2]string) (*aiven.ServiceGetOut, error)
- func (f *FakeAivenClient) ServiceMaintenanceStart(_ context.Context, _ string, _ string) error
- type Impersonator
- type Project
- type Projects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoaderContext ¶
func UpsertPrometheusServiceIntegration ¶
func UpsertPrometheusServiceIntegration(ctx context.Context, impersonator Impersonator, owner *unstructured.Unstructured, project Project, environmentName string) error
Types ¶
type AivenClient ¶
type AivenClient interface {
ServiceGet(context.Context, string, string, ...[2]string) (*service.ServiceGetOut, error)
ServiceMaintenanceStart(context.Context, string, string) error
ProjectAlertsList(ctx context.Context, project string) ([]project.AlertOut, error)
}
func NewClient ¶
func NewClient(aivenClient aiven.Client) AivenClient
type FakeAivenClient ¶
type FakeAivenClient struct{}
func NewFakeAivenClient ¶
func NewFakeAivenClient() *FakeAivenClient
func (*FakeAivenClient) ProjectAlertsList ¶
func (f *FakeAivenClient) ProjectAlertsList(ctx context.Context, p string) ([]project.AlertOut, error)
ProjectAlertsList list active alerts for a project
func (*FakeAivenClient) ServiceGet ¶
func (f *FakeAivenClient) ServiceGet(_ context.Context, _ string, serviceName string, _ ...[2]string) (*aiven.ServiceGetOut, error)
ServiceGet returns hardcoded example dataset
func (*FakeAivenClient) ServiceMaintenanceStart ¶
type Impersonator ¶
type Impersonator interface {
ImpersonatedClient(ctx context.Context, environmentName string, opts ...watcher.ImpersonatedClientOption) (dynamic.NamespaceableResourceInterface, error)
}
Click to show internal directories.
Click to hide internal directories.