Documentation ¶
Index ¶
- func AppendExecInfos(infoSlices ...[]*cmdmock.ExecInfo) []*cmdmock.ExecInfo
- func ExecResultExitCodeErrOutput(exitCode int, errOut string) *command.ExecResult
- func ExecResultExitCodeNoOutput(exitCode int) *command.ExecResult
- func ExecResultExitCodeStdErrOutput(exitCode int, stdOut, errOut string) *command.ExecResult
- func ExecResultExitCodeStdOutput(exitCode int, stdOut string) *command.ExecResult
- func ExecResultGrepFound(stdOut string) *command.ExecResult
- func ExecResultGrepNotFound() *command.ExecResult
- func ExecResultOKNoOutput() *command.ExecResult
- func GetExecInfosForIPRouteInterfaceInit(interfaces []nt.Interface) []*cmdmock.ExecInfo
- func GetExecMockResultsForEnsureOnly1IPRule(rule nt.IPRule, otherRules []nt.IPRule) []*cmdmock.ExecInfo
- func GetExecMockResultsForExistingIPRuleRemove(rule nt.IPRule) []*cmdmock.ExecInfo
- func GetMockIOOpProviderWithEmptyRTTablesFile(rtTablesReadResult []byte, times int, withAppend bool) *mocks.MockSimpleFileOperator
- func RandStringBytes(n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendExecInfos ¶
AppendExecInfos merges multiple []*ExecInfo slices into one
func ExecResultExitCodeErrOutput ¶
func ExecResultExitCodeErrOutput(exitCode int, errOut string) *command.ExecResult
func ExecResultExitCodeNoOutput ¶
func ExecResultExitCodeNoOutput(exitCode int) *command.ExecResult
func ExecResultExitCodeStdErrOutput ¶
func ExecResultExitCodeStdErrOutput(exitCode int, stdOut, errOut string) *command.ExecResult
func ExecResultExitCodeStdOutput ¶
func ExecResultExitCodeStdOutput(exitCode int, stdOut string) *command.ExecResult
func ExecResultGrepFound ¶
func ExecResultGrepFound(stdOut string) *command.ExecResult
func ExecResultGrepNotFound ¶
func ExecResultGrepNotFound() *command.ExecResult
func ExecResultOKNoOutput ¶
func ExecResultOKNoOutput() *command.ExecResult
func GetExecInfosForIPRouteInterfaceInit ¶
GetExecInfosForIPRouteInterfaceInit returns mock ExecInfo slice for commands executed during initialization of interfaces
func GetMockIOOpProviderWithEmptyRTTablesFile ¶
func GetMockIOOpProviderWithEmptyRTTablesFile(rtTablesReadResult []byte, times int, withAppend bool) *mocks.MockSimpleFileOperator
GetMockIOOpProviderWithEmptyRTTablesFile returns mock IOOpProvider that mocks an empty rttables file
func RandStringBytes ¶
RandStringBytes returns a random string of length n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.