Documentation
¶
Overview ¶
Package status implements the service of manager
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, verb string, 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
Package statusmanagerv1 implements version v1 of status manager to handle the status from agents.
|
Package statusmanagerv1 implements version v1 of status manager to handle the status from agents. |
|
v1beta1
Package modelmanagerv1beta1 implements the v1beta1 version of the interface to access the ArmorProfileModel objects
|
Package modelmanagerv1beta1 implements the v1beta1 version of the interface to access the ArmorProfileModel objects |
|
Package common provides common functions for the status service
|
Package common provides common functions for the status service |
Click to show internal directories.
Click to hide internal directories.