Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
961cd710
Commit
961cd710
authored
Apr 23, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7208 from vmarmol/runtime
Add RunInContainer/ExecInContainer to container Runtime API.
parents
eb11d78b
de6d5cc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
runtime.go
pkg/kubelet/container/runtime.go
+8
-0
No files found.
pkg/kubelet/container/runtime.go
View file @
961cd710
...
@@ -18,6 +18,7 @@ package container
...
@@ -18,6 +18,7 @@ package container
import
(
import
(
"fmt"
"fmt"
"io"
"strings"
"strings"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
...
@@ -58,6 +59,13 @@ type Runtime interface {
...
@@ -58,6 +59,13 @@ type Runtime interface {
// not managed by kubelet. If 'all' is false, then only running containers
// not managed by kubelet. If 'all' is false, then only running containers
// are returned.
// are returned.
GetContainers
(
all
bool
)
([]
*
Container
,
error
)
GetContainers
(
all
bool
)
([]
*
Container
,
error
)
// TODO(vmarmol): Merge RunInContainer and ExecInContainer.
// Runs the command in the container of the specified pod using nsinit.
RunInContainer
(
container
api
.
Container
,
pod
*
api
.
Pod
,
cmd
[]
string
)
// Runs the command in the container of the specified pod using nsenter.
// Attaches the processes stdin, stdout, and stderr. Optionally uses a
// tty.
ExecInContainer
(
container
api
.
Container
,
pod
*
api
.
Pod
,
stdin
io
.
Reader
,
stdout
,
stderr
io
.
WriteCloser
,
tty
bool
)
// TODO(yifan): Pull/Remove images
// TODO(yifan): Pull/Remove images
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment