Exemple #1
0
func fromCells(cells []dataselect.DataCell) []api.Node {
	std := make([]api.Node, len(cells))
	for i := range std {
		std[i] = api.Node(cells[i].(NodeCell))
	}
	return std
}
func (n FakeNodeInfo) GetNodeInfo(nodeName string) (*api.Node, error) {
	node := api.Node(n)
	return &node, nil
}