provision

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: 6 Imported by: 0

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 Dial

func Dial(ctx context.Context, addr string) (*TLSClient, error)

Dial connects to a given gRPC service. Close should be called to release resources.

func (*TLSClient) Close

func (c *TLSClient) Close() error

Close releases resources. This should be called after using TLSClient.

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.

Jump to

Keyboard shortcuts

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