Documentation ¶
Index ¶
- func CreateKs(ctx context.Context, env *vtenv.Environment, ts *topo.Server, ...) (uint32, error)
- func CreateTablet(ctx context.Context, env *vtenv.Environment, ts *topo.Server, cell string, ...) error
- func DeleteKs(ctx context.Context, ts *topo.Server, ksName string, ...) error
- func InitRoutingRules(ctx context.Context, ts *topo.Server, rr *vschemapb.RoutingRules) error
- func InitTabletMap(env *vtenv.Environment, ts *topo.Server, tpb *vttestpb.VTTestTopology, ...) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKs ¶
func CreateKs( ctx context.Context, env *vtenv.Environment, ts *topo.Server, tpb *vttestpb.VTTestTopology, mysqld mysqlctl.MysqlDaemon, dbcfgs *dbconfigs.DBConfigs, schemaDir string, kpb *vttestpb.Keyspace, ensureDatabase bool, uid uint32, wr *wrangler.Wrangler, srvTopoCounts *stats.CountersWithSingleLabel, ) (uint32, error)
CreateKs creates keyspace, shards and tablets with mysql database
func CreateTablet ¶
func CreateTablet( ctx context.Context, env *vtenv.Environment, ts *topo.Server, cell string, uid uint32, keyspace, shard, dbname string, tabletType topodatapb.TabletType, mysqld mysqlctl.MysqlDaemon, dbcfgs *dbconfigs.DBConfigs, srvTopoCounts *stats.CountersWithSingleLabel, ) error
CreateTablet creates an individual tablet, with its tm, and adds it to the map. If it's a primary tablet, it also issues a TER.
func DeleteKs ¶
func DeleteKs( ctx context.Context, ts *topo.Server, ksName string, mysqld mysqlctl.MysqlDaemon, tpb *vttestpb.VTTestTopology, ) error
DeleteKs deletes keyspace, shards and tablets with mysql databases
func InitRoutingRules ¶
InitRoutingRules saves the routing rules into ts and reloads the vschema.
func InitTabletMap ¶
func InitTabletMap( env *vtenv.Environment, ts *topo.Server, tpb *vttestpb.VTTestTopology, mysqld mysqlctl.MysqlDaemon, dbcfgs *dbconfigs.DBConfigs, schemaDir string, ensureDatabase bool, srvTopoCounts *stats.CountersWithSingleLabel, ) (uint32, error)
InitTabletMap creates the action tms and associated data structures for all tablets, based on the vttest proto parameter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.