Documentation
¶
Index ¶
- func CheckContainerByName(name string) bool
- func CheckInitArgs(initArgs []string) bool
- func ContainerAsJson(c *Container) ([]byte, error)
- func GetContainerLogFile(c *Container) (*os.File, error)
- func InitContainerFS(c *Container) error
- func MountProc(rootPath string) error
- func MountVolumn(c *Container) error
- func PivotRoot(newroot string) error
- func PrintContainerLog(containerId string)
- func PrintShow(showAll bool) error
- func ReleaseContainerFS(c *Container) error
- func RunContainer(name string, tty bool, initArgs []string, limits map[string]string, ...) error
- func RunContainerInitProcess()
- func UnmountVolumn(c *Container) error
- func WriteContainerConfigFile(c *Container) error
- type Container
- type State
- type UUID
- type Volumn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContainerByName ¶
func CheckInitArgs ¶
func ContainerAsJson ¶
func InitContainerFS ¶
func MountVolumn ¶
func PrintContainerLog ¶
func PrintContainerLog(containerId string)
func ReleaseContainerFS ¶
func RunContainer ¶
func RunContainerInitProcess ¶
func RunContainerInitProcess()
func UnmountVolumn ¶
Types ¶
type Container ¶
type Container struct {
ID *UUID
Name string
TTY bool
Root string
Path string
ReadOnlyLayer string
WriteLayer string
Args []string
Limits map[string]string
Volumns []string
ImageID string
Created time.Time
Pid int
Status *State
}
func JsonAsContainer ¶
type State ¶
func ContainerCreated ¶
func ContainerCreated() *State
func ContainerExited ¶
func ContainerExited() *State
func ContainerRunning ¶
func ContainerRunning() *State
func ContainerStopped ¶
func ContainerStopped() *State
Click to show internal directories.
Click to hide internal directories.