jail

package module
v0.0.0-...-6b28ee2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2014 License: BSD-2-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupUUID

func LookupUUID(db *gorp.DbMap, field map[string]interface{}) string

Types

type Jail

type Jail struct {
	UUID             string
	Name             string
	HostName         string
	CreateDate       int
	ModificationDate int
	ZFSDataset       string

	NetworkDevices   []*network.NetworkDevice `db:"-"`
	Mounts           []*MountPoint            `db:"-"`
	Options          []*JailOption            `db:"-"`
	BootEnvironments map[string]bool          `db:"-"`
	Snapshots        []string                 `db:"-"`
	ZFSDatasetObj    *zfs.Dataset             `db:"-" json:"-"`
	Routes           []*network.Route         `db:"-"`

	Path  string `db:"-"`
	Dirty bool   `db:"-"`
}

func GetAllJails

func GetAllJails(db *gorp.DbMap) []*Jail

func GetJail

func GetJail(db *gorp.DbMap, field map[string]interface{}) *Jail

func (*Jail) Archive

func (jail *Jail) Archive(archivename string) error

func (*Jail) CreateSnapshot

func (jail *Jail) CreateSnapshot(snapname string) error

func (*Jail) Delete

func (jail *Jail) Delete(db *gorp.DbMap) error

func (*Jail) DeleteSnapshot

func (jail *Jail) DeleteSnapshot(snapname string) error

func (*Jail) ForceStop

func (jail *Jail) ForceStop()

func (*Jail) GetPath

func (jail *Jail) GetPath() (string, error)

func (*Jail) GetUUID

func (jail *Jail) GetUUID() string

func (*Jail) IsOnline

func (jail *Jail) IsOnline() bool

func (*Jail) MarshalJSON

func (jail *Jail) MarshalJSON() ([]byte, error)

func (*Jail) NetworkingStatus

func (jail *Jail) NetworkingStatus() string

func (*Jail) Persist

func (jail *Jail) Persist(db *gorp.DbMap) error

func (*Jail) PostGet

func (jail *Jail) PostGet(s gorp.SqlExecutor) error

func (*Jail) PostStart

func (jail *Jail) PostStart() error

func (*Jail) PrepareGuestNetworking

func (jail *Jail) PrepareGuestNetworking() error

func (*Jail) PrepareHostNetworking

func (jail *Jail) PrepareHostNetworking() error

func (*Jail) RestoreSnapshot

func (jail *Jail) RestoreSnapshot(snapname string) error

func (*Jail) Start

func (jail *Jail) Start() error

func (*Jail) Status

func (jail *Jail) Status() string

func (*Jail) Stop

func (jail *Jail) Stop() error

func (*Jail) Validate

func (jail *Jail) Validate() error

type JailJSON

type JailJSON struct {
	UUID       string
	Name       string
	HostName   string
	ZFSDataset string
	Path       string
	Status     string

	NetworkDevices   []*network.NetworkDevice
	Routes           []*network.Route
	Options          []*JailOption
	BootEnvironments map[string]bool
}

type JailOption

type JailOption struct {
	OptionID    int
	JailUUID    string
	OptionKey   string
	OptionValue string
}

type MountPoint

type MountPoint struct {
	MountPointID int
	JailUUID     string
	Source       string
	Destination  string
	Options      string
	Driver       string
	MountOrder   int
}

Jump to

Keyboard shortcuts

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