Documentation
¶
Index ¶
- func CreateNode(node *RhdNode) error
- func CreateNodeCache(node *RhdNode) error
- func CreateRhd(rhd *RackHD) error
- func DeleteNodeCache(id string) error
- func DeleteRhdByID(id string) error
- func DeleteRhdsByIDs(ids []string) error
- func GetRhdIDByNodeID(id string) (string, error)
- func InitBackend()
- func UpdateNode(node *RhdNode) error
- func UpdateRhd(rhd *RackHD) error
- type AmqpConfig
- type HTTPConfig
- type RackHD
- type RhdNode
- func GetAllNodes() ([]*RhdNode, error)
- func GetAllNodesByRhdID(id string) ([]*RhdNode, error)
- func GetNodeByRhdIDByNodeID(rid string, nid string) (*RhdNode, error)
- func GetNodesByRhdIDByNodeIDs(rid string, ids []string) ([]*RhdNode, error)
- func NewRhdNode(rhdID string, nodeID string) (*RhdNode, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNode ¶
CreateNode allows creating a node on the backend
func CreateNodeCache ¶
CreateNodeCache stores the cache layer lookup functionality
func DeleteRhdByID ¶
DeleteRhdByID removes a RackHD from the backend
func DeleteRhdsByIDs ¶
DeleteRhdsByIDs removes multiple RackHDs from the backend
func GetRhdIDByNodeID ¶
GetRhdIDByNodeID returns the RHD ID for a node
Types ¶
type AmqpConfig ¶
AmqpConfig struct wrapper of amqp URI for future expansion
type HTTPConfig ¶
HTTPConfig struct wrapper of URL for future expansion
type RackHD ¶
type RackHD struct { ID string HTTPConf HTTPConfig AmqpConf AmqpConfig Nodes []*RhdNode // can be found in the nodes.go file }
RackHD stores the relevant data about RackHD nodes under management
func GetRhdByID ¶
GetRhdByID returns a RackHD based on its unique ID
func GetRhdsByIDs ¶
GetRhdsByIDs returns a group of RackHD structs based on an array of unique IDs
type RhdNode ¶
RhdNode stores relevant cache data about a node
func GetAllNodes ¶
GetAllNodes is currently stubbed out but unsupported
func GetAllNodesByRhdID ¶
GetAllNodesByRhdID is currently stubbed out but unsupported
func GetNodeByRhdIDByNodeID ¶
GetNodeByRhdIDByNodeID is currently stubbed out but unsupported
func GetNodesByRhdIDByNodeIDs ¶
GetNodesByRhdIDByNodeIDs is currently stubbed out but unsupported