mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Make CRI service interface function arguments consistent
The arguments should contain named parameters, which is now the case. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
parent
084d6c4968
commit
4411a070fc
@ -51,7 +51,7 @@ type ContainerManager interface {
|
||||
// If command exits with a non-zero exit code, an error is returned.
|
||||
ExecSync(ctx context.Context, containerID string, cmd []string, timeout time.Duration) (stdout []byte, stderr []byte, err error)
|
||||
// Exec prepares a streaming endpoint to execute a command in the container, and returns the address.
|
||||
Exec(context.Context, *runtimeapi.ExecRequest) (*runtimeapi.ExecResponse, error)
|
||||
Exec(ctx context.Context, request *runtimeapi.ExecRequest) (*runtimeapi.ExecResponse, error)
|
||||
// Attach prepares a streaming endpoint to attach to a running container, and returns the address.
|
||||
Attach(ctx context.Context, req *runtimeapi.AttachRequest) (*runtimeapi.AttachResponse, error)
|
||||
// ReopenContainerLog asks runtime to reopen the stdout/stderr log file
|
||||
@ -81,7 +81,7 @@ type PodSandboxManager interface {
|
||||
// ListPodSandbox returns a list of Sandbox.
|
||||
ListPodSandbox(ctx context.Context, filter *runtimeapi.PodSandboxFilter) ([]*runtimeapi.PodSandbox, error)
|
||||
// PortForward prepares a streaming endpoint to forward ports from a PodSandbox, and returns the address.
|
||||
PortForward(context.Context, *runtimeapi.PortForwardRequest) (*runtimeapi.PortForwardResponse, error)
|
||||
PortForward(ctx context.Context, request *runtimeapi.PortForwardRequest) (*runtimeapi.PortForwardResponse, error)
|
||||
}
|
||||
|
||||
// ContainerStatsManager contains methods for retrieving the container
|
||||
|
Loading…
Reference in New Issue
Block a user