Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStats ¶
MemoryStats represents memory stats
type Metadata ¶
type Metadata struct { Arn string DesiredStatus string KnownStatus string Family string Version string Containers []Container `json:"Containers"` Instance *ecsTypes.MetadataResponse Limits ResourceLimits }
Metadata represents task metadata
type MockTask ¶
type MockTask struct {
// contains filtered or unexported fields
}
MockTask is mock cgroup.
func NewMockTask ¶
func NewMockTask(opts ...MockTaskOption) *MockTask
NewMockTask creates a new mock Task.
func (*MockTask) ApplyOption ¶
func (p *MockTask) ApplyOption(opt MockTaskOption)
ApplyOption apply MockTaskOption.
func (*MockTask) IsPrivateNetworkMode ¶
IsPrivateNetworkMode returns true when task is private network mode.
type MockTaskOption ¶
type MockTaskOption func(*MockTask)
MockTaskOption is functional option.
func MockIsPrivateNetworkMode ¶
func MockIsPrivateNetworkMode(callback func() bool) MockTaskOption
MockIsPrivateNetworkMode returns MockTaskOption to replace IsPrivateNetworkMode().
func MockMetadata ¶
func MockMetadata(callback func(context.Context) (*Metadata, error)) MockTaskOption
MockMetadata returns MockTaskOption to replace Metadata().
type NetworkStats ¶
NetworkStats represents network stats
type ResourceLimits ¶
ResourceLimits represents task resouce limits
type Stats ¶
type Stats struct { CPU CPUStats Memory MemoryStats Network map[string]NetworkStats }
Stats represents resource stats
Click to show internal directories.
Click to hide internal directories.