Documentation
¶
Overview ¶
Package vitessparams holds the parsing and output shared by the commands that change Vitess parameters on keyspaces and VTGates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseChanges ¶
func ParseChanges(sets, resets, namespaces []string, example string) (map[string]map[string]*string, error)
ParseChanges groups --parameters and --reset values by namespace. A nil value resets the parameter to its default. example is a valid --parameters value shown in error messages.
Types ¶
type ConfigChange ¶
type ConfigChange struct {
ID string `header:"id" json:"id"`
Namespace string `header:"namespace" json:"change_type"`
State string `header:"state" json:"state"`
Changes string `header:"changes" json:"changes"`
CreatedAt string `header:"created at" json:"created_at"`
// contains filtered or unexported fields
}
func ToConfigChange ¶
func ToConfigChange(change *ps.VitessConfigChange) *ConfigChange
func ToConfigChanges ¶
func ToConfigChanges(changes []*ps.VitessConfigChange) []*ConfigChange
func (*ConfigChange) MarshalCSVValue ¶
func (c *ConfigChange) MarshalCSVValue() interface{}
func (*ConfigChange) MarshalJSON ¶
func (c *ConfigChange) MarshalJSON() ([]byte, error)
type Parameter ¶
type Parameter struct {
Namespace string `header:"namespace" json:"namespace"`
Name string `header:"name" json:"name"`
Value string `header:"value" json:"value"`
Default string `header:"default" json:"default_value"`
Type string `header:"type" json:"parameter_type"`
Override bool `header:"override" json:"override"`
// contains filtered or unexported fields
}
func ToParameters ¶
func ToParameters(parameters []*ps.VitessParameter) []*Parameter
func (*Parameter) MarshalCSVValue ¶
func (p *Parameter) MarshalCSVValue() interface{}
func (*Parameter) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.