del

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = flags{}

	ErrExpectedVersionInconsistent = errors.New("inconsistent flags; zero or all keys must have an expected version")
	ErrExpectedRangeInconsistent   = errors.New("inconsistent flags; min and max flags must be in pairs")
)
View Source
var Cmd = &cobra.Command{
	Use:   "delete",
	Short: "Delete the entries",
	Long:  `Delete the entries with the given keys or key ranges, if they exists. If an expected version is provided, the delete will only take place if it matches the version of the current record on the server`,
	Args:  cobra.NoArgs,
	RunE:  exec,
}

Functions

This section is empty.

Types

type Call

type Call struct {
	// contains filtered or unexported fields
}

func (Call) Complete

func (call Call) Complete() <-chan any

type QueryByKey

type QueryByKey struct {
	Key             string
	ExpectedVersion *int64
}

func (QueryByKey) Perform

func (query QueryByKey) Perform(client oxia.AsyncClient) common.Call

type QueryByRange

type QueryByRange struct {
	KeyMinimum string
	KeyMaximum string
}

func (QueryByRange) Perform

func (query QueryByRange) Perform(client oxia.AsyncClient) common.Call

type QueryInput

type QueryInput struct {
	Key             *string `json:"key,omitempty"`
	ExpectedVersion *int64  `json:"expected_version,omitempty"`
	KeyMinimum      *string `json:"key_minimum,omitempty"`
	KeyMaximum      *string `json:"key_maximum,omitempty"`
}

func (QueryInput) Unmarshal

func (QueryInput) Unmarshal(b []byte) (common.Query, error)

Jump to

Keyboard shortcuts

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