chore: fix function names
Signed-off-by: depthlending <bikangning@outlook.com>pull/18492/head
parent
afaf858752
commit
c43116226f
|
@ -140,7 +140,7 @@ func listCRIContainers(cr CommandRunner, root string, o ListContainersOptions) (
|
|||
return fids, nil
|
||||
}
|
||||
|
||||
// pauseContainers pauses a list of containers
|
||||
// pauseCRIContainers pauses a list of containers
|
||||
func pauseCRIContainers(cr CommandRunner, root string, ids []string) error {
|
||||
baseArgs := []string{"runc"}
|
||||
if root != "" {
|
||||
|
|
|
@ -111,7 +111,7 @@ func download(src, dst string) error {
|
|||
return os.Rename(tmpDst, dst)
|
||||
}
|
||||
|
||||
// withinUnitTset detects if we are in running within a unit-test
|
||||
// withinUnitTest detects if we are in running within a unit-test
|
||||
func withinUnitTest() bool {
|
||||
// Nope, it's the integration test
|
||||
if flag.Lookup("minikube-start-args") != nil || strings.HasPrefix(filepath.Base(os.Args[0]), "e2e-") {
|
||||
|
|
|
@ -186,7 +186,7 @@ func maybeWarnAboutEvalEnv(drver string, name string) {
|
|||
}
|
||||
}
|
||||
|
||||
// ensureGuestClockSync ensures that the guest system clock is relatively in-sync
|
||||
// ensureSyncedGuestClock ensures that the guest system clock is relatively in-sync
|
||||
func ensureSyncedGuestClock(h hostRunner, drv string) error {
|
||||
if !driver.IsVM(drv) {
|
||||
return nil
|
||||
|
@ -230,7 +230,7 @@ func guestClockDelta(h hostRunner, local time.Time) (time.Duration, error) {
|
|||
return d, nil
|
||||
}
|
||||
|
||||
// adjustSystemClock adjusts the guest system clock to be nearer to the host system clock
|
||||
// adjustGuestClock adjusts the guest system clock to be nearer to the host system clock
|
||||
func adjustGuestClock(h hostRunner, t time.Time) error {
|
||||
out, err := h.RunSSHCommand(fmt.Sprintf("sudo date -s @%d", t.Unix()))
|
||||
klog.Infof("clock set: %s (err=%v)", out, err)
|
||||
|
|
|
@ -187,7 +187,7 @@ func (t *SSHTunnel) stopMarkedConnections() {
|
|||
}
|
||||
}
|
||||
|
||||
// sshConnName creates a uniq name for the tunnel, using its name/clusterIP/ports.
|
||||
// sshConnUniqName creates an uniq name for the tunnel, using its name/clusterIP/ports.
|
||||
// This allows a new process to be created if an existing service was changed,
|
||||
// the new process will support the IP/Ports change occurred.
|
||||
func sshConnUniqName(service v1.Service) string {
|
||||
|
|
Loading…
Reference in New Issue