14 lines
		
	
	
		
			339 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			339 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package containerkit
 | 
						|
 | 
						|
import "errors"
 | 
						|
 | 
						|
var ErrProcessSet = errors.New("containerkit: container process is already set")
 | 
						|
 | 
						|
type Runtime interface {
 | 
						|
	Create(*Container) (ProcessDelegate, error)
 | 
						|
	Start(*Container) error
 | 
						|
	Delete(*Container) error
 | 
						|
	Exec(*Container, *Process) (ProcessDelegate, error)
 | 
						|
	Load(id string) (ProcessDelegate, error)
 | 
						|
}
 |