servers

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package servers defines utilitizes that allow tests to access various servers, such as servo and provisions, provided in the lab or development environment.

Index

Constants

View Source
const (
	Primary = "" // Name for primary role.
)

Provide constant for primary DUTs roles for tests to use. Note: currently, we use "cd1", "cd2", ... for companinon DUT roles.

There is no process to allow customization it yet.

Variables

View Source
var ErrNotFound = errors.New("cannot find server information")

ErrNotFound is used the requested server information was not specified on command line.

Functions

func Server

func Server(serverType ServerType, role string) (string, error)

Server returns the host target information of a server. This function should not be called from the init functions of tests.

func Servers

func Servers(serverType ServerType) (map[string]string, error)

Servers returns a map of role to host information of a particular server type. This function should not be called from the init functions of tests.

Types

type ServerType

type ServerType int

ServerType defines the supported server types of this utility.

const (
	Servo ServerType = iota
	Provision
	DUT
)

The specific server type for each server.

Jump to

Keyboard shortcuts

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