github.com/cilium/cilium@v1.16.2/pkg/kvstore/logfields.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  package kvstore
     5  
     6  import (
     7  	"github.com/cilium/cilium/pkg/logging"
     8  	"github.com/cilium/cilium/pkg/logging/logfields"
     9  )
    10  
    11  var log = logging.DefaultLogger.WithField(logfields.LogSubsys, "kvstore")
    12  
    13  const (
    14  	// fieldKVStoreModule is the name of the kvstore backend (etcd or consul)
    15  	fieldKVStoreModule = "module"
    16  
    17  	// key revision
    18  	fieldRev = "revision"
    19  
    20  	// fieldPrefix is the prefix of the key used in the operation
    21  	fieldPrefix = "prefix"
    22  
    23  	// fieldKey is the prefix of the key used in the operation
    24  	fieldKey = "key"
    25  
    26  	// fieldValue is the prefix of the key used in the operation
    27  	fieldValue = "value"
    28  
    29  	// fieldNumEntries is the number of entries in the result
    30  	fieldNumEntries = "numEntries"
    31  
    32  	// fieldRemainingEntries is the number of entries still to be retrieved
    33  	fieldRemainingEntries = "remainingEntries"
    34  
    35  	// fieldAttachLease is true if the key must be attached to a lease
    36  	fieldAttachLease = "attachLease"
    37  
    38  	// FieldUser identifies a user in the kvstore
    39  	FieldUser = logfields.User
    40  
    41  	// FieldRole identifies a role in the kvstore
    42  	FieldRole = "role"
    43  )