Documentation
¶
Overview ¶
Package sysctl is a generated GoMock package.
Package sysctl is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ipv4RouteLocalnet ¶
type Ipv4RouteLocalnet struct {
// contains filtered or unexported fields
}
Ipv4RouteLocalnet implements the engine.loopbackRouting interface by running the external 'sysctl' command
func NewIpv4RouteLocalNet ¶
func NewIpv4RouteLocalNet(cmdExec exec.Exec) (*Ipv4RouteLocalnet, error)
NewIpv4RouteLocalNet creates a new Ipv4RouteLocalnet object
func (*Ipv4RouteLocalnet) Enable ¶
func (ipv4RouteLocalnet *Ipv4RouteLocalnet) Enable() error
Enable enables routing to loopback addresses
func (*Ipv4RouteLocalnet) RestoreDefault ¶
func (ipv4RouteLocalnet *Ipv4RouteLocalnet) RestoreDefault() error
Restore restores the default value for loopback addresses
type Ipv6RouterAdvertisements ¶
type Ipv6RouterAdvertisements struct {
// contains filtered or unexported fields
}
Ipv6RouterAdvertisements implements the engine.ipv6RouterAdvertisements interface by running the external 'sysctl' command
func NewIpv6RouterAdvertisements ¶
func NewIpv6RouterAdvertisements(cmdExec exec.Exec) (*Ipv6RouterAdvertisements, error)
NewIpv6RouterAdvertisements creates a new Ipv6RouterAdvertisements object
func (*Ipv6RouterAdvertisements) Disable ¶
func (ra *Ipv6RouterAdvertisements) Disable() error
Disable disables ipv6 router advertisements
type MockCmd ¶
type MockCmd struct {
// contains filtered or unexported fields
}
MockCmd is a mock of Cmd interface
func NewMockCmd ¶
func NewMockCmd(ctrl *gomock.Controller) *MockCmd
NewMockCmd creates a new mock instance
func (*MockCmd) CombinedOutput ¶
CombinedOutput mocks base method
func (*MockCmd) EXPECT ¶
func (m *MockCmd) EXPECT() *MockCmdMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCmdMockRecorder ¶
type MockCmdMockRecorder struct {
// contains filtered or unexported fields
}
MockCmdMockRecorder is the mock recorder for MockCmd
func (*MockCmdMockRecorder) CombinedOutput ¶
func (mr *MockCmdMockRecorder) CombinedOutput() *gomock.Call
CombinedOutput indicates an expected call of CombinedOutput
func (*MockCmdMockRecorder) Output ¶
func (mr *MockCmdMockRecorder) Output() *gomock.Call
Output indicates an expected call of Output
type MockExec ¶
type MockExec struct {
// contains filtered or unexported fields
}
MockExec is a mock of Exec interface
func NewMockExec ¶
func NewMockExec(ctrl *gomock.Controller) *MockExec
NewMockExec creates a new mock instance
func (*MockExec) EXPECT ¶
func (m *MockExec) EXPECT() *MockExecMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockExecMockRecorder ¶
type MockExecMockRecorder struct {
// contains filtered or unexported fields
}
MockExecMockRecorder is the mock recorder for MockExec
func (*MockExecMockRecorder) Command ¶
func (mr *MockExecMockRecorder) Command(name interface{}, arg ...interface{}) *gomock.Call
Command indicates an expected call of Command
func (*MockExecMockRecorder) LookPath ¶
func (mr *MockExecMockRecorder) LookPath(file interface{}) *gomock.Call
LookPath indicates an expected call of LookPath