lxd/state/state.go
func NewState(node *db.Node, cluster *db.Cluster, maas *maas.Controller, os *sys.OS, endpoints *endpoints.Endpoints) *State {
	return &State{
		Node:      node,
		Cluster:   cluster,
		MAAS:      maas,
		OS:        os,
		Endpoints: endpoints,
	}
}
func NewState(node *db.Node, cluster *db.Cluster, maas *maas.Controller, os *sys.OS, endpoints *endpoints.Endpoints) *State {
	return &State{
		Node:      node,
		Cluster:   cluster,
		MAAS:      maas,
		OS:        os,
		Endpoints: endpoints,
	}
}
// NewState returns a new State object with the given database and operating
// system components.