healthcheck

package
v1.20.4 Latest Latest
Warning

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

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

Documentation

Overview

Package healthcheck implements health check service for crypki.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	proto.UnimplementedHealthServer
	SigningService *api.SigningService
	KeyID          string
	// InRotation returns true if the instance is intended to serve traffic, false otherwise.
	InRotation func() bool
}

Service implements proto.HealthCheckServer

func (*Service) Check

Check implements the health check service for crypki. Based on InRotation() and GetUserSSHCertificateSigningKey() api, it will report appropriate status.

Jump to

Keyboard shortcuts

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