Documentation ¶
Index ¶
- Constants
- func AgentID(agentID int64) slog.Attr
- func AgentVersion(agentVersion string) slog.Attr
- func CommitID(commitID string) slog.Attr
- func DurationInMilliseconds(duration time.Duration) slog.Attr
- func Error(err error) slog.Attr
- func Expires(t time.Time) slog.Attr
- func ExpiringHashName(n string) 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 K8sResource(resourceName string) slog.Attr
- func LabelSelector(selector string) slog.Attr
- func LazyValue(key string, val func() slog.Value) slog.Attr
- func ModuleName(name 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(obj any) 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 PoolConnectionURL(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 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 TTL(d time.Duration) 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 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 AgentVersion ¶ added in v17.1.0
func ExpiringHashName ¶ added in v17.2.0
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 K8sResource ¶
func LabelSelector ¶ added in v17.2.0
func NamespacedName ¶
func NetAddress ¶
func NetNetwork ¶
func PartialReconciliationInterval ¶ added in v17.1.0
func PayloadSizeInBytes ¶
func PodNamespace ¶ added in v17.1.0
func PoolConnectionURL ¶
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.