Documentation
¶
Overview ¶
Package cache provides functionality to map DUTs to caching servers.
Copyright 2022 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator struct {
// contains filtered or unexported fields
}
Locator helps to find a caching server for any given DUT. It tries to use UFS zone and falls back to subnets to match the given DUT with a caching server. It caches intermediate results, e.g. IP addresses, UFS zones, etc.
func NewLocator ¶
func NewLocator() *Locator
func (*Locator) FindCacheServer ¶
func (l *Locator) FindCacheServer(dutName string, client ufsapi.FleetClient) (*labapi.IpEndpoint, error)
FindCacheServer returns the ip address of a cache server mapped to a dut.
func (*Locator) SetPreferredServices ¶
SetPreferredServices sets preferred services form a string slice.
Click to show internal directories.
Click to hide internal directories.