package
1.14.0-alpha.0
Repository: https://github.com/linxiulei/kubernetes.git
Documentation: pkg.go.dev
# Functions
NewMockGCECloud returns a handle to a Cloud instance that is served by a mock http server.
StartApiserver starts a local API server for testing and returns the handle to the URL and the shutdown function to stop it.
StartScheduler configures and starts a scheduler given a handle to the clientSet interface and event broadcaster.
# Constants
TestNetworkName is the network name for creating NewMockGCECloud.
TestNetworkProjectID is the network project id for creating NewMockGCECloud.
TestProjectID is the project id used for creating NewMockGCECloud.
TestRegion is the region for creating NewMockGCECloud.
TestSecondaryRangeName is the secondary range name for creating NewMockGCECloud.
TestSubnetworkName is the sub network name for creating NewMockGCECloud.
TestZone is the zone for creating NewMockGCECloud.
# Type aliases
ShutdownFunc represents the function handle to be called, typically in a defer handler, to shutdown a running module.