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

keyspace

package
v0.209.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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"`
	Resizing    bool   `header:"resizing" json:"resizing"`
	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)

Jump to

Keyboard shortcuts

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