- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getIPSetVersionString (0.25 sec)
-
pkg/proxy/ipvs/ipset/ipset.go
} // GetVersion returns the version string. func (runner *runner) GetVersion() (string, error) { return getIPSetVersionString(runner.exec) } // getIPSetVersionString runs "ipset --version" to get the version string // in the form of "X.Y", i.e "6.19" func getIPSetVersionString(exec utilexec.Interface) (string, error) { cmd := exec.Command(IPSetCmd, "--version") cmd.SetStdin(bytes.NewReader([]byte{}))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 17.1K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset_test.go
fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{ func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, }, } gotVersion, err := getIPSetVersionString(fexec) if (err != nil) != testCases[i].Err { t.Errorf("Expected error: %v, Got error: %v", testCases[i].Err, err) } if err == nil { if testCases[i].Expect != gotVersion {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 41.5K bytes - Viewed (0)