Documentation
¶
Index ¶
- func ContextWithNamespace(ctx context.Context, namespace string) context.Context
- func GetDutV1(ctx context.Context, hostname string) (*inventory.DeviceUnderTest, error)
- func GetPools(ctx context.Context, client Client, hostname string) ([]string, error)
- func NewHTTPClient(ctx context.Context) (*http.Client, error)
- type Client
- type DeviceInfo
- type GetPoolsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithNamespace ¶
ContextWithNamespace sets namespace to the context. If namespace is empty, it will use the default namespace.
Types ¶
type Client ¶
type Client interface { GetMachineLSE(context.Context, *ufsAPI.GetMachineLSERequest, ...grpc.CallOption) (*models.MachineLSE, error) GetDeviceData(context.Context, *ufsAPI.GetDeviceDataRequest, ...grpc.CallOption) (*ufsAPI.GetDeviceDataResponse, error) GetDUTsForLabstation(context.Context, *ufsAPI.GetDUTsForLabstationRequest, ...grpc.CallOption) (*ufsAPI.GetDUTsForLabstationResponse, error) }
Client exposes a deliberately chosen subset of the UFS functionality.
type DeviceInfo ¶
DeviceInfo holds base device info.
func GetDeviceInfo ¶
GetDeviceInfo reads base device info from inventory.
type GetPoolsClient ¶
type GetPoolsClient interface {
GetMachineLSE(ctx context.Context, in *ufsAPI.GetMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error)
}
GetPoolsClient expsoes the subset of the UFS client API needed by GetPools.
Click to show internal directories.
Click to hide internal directories.