kasfleetshardsync

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AdminServerURI = "http://test-admin-server-uri.com"

Variables

Functions

func GetDefaultReportedKafkaVersion

func GetDefaultReportedKafkaVersion() string

func GetDefaultReportedStrimziVersion

func GetDefaultReportedStrimziVersion() string

func GetDeletedKafkaStatusResponse

func GetDeletedKafkaStatusResponse() private.DataPlaneKafkaStatus

Return a Kafka status for a deleted cluster

func GetErrorKafkaStatusResponse

func GetErrorKafkaStatusResponse() private.DataPlaneKafkaStatus

func GetErrorWithCustomMessageKafkaStatusResponse

func GetErrorWithCustomMessageKafkaStatusResponse(message string) private.DataPlaneKafkaStatus

func GetReadyKafkaStatusResponse

func GetReadyKafkaStatusResponse(clusterDNS string) private.DataPlaneKafkaStatus

Return a kafka status for a ready cluster

func GetSuspendedKafkaStatusResponse

func GetSuspendedKafkaStatusResponse() private.DataPlaneKafkaStatus

Return a Kafka status for a suspended instance

func NewAuthenticatedContextForDataPlaneCluster

func NewAuthenticatedContextForDataPlaneCluster(h *coreTest.Helper, clusterID string) (context.Context, error)

Returns an authenticated context to be used for calling the data plane endpoints

func SampleDataPlaneclusterStatusRequestWithAvailableCapacity

func SampleDataPlaneclusterStatusRequestWithAvailableCapacity() *private.DataPlaneClusterUpdateStatusRequest

Returns a sample data plane cluster status request with available capacity

Types

type MockKasFleetshardSync

type MockKasFleetshardSync interface {
	// Start - Starts the KAS Fleetshard sync reconciler
	Start()
	// Stop - Stops the KAS Fleetshard sync reconciler
	Stop()
}

type MockKasFleetshardSyncBuilder

type MockKasFleetshardSyncBuilder interface {
	// SetUpdateDataplaneClusterStatusFunc - Sets behaviour for updating dataplane clusters in each KAS Fleetshard sync reconcile
	SetUpdateDataplaneClusterStatusFunc(mockKasFleetshardSyncUpdateDataPlaneClusterStatusFunc)
	// SetUpdateKafkaStatusFunc - Sets behaviour for updating kafka clusters in each KAS Fleetshard sync reconcile
	SetUpdateKafkaStatusFunc(mockKasFleetshardSyncupdateKafkaClusterStatusFunc)
	// SetInterval - Sets the repeat interval for the mock KAS Fleetshard sync
	SetInterval(interval time.Duration)
	// Build - Builds a mock KAS Fleetshard sync
	Build() MockKasFleetshardSync
}

func NewMockKasFleetshardSyncBuilder

func NewMockKasFleetshardSyncBuilder(helper *coreTest.Helper, t *testing.T) MockKasFleetshardSyncBuilder

Jump to

Keyboard shortcuts

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