Documentation ¶
Index ¶
- Constants
- func AgentID(agentID int64) slog.Attr
- func Attempt(attempt int) slog.Attr
- func CommitID(commitID string) slog.Attr
- func DurationInMilliseconds(duration time.Duration) slog.Attr
- func Error(err error) slog.Attr
- func FullReconciliationInterval(interval time.Duration) slog.Attr
- func GRPCMethod(method string) slog.Attr
- func GRPCService(service string) slog.Attr
- func GatewayURL(gatewayURL string) slog.Attr
- func GitRepositoryURL(url string) slog.Attr
- func InventoryName(name string) slog.Attr
- func InventoryNamespace(namespace string) slog.Attr
- func IsWebSocket(isWebSocket bool) slog.Attr
- func K8sGroup(groupName string) slog.Attr
- func K8sObjectName(name string) slog.Attr
- func K8sObjectNamespace(name string) slog.Attr
- func K8sResource(resourceName string) slog.Attr
- func LabelSelector(selector string) slog.Attr
- func LazyValue(key string, val func() slog.Value) slog.Attr
- func ListenerName(name string) slog.Attr
- func ModuleName(name string) slog.Attr
- func Msg(msg string) slog.Attr
- func NamespacedName(n string) slog.Attr
- func NetAddress(listenAddress string) slog.Attr
- func NetAddressFromAddr(addr net.Addr) slog.Attr
- func NetNetwork(listenNetwork string) slog.Attr
- func NetNetworkFromAddr(addr net.Addr) slog.Attr
- func ObjectKey(objKey string) slog.Attr
- func PartialReconciliationInterval(interval time.Duration) slog.Attr
- func PayloadSizeInBytes(size int) slog.Attr
- func PodName(podName string) slog.Attr
- func PodNamespace(podNamespace string) slog.Attr
- func PodStatus(podStatus string) slog.Attr
- func PooledConnectionURL(poolConnURL string) slog.Attr
- func ProjectID(projectID string) slog.Attr
- func ProjectsToReconcile(p []string) slog.Attr
- func ProtoJSONValue(key string, value proto.Message) slog.Attr
- func Reason(reason string) slog.Attr
- func RedisKey(key []byte) slog.Attr
- func RemovedHashKeys(n int) slog.Attr
- func RequestID(requestID string) slog.Attr
- func StatusCode(code int32) slog.Attr
- func Strings(key string, val []string) slog.Attr
- func TargetNamespace(namespace string) slog.Attr
- func ToSlogAttr(field fieldz.Field) slog.Attr
- func ToSlogAttrs(fields []fieldz.Field, extraAttrs ...slog.Attr) []any
- func TokenLimit(limit uint64) slog.Attr
- func TraceID(traceID trace.TraceID) slog.Attr
- func TraceIDFromContext(ctx context.Context) slog.Attr
- func TrimSourceFilePath(attr slog.Attr) slog.Attr
- func TunnelsByAgent(numTunnels int) slog.Attr
- func U64Count(count uint64) slog.Attr
- func URL(url string) slog.Attr
- func URLPath(url string) slog.Attr
- func URLPathPrefix(urlPrefix string) slog.Attr
- func VulnerabilitiesCount(n int) slog.Attr
- func WatchID(id string) slog.Attr
- func WorkspaceDataCount(count int) slog.Attr
- func WorkspaceName(name string) slog.Attr
- func WorkspaceNamespace(namespace string) slog.Attr
- type LockedWriter
- type LogValuerFunc
Constants ¶
View Source
const ( AgentConfig = "agent_config" ApplyEvent = "apply_event" )
Variables ¶
This section is empty.
Functions ¶
func FullReconciliationInterval ¶ added in v17.1.0
func GRPCMethod ¶
func GRPCService ¶
func GatewayURL ¶ added in v17.1.0
func GitRepositoryURL ¶
func InventoryName ¶
func InventoryNamespace ¶
func IsWebSocket ¶
func K8sObjectName ¶
func K8sObjectNamespace ¶ added in v17.6.0
func K8sResource ¶
func LabelSelector ¶ added in v17.2.0
func ListenerName ¶ added in v17.5.0
func NamespacedName ¶
func NetAddress ¶
func NetNetwork ¶
func PartialReconciliationInterval ¶ added in v17.1.0
func PayloadSizeInBytes ¶
func PodNamespace ¶ added in v17.1.0
func PooledConnectionURL ¶ added in v17.5.0
func ProjectsToReconcile ¶
func RemovedHashKeys ¶
func StatusCode ¶
func TargetNamespace ¶
func ToSlogAttrs ¶ added in v17.2.0
ToSlogAttrs converts fieldz.Field to slog.Attr This function is useful to easily log all fieldz.Field. The fieldz.AgentIDFieldName is ignored because our loggers are already equipped with agent ids and we do not want to duplicate the key in the log message. Returns []any and not []slog.Attr so that the result can be used as a vararg to the logger call.
func TunnelsByAgent ¶
func URLPathPrefix ¶
func VulnerabilitiesCount ¶
func WorkspaceDataCount ¶
func WorkspaceName ¶
func WorkspaceNamespace ¶
Types ¶
type LockedWriter ¶ added in v17.2.0
LockedWriter serializes Write calls.
type LogValuerFunc ¶ added in v17.2.0
func (LogValuerFunc) LogValue ¶ added in v17.2.0
func (f LogValuerFunc) LogValue() slog.Value
Click to show internal directories.
Click to hide internal directories.