Documentation
¶
Index ¶
- Constants
- func AbortCause[T ~string](cause T) slog.Attr
- func AbortRetryAttempt(n int32) slog.Attr
- func ActionResultSizeInBytes(size int) slog.Attr
- func ActivityName(name string) slog.Attr
- func ActivityTaskID(id fmt.Stringer) slog.Attr
- func AgentKey(agentKey api.AgentKey) slog.Attr
- func AgentName(name string) slog.Attr
- func AnyJSONValue(key string, value any) slog.Attr
- func Attempt[T ~int | ~int32](attempt T) slog.Attr
- func AutoFlowAction(name string) slog.Attr
- func AutoFlowModule(name string) slog.Attr
- func Backoff(d time.Duration) slog.Attr
- func CIJobID(id int64) slog.Attr
- func CommitID(commitID string) slog.Attr
- func ConsumerGroup(consumerGroup string) slog.Attr
- func ConsumerName(consumerName string) slog.Attr
- func CorrelationID(id string) slog.Attr
- func DBID[T ~int16](id T) slog.Attr
- func DeletedCount(n int64) slog.Attr
- func Disposition[T ~string](disposition T) slog.Attr
- func DurationS(duration time.Duration) slog.Attr
- func Error(err error) slog.Attr
- func ExecutionResult[T ~string](result T) slog.Attr
- func ExternalNamespaceID[T ~int64](id T) slog.Attr
- func FenceID[T ~int64](id T) slog.Attr
- func FireAtDB(t time.Time) slog.Attr
- func FullReconciliationInterval(interval time.Duration) slog.Attr
- func GRPCCode(code string) slog.Attr
- func GRPCMethod(method string) slog.Attr
- func GRPCService(service string) slog.Attr
- func GV(gvr schema.GroupVersion) slog.Attr
- func GVR(gvr schema.GroupVersionResource) slog.Attr
- func GitRepositoryURL(url string) slog.Attr
- func HTTPStatusCode(code int32) slog.Attr
- func HeldFenceID[T ~int64](id T) slog.Attr
- func IdempotencyKey(key string) slog.Attr
- func InFlightTasks(n int) slog.Attr
- func InstanceIndex(i int) slog.Attr
- func Interval(duration time.Duration) slog.Attr
- func InventoryName(name string) slog.Attr
- func InventoryNamespace(namespace string) slog.Attr
- func IsScriptPrint() slog.Attr
- func IsWebSocket(isWebSocket bool) slog.Attr
- func JSONValue(key string, value any) slog.Attr
- func K8sObjectName(name string) slog.Attr
- func K8sObjectNamespace(name string) slog.Attr
- func K8sObjectNsAndName(o metav1.Object) slog.Attr
- func LabelSelector(selector string) slog.Attr
- func LastConnectedAt(timestamp time.Time) slog.Attr
- func LastSeenSequenceID[T ~int64](id T) slog.Attr
- func LazyValue(key string, val func() slog.Value) slog.Attr
- func ListenerAddr(l net.Listener) slog.Attr
- func ListenerName(name string) slog.Attr
- func LoadedEventCount(n int) slog.Attr
- func MaxAttempts[T ~int | ~int32](n T) slog.Attr
- func ModuleName(name string) slog.Attr
- func ModuleURI(uri string) slog.Attr
- func NotAdmittedReason(reason string) slog.Attr
- func ObjectKey(objKey string) slog.Attr
- func OwnedShards(n int) slog.Attr
- func PartialReconciliationInterval(interval time.Duration) slog.Attr
- func PartitionName(name string) slog.Attr
- func PayloadSizeInBytes(size int) slog.Attr
- func PendingFutureCount(n int) slog.Attr
- func PodName(podName string) slog.Attr
- func PodNamespace(podNamespace string) slog.Attr
- func PodStatus(podStatus string) slog.Attr
- func PodWaitingMessage(msg string) slog.Attr
- func PodWaitingReason(reason string) slog.Attr
- func PolicyTrigger(trigger string) slog.Attr
- func PoolMaxConns(n int) slog.Attr
- func ProjectPath(path string) slog.Attr
- func ProjectsToReconcile(p sets.Set[string]) slog.Attr
- func ProtoJSONValue(key string, value proto.Message) slog.Attr
- func ReadyInstances(n int) slog.Attr
- func RecoveredCount(n int64) slog.Attr
- func RedisChannel(name string) slog.Attr
- func RedisKey(key []byte) slog.Attr
- func RefSite[T ~string](site T) slog.Attr
- func RejectedCount(n int64) slog.Attr
- func RejectionReason[T ~string](reason T) slog.Attr
- func RemovedHashKeys(n int) slog.Attr
- func RemovedHashKeysIn(hashName string, n int) slog.Attr
- func Replayed() slog.Attr
- func ResponseHeaders(h http.Header) slog.Attr
- func ScheduleCount(n int) slog.Attr
- func ScheduledTaskID(id fmt.Stringer) slog.Attr
- func ScheduledTaskType(t string) slog.Attr
- func SecondsAgo(duration time.Duration) slog.Attr
- func ShardCount(n int) slog.Attr
- func ShardEntitlement(n int) slog.Attr
- func ShardEntitlementTotal(n int) slog.Attr
- func ShardID[T ~int32](id T) slog.Attr
- func ShardIDs[T ~int32](ids []T) slog.Attr
- func ShardsConfiguredTotal(n int) slog.Attr
- func SignalID(id fmt.Stringer) slog.Attr
- func SignalName(name string) slog.Attr
- func SignalType(st fmt.Stringer) slog.Attr
- func StarlarkPosition(pos fmt.Stringer) slog.Attr
- func StarlarkThread(name string) slog.Attr
- func StateTransition[T ~string](transition T) slog.Attr
- func StringSet(key string, val sets.Set[string]) slog.Attr
- func Strings(key string, val []string) slog.Attr
- func TargetNamespace(namespace string) slog.Attr
- func TemplateName(name string) slog.Attr
- func TerminalCause[T ~string](cause T) slog.Attr
- func TokenLimit(limit uint64) slog.Attr
- func Topic(topic string) slog.Attr
- func TraceID(traceID trace.TraceID) slog.Attr
- func TraceIDFromContext(ctx context.Context) slog.Attr
- func TransformName(name string) slog.Attr
- func TransformResultSizeInBytes(size int) 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 WorkerStage[T ~string](stage T) slog.Attr
- func WorkflowAlreadyExists(v bool) slog.Attr
- func WorkflowExecutionState(state fmt.Stringer) slog.Attr
- func WorkflowID(id fmt.Stringer) slog.Attr
- func WorkflowKey(key string) slog.Attr
- func WorkflowName(name string) slog.Attr
- func WorkflowPoolSize(n int) slog.Attr
- func WorkflowTaskID(id fmt.Stringer) 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 ¶
const ( AgentConfig = "agent_config" ApplyEvent = "apply_event" VertexID = "vid" FromVertexID = "from_vid" ToVertexID = "to_vid" ArcType = "arc_type" VidRoot = "vid_root" VidWasRoot = "vid_was_root" )
const (
AttributesFieldName = "attrs"
)
Variables ¶
This section is empty.
Functions ¶
func AbortCause ¶
func AbortRetryAttempt ¶
func ActionResultSizeInBytes ¶ added in v19.3.0
ActionResultSizeInBytes is the marshaled size of the value an action returned.
func ActivityName ¶
func AutoFlowAction ¶ added in v19.4.0
AutoFlowAction names an AutoFlow module action.
func AutoFlowModule ¶ added in v19.4.0
AutoFlowModule names the AutoFlow module an action belongs to.
func ConsumerGroup ¶
func ConsumerName ¶
func CorrelationID ¶ added in v19.4.0
CorrelationID is the GitLab correlation ID, carried in the X-Request-Id header.
func DeletedCount ¶ added in v19.4.0
func Disposition ¶
func ExecutionResult ¶
func ExternalNamespaceID ¶ added in v19.4.0
ExternalNamespaceID is the caller's id of the namespace a workflow runs in.
func GRPCMethod ¶
func GRPCService ¶
func GitRepositoryURL ¶
func HTTPStatusCode ¶ added in v19.3.0
func HeldFenceID ¶ added in v19.4.0
func IdempotencyKey ¶ added in v19.3.0
func InFlightTasks ¶ added in v19.4.0
func InstanceIndex ¶ added in v19.4.0
func InventoryName ¶
func InventoryNamespace ¶
func IsScriptPrint ¶
func IsWebSocket ¶
func K8sObjectName ¶
func K8sObjectNamespace ¶
func LabelSelector ¶
func LastSeenSequenceID ¶
func ListenerName ¶
func LoadedEventCount ¶
func ModuleName ¶
ModuleName defines the field for logging either NGitLab-kas or agentk module name.
func NotAdmittedReason ¶ added in v19.3.0
NotAdmittedReason is the reason a runner controller did not admit a job.
func OwnedShards ¶
func PartitionName ¶ added in v19.2.0
func PayloadSizeInBytes ¶
func PendingFutureCount ¶
func PodNamespace ¶
func PodWaitingMessage ¶ added in v19.3.0
PodWaitingMessage is the message from a container's waiting state.
func PodWaitingReason ¶ added in v19.3.0
PodWaitingReason is the reason a container is in the waiting state.
func PolicyTrigger ¶ added in v19.4.0
func PoolMaxConns ¶ added in v19.4.0
func ProjectPath ¶ added in v19.4.0
ProjectPath is the human-readable GitLab project path (e.g. gitlab-org/gitlab).
func ReadyInstances ¶ added in v19.4.0
func RecoveredCount ¶
func RedisChannel ¶ added in v19.1.0
func RejectedCount ¶ added in v19.4.0
func RejectionReason ¶ added in v19.4.0
func RemovedHashKeys ¶
func ScheduleCount ¶
func ScheduledTaskType ¶ added in v19.4.0
func ShardCount ¶ added in v19.4.0
func ShardEntitlement ¶ added in v19.4.0
func ShardEntitlementTotal ¶ added in v19.4.0
func ShardsConfiguredTotal ¶ added in v19.4.0
func SignalName ¶
func StarlarkPosition ¶ added in v19.4.0
StarlarkPosition is the file:line:col a flow was stopped at.
func StarlarkThread ¶ added in v19.4.0
StarlarkThread names the interpreter thread a flow was running on.
func StateTransition ¶ added in v19.4.0
func TargetNamespace ¶
func TemplateName ¶ added in v19.4.0
func TerminalCause ¶
func TokenLimit ¶
func TransformName ¶ added in v19.3.0
func TransformResultSizeInBytes ¶ added in v19.3.0
TransformResultSizeInBytes is the marshaled size of the value a transform returned in place of the action's own.
func TunnelsByAgent ¶
func URLPathPrefix ¶
func VulnerabilitiesCount ¶
func WorkerStage ¶ added in v19.4.0
func WorkflowAlreadyExists ¶
func WorkflowKey ¶ added in v19.3.0
func WorkflowName ¶ added in v19.1.0
func WorkflowPoolSize ¶ added in v19.4.0
func WorkspaceDataCount ¶
func WorkspaceName ¶
func WorkspaceNamespace ¶
Types ¶
type LockedWriter ¶
LockedWriter serializes Write calls.
type LogValuerFunc ¶
func (LogValuerFunc) LogValue ¶
func (f LogValuerFunc) LogValue() slog.Value