Skip to main content

Module mock

Module mock 

Source
Expand description

Port of internal/cluster/mock/driver.go: a mock super::Driver implementation for testing. This module is intended for use in tests only and should not be depended on by production code.

Structs§

ClusterState
Port of mock.ClusterState, the externally visible mirror of the internal clusterState.
Driver
Port of mock.Driver.
ErrorConfig
Port of mock.ErrorConfig.

Constants§

DRIVER_NAME
MOCK_KUBERNETES_VERSION

Functions§

clear_error_config
Port of mock.ClearErrorConfig.
get_state
Port of mock.GetState.
profile_exists
Port of mock.ProfileExists.
reset_global_state
Port of mock.ResetGlobalState: clears all global mock state and error configuration. Call between tests to avoid cross-test contamination.
set_cluster_state
Port of mock.SetClusterState.
set_error_config
Port of mock.SetErrorConfig.
set_kubeconfig
Port of mock.SetKubeconfig.