Documentation
¶
Index ¶
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func KeyspaceCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeCancelCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeStatusCmd(ch *cmdutil.Helper) *cobra.Command
- func RolloutStatusCmd(ch *cmdutil.Helper) *cobra.Command
- func SettingsCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowVSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func UpdateSettingsCmd(ch *cmdutil.Helper) *cobra.Command
- func UpdateVSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func VSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- type Keyspace
- type KeyspaceResizeRequest
- type KeyspaceSettings
- type ShardRollout
- type VReplicationFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCmd ¶ added in v0.210.0
CreateCmd encapsulates the command for creating a new keyspace within a branch.
func KeyspaceCmd ¶
KeyspaceCmd handles the management of keyspaces within a database branch.
func ResizeCmd ¶ added in v0.212.0
ResizeCmd encapsulates the command for resizing a keyspace within a branch.
func SettingsCmd ¶ added in v0.234.0
SettingsCmd is a command that shows the settings for a keyspace
func ShowVSchemaCmd ¶
ShowVSchemaCmd is the command for showing a keyspace's VSchema.
func UpdateSettingsCmd ¶ added in v0.234.0
func UpdateVSchemaCmd ¶
UpdateVSchemaCmd is the command for updating a keyspace's VSchema.
Types ¶
type Keyspace ¶ added in v0.213.0
type Keyspace struct {
ID string `json:"id"`
Name string `header:"name" json:"name"`
Shards int `header:"shards" json:"shards"`
Sharded bool `header:"sharded" json:"sharded"`
Replicas uint64 `header:"replicas" json:"replicas"`
ExtraReplicas uint64 `header:"extra_replicas" json:"extra_replicas"`
Resizing bool `header:"resizing" json:"resizing"`
PendingResize bool `header:"pending_resize" json:"resize_pending"`
ClusterSize string `header:"cluster_size" json:"cluster_name"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
func (*Keyspace) MarshalCSVValue ¶ added in v0.213.0
func (k *Keyspace) MarshalCSVValue() interface{}
func (*Keyspace) MarshalJSON ¶ added in v0.213.0
type KeyspaceResizeRequest ¶ added in v0.212.0
type KeyspaceResizeRequest struct {
ID string `json:"id"`
State string `header:"state" json:"state"`
ClusterSize string `header:"cluster_size" json:"cluster_name"`
PeviousClusterSize string `header:"previous_cluster_size" json:"previous_cluster_name"`
PreviousReplicas uint `header:"previous_replicas" json:"previous_replicas"`
Replicas uint `header:"replicas" json:"replicas"`
ExtraReplicas uint `header:"extra_replicas" json:"extra_replicas"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
// contains filtered or unexported fields
}
func (*KeyspaceResizeRequest) MarshalCSVValue ¶ added in v0.212.0
func (k *KeyspaceResizeRequest) MarshalCSVValue() interface{}
func (*KeyspaceResizeRequest) MarshalJSON ¶ added in v0.212.0
func (k *KeyspaceResizeRequest) MarshalJSON() ([]byte, error)
type KeyspaceSettings ¶ added in v0.234.0
type KeyspaceSettings struct {
ReplicationDurabilityConstraintStrategy string `header:"replication durability constraint strategy" json:"replication_durability_constraint"`
VReplicationFlags VReplicationFlags `header:"inline" json:"vreplication_flags"`
// contains filtered or unexported fields
}
func (*KeyspaceSettings) MarshalCSVValue ¶ added in v0.234.0
func (k *KeyspaceSettings) MarshalCSVValue() interface{}
func (*KeyspaceSettings) MarshalJSON ¶ added in v0.234.0
func (k *KeyspaceSettings) MarshalJSON() ([]byte, error)
type ShardRollout ¶ added in v0.221.0
type ShardRollout struct {
Name string `header:"shard" json:"name"`
State string `header:"state" json:"state"`
LastRolloutStartedAt *int64 `header:"started,timestamp(ms|utc|human)" json:"last_rollout_started_at"`
LastRolloutFinishedAt *int64 `header:"finished,timestamp(ms|utc|human)" json:"last_rollout_finished_at"`
// contains filtered or unexported fields
}
func (*ShardRollout) MarshalCSVValue ¶ added in v0.221.0
func (s *ShardRollout) MarshalCSVValue() interface{}
func (*ShardRollout) MarshalJSON ¶ added in v0.221.0
func (s *ShardRollout) MarshalJSON() ([]byte, error)
type VReplicationFlags ¶ added in v0.234.0
Click to show internal directories.
Click to hide internal directories.