valkey

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Valkey

type Valkey struct {
	Name   base.Name     `json:"name,omitzero" validate:"max=49"`
	Gvc    any           `json:"gvc,omitzero" validate:"allow="`
	Spec   *ValkeySpec   `json:"spec,omitzero"`
	Status *ValkeyStatus `json:"status,omitzero"`
}

Valkey ports `Valkey = Joi.object({name, gvc, spec, status})` (valkey.ts:42). NOTE: valkey is a plain object (NOT Base.keys); name is Name.max(49).

func (Valkey) ValidationRule

func (Valkey) ValidationRule() *validate.Rule

ValidationRule reflects `Valkey = Joi.object({name, gvc, spec, status})`. This is the schema the "valkey" kind validates against (formerly RegisterReflect and the ValkeySchema FromType shim).

type ValkeyCpu

type ValkeyCpu string

func (ValkeyCpu) ValidationRule

func (ValkeyCpu) ValidationRule() *validate.Rule

ValidationRule ports workload `Cpu = Joi.string().regex(...).max(20)`.

type ValkeyLocalOptions

type ValkeyLocalOptions struct {
	Memory   ValkeyMemory       `json:"memory,omitzero" validate:"default=256Mi"`
	Cpu      ValkeyCpu          `json:"cpu,omitzero" validate:"default=50m"`
	Suspend  *bool              `json:"suspend,omitzero" validate:"default=false"`
	Replicas *ValkeyReplicas    `json:"replicas,omitzero" validate:"integer,min=3"`
	Location ValkeyLocationLink `json:"location,omitzero"`
}

ValkeyLocalOptions ports `ValkeyOptions.append({location})` (valkey.ts:18).

type ValkeyLocationLink string

func (ValkeyLocationLink) ValidationRule

func (ValkeyLocationLink) ValidationRule() *validate.Rule

ValidationRule for spec.localOptions[].location: LocalLink constrained to kind 'location' — LocalLink.custom(toKind('location')) (valkey.ts), formerly locationLinkRule = LocalLinkRule().Custom(ToKind("location")).

type ValkeyMemory

type ValkeyMemory string

ValkeyMemory / ValkeyCpu are self-validating (see validate.go) to the workload Memory / Cpu rules; ValkeyLocationLink to LocalLink.custom(toKind('location')); ValkeyReplicas carries the replicas-must-be-odd custom.

func (ValkeyMemory) ValidationRule

func (ValkeyMemory) ValidationRule() *validate.Rule

ValidationRule ports workload `Memory = Joi.string().regex(...).max(20) .custom(normalize)`.

type ValkeyOptions

type ValkeyOptions struct {
	Memory   ValkeyMemory    `json:"memory,omitzero" validate:"default=256Mi"`
	Cpu      ValkeyCpu       `json:"cpu,omitzero" validate:"default=50m"`
	Suspend  *bool           `json:"suspend,omitzero" validate:"default=false"`
	Replicas *ValkeyReplicas `json:"replicas,omitzero" validate:"integer,min=3"`
}

ValkeyOptions ports `ValkeyOptions` (valkey.ts:7).

type ValkeyPersistenceOptions

type ValkeyPersistenceOptions struct {
	Enabled  *bool    `json:"enabled,omitzero" validate:"default=false"`
	Capacity *float64 `json:"capacity,omitzero" validate:"required,default=10,integer,min=10"`
}

ValkeyPersistenceOptions ports `ValkeyPersistenceOptions` (valkey.ts:22).

type ValkeyReplicas

type ValkeyReplicas float64

func (ValkeyReplicas) ValidationRule

func (ValkeyReplicas) ValidationRule() *validate.Rule

ValidationRule ports the ValkeyOptions.replicas custom (valkey.ts:11-15): replicas must be an odd number. The declarative integer/min=3 constraints stay on the field tag; this rule carries only the odd check (formerly `custom=valkeyReplicasOdd`).

type ValkeySpec

type ValkeySpec struct {
	Mode                  ValkeySpecMode            `json:"mode,omitzero" validate:"required,valid=sentinel|cluster"`
	Persistence           *ValkeyPersistenceOptions `json:"persistence,omitzero"`
	DefaultOptions        ValkeyOptions             `json:"defaultOptions" validate:"required"`
	LocalOptions          []ValkeyLocalOptions      `json:"localOptions,omitzero"`
	EvictionPolicy        ValkeySpecEvictionPolicy  `` /* 151-byte string literal not displayed */
	AdvancedConfiguration string                    `json:"advancedConfiguration,omitzero" validate:"default=,allow="`
}

ValkeySpec ports `ValkeySpec` (valkey.ts:31).

type ValkeySpecEvictionPolicy

type ValkeySpecEvictionPolicy string

type ValkeySpecMode

type ValkeySpecMode string
const (
	ValkeySpecModeSentinel ValkeySpecMode = "sentinel"
	ValkeySpecModeCluster  ValkeySpecMode = "cluster"
)

type ValkeyStatus

type ValkeyStatus struct{}

ValkeyStatus ports `Joi.object({})`.

Jump to

Keyboard shortcuts

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