Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUFSClient ¶
func NewUFSClient(ctx context.Context, ufsService string, authFlags *authcli.Flags) (ufsApi.FleetClient, error)
NewUFSClient creates a new client to access UFS, but only exposing specific methods needed for Satlab CLI
func NewUFSClientWithDefaultOptions ¶
func NewUFSClientWithDefaultOptions(ctx context.Context, ufsService string) (ufsApi.FleetClient, error)
NewUFSClientWithDefaultOptions creates a new client to access UFS with default options.
Types ¶
type UFSClient ¶
type UFSClient interface { GetMachine(context.Context, *ufsApi.GetMachineRequest, ...grpc.CallOption) (*ufsModels.Machine, error) GetMachineLSE(context.Context, *ufsApi.GetMachineLSERequest, ...grpc.CallOption) (*ufsModels.MachineLSE, error) UpdateMachineLSE(context.Context, *ufsApi.UpdateMachineLSERequest, ...grpc.CallOption) (*ufsModels.MachineLSE, error) }
UFSClient interface provides subset of UFS methods relevant to Satlab CLI not strictly necessary (could just use proto client directly) but makes it easier to test add more methods if additional UFS reqs needed
Click to show internal directories.
Click to hide internal directories.