Documentation ¶
Index ¶
- func ChunkSlice(slice []uint64, numChunks int) [][]uint64
- func Specific(replicasWanted uint64, existingIndexes []uint64, nodes []uint64, member uint64) ([]uint64, []uint64)
- func Uniform(replicasWanted uint64, existingIndexes []uint64, cluster []uint64, ...) ([]uint64, []uint64)
- type Distributed
- type Replicas
- func (replicas *Replicas) GenerateContainers(registry *registry.Registry, definition *v1.ContainerDefinition, ...) ([]platforms.IContainer, []platforms.IContainer, error)
- func (replicas *Replicas) GetContainersIndexes(registry *registry.Registry, definition *v1.ContainerDefinition) ([]uint64, []uint64)
- func (replicas *Replicas) GetReplicaNumbers(spread v1.ContainerSpread, replicasDefined uint64, existingIndexes []uint64) ([]uint64, []uint64)
- func (replicas *Replicas) Recalculate(spread v1.ContainerSpread, replicasDefined uint64, existingIndexes []uint64)
- func (replicas *Replicas) RemoveContainers(registry *registry.Registry, definition *v1.ContainerDefinition) ([]platforms.IContainer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChunkSlice ¶ added in v0.0.114
Types ¶
type Distributed ¶ added in v0.0.81
type Replicas ¶
func (*Replicas) GenerateContainers ¶ added in v0.0.114
func (replicas *Replicas) GenerateContainers(registry *registry.Registry, definition *v1.ContainerDefinition, config *configuration.Configuration) ([]platforms.IContainer, []platforms.IContainer, error)
func (*Replicas) GetContainersIndexes ¶ added in v0.0.114
func (*Replicas) GetReplicaNumbers ¶
func (*Replicas) Recalculate ¶ added in v0.0.114
func (replicas *Replicas) Recalculate(spread v1.ContainerSpread, replicasDefined uint64, existingIndexes []uint64)
func (*Replicas) RemoveContainers ¶ added in v0.0.114
func (replicas *Replicas) RemoveContainers(registry *registry.Registry, definition *v1.ContainerDefinition) ([]platforms.IContainer, error)
Click to show internal directories.
Click to hide internal directories.