frontend

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const SupportedClientMajorVersionNumber = 2

SupportedClientMajorVersionNumber indicates the minimum major client version

Variables

This section is empty.

Functions

func CreateAuditTask

func CreateAuditTask(ctx context.Context, botID, taskname, actions string) (string, error)

CreateAuditTask kicks off an audit job.

func CreateRepairTask

func CreateRepairTask(ctx context.Context, botID, expectedState string) (string, error)

CreateRepairTask kicks off a repair job.

func InstallHandlers

func InstallHandlers(r *router.Router, mwBase router.MiddlewareChain)

InstallHandlers installs the handlers implemented by the frontend package.

Types

type SwarmingFactory

type SwarmingFactory func(c context.Context, host string) (clients.SwarmingClient, error)

SwarmingFactory is a constructor for a SwarmingClient.

type TrackerServerImpl

type TrackerServerImpl struct {
	// SwarmingFactory is an optional factory function for creating clients.
	//
	// If SwarmingFactory is nil, clients.NewSwarmingClient is used.
	SwarmingFactory SwarmingFactory
}

TrackerServerImpl implements the fleet.TrackerServer interface.

func (*TrackerServerImpl) PushBotsForAdminAuditTasks

PushBotsForAdminAuditTasks implements the fleet.Tracker.pushBotsForAdminTasks() method.

func (*TrackerServerImpl) PushBotsForAdminTasks

PushBotsForAdminTasks implements the fleet.Tracker.pushBotsForAdminTasks() method.

func (*TrackerServerImpl) PushRepairJobsForLabstations

PushRepairJobsForLabstations implements the fleet.Tracker.pushLabstationsForRepair() method.

func (*TrackerServerImpl) ReportBots

func (tsi *TrackerServerImpl) ReportBots(ctx context.Context, req *fleet.ReportBotsRequest) (res *fleet.ReportBotsResponse, err error)

ReportBots reports metrics of swarming bots.

Directories

Path Synopsis
internal
datastore/deploy
Package deploy provides functions to store deployment status in datastore.
Package deploy provides functions to store deployment status in datastore.
datastore/dronecfg
Package dronecfg implements datastore access for storing drone configs.
Package dronecfg implements datastore access for storing drone configs.
datastore/freeduts
Package freeduts implements datastore access for caching free (removed) DUTs info.
Package freeduts implements datastore access for caching free (removed) DUTs info.
datastore/inventory
Package inventory contains datastore operations for caching inventory data.
Package inventory contains datastore operations for caching inventory data.
datastore/stableversion
Package stableversion provides functions to store stableversion info in datastore
Package stableversion provides functions to store stableversion info in datastore
metrics
Package metrics contains functions to report tsmon metrics from app RPCs.
Package metrics contains functions to report tsmon metrics from app RPCs.
swarming
Package swarming contains utilities for skylab swarming tasks.
Package swarming contains utilities for skylab swarming tasks.
Package inventory implements the fleet.Inventory service end-points of corsskylabadmin.
Package inventory implements the fleet.Inventory service end-points of corsskylabadmin.

Jump to

Keyboard shortcuts

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