Documentation ¶
Overview ¶
DB migration script to clean up old magmad config tables. Entries in the network table are migrated from the old network configuration type to the new network record by pulling the "magmad" entry from the old namespaced config. As a cleanup, this will also delete all magmad network configs from the new config service tables. All old gateway and mesh config tables are deleted as a cleanup if `shouldDropTables` is true.
Index ¶
- Constants
- Variables
- func DeleteMagmadNetworkConfigs(tx *sql.Tx) error
- func DeleteOldGatewayConfigTables(tx *sql.Tx) error
- func DeleteOldMeshConfigTables(tx *sql.Tx) error
- func Migrate(dbDriver string, dbSource string, shouldDropTables bool) error
- func MigrateNetworkConfigsToRecords(tx *sql.Tx) error
- type Config
- type Record
Constants ¶
View Source
const GatewayConfigTable = "configs"
View Source
const MagmadNetworkType = "magmad_network"
View Source
const MeshConfigTable = "mesh_config"
View Source
const NetworkTable = "networks"
Redeclare table names
View Source
const NewConfigTable = "configurations"
Variables ¶
View Source
var File_network_config_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Config ¶
type Config struct { // Namespaced map of serialized configs ConfigsByKey map[string][]byte `` /* 187-byte string literal not displayed */ // contains filtered or unexported fields }
Container message type for namespaced network configs.
func (*Config) Descriptor
deprecated
func (*Config) GetConfigsByKey ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Record ¶
type Record struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.