Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterList ¶
func NewClusterList(assignments flow.AssignmentList, collectors flow.IdentityList) (flow.ClusterList, error)
NewClusterList creates a new cluster list based on the given cluster assignment and the provided list of identities.
The caller must ensure the following prerequisites:
- each assignment contains identities ordered in canonical order
- every collector has a unique NodeID, i.e. there are no two elements in `collectors` with the same NodeID
These prerequisites ensures that each cluster in the returned cluster list is ordered in canonical order as well. This function checks that the prerequisites are satisfied and errors otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.