Documentation
¶
Overview ¶
Package cft contains methods to work with CFT containers.
Index ¶
- Constants
- func ADBClientFromScope(ctx context.Context, dut *tlw.Dut) (api.ADBServiceClient, error)
- func ADBName(dut *tlw.Dut) string
- func ADBServiceAddressFromScope(ctx context.Context, dut *tlw.Dut) (*lab_api.IpEndpoint, error)
- func AddressFromScope(ctx context.Context, containerName string) (string, error)
- func AddressToScope(ctx context.Context, ctrInfo ctr.ServiceInfo, containerName string) error
- func CacheServiceAddressFromScope(ctx context.Context) (*lab_api.IpEndpoint, error)
- func ClientFromScope[C comparable](ctx context.Context, dut *tlw.Dut, containerName string) (C, error)
- func ClientToScope[C comparable](ctx context.Context, dut *tlw.Dut, client C, containerName string) error
- func CrosDUTName(dut *tlw.Dut) string
- func FoilProvisionClientFromScope(ctx context.Context, dut *tlw.Dut) (api.GenericProvisionServiceClient, error)
- func FoilProvisionName(dut *tlw.Dut) string
- func FoilProvisionServiceAddressFromScope(ctx context.Context, dut *tlw.Dut) (*lab_api.IpEndpoint, error)
- func NetworkName(dut *tlw.Dut) string
- func ServiceAddressToScope(ctx context.Context, serviceName, address string) error
- func ServoClientFromScope(ctx context.Context, dut *tlw.Dut) (api.ServodServiceClient, error)
- func ServoNexusName(dut *tlw.Dut) string
- func ServoServiceAddressFromScope(ctx context.Context, dut *tlw.Dut) (*lab_api.IpEndpoint, error)
Constants ¶
const ( ADBBase = "adb-base" ServoNexux = "servo-nexus" CrosDUT = "cros-dut" FoilProvision = "foil-provision" )
Container names.
const CacheService = "cache-service"
Variables ¶
This section is empty.
Functions ¶
func ADBClientFromScope ¶
ADBClientFromScope read adb service client from scope.
func ADBServiceAddressFromScope ¶
ADBServiceAddressFromScope read adb service client from scope.
func AddressFromScope ¶
AddressFromScope reads service address of cft container from context scope.
func AddressToScope ¶
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 ¶
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 ¶
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 ¶
NetworkName generates predicable name for custom Docker network.
func ServiceAddressToScope ¶
ServiceAddressToScope puts service address to context scope.
func ServoClientFromScope ¶
ServoClientFromScope read servo-nexus service client from scope.
func ServoNexusName ¶
ServoNexusName generates predicable container name for servo-nexux container.
func ServoServiceAddressFromScope ¶
ServoServiceAddressFromScope read servo-nexus service client from scope.
Types ¶
This section is empty.
Source Files
¶
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. |