testutils

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

type MockECSInfo struct {
	ClusterName string
	InstanceIP  string
}

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

Jump to

Keyboard shortcuts

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