Documentation ¶
Index ¶
- type AddValue
- type FakeCgroupsManager
- func (m *FakeCgroupsManager) Add(pid int, subsystems ...string) error
- func (m *FakeCgroupsManager) AddedValues() []AddValue
- func (m *FakeCgroupsManager) Get(subsytem, name string) (string, error)
- func (m *FakeCgroupsManager) Set(subsystem, name, value string) error
- func (m *FakeCgroupsManager) SetValues() []SetValue
- func (m *FakeCgroupsManager) SubsystemArgsForCall(index int) string
- func (m *FakeCgroupsManager) SubsystemPath(subsystem string) (string, error)
- func (m *FakeCgroupsManager) SubsystemPathCallCount() int
- func (m *FakeCgroupsManager) WhenGetting(subsystem, name string, callback func() (string, error))
- func (m *FakeCgroupsManager) WhenSetting(subsystem, name string, callback func() error)
- type GetCallback
- type SetCallback
- type SetValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCgroupsManager ¶
type FakeCgroupsManager struct { SetError error AddError error // contains filtered or unexported fields }
func New ¶
func New(cgroupsPath, id string) *FakeCgroupsManager
func (*FakeCgroupsManager) Add ¶
func (m *FakeCgroupsManager) Add(pid int, subsystems ...string) error
func (*FakeCgroupsManager) AddedValues ¶
func (m *FakeCgroupsManager) AddedValues() []AddValue
func (*FakeCgroupsManager) Get ¶
func (m *FakeCgroupsManager) Get(subsytem, name string) (string, error)
func (*FakeCgroupsManager) Set ¶
func (m *FakeCgroupsManager) Set(subsystem, name, value string) error
func (*FakeCgroupsManager) SetValues ¶
func (m *FakeCgroupsManager) SetValues() []SetValue
func (*FakeCgroupsManager) SubsystemArgsForCall ¶
func (m *FakeCgroupsManager) SubsystemArgsForCall(index int) string
func (*FakeCgroupsManager) SubsystemPath ¶
func (m *FakeCgroupsManager) SubsystemPath(subsystem string) (string, error)
func (*FakeCgroupsManager) SubsystemPathCallCount ¶
func (m *FakeCgroupsManager) SubsystemPathCallCount() int
func (*FakeCgroupsManager) WhenGetting ¶
func (m *FakeCgroupsManager) WhenGetting(subsystem, name string, callback func() (string, error))
func (*FakeCgroupsManager) WhenSetting ¶
func (m *FakeCgroupsManager) WhenSetting(subsystem, name string, callback func() error)
type GetCallback ¶
type SetCallback ¶
Click to show internal directories.
Click to hide internal directories.