Documentation ¶
Overview ¶
Package provision implements a RPC client library that connects to TLS running in the drone for provisioning.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TLSAddrVar = testing.RegisterVarString(
"provision.TLSAddr",
"10.254.254.254:7152",
"The address {host:port} of TLS for provisioning",
)
TLSAddrVar is a variable to set the address of TLS for provisioning.
Functions ¶
This section is empty.
Types ¶
type TLSClient ¶
type TLSClient struct {
// contains filtered or unexported fields
}
TLSClient holds a gRPC connection and address of TLS.
func (*TLSClient) ProvisionLacrosFromDeviceFilePath ¶
func (c *TLSClient) ProvisionLacrosFromDeviceFilePath(ctx context.Context, dutName, deviceFilePath, overrideVersion, overrideInstallPath string) error
ProvisionLacrosFromDeviceFilePath calls a TLS ProvisionLacros API to provision Lacros from the local file path in which Lacros image files are available on a DUT. This takes args to specify the DUT address, the file path to Lacros source image on the DUT, version to override and the installation path where the Lacros component is provisioned to.
Click to show internal directories.
Click to hide internal directories.