Help us shape the future of Go! Take the 2026 Go Developer Survey

keyspace

package
v0.334.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCmd added in v0.210.0

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

CreateCmd encapsulates the command for creating a new keyspace within a branch.

func DeleteCmd added in v0.316.0

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

DeleteCmd encapsulates the command for deleting a keyspace from a branch.

func KeyspaceCmd

func KeyspaceCmd(ch *cmdutil.Helper) *cobra.Command

KeyspaceCmd handles the management of keyspaces within a database branch.

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd encapsulates the command for listing the keyspaces within a branch.

func ReadOnlyRegionsAddCmd added in v0.313.0

func ReadOnlyRegionsAddCmd(ch *cmdutil.Helper) *cobra.Command

func ReadOnlyRegionsCmd added in v0.312.0

func ReadOnlyRegionsCmd(ch *cmdutil.Helper) *cobra.Command

func ReadOnlyRegionsRemoveCmd added in v0.313.0

func ReadOnlyRegionsRemoveCmd(ch *cmdutil.Helper) *cobra.Command

func ReadOnlyRegionsUpdateCmd added in v0.313.0

func ReadOnlyRegionsUpdateCmd(ch *cmdutil.Helper) *cobra.Command

func ResizeCancelCmd added in v0.212.0

func ResizeCancelCmd(ch *cmdutil.Helper) *cobra.Command

func ResizeCmd added in v0.212.0

func ResizeCmd(ch *cmdutil.Helper) *cobra.Command

ResizeCmd encapsulates the command for resizing a keyspace within a branch.

func ResizeStatusCmd added in v0.212.0

func ResizeStatusCmd(ch *cmdutil.Helper) *cobra.Command

func RolloutStatusCmd added in v0.221.0

func RolloutStatusCmd(ch *cmdutil.Helper) *cobra.Command

func SettingsCmd added in v0.234.0

func SettingsCmd(ch *cmdutil.Helper) *cobra.Command

SettingsCmd is a command that shows the settings for a keyspace

func ShowCmd

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

func ShowVSchemaCmd

func ShowVSchemaCmd(ch *cmdutil.Helper) *cobra.Command

ShowVSchemaCmd is the command for showing a keyspace's VSchema.

func UpdateSettingsCmd added in v0.234.0

func UpdateSettingsCmd(ch *cmdutil.Helper) *cobra.Command

func UpdateVSchemaCmd

func UpdateVSchemaCmd(ch *cmdutil.Helper) *cobra.Command

UpdateVSchemaCmd is the command for updating a keyspace's VSchema.

func VSchemaCmd

func VSchemaCmd(ch *cmdutil.Helper) *cobra.Command

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

func (k *Keyspace) MarshalJSON() ([]byte, error)

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"`
	Throttler                               Throttler         `header:"inline" json:"throttler"`
	// 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 ReadOnlyRegion added in v0.312.0

type ReadOnlyRegion struct {
	Region      string `header:"region" json:"region"`
	ClusterSize string `header:"cluster_size" json:"cluster_name"`
	Replicas    int    `header:"replicas" json:"replicas"`
	// contains filtered or unexported fields
}

func (*ReadOnlyRegion) MarshalCSVValue added in v0.312.0

func (r *ReadOnlyRegion) MarshalCSVValue() interface{}

func (*ReadOnlyRegion) MarshalJSON added in v0.312.0

func (r *ReadOnlyRegion) 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 Throttler added in v0.333.0

type Throttler struct {
	Enabled   bool   `header:"throttler enabled" json:"enabled"`
	Threshold string `header:"throttler threshold" json:"threshold"`
}

type VReplicationFlags added in v0.234.0

type VReplicationFlags struct {
	OptimizeInserts           bool `header:"optimize inserts" json:"optimize_inserts"`
	AllowNoBlobBinlogRowImage bool `header:"no blob binlog row image" json:"allow_no_blob_binlog_row_image"`
	VPlayerBatching           bool `header:"vplayer batching" json:"vplayer_batching"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL