status

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAgentToken added in v0.5.6

func CheckAgentToken(authnInterface authnclientv1.AuthenticationV1Interface, inContainer bool) gin.HandlerFunc

CheckAgentToken verify the token of the client. Check if the requester is the varmor-agent.

func CheckClientBearerToken added in v0.7.0

func CheckClientBearerToken(authnInterface authnclientv1.AuthenticationV1Interface, authzInterface authzclientv1.AuthorizationV1Interface, inContainer bool) gin.HandlerFunc

CheckClientBearerToken verify the Kubernetes bearer token of the client. Check if it has read access to the armorprofilemodels objects.

Types

type StatusService

type StatusService struct {
	StatusManager *statusmanager.StatusManager
	// contains filtered or unexported fields
}

func NewStatusService

func NewStatusService(
	addr string,
	port int,
	tlsPair *varmortls.PemPair,
	debug bool,
	inContainer bool,
	coreInterface corev1.CoreV1Interface,
	appsInterface appsv1.AppsV1Interface,
	varmorInterface varmorinterface.CrdV1beta1Interface,
	authnInterface authnclientv1.AuthenticationV1Interface,
	authzInterface authzclientv1.AuthorizationV1Interface,
	statusUpdateCycle time.Duration,
	metricsModule *metrics.MetricsModule,
	log logr.Logger) (*StatusService, error)

NewStatusService creates and initializes a new StatusService instance. It sets up routes and an HTTP server with TLS configuration, returning the service pointer and an error if any issues occur.

func (*StatusService) CleanUp

func (s *StatusService) CleanUp()

func (*StatusService) Run

func (s *StatusService) Run(stopCh <-chan struct{})

Directories

Path Synopsis
apis
v1

Jump to

Keyboard shortcuts

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