sys

package
v0.0.0-...-8dc4a41 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OS

type OS struct {

	// Caches of system characteristics detected at Init() time.
	Architectures []int  // Cache of detected system architectures
	LxcPath       string // Path to the $LXD_DIR/containers directory
	BackingFS     string // Backing filesystem of $LXD_DIR/containers
	IdmapSet      *idmap.IdmapSet

	MockMode bool // If true some APIs will be mocked (for testing)
}

OS is a high-level facade for accessing all operating-system level functionality that LXD uses.

func NewOS

func NewOS() *OS

NewOS returns a fresh uninitialized OS instance.

func (*OS) Init

func (s *OS) Init() error

Init our internal data structures.

Jump to

Keyboard shortcuts

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