Repository: hashicorp/nomad
File: client/state/db_bolt.go (Go)

Code before:
	allocationsBucketName = []byte("allocations")

	// allocKey is the key Allocations are stored under encapsulated in
	// allocEntry structs.
	allocKey = []byte("alloc")

	// allocDeployStatusKey is the key *structs.AllocDeploymentStatus is
	// stored under.
	allocDeployStatusKey = []byte("deploy_status")

	// allocNetworkStatusKey is the key *structs.AllocNetworkStatus is
	// stored under
	allocNetworkStatusKey = []byte("network_status")

	// acknowledgedStateKey is the key *arstate.State is stored under
	acknowledgedStateKey = []byte("acknowledged_state")

	allocVolumeKey = []byte("alloc_volume")

	// allocIdentityKey is the key []*structs.SignedWorkloadIdentities is stored
	// under
	allocIdentityKey = []byte("alloc_identities")

	// allocConsulACLTokeKey is the key []*structs.SignedWorkloadIdentities is stored
	// under
	allocConsulACLTokeKey = []byte("alloc_consul_acl_token_identities")

	// checkResultsBucket is the bucket name in which check query results are stored
	checkResultsBucket = []byte("check_results")

	// allocations -> $allocid -> task-$taskname -> the keys below
	taskLocalStateKey = []byte("local_state")
	taskStateKey      = []byte("task_state")

	// devManagerBucket is the bucket name containing all device manager related
	// data
	devManagerBucket = []byte("devicemanager")

	// driverManagerBucket is the bucket name containing all driver manager
	// related data
	driverManagerBucket = []byte("drivermanager")

	// managerPluginStateKey is the key by which plugin manager plugin state is
	// stored at
	managerPluginStateKey = []byte("plugin_state")

	// dynamicPluginBucketName is the bucket name containing all dynamic plugin
	// registry data. each dynamic plugin registry will have its own subbucket.
	dynamicPluginBucketName = []byte("dynamicplugins")

	// registryStateKey is the key at which dynamic plugin registry state is stored

Review comment (suggestion):
These aren't "identities" so I'd remove that from the key. But also the comment still refers to `SignedWorkloadIdentities`

Code after:
	// data
	allocationsBucketName = []byte("allocations")

	// allocKey is the key Allocations are stored under encapsulated in
	// allocEntry structs.
	allocKey = []byte("alloc")

	// allocDeployStatusKey is the key *structs.AllocDeploymentStatus is
	// stored under.
	allocDeployStatusKey = []byte("deploy_status")

	// allocNetworkStatusKey is the key *structs.AllocNetworkStatus is
	// stored under
	allocNetworkStatusKey = []byte("network_status")

	// acknowledgedStateKey is the key *arstate.State is stored under
	acknowledgedStateKey = []byte("acknowledged_state")

	allocVolumeKey = []byte("alloc_volume")

	// allocIdentityKey is the key []*structs.SignedWorkloadIdentities is stored
	// under
	allocIdentityKey = []byte("alloc_identities")

	// allocConsulACLTokeKey is the key []*structs.ConsulACLTokens is stored
	// under
	allocConsulACLTokenKey = []byte("alloc_consul_acl_token_identities")

	// checkResultsBucket is the bucket name in which check query results are stored
	checkResultsBucket = []byte("check_results")

	// allocations -> $allocid -> task-$taskname -> the keys below
	taskLocalStateKey = []byte("local_state")
	taskStateKey      = []byte("task_state")

	// devManagerBucket is the bucket name containing all device manager related
	// data
	devManagerBucket = []byte("devicemanager")

	// driverManagerBucket is the bucket name containing all driver manager
	// related data
	driverManagerBucket = []byte("drivermanager")

	// managerPluginStateKey is the key by which plugin manager plugin state is
	// stored at
	managerPluginStateKey = []byte("plugin_state")

	// dynamicPluginBucketName is the bucket name containing all dynamic plugin
	// registry data. each dynamic plugin registry will have its own subbucket.
	dynamicPluginBucketName = []byte("dynamicplugins")