Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RunInContainer (0.17 sec)

  1. pkg/kubelet/container/testing/runtime_mock.go

    // RunInContainer indicates an expected call of RunInContainer.
    func (mr *MockCommandRunnerMockRecorder) RunInContainer(ctx, id, cmd, timeout any) *gomock.Call {
    	mr.mock.ctrl.T.Helper()
    	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunInContainer", reflect.TypeOf((*MockCommandRunner)(nil).RunInContainer), ctx, id, cmd, timeout)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. pkg/kubelet/container/runtime.go

    }
    
    // CommandRunner interface allows to run command in a container.
    type CommandRunner interface {
    	// RunInContainer synchronously executes the command in the container, and returns the output.
    	// If the command completes with a non-0 exit code, a k8s.io/utils/exec.ExitError will be returned.
    	RunInContainer(ctx context.Context, id ContainerID, cmd []string, timeout time.Duration) ([]byte, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. pkg/kubelet/container/testing/fake_runtime.go

    	// actual values when invoked
    	ContainerID kubecontainer.ContainerID
    	Cmd         []string
    }
    
    var _ kubecontainer.CommandRunner = &FakeContainerCommandRunner{}
    
    func (f *FakeContainerCommandRunner) RunInContainer(_ context.Context, containerID kubecontainer.ContainerID, cmd []string, timeout time.Duration) ([]byte, error) {
    	// record invoked values
    	f.ContainerID = containerID
    	f.Cmd = cmd
    
    	return []byte(f.Stdout), f.Err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. pkg/kubelet/server/server.go

    type HostInterface interface {
    	stats.Provider
    	GetVersionInfo() (*cadvisorapi.VersionInfo, error)
    	GetCachedMachineInfo() (*cadvisorapi.MachineInfo, error)
    	GetRunningPods(ctx context.Context) ([]*v1.Pod, error)
    	RunInContainer(ctx context.Context, name string, uid types.UID, container string, cmd []string) ([]byte, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  5. pkg/kubelet/lifecycle/handlers_test.go

    		}
    	}
    }
    
    type fakeContainerCommandRunner struct {
    	Cmd []string
    	ID  kubecontainer.ContainerID
    	Err error
    	Msg string
    }
    
    func (f *fakeContainerCommandRunner) RunInContainer(_ context.Context, id kubecontainer.ContainerID, cmd []string, timeout time.Duration) ([]byte, error) {
    	f.Cmd = cmd
    	f.ID = id
    	return []byte(f.Msg), f.Err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
Back to top