Documentation ¶
Index ¶
- func LoadContainerInfo(t *testing.T, file string) []*cinfo.ContainerInfo
- type MockCPUMemInfo
- type MockECSInfo
- type MockHostInfo
- func (m MockHostInfo) ExtractEbsIDsUsedByKubernetes() map[string]string
- func (m MockHostInfo) GetAutoScalingGroupName() string
- func (m MockHostInfo) GetClusterName() string
- func (m MockHostInfo) GetEBSVolumeID(string) string
- func (m MockHostInfo) GetInstanceID() string
- func (m MockHostInfo) GetInstanceType() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadContainerInfo ¶
func LoadContainerInfo(t *testing.T, file string) []*cinfo.ContainerInfo
Types ¶
type MockCPUMemInfo ¶
type MockCPUMemInfo struct{}
func (MockCPUMemInfo) GetMemoryCapacity ¶
func (m MockCPUMemInfo) GetMemoryCapacity() int64
func (MockCPUMemInfo) GetNumCores ¶
func (m MockCPUMemInfo) GetNumCores() int64
type MockECSInfo ¶ added in v0.32.0
func (*MockECSInfo) GetCPUReserved ¶ added in v0.32.0
func (e *MockECSInfo) GetCPUReserved() int64
func (*MockECSInfo) GetClusterName ¶ added in v0.32.0
func (e *MockECSInfo) GetClusterName() string
func (*MockECSInfo) GetContainerInstanceID ¶ added in v0.32.0
func (e *MockECSInfo) GetContainerInstanceID() string
func (*MockECSInfo) GetMemReserved ¶ added in v0.32.0
func (e *MockECSInfo) GetMemReserved() int64
func (*MockECSInfo) GetRunningTaskCount ¶ added in v0.32.0
func (e *MockECSInfo) GetRunningTaskCount() int64
type MockHostInfo ¶
type MockHostInfo struct { MockCPUMemInfo ClusterName string InstanceIP string }
func (MockHostInfo) ExtractEbsIDsUsedByKubernetes ¶ added in v0.30.0
func (m MockHostInfo) ExtractEbsIDsUsedByKubernetes() map[string]string
func (MockHostInfo) GetAutoScalingGroupName ¶ added in v0.30.0
func (m MockHostInfo) GetAutoScalingGroupName() string
func (MockHostInfo) GetClusterName ¶
func (m MockHostInfo) GetClusterName() string
func (MockHostInfo) GetEBSVolumeID ¶ added in v0.30.0
func (m MockHostInfo) GetEBSVolumeID(string) string
func (MockHostInfo) GetInstanceID ¶ added in v0.30.0
func (m MockHostInfo) GetInstanceID() string
func (MockHostInfo) GetInstanceType ¶ added in v0.30.0
func (m MockHostInfo) GetInstanceType() string
Click to show internal directories.
Click to hide internal directories.