common

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationKeyNoPDB = "login-protector.cybozu.io/no-pdb"
View Source
const AnnotationKeyTrackerName = "login-protector.cybozu.io/tracker-name"
View Source
const AnnotationKeyTrackerPort = "login-protector.cybozu.io/tracker-port"
View Source
const AnnotationLoggedIn = "login-protector.cybozu.io/logged-in"
View Source
const DefaultTrackerName = "local-session-tracker"
View Source
const DefaultTrackerPort = "8080"
View Source
const KindPod = "Pod"
View Source
const KindStatefulSet = "StatefulSet"
View Source
const LabelKeyLoginProtectorProtect = "login-protector.cybozu.io/protect"
View Source
const ValueFalse = "false"
View Source
const ValueTrue = "true"

Variables

This section is empty.

Functions

func NewProxyHTTPHandler

func NewProxyHTTPHandler(orig http.Handler, logger *zap.Logger) http.Handler

Types

type Process

type Process struct {
	// PID represents the process ID
	PID string `json:"pid"`
	// Command represents the filename of the executable
	Command string `json:"command"`
	// User represents the username of the process owner
	User string `json:"user"`
}

Process represents the process information

type TTYStatus

type TTYStatus struct {
	// Total represents the total number of processes associated with TTY
	Total int `json:"total"`
	// Processes represents the list of processes associated with TTY
	Processes []Process `json:"processes"`
}

TTYStatus represents the TTY status information

Jump to

Keyboard shortcuts

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