Documentation ¶ Index ¶ type State func NewState(db *sql.DB, os *sys.OS) *State Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type State ¶ type State struct { DB *sql.DB OS *sys.OS } State is a gateway to the two main stateful components of LXD, the database and the operating system. It's typically used by model entities such as containers, volumes, etc. in order to perform changes. func NewState ¶ func NewState(db *sql.DB, os *sys.OS) *State NewState returns a new State object with the given database and operating system components. Source Files ¶ View all Source files state.go Click to show internal directories. Click to hide internal directories.