Documentation ¶
Overview ¶
Package kibana is a generated GoMock package.
Index ¶
- func ConnectorConfigWithDefaults(connectorTypeID, plan, backend, state string) (string, error)
- func CreateAlertingRule(ctx context.Context, apiClient ApiClient, rule models.AlertingRule) (*models.AlertingRule, diag.Diagnostics)
- func CreateConnector(ctx context.Context, apiClient *clients.ApiClient, ...) (string, diag.Diagnostics)
- func CreateSlo(ctx context.Context, apiClient *clients.ApiClient, s models.Slo) (*models.Slo, diag.Diagnostics)
- func DeleteAlertingRule(ctx context.Context, apiClient *clients.ApiClient, ruleId string, ...) diag.Diagnostics
- func DeleteConnector(ctx context.Context, apiClient *clients.ApiClient, connectorID string, ...) diag.Diagnostics
- func DeleteSlo(ctx context.Context, apiClient *clients.ApiClient, sloId string, ...) diag.Diagnostics
- func GetAlertingRule(ctx context.Context, apiClient *clients.ApiClient, id, spaceID string) (*models.AlertingRule, diag.Diagnostics)
- func GetConnector(ctx context.Context, apiClient *clients.ApiClient, connectorID, spaceID string) (*models.KibanaActionConnector, diag.Diagnostics)
- func GetSlo(ctx context.Context, apiClient *clients.ApiClient, id, spaceID string) (*models.Slo, diag.Diagnostics)
- func SearchConnectors(ctx context.Context, apiClient *clients.ApiClient, ...) ([]*models.KibanaActionConnector, diag.Diagnostics)
- func UpdateAlertingRule(ctx context.Context, apiClient ApiClient, rule models.AlertingRule) (*models.AlertingRule, diag.Diagnostics)
- func UpdateConnector(ctx context.Context, apiClient *clients.ApiClient, ...) (string, diag.Diagnostics)
- func UpdateSlo(ctx context.Context, apiClient *clients.ApiClient, s models.Slo) (*models.Slo, diag.Diagnostics)
- type ApiClient
- type MockApiClient
- type MockApiClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAlertingRule ¶
func CreateAlertingRule(ctx context.Context, apiClient ApiClient, rule models.AlertingRule) (*models.AlertingRule, diag.Diagnostics)
func CreateConnector ¶
func CreateConnector(ctx context.Context, apiClient *clients.ApiClient, connectorOld models.KibanaActionConnector) (string, diag.Diagnostics)
func DeleteAlertingRule ¶
func DeleteConnector ¶
func GetAlertingRule ¶
func GetAlertingRule(ctx context.Context, apiClient *clients.ApiClient, id, spaceID string) (*models.AlertingRule, diag.Diagnostics)
func GetConnector ¶
func GetConnector(ctx context.Context, apiClient *clients.ApiClient, connectorID, spaceID string) (*models.KibanaActionConnector, diag.Diagnostics)
func SearchConnectors ¶ added in v0.11.3
func SearchConnectors(ctx context.Context, apiClient *clients.ApiClient, connectorName, spaceID, connectorTypeID string) ([]*models.KibanaActionConnector, diag.Diagnostics)
func UpdateAlertingRule ¶
func UpdateAlertingRule(ctx context.Context, apiClient ApiClient, rule models.AlertingRule) (*models.AlertingRule, diag.Diagnostics)
func UpdateConnector ¶
func UpdateConnector(ctx context.Context, apiClient *clients.ApiClient, connectorOld models.KibanaActionConnector) (string, diag.Diagnostics)
Types ¶
type MockApiClient ¶ added in v0.11.4
type MockApiClient struct {
// contains filtered or unexported fields
}
MockApiClient is a mock of ApiClient interface.
func NewMockApiClient ¶ added in v0.11.4
func NewMockApiClient(ctrl *gomock.Controller) *MockApiClient
NewMockApiClient creates a new mock instance.
func (*MockApiClient) EXPECT ¶ added in v0.11.4
func (m *MockApiClient) EXPECT() *MockApiClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApiClient) GetAlertingClient ¶ added in v0.11.4
func (m *MockApiClient) GetAlertingClient() (alerting.AlertingAPI, error)
GetAlertingClient mocks base method.
func (*MockApiClient) SetAlertingAuthContext ¶ added in v0.11.4
func (m *MockApiClient) SetAlertingAuthContext(arg0 context.Context) context.Context
SetAlertingAuthContext mocks base method.
type MockApiClientMockRecorder ¶ added in v0.11.4
type MockApiClientMockRecorder struct {
// contains filtered or unexported fields
}
MockApiClientMockRecorder is the mock recorder for MockApiClient.
func (*MockApiClientMockRecorder) GetAlertingClient ¶ added in v0.11.4
func (mr *MockApiClientMockRecorder) GetAlertingClient() *gomock.Call
GetAlertingClient indicates an expected call of GetAlertingClient.
func (*MockApiClientMockRecorder) SetAlertingAuthContext ¶ added in v0.11.4
func (mr *MockApiClientMockRecorder) SetAlertingAuthContext(arg0 any) *gomock.Call
SetAlertingAuthContext indicates an expected call of SetAlertingAuthContext.
Click to show internal directories.
Click to hide internal directories.