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

keyspace

package
v0.212.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 9 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 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 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 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 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 BranchKeyspace

type BranchKeyspace 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_rate_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 (*BranchKeyspace) MarshalCSVValue

func (k *BranchKeyspace) MarshalCSVValue() interface{}

func (*BranchKeyspace) MarshalJSON

func (k *BranchKeyspace) 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_rate_name"`
	PreviousClusterSize string `header:"previous_cluster_size" json:"previous_cluster_rate_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)

Jump to

Keyboard shortcuts

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