instance

package
v0.6.5-0...-c050ab2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

type Instance struct {
	Parent   abstract.Container
	BasePath string
	Name     string
}

func (*Instance) Dir

func (i *Instance) Dir() string

func (*Instance) FileSystem

func (i *Instance) FileSystem() filesystem.FileSystem

func (*Instance) FileSystemLock

func (i *Instance) FileSystemLock() ipc.Mutex

func (*Instance) GetContainer

func (i *Instance) GetContainer() abstract.Container

func (*Instance) Init

func (i *Instance) Init() error

func (*Instance) MachineId

func (i *Instance) MachineId() string

func (*Instance) Mount

func (i *Instance) Mount() error

func (*Instance) MountLocal

func (i *Instance) MountLocal() error

func (*Instance) MountPoint

func (i *Instance) MountPoint() string

func (*Instance) Mounted

func (i *Instance) Mounted() bool

func (*Instance) Run

func (i *Instance) Run(ctx context.Context, ctnInfo *nspawn.ContainerInfo, runInfo *nspawn.RunInfo) (int, error)

func (*Instance) RunLock

func (i *Instance) RunLock() ipc.Mutex

func (*Instance) Running

func (i *Instance) Running() bool

func (*Instance) RunningAsBootMode

func (i *Instance) RunningAsBootMode() bool

func (*Instance) RunningAsExclusiveMode

func (i *Instance) RunningAsExclusiveMode() bool

func (*Instance) Shell

func (i *Instance) Shell(user string) (string, error)

func (*Instance) Stop

func (i *Instance) Stop(ctx context.Context) error

func (*Instance) Unmount

func (i *Instance) Unmount() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL