elastic

package
v1.32.10 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogStorageFinalizer = "tigera.io/eck-cleanup"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, opts options.AddOptions) error

func MockESCLICreator

func MockESCLICreator(_ client.Client, ctx context.Context, _ string) (utils.ElasticClient, error)

Types

type ElasticSubController

type ElasticSubController struct {
	// contains filtered or unexported fields
}

ElasticSubController is a sub-controller of the main LogStorage controller responsible for managing the Elasticsearch service used by Calico.

func (*ElasticSubController) Reconcile

type MockESClient

type MockESClient struct {
	mock.Mock
}

func (*MockESClient) CreateUser

func (m *MockESClient) CreateUser(_ context.Context, _ *utils.User) error

func (*MockESClient) DeleteRoles

func (m *MockESClient) DeleteRoles(ctx context.Context, roles []utils.Role) error

func (*MockESClient) DeleteUser

func (m *MockESClient) DeleteUser(ctx context.Context, u *utils.User) error

func (*MockESClient) GetUsers

func (m *MockESClient) GetUsers(ctx context.Context) ([]utils.User, error)

func (*MockESClient) SetILMPolicies

func (m *MockESClient) SetILMPolicies(_ context.Context, _ *operatorv1.LogStorage) error

type MockESClientKey

type MockESClientKey string

Jump to

Keyboard shortcuts

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