Documentation ¶
Index ¶
- Constants
- func CreateHostGroups(random generation.Random, builder placement.GroupBuilder, ...) []*mPlacement.Group
- func CreateHostGroupsBuilder() (builder placement.GroupBuilder, templates labels.TemplateSet)
- func CreateSchemalessEntities(random generation.Random, builder placement.EntityBuilder, ...) []*mPlacement.Entity
- func CreateSchemalessEntityBuilder() (builder placement.EntityBuilder, variables labels.TemplateSet)
- type Variable
Constants ¶
View Source
const ( // Instance is used to represent a Schemaless instance in label templates. Instance = Variable("instance") // Cluster is used to represent a Schemaless cluster in label templates. Cluster = Variable("cluster") // Database is used to represent a Schemaless database in label templates. Database = Variable("database") // Datacenter is used to represent a datacenter name in label templates. Datacenter = Variable("datacenter") // Host is used to represent a host name in label templates. Host = Variable("host") // Rack is used to represent a rack name in label templates. Rack = Variable("rack") // VolumeType is used to represent a volume type of a group. VolumeType = Variable("volume-type") )
Variables ¶
This section is empty.
Functions ¶
func CreateHostGroups ¶
func CreateHostGroups(random generation.Random, builder placement.GroupBuilder, templates labels.TemplateSet, racks, hosts int) []*mPlacement.Group
CreateHostGroups will create a given number of groups representing hosts distributed over a given number of racks and all belonging to the same datacenter.
func CreateHostGroupsBuilder ¶
func CreateHostGroupsBuilder() (builder placement.GroupBuilder, templates labels.TemplateSet)
CreateHostGroupsBuilder will create a builder to generate groups representing hosts that belong to a rack in a datacenter.
func CreateSchemalessEntities ¶
func CreateSchemalessEntities(random generation.Random, builder placement.EntityBuilder, templates labels.TemplateSet, clusters, perCluster int) []*mPlacement.Entity
CreateSchemalessEntities will create a list of entities that represents the databases for all the clusters of a Schemaless instance.
func CreateSchemalessEntityBuilder ¶
func CreateSchemalessEntityBuilder() (builder placement.EntityBuilder, variables labels.TemplateSet)
CreateSchemalessEntityBuilder creates an entity builder for creating entities representing Schemaless databases.
Types ¶
Click to show internal directories.
Click to hide internal directories.