pkg

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	LogKeyHook                = "hook"
	LogKeyQueue               = "queue"
	LogKeyQueueName           = "queueName"
	LogKeyQueueLength         = "queue_length"
	LogKeyQueueLengthBefore   = "queue_length_before"
	LogKeyQueueLengthAfter    = "queue_length_after"
	LogKeyQueueIsDirty        = "queue_is_dirty"
	LogKeyCompactionThreshold = "compaction_threshold"
	LogKeyTaskID              = "task_id"
	LogKeyTaskType            = "task_type"
	LogKeyTaskDescription     = "task_description"
	LogKeyTasksCount          = "tasksCount"
	LogKeyTasks               = "tasks"
	LogKeyAfterTaskCount      = "after_task_count"
	LogKeyHeadTaskCount       = "head_task_count"
	LogKeyTailTaskCount       = "tail_task_count"
	LogKeySleepDelay          = "sleep_delay"
	LogKeyName                = "name"
	LogKeyDescription         = "description"
	LogKeyCommand             = "command"
	LogKeyDir                 = "dir"
	LogKeyLine                = "line"
	LogKeyPath                = "path"
	LogKeyFile                = "file"
	LogKeyAddress             = "address"
	LogKeyPort                = "port"
	LogKeyFormat              = "format"
	LogKeyComponent           = "component"
	LogKeyParameter           = "parameter"
	LogKeyOldValue            = "old_value"
	LogKeyNewValue            = "new_value"
	LogKeyCrontab             = "crontab"
	LogKeyOperatorComponent   = "operator.component"
	LogKeyHTTPMethod          = "http_method"
	LogKeyURI                 = "uri"
	LogKeyRespStatus          = "resp_status"
	LogKeyRespBytesLength     = "resp_bytes_length"
	LogKeyRespElapsedMs       = "resp_elapsed_ms"
	LogKeyStack               = "stack"
	LogKeyPanic               = "panic"
	LogKeyValue               = "value"
	LogKeyConfig              = "config"
	LogKeyType                = "type"
	LogKeyWorkingDir          = "workingDir"
	LogKeyPaths               = "paths"
	LogKeyPhase               = "phase"
	LogKeyCmd                 = "cmd"
	LogKeyOutput              = "output"
	LogKeyConfigId            = "configId"
	LogKeyWebhookId           = "webhookId"
	LogKeyConfigurationId     = "configurationId"
	LogKeyConfigurationID     = "configurationID"
	LogKeyWebhookID           = "webhookID"
	LogKeyConfID              = "confID"
	LogKeyKind                = "kind"
	LogKeyNamespace           = "namespace"
	LogKeyDebugName           = "debugName"
	LogKeyAPIVersion          = "apiVersion"
	LogKeyGVR                 = "gvr"
	LogKeyCount               = "count"
	LogKeyResourceId          = "resourceId"
	LogKeyChecksum            = "checksum"
	LogKeyEventType           = "eventType"
	LogKeyCRD                 = "crd"
	LogKeyRequest             = "request"
	LogKeyConfigurationName   = "configurationName"
	LogKeyMessage             = "message"
	LogKeyDropped             = "dropped"
	LogKeyFilteredCount       = "filteredCount"
	LogKeyTask                = "task"
	LogKeyBinding             = "binding"
	LogKeyEvent               = "event"
	LogKeyEventID             = "event.id"
	LogKeyTaskDotID           = "task.id"
	LogKeyInfo                = "info"
	LogKeyVersions            = "versions"
	LogKeyLen                 = "len"
	LogKeyFailedCount         = "failedCount"
	LogKeyBindingName         = "bindingName"
	LogKeyMonitorID           = "monitorID"
	LogKeyRule                = "rule"
	LogKeyError               = "error"
	LogKeyJqFilter            = "jqFilter"
)

Log attribute key constants for use with log/slog.

View Source
const (
	MetricKeyHook        = "hook"
	MetricKeyKind        = "kind"
	MetricKeyBinding     = "binding"
	MetricKeyQueue       = "queue"
	MetricKeyQueueName   = "queue_name"
	MetricKeyQueueAction = "queue_action"
	MetricKeyErrorType   = "error_type"
	MetricKeyComponent   = "component"
)

Metric label key constants for Prometheus metrics.

Variables

This section is empty.

Functions

func DefaultCreateOptions

func DefaultCreateOptions() metav1.CreateOptions

func DefaultPatchOptions

func DefaultPatchOptions() metav1.PatchOptions

func DefaultUpdateOptions

func DefaultUpdateOptions() metav1.UpdateOptions

Types

This section is empty.

Directories

Path Synopsis
Package app intentionally no longer exposes the DebugUnixSocket global or ApplyConfig helper that used to live here.
Package app intentionally no longer exposes the DebugUnixSocket global or ApplyConfig helper that used to live here.
jq
kube
Package metrics provides centralized metric names and registration functions for shell-operator.
Package metrics provides centralized metric names and registration functions for shell-operator.
utils
json
Package json is a drop-in replacement for encoding/json that delegates to github.com/goccy/go-json for better marshal/unmarshal performance.
Package json is a drop-in replacement for encoding/json that delegates to github.com/goccy/go-json for better marshal/unmarshal performance.
retry
Package retry provides context-aware retry-with-backoff utilities.
Package retry provides context-aware retry-with-backoff utilities.
webhook

Jump to

Keyboard shortcuts

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