logz

package
v16.3.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentConfig = "agent_config"
	ApplyEvent  = "apply_event"
)

Variables

This section is empty.

Functions

func AgentId

func AgentId(agentId int64) zap.Field

func CommitId

func CommitId(commitId string) zap.Field

func DurationInMilliseconds

func DurationInMilliseconds(duration time.Duration) zap.Field

func Error

func Error(err error) zap.Field

func Filename

func Filename(filename string) zap.Field

func GitRef

func GitRef(gitRef string) zap.Field

func GitRepositoryUrl added in v16.1.0

func GitRepositoryUrl(url string) zap.Field

func GrpcMethod

func GrpcMethod(method string) zap.Field

func GrpcService

func GrpcService(service string) zap.Field

func IsWebSocket

func IsWebSocket(isWebSocket bool) zap.Field

func K8sGroup added in v16.1.0

func K8sGroup(groupName string) zap.Field

func K8sResource added in v16.1.0

func K8sResource(resourceName string) zap.Field

func KasUrl

func KasUrl(kasUrl string) zap.Field

func Kind

func Kind(kind string) zap.Field

func LevelFromString

func LevelFromString(levelStr string) (zapcore.Level, error)

func ModuleName

func ModuleName(name string) zap.Field

GitLab-kas or agentk module name.

func NamespacedName added in v16.1.0

func NamespacedName(n string) zap.Field

func NetAddress

func NetAddress(listenAddress string) zap.Field

func NetAddressFromAddr

func NetAddressFromAddr(addr net.Addr) zap.Field

func NetNetwork

func NetNetwork(listenNetwork string) zap.Field

func NetNetworkFromAddr

func NetNetworkFromAddr(addr net.Addr) zap.Field

func NewProductionEncoderConfig

func NewProductionEncoderConfig() zapcore.EncoderConfig

func NoSync

func NoSync(w io.Writer) zapcore.WriteSyncer

NoSync can be used to wrap a io.Writer that implements zapcore.WriteSyncer but does not actually support the Sync() operation. An example is os.Stderr that returns "sync /dev/stderr: inappropriate ioctl for device" on sync attempt.

func NumberOfFilesSent

func NumberOfFilesSent(n uint32) zap.Field

func NumberOfFilesVisited

func NumberOfFilesVisited(n uint32) zap.Field

func NumberOfTunnelFindRequests

func NumberOfTunnelFindRequests(n int) zap.Field

func NumberOfTunnels

func NumberOfTunnels(n int) zap.Field

func ObjectKey added in v16.1.0

func ObjectKey(obj interface{}) zap.Field

func PayloadSizeInBytes

func PayloadSizeInBytes(size int) zap.Field

func PodLog

func PodLog(podLog string) zap.Field

func PodName

func PodName(podName string) zap.Field

func PodStatus

func PodStatus(podStatus string) zap.Field

func PoolConnectionUrl

func PoolConnectionUrl(poolConnUrl string) zap.Field

func ProjectId

func ProjectId(projectId string) zap.Field

ProjectId is the human-readable GitLab project path (e.g. gitlab-org/gitlab).

func ProjectsToReconcile added in v16.1.0

func ProjectsToReconcile(p []string) zap.Field

func ProtoJsonValue

func ProtoJsonValue(key string, value proto.Message) zap.Field

func RedisKey

func RedisKey(key []byte) zap.Field

Use for any keys in Redis.

func RemovedHashKeys

func RemovedHashKeys(n int) zap.Field

func ReportName

func ReportName(name string) zap.Field

func RequestId

func RequestId(requestId string) zap.Field

func StatusCode

func StatusCode(code int32) zap.Field

func TargetNamespace

func TargetNamespace(namespace string) zap.Field

func TokenLimit

func TokenLimit(limit uint64) zap.Field

Use for any integer counters.

func TraceId

func TraceId(traceId trace.TraceID) zap.Field

func TraceIdFromContext

func TraceIdFromContext(ctx context.Context) zap.Field

func TrivyResourceLimitCPU added in v16.1.3

func TrivyResourceLimitCPU(trivyResourceLimitCPU string) zap.Field

func TrivyResourceLimitMemory added in v16.1.3

func TrivyResourceLimitMemory(trivyResourceLimitMemory string) zap.Field

func TrivyResourceRequestCPU added in v16.1.3

func TrivyResourceRequestCPU(trivyResourceRequestCPU string) zap.Field

func TrivyResourceRequestMemory added in v16.1.3

func TrivyResourceRequestMemory(trivyResourceRequestMemory string) zap.Field

func U64Count

func U64Count(count uint64) zap.Field

Use for any integer counters.

func Url

func Url(url string) zap.Field

func UrlPath

func UrlPath(url string) zap.Field

func UrlPathPrefix

func UrlPathPrefix(urlPrefix string) zap.Field

func VulnerabilitiesCount

func VulnerabilitiesCount(n int) zap.Field

func WorkerId

func WorkerId(workerId string) zap.Field

WorkerId is an id of the work source such as project id or chart name. (e.g. gitlab-org/gitlab).

func WorkspaceDataCount

func WorkspaceDataCount(count int) zap.Field

func WorkspaceName

func WorkspaceName(name string) zap.Field

func WorkspaceNamespace

func WorkspaceNamespace(namespace string) zap.Field

func WorkspaceTerminationProgress

func WorkspaceTerminationProgress(status string) zap.Field

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL