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} )
View Source
var DeploymentPrimaryKeyCodec = collections.PairKeyCodec( collections.StringKey, collections.Uint64Key, )
DeploymentPrimaryKeyCodec is the key codec for DeploymentPrimaryKey
View Source
var GroupPrimaryKeyCodec = collections.TripleKeyCodec( collections.StringKey, collections.Uint64Key, collections.Uint32Key, )
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
Click to show internal directories.
Click to hide internal directories.