kibana

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package kibana is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectorConfigWithDefaults

func ConnectorConfigWithDefaults(connectorTypeID, plan, backend, state string) (string, error)

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 CreateSlo added in v0.7.0

func CreateSlo(ctx context.Context, apiClient *clients.ApiClient, s models.Slo) (*models.Slo, diag.Diagnostics)

func DeleteAlertingRule

func DeleteAlertingRule(ctx context.Context, apiClient *clients.ApiClient, ruleId string, spaceId string) diag.Diagnostics

func DeleteConnector

func DeleteConnector(ctx context.Context, apiClient *clients.ApiClient, connectorID string, spaceID string) diag.Diagnostics

func DeleteSlo added in v0.7.0

func DeleteSlo(ctx context.Context, apiClient *clients.ApiClient, sloId string, spaceId string) diag.Diagnostics

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 GetSlo added in v0.7.0

func GetSlo(ctx context.Context, apiClient *clients.ApiClient, id, spaceID string) (*models.Slo, 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)

func UpdateSlo added in v0.7.0

func UpdateSlo(ctx context.Context, apiClient *clients.ApiClient, s models.Slo) (*models.Slo, diag.Diagnostics)

Types

type ApiClient added in v0.11.4

type ApiClient interface {
	GetAlertingClient() (alerting.AlertingAPI, error)
	SetAlertingAuthContext(context.Context) context.Context
}

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

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.

Jump to

Keyboard shortcuts

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