Remove bundles from API
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
1dc5d652ac
commit
ab8586b7c5
48 changed files with 3287 additions and 5946 deletions
31
container.go
Normal file
31
container.go
Normal file
|
@ -0,0 +1,31 @@
|
|||
package containerd
|
||||
|
||||
import "golang.org/x/net/context"
|
||||
|
||||
type Container interface {
|
||||
// ID of the container
|
||||
ID() string
|
||||
// Runtime returns the runtime name that the container was created with
|
||||
Runtime() string
|
||||
// Start the container's user defined process
|
||||
Start(context.Context) error
|
||||
// State returns the container's state
|
||||
State(context.Context) (State, error)
|
||||
}
|
||||
|
||||
type ContainerStatus int
|
||||
|
||||
const (
|
||||
CreatedStatus ContainerStatus = iota + 1
|
||||
RunningStatus
|
||||
StoppedStatus
|
||||
DeletedStatus
|
||||
PausedStatus
|
||||
)
|
||||
|
||||
type State interface {
|
||||
// Status is the current status of the container
|
||||
Status() ContainerStatus
|
||||
// Pid is the main process id for the container
|
||||
Pid() uint32
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue