Documentation
¶
Index ¶
- Constants
- Variables
- func RecoverTerminalAttr()
- type Instance
- func (i *Instance) Dir() string
- func (i *Instance) FileSystem() filesystem.FileSystem
- func (i *Instance) FileSystemLock() ipc.Mutex
- func (i *Instance) GetContainer() abstract.Container
- func (i *Instance) Init() error
- func (i *Instance) MachineId() string
- func (i *Instance) Mount() error
- func (i *Instance) MountLocal() error
- func (i *Instance) MountPoint() string
- func (i *Instance) Mounted() bool
- func (i *Instance) Run(ctx context.Context, ctnInfo *nspawn.ContainerInfo, runInfo *nspawn.RunInfo) (int, error)
- func (i *Instance) RunLock() ipc.Mutex
- func (i *Instance) Running() bool
- func (i *Instance) RunningAsBootMode() bool
- func (i *Instance) RunningAsExclusiveMode() bool
- func (i *Instance) Shell(user string) (string, error)
- func (i *Instance) Stop(ctx context.Context) error
- func (i *Instance) Unmount() error
Constants ¶
View Source
const ( LayerDirName = "layers" SemIdFileSystemMutex = 0x11 SemIdRunMutex = 0x22 )
Variables ¶
View Source
var (
ErrMode = errors.New("another instance is running in exclusive mode")
)
Functions ¶
func RecoverTerminalAttr ¶
func RecoverTerminalAttr()
Types ¶
type Instance ¶
func (*Instance) FileSystem ¶
func (i *Instance) FileSystem() filesystem.FileSystem
func (*Instance) FileSystemLock ¶
func (*Instance) GetContainer ¶
func (*Instance) MountLocal ¶
func (*Instance) MountPoint ¶
func (*Instance) RunningAsBootMode ¶
func (*Instance) RunningAsExclusiveMode ¶
Click to show internal directories.
Click to hide internal directories.