factory

package
v0.33.37-pebble-storage Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0 Imports: 2 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL