cft

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package cft contains methods to work with CFT containers.

Index

Constants

View Source
const (
	ADBBase       = "adb-base"
	ServoNexux    = "servo-nexus"
	CrosDUT       = "cros-dut"
	FoilProvision = "foil-provision"
)

Container names.

View Source
const CacheService = "cache-service"

Variables

This section is empty.

Functions

func ADBClientFromScope

func ADBClientFromScope(ctx context.Context, dut *tlw.Dut) (api.ADBServiceClient, error)

ADBClientFromScope read adb service client from scope.

func ADBName

func ADBName(dut *tlw.Dut) string

ADBName generates predicable container name for ADB container.

func ADBServiceAddressFromScope

func ADBServiceAddressFromScope(ctx context.Context, dut *tlw.Dut) (*lab_api.IpEndpoint, error)

ADBServiceAddressFromScope read adb service client from scope.

func AddressFromScope

func AddressFromScope(ctx context.Context, containerName string) (string, error)

AddressFromScope reads service address of cft container from context scope.

func AddressToScope

func AddressToScope(ctx context.Context, ctrInfo ctr.ServiceInfo, containerName string) error

AddressToScope puts service address of cft container to context scope.

func CacheServiceAddressFromScope

func CacheServiceAddressFromScope(ctx context.Context) (*lab_api.IpEndpoint, error)

CacheServiceAddressFromScope read cache service client from scope.

func ClientFromScope

func ClientFromScope[C comparable](ctx context.Context, dut *tlw.Dut, containerName string) (C, error)

ClientFromScope reads cft container client from context scope.

func ClientToScope

func ClientToScope[C comparable](ctx context.Context, dut *tlw.Dut, client C, containerName string) error

ClientToScope puts cft container client to context scope.

func CrosDUTName

func CrosDUTName(dut *tlw.Dut) string

CrosDUTName generates predicable container name for cros-dut container.

func FoilProvisionClientFromScope

func FoilProvisionClientFromScope(ctx context.Context, dut *tlw.Dut) (api.GenericProvisionServiceClient, error)

FoilProvisionClientFromScope read foil-provision service client from scope.

func FoilProvisionName

func FoilProvisionName(dut *tlw.Dut) string

FoilProvisionName generates predicable container name for foil-provision container.

func FoilProvisionServiceAddressFromScope

func FoilProvisionServiceAddressFromScope(ctx context.Context, dut *tlw.Dut) (*lab_api.IpEndpoint, error)

FoilProvisionServiceAddressFromScope read foil-provision service client from scope.

func NetworkName

func NetworkName(dut *tlw.Dut) string

NetworkName generates predicable name for custom Docker network.

func ServiceAddressToScope

func ServiceAddressToScope(ctx context.Context, serviceName, address string) error

ServiceAddressToScope puts service address to context scope.

func ServoClientFromScope

func ServoClientFromScope(ctx context.Context, dut *tlw.Dut) (api.ServodServiceClient, error)

ServoClientFromScope read servo-nexus service client from scope.

func ServoNexusName

func ServoNexusName(dut *tlw.Dut) string

ServoNexusName generates predicable container name for servo-nexux container.

func ServoServiceAddressFromScope

func ServoServiceAddressFromScope(ctx context.Context, dut *tlw.Dut) (*lab_api.IpEndpoint, error)

ServoServiceAddressFromScope read servo-nexus service client from scope.

Types

This section is empty.

Directories

Path Synopsis
Package adb contains methods to work with an ADB-base container.
Package adb contains methods to work with an ADB-base container.
Package crosdut contains methods to work with an cros-dut-base container.
Package crosdut contains methods to work with an cros-dut-base container.
Package foilprovision contains methods to work with an foil-provision container.
Package foilprovision contains methods to work with an foil-provision container.
Package servonexus contains methods to work with an servo-nexus container.
Package servonexus contains methods to work with an servo-nexus container.

Jump to

Keyboard shortcuts

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