serverlib

package
v0.0.0-...-3c039c4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Overview

Package serverlib contains the main server loop and the modules used.

Index

Constants

This section is empty.

Variables

View Source
var ACLMap rpcacl.Map = map[string]string{
	"/fleetconsole.FleetConsole/CleanExit":            "fleet-console-access",
	"/fleetconsole.FleetConsole/CountDevices":         "fleet-console-access",
	"/fleetconsole.FleetConsole/GetDeviceDimensions":  "fleet-console-access",
	"/fleetconsole.FleetConsole/ListDevices":          "fleet-console-access",
	"/fleetconsole.FleetConsole/ListResourceRequests": "fleet-console-access",
	"/fleetconsole.FleetConsole/Ping":                 "fleet-console-access",
	"/fleetconsole.FleetConsole/PingDB":               "fleet-console-access",
	"/fleetconsole.FleetConsole/PingBigQuery":         "fleet-console-access",
	"/fleetconsole.FleetConsole/PingDeviceManager":    "fleet-console-access",
	"/fleetconsole.FleetConsole/PingUfs":              "fleet-console-access",
	"/fleetconsole.FleetConsole/RepopulateCache":      "fleet-console-access",
	"/discovery.Discovery/Describe":                   rpcacl.All,
	"/grpc.health.v1.Health/Watch":                    rpcacl.All,
	"/grpc.health.v1.Health/Check":                    rpcacl.All,
}

Functions

func ConfigureCORS

func ConfigureCORS(ctx context.Context, srv *server.Server)

func GetDeviceManagerClient

func GetDeviceManagerClient(ctx context.Context, cloudProject string) (*devicemanagerclient.Client, error)

func GetUfsClient

func GetUfsClient(ctx context.Context, cloudProject string) (ufsclient.Client, error)

func Modules

func Modules() []module.Module

Modules is the slice of luci server modules used by the fleet console.

func Options

func Options() *server.Options

func ServerMain

func ServerMain(srv *server.Server) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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