Documentation
¶
Index ¶
- type QGraph
- func (qg *QGraph) AddEdge(x, y qinv.QEntity) (*QGraph, error)
- func (qg *QGraph) AddNode(e qinv.QEntity) (*QGraph, error)
- func (qg *QGraph) GetNode(id string) (qinv.QEntity, error)
- func (qg *QGraph) GetNodeIDs() ([]string, error)
- func (qg *QGraph) IDinNodes(id string) bool
- func (qg *QGraph) Index(w http.ResponseWriter, r *http.Request)
- func (qg *QGraph) IsSubset(keys []string) bool
- func (qg *QGraph) ListMachines(w http.ResponseWriter, r *http.Request)
- func (qg *QGraph) Machine(w http.ResponseWriter, r *http.Request)
- func (qg QGraph) SetNode(e qinv.QEntity) error
- func (qg *QGraph) StartHttpd(c map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QGraph ¶
QGraph holds the inventory graph
func (*QGraph) GetNodeIDs ¶
GetNodeIDs fetches the IDs of all Nodes
func (*QGraph) Index ¶
func (qg *QGraph) Index(w http.ResponseWriter, r *http.Request)
Index shows the entry page
func (*QGraph) ListMachines ¶
func (qg *QGraph) ListMachines(w http.ResponseWriter, r *http.Request)
ListMachines fetches all machines
func (*QGraph) Machine ¶
func (qg *QGraph) Machine(w http.ResponseWriter, r *http.Request)
Machine handles GET/POST for a machine
func (*QGraph) StartHttpd ¶
StartHttpd creates a http serverPort
Click to show internal directories.
Click to hide internal directories.