router

package
v0.0.0-...-9acc2fa Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PermissionRead     = "read"
	PermissionWrite    = "write"
	PermissionDelete   = "delete"
	PermissionIngest   = "ingest"
	PermissionStart    = "start"
	PermissionStop     = "stop"
	PermissionGenerate = "generate"
	PermissionRegister = "register"
	PermissionUpdate   = "update"

	ResourceUser        = "user"
	ResourceSettings    = "settings"
	ResourceAllUsers    = "all-users"
	ResourceAgentReport = "agent-report"
	ResourceCloudReport = "cloud-report"
	ResourceScanReport  = "scan-report"
	ResourceScan        = "scan"
	ResourceDiagnosis   = "diagnosis"
	ResourceCloudNode   = "cloud-node"
	ResourceRegistry    = "container-registry"
	ResourceIntegration = "integration"
	ResourceReport      = "report"
	ResourceLicense     = "license"
)

Variables

View Source
var (
	ErrJwtSignKeyNotFound = errors.New("jwt sign key not found")
)

Functions

func InternalRoutes

func InternalRoutes(r *chi.Mux, ingestC chan *kgo.Record, debug bool) error

func IsSaasDeployment

func IsSaasDeployment() bool

func NewMetrics

func NewMetrics() *prometheus.Registry

func SetupRoutes

func SetupRoutes(r *chi.Mux, serverPort string, serveOpenapiDocs bool, ingestC chan *kgo.Record, openAPIDocs *apiDocs.OpenAPIDocs, orchestrator string) error

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func (*Collector) Collect

func (collector *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (collector *Collector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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