keys

package
v1.2.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Old prefixes — kept for migration reads
	DeploymentPrefix = []byte{0x11, 0x00}
	GroupPrefix      = []byte{0x12, 0x00}

	// New collections prefixes
	DeploymentPrefixNew        = []byte{0x11, 0x01}
	DeploymentIndexStatePrefix = []byte{0x11, 0x02}
	GroupPrefixNew             = []byte{0x12, 0x01}
	GroupIndexStatePrefix      = []byte{0x12, 0x02}
	GroupIndexDeploymentPrefix = []byte{0x12, 0x03}
)

DeploymentPrimaryKeyCodec is the key codec for DeploymentPrimaryKey

GroupPrimaryKeyCodec is the key codec for GroupPrimaryKey

Functions

func KeyToDeploymentID

func KeyToDeploymentID(key DeploymentPrimaryKey) v1.DeploymentID

KeyToDeploymentID converts a DeploymentPrimaryKey back to a v1.DeploymentID

func KeyToGroupID

func KeyToGroupID(key GroupPrimaryKey) v1.GroupID

KeyToGroupID converts a GroupPrimaryKey back to a v1.GroupID

Types

type DeploymentPrimaryKey

type DeploymentPrimaryKey = collections.Pair[string, uint64]

DeploymentPrimaryKey is the composite primary key for a deployment: (owner, dseq)

func DeploymentIDToKey

func DeploymentIDToKey(id v1.DeploymentID) DeploymentPrimaryKey

DeploymentIDToKey converts a v1.DeploymentID to a DeploymentPrimaryKey for use with the IndexedMap

type GroupPrimaryKey

type GroupPrimaryKey = collections.Triple[string, uint64, uint32]

GroupPrimaryKey is the composite primary key for a group: (owner, dseq, gseq)

func GroupIDToKey

func GroupIDToKey(id v1.GroupID) GroupPrimaryKey

GroupIDToKey converts a v1.GroupID to a GroupPrimaryKey for use with the IndexedMap

Jump to

Keyboard shortcuts

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