test

package
v0.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackendDriver

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

func NewMockBackendDriver

func NewMockBackendDriver(stateTracker *util.MockInstallState) *MockBackendDriver

func (*MockBackendDriver) DeleteCluster

func (d *MockBackendDriver) DeleteCluster(_ context.Context, id string) error

func (*MockBackendDriver) GetClusterStatus

func (*MockBackendDriver) GetInstallStatus

func (*MockBackendDriver) Name

func (d *MockBackendDriver) Name() string

func (*MockBackendDriver) SetClusterStatus

func (d *MockBackendDriver) SetClusterStatus(_ context.Context, id string, enabled bool) error

func (*MockBackendDriver) SetSyncTime

func (d *MockBackendDriver) SetSyncTime()

func (*MockBackendDriver) StoreCluster

func (d *MockBackendDriver) StoreCluster(_ context.Context, req *corev1.Reference, friendlyName string) error

func (*MockBackendDriver) StoreClusterMetadata added in v0.10.0

func (d *MockBackendDriver) StoreClusterMetadata(_ context.Context, id, name string) error

func (*MockBackendDriver) StoreClusterReadUser added in v0.11.0

func (d *MockBackendDriver) StoreClusterReadUser(_ context.Context, _, _, _ string) error

type MockManagementDriver

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

func NewMockManagementDriver

func NewMockManagementDriver(stateTracker *util.MockInstallState) *MockManagementDriver

func (*MockManagementDriver) AdminPassword

func (d *MockManagementDriver) AdminPassword(_ context.Context) ([]byte, error)

func (*MockManagementDriver) CreateOrUpdateCluster

func (d *MockManagementDriver) CreateOrUpdateCluster(
	_ context.Context,
	cluster *loggingadmin.OpensearchClusterV2,
	_ string,
	_ string,
) error

func (*MockManagementDriver) CreateOrUpdateSnapshotSchedule added in v0.12.0

func (d *MockManagementDriver) CreateOrUpdateSnapshotSchedule(_ context.Context, snapshot *loggingadmin.SnapshotSchedule, _ []string) error

func (*MockManagementDriver) DeleteCluster

func (d *MockManagementDriver) DeleteCluster(_ context.Context) error

func (*MockManagementDriver) DeleteSnapshotSchedule added in v0.12.0

func (d *MockManagementDriver) DeleteSnapshotSchedule(_ context.Context, ref *loggingadmin.SnapshotReference) error

func (*MockManagementDriver) DoUpgrade

func (d *MockManagementDriver) DoUpgrade(_ context.Context, _ string) error

func (*MockManagementDriver) GetCluster

func (*MockManagementDriver) GetSnapshotSchedule added in v0.12.0

func (*MockManagementDriver) GetStorageClasses

func (d *MockManagementDriver) GetStorageClasses(context.Context) ([]string, error)

func (*MockManagementDriver) ListAllSnapshotSchedules added in v0.12.0

func (d *MockManagementDriver) ListAllSnapshotSchedules(_ context.Context) (*loggingadmin.SnapshotStatusList, error)

func (*MockManagementDriver) NewOpensearchClientForCluster

func (d *MockManagementDriver) NewOpensearchClientForCluster(context.Context) *opensearch.Client

func (*MockManagementDriver) UpgradeAvailable

func (d *MockManagementDriver) UpgradeAvailable(_ context.Context, _ string) (bool, error)

Jump to

Keyboard shortcuts

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