Documentation ¶
Overview ¶
Package inject provides dependency injected structures for mocking interfaces.
Index ¶
- type Analog
- type AppServiceClient
- func (asc *AppServiceClient) AddRole(ctx context.Context, in *apppb.AddRoleRequest, opts ...grpc.CallOption) (*apppb.AddRoleResponse, error)
- func (asc *AppServiceClient) ChangeRole(ctx context.Context, in *apppb.ChangeRoleRequest, opts ...grpc.CallOption) (*apppb.ChangeRoleResponse, error)
- func (asc *AppServiceClient) CheckPermissions(ctx context.Context, in *apppb.CheckPermissionsRequest, ...) (*apppb.CheckPermissionsResponse, error)
- func (asc *AppServiceClient) CreateFragment(ctx context.Context, in *apppb.CreateFragmentRequest, opts ...grpc.CallOption) (*apppb.CreateFragmentResponse, error)
- func (asc *AppServiceClient) CreateKey(ctx context.Context, in *apppb.CreateKeyRequest, opts ...grpc.CallOption) (*apppb.CreateKeyResponse, error)
- func (asc *AppServiceClient) CreateKeyFromExistingKeyAuthorizations(ctx context.Context, in *apppb.CreateKeyFromExistingKeyAuthorizationsRequest, ...) (*apppb.CreateKeyFromExistingKeyAuthorizationsResponse, error)
- func (asc *AppServiceClient) CreateLocation(ctx context.Context, in *apppb.CreateLocationRequest, opts ...grpc.CallOption) (*apppb.CreateLocationResponse, error)
- func (asc *AppServiceClient) CreateLocationSecret(ctx context.Context, in *apppb.CreateLocationSecretRequest, ...) (*apppb.CreateLocationSecretResponse, error)
- func (asc *AppServiceClient) CreateModule(ctx context.Context, in *apppb.CreateModuleRequest, opts ...grpc.CallOption) (*apppb.CreateModuleResponse, error)
- func (asc *AppServiceClient) CreateOAuthApp(ctx context.Context, in *apppb.CreateOAuthAppRequest, opts ...grpc.CallOption) (*apppb.CreateOAuthAppResponse, error)
- func (asc *AppServiceClient) CreateOrganization(ctx context.Context, in *apppb.CreateOrganizationRequest, ...) (*apppb.CreateOrganizationResponse, error)
- func (asc *AppServiceClient) CreateOrganizationInvite(ctx context.Context, in *apppb.CreateOrganizationInviteRequest, ...) (*apppb.CreateOrganizationInviteResponse, error)
- func (asc *AppServiceClient) CreateRegistryItem(ctx context.Context, in *apppb.CreateRegistryItemRequest, ...) (*apppb.CreateRegistryItemResponse, error)
- func (asc *AppServiceClient) CreateRobotPartSecret(ctx context.Context, in *apppb.CreateRobotPartSecretRequest, ...) (*apppb.CreateRobotPartSecretResponse, error)
- func (asc *AppServiceClient) DeleteFragment(ctx context.Context, in *apppb.DeleteFragmentRequest, opts ...grpc.CallOption) (*apppb.DeleteFragmentResponse, error)
- func (asc *AppServiceClient) DeleteKey(ctx context.Context, in *apppb.DeleteKeyRequest, opts ...grpc.CallOption) (*apppb.DeleteKeyResponse, error)
- func (asc *AppServiceClient) DeleteLocation(ctx context.Context, in *apppb.DeleteLocationRequest, opts ...grpc.CallOption) (*apppb.DeleteLocationResponse, error)
- func (asc *AppServiceClient) DeleteLocationSecret(ctx context.Context, in *apppb.DeleteLocationSecretRequest, ...) (*apppb.DeleteLocationSecretResponse, error)
- func (asc *AppServiceClient) DeleteOAuthApp(ctx context.Context, in *apppb.DeleteOAuthAppRequest, opts ...grpc.CallOption) (*apppb.DeleteOAuthAppResponse, error)
- func (asc *AppServiceClient) DeleteOrganization(ctx context.Context, in *apppb.DeleteOrganizationRequest, ...) (*apppb.DeleteOrganizationResponse, error)
- func (asc *AppServiceClient) DeleteOrganizationInvite(ctx context.Context, in *apppb.DeleteOrganizationInviteRequest, ...) (*apppb.DeleteOrganizationInviteResponse, error)
- func (asc *AppServiceClient) DeleteOrganizationMember(ctx context.Context, in *apppb.DeleteOrganizationMemberRequest, ...) (*apppb.DeleteOrganizationMemberResponse, error)
- func (asc *AppServiceClient) DeleteRegistryItem(ctx context.Context, in *apppb.DeleteRegistryItemRequest, ...) (*apppb.DeleteRegistryItemResponse, error)
- func (asc *AppServiceClient) DeleteRobot(ctx context.Context, in *apppb.DeleteRobotRequest, opts ...grpc.CallOption) (*apppb.DeleteRobotResponse, error)
- func (asc *AppServiceClient) DeleteRobotPart(ctx context.Context, in *apppb.DeleteRobotPartRequest, opts ...grpc.CallOption) (*apppb.DeleteRobotPartResponse, error)
- func (asc *AppServiceClient) DeleteRobotPartSecret(ctx context.Context, in *apppb.DeleteRobotPartSecretRequest, ...) (*apppb.DeleteRobotPartSecretResponse, error)
- func (asc *AppServiceClient) DisableAuthService(ctx context.Context, in *apppb.DisableAuthServiceRequest, ...) (*apppb.DisableAuthServiceResponse, error)
- func (asc *AppServiceClient) DisableBillingService(ctx context.Context, in *apppb.DisableBillingServiceRequest, ...) (*apppb.DisableBillingServiceResponse, error)
- func (asc *AppServiceClient) EnableAuthService(ctx context.Context, in *apppb.EnableAuthServiceRequest, ...) (*apppb.EnableAuthServiceResponse, error)
- func (asc *AppServiceClient) EnableBillingService(ctx context.Context, in *apppb.EnableBillingServiceRequest, ...) (*apppb.EnableBillingServiceResponse, error)
- func (asc *AppServiceClient) GetBillingServiceConfig(ctx context.Context, in *apppb.GetBillingServiceConfigRequest, ...) (*apppb.GetBillingServiceConfigResponse, error)
- func (asc *AppServiceClient) GetFragment(ctx context.Context, in *apppb.GetFragmentRequest, opts ...grpc.CallOption) (*apppb.GetFragmentResponse, error)
- func (asc *AppServiceClient) GetFragmentHistory(ctx context.Context, in *apppb.GetFragmentHistoryRequest, ...) (*apppb.GetFragmentHistoryResponse, error)
- func (asc *AppServiceClient) GetLocation(ctx context.Context, in *apppb.GetLocationRequest, opts ...grpc.CallOption) (*apppb.GetLocationResponse, error)
- func (asc *AppServiceClient) GetModule(ctx context.Context, in *apppb.GetModuleRequest, opts ...grpc.CallOption) (*apppb.GetModuleResponse, error)
- func (asc *AppServiceClient) GetOrganization(ctx context.Context, in *apppb.GetOrganizationRequest, opts ...grpc.CallOption) (*apppb.GetOrganizationResponse, error)
- func (asc *AppServiceClient) GetOrganizationNamespaceAvailability(ctx context.Context, in *apppb.GetOrganizationNamespaceAvailabilityRequest, ...) (*apppb.GetOrganizationNamespaceAvailabilityResponse, error)
- func (asc *AppServiceClient) GetOrganizationsWithAccessToLocation(ctx context.Context, in *apppb.GetOrganizationsWithAccessToLocationRequest, ...) (*apppb.GetOrganizationsWithAccessToLocationResponse, error)
- func (asc *AppServiceClient) GetRegistryItem(ctx context.Context, in *apppb.GetRegistryItemRequest, opts ...grpc.CallOption) (*apppb.GetRegistryItemResponse, error)
- func (asc *AppServiceClient) GetRobot(ctx context.Context, in *apppb.GetRobotRequest, opts ...grpc.CallOption) (*apppb.GetRobotResponse, error)
- func (asc *AppServiceClient) GetRobotAPIKeys(ctx context.Context, in *apppb.GetRobotAPIKeysRequest, opts ...grpc.CallOption) (*apppb.GetRobotAPIKeysResponse, error)
- func (asc *AppServiceClient) GetRobotPart(ctx context.Context, in *apppb.GetRobotPartRequest, opts ...grpc.CallOption) (*apppb.GetRobotPartResponse, error)
- func (asc *AppServiceClient) GetRobotPartHistory(ctx context.Context, in *apppb.GetRobotPartHistoryRequest, ...) (*apppb.GetRobotPartHistoryResponse, error)
- func (asc *AppServiceClient) GetRobotPartLogs(ctx context.Context, in *apppb.GetRobotPartLogsRequest, ...) (*apppb.GetRobotPartLogsResponse, error)
- func (asc *AppServiceClient) GetRobotParts(ctx context.Context, in *apppb.GetRobotPartsRequest, opts ...grpc.CallOption) (*apppb.GetRobotPartsResponse, error)
- func (asc *AppServiceClient) GetRoverRentalRobots(ctx context.Context, in *apppb.GetRoverRentalRobotsRequest, ...) (*apppb.GetRoverRentalRobotsResponse, error)
- func (asc *AppServiceClient) GetUserIDByEmail(ctx context.Context, in *apppb.GetUserIDByEmailRequest, ...) (*apppb.GetUserIDByEmailResponse, error)
- func (asc *AppServiceClient) ListAuthorizations(ctx context.Context, in *apppb.ListAuthorizationsRequest, ...) (*apppb.ListAuthorizationsResponse, error)
- func (asc *AppServiceClient) ListFragments(ctx context.Context, in *apppb.ListFragmentsRequest, opts ...grpc.CallOption) (*apppb.ListFragmentsResponse, error)
- func (asc *AppServiceClient) ListKeys(ctx context.Context, in *apppb.ListKeysRequest, opts ...grpc.CallOption) (*apppb.ListKeysResponse, error)
- func (asc *AppServiceClient) ListLocations(ctx context.Context, in *apppb.ListLocationsRequest, opts ...grpc.CallOption) (*apppb.ListLocationsResponse, error)
- func (asc *AppServiceClient) ListMachineFragments(ctx context.Context, in *apppb.ListMachineFragmentsRequest, ...) (*apppb.ListMachineFragmentsResponse, error)
- func (asc *AppServiceClient) ListModules(ctx context.Context, in *apppb.ListModulesRequest, opts ...grpc.CallOption) (*apppb.ListModulesResponse, error)
- func (asc *AppServiceClient) ListOAuthApps(ctx context.Context, in *apppb.ListOAuthAppsRequest, opts ...grpc.CallOption) (*apppb.ListOAuthAppsResponse, error)
- func (asc *AppServiceClient) ListOrganizationMembers(ctx context.Context, in *apppb.ListOrganizationMembersRequest, ...) (*apppb.ListOrganizationMembersResponse, error)
- func (asc *AppServiceClient) ListOrganizations(ctx context.Context, in *apppb.ListOrganizationsRequest, ...) (*apppb.ListOrganizationsResponse, error)
- func (asc *AppServiceClient) ListOrganizationsByUser(ctx context.Context, in *apppb.ListOrganizationsByUserRequest, ...) (*apppb.ListOrganizationsByUserResponse, error)
- func (asc *AppServiceClient) ListRegistryItems(ctx context.Context, in *apppb.ListRegistryItemsRequest, ...) (*apppb.ListRegistryItemsResponse, error)
- func (asc *AppServiceClient) ListRobots(ctx context.Context, in *apppb.ListRobotsRequest, opts ...grpc.CallOption) (*apppb.ListRobotsResponse, error)
- func (asc *AppServiceClient) LocationAuth(ctx context.Context, in *apppb.LocationAuthRequest, opts ...grpc.CallOption) (*apppb.LocationAuthResponse, error)
- func (asc *AppServiceClient) MarkPartAsMain(ctx context.Context, in *apppb.MarkPartAsMainRequest, opts ...grpc.CallOption) (*apppb.MarkPartAsMainResponse, error)
- func (asc *AppServiceClient) MarkPartForRestart(ctx context.Context, in *apppb.MarkPartForRestartRequest, ...) (*apppb.MarkPartForRestartResponse, error)
- func (asc *AppServiceClient) NewRobot(ctx context.Context, in *apppb.NewRobotRequest, opts ...grpc.CallOption) (*apppb.NewRobotResponse, error)
- func (asc *AppServiceClient) NewRobotPart(ctx context.Context, in *apppb.NewRobotPartRequest, opts ...grpc.CallOption) (*apppb.NewRobotPartResponse, error)
- func (asc *AppServiceClient) OrganizationGetLogo(ctx context.Context, in *apppb.OrganizationGetLogoRequest, ...) (*apppb.OrganizationGetLogoResponse, error)
- func (asc *AppServiceClient) OrganizationGetSupportEmail(ctx context.Context, in *apppb.OrganizationGetSupportEmailRequest, ...) (*apppb.OrganizationGetSupportEmailResponse, error)
- func (asc *AppServiceClient) OrganizationSetLogo(ctx context.Context, in *apppb.OrganizationSetLogoRequest, ...) (*apppb.OrganizationSetLogoResponse, error)
- func (asc *AppServiceClient) OrganizationSetSupportEmail(ctx context.Context, in *apppb.OrganizationSetSupportEmailRequest, ...) (*apppb.OrganizationSetSupportEmailResponse, error)
- func (asc *AppServiceClient) ReadOAuthApp(ctx context.Context, in *apppb.ReadOAuthAppRequest, opts ...grpc.CallOption) (*apppb.ReadOAuthAppResponse, error)
- func (asc *AppServiceClient) RemoveRole(ctx context.Context, in *apppb.RemoveRoleRequest, opts ...grpc.CallOption) (*apppb.RemoveRoleResponse, error)
- func (asc *AppServiceClient) RenameKey(ctx context.Context, in *apppb.RenameKeyRequest, opts ...grpc.CallOption) (*apppb.RenameKeyResponse, error)
- func (asc *AppServiceClient) ResendOrganizationInvite(ctx context.Context, in *apppb.ResendOrganizationInviteRequest, ...) (*apppb.ResendOrganizationInviteResponse, error)
- func (asc *AppServiceClient) RotateKey(ctx context.Context, in *apppb.RotateKeyRequest, opts ...grpc.CallOption) (*apppb.RotateKeyResponse, error)
- func (asc *AppServiceClient) ShareLocation(ctx context.Context, in *apppb.ShareLocationRequest, opts ...grpc.CallOption) (*apppb.ShareLocationResponse, error)
- func (asc *AppServiceClient) TailRobotPartLogs(ctx context.Context, in *apppb.TailRobotPartLogsRequest, ...) (apppb.AppService_TailRobotPartLogsClient, error)
- func (asc *AppServiceClient) TransferRegistryItem(ctx context.Context, in *apppb.TransferRegistryItemRequest, ...) (*apppb.TransferRegistryItemResponse, error)
- func (asc *AppServiceClient) UnshareLocation(ctx context.Context, in *apppb.UnshareLocationRequest, opts ...grpc.CallOption) (*apppb.UnshareLocationResponse, error)
- func (asc *AppServiceClient) UpdateBillingService(ctx context.Context, in *apppb.UpdateBillingServiceRequest, ...) (*apppb.UpdateBillingServiceResponse, error)
- func (asc *AppServiceClient) UpdateFragment(ctx context.Context, in *apppb.UpdateFragmentRequest, opts ...grpc.CallOption) (*apppb.UpdateFragmentResponse, error)
- func (asc *AppServiceClient) UpdateLocation(ctx context.Context, in *apppb.UpdateLocationRequest, opts ...grpc.CallOption) (*apppb.UpdateLocationResponse, error)
- func (asc *AppServiceClient) UpdateModule(ctx context.Context, in *apppb.UpdateModuleRequest, opts ...grpc.CallOption) (*apppb.UpdateModuleResponse, error)
- func (asc *AppServiceClient) UpdateOAuthApp(ctx context.Context, in *apppb.UpdateOAuthAppRequest, opts ...grpc.CallOption) (*apppb.UpdateOAuthAppResponse, error)
- func (asc *AppServiceClient) UpdateOrganization(ctx context.Context, in *apppb.UpdateOrganizationRequest, ...) (*apppb.UpdateOrganizationResponse, error)
- func (asc *AppServiceClient) UpdateOrganizationInviteAuthorizations(ctx context.Context, in *apppb.UpdateOrganizationInviteAuthorizationsRequest, ...) (*apppb.UpdateOrganizationInviteAuthorizationsResponse, error)
- func (asc *AppServiceClient) UpdateRegistryItem(ctx context.Context, in *apppb.UpdateRegistryItemRequest, ...) (*apppb.UpdateRegistryItemResponse, error)
- func (asc *AppServiceClient) UpdateRobot(ctx context.Context, in *apppb.UpdateRobotRequest, opts ...grpc.CallOption) (*apppb.UpdateRobotResponse, error)
- func (asc *AppServiceClient) UpdateRobotPart(ctx context.Context, in *apppb.UpdateRobotPartRequest, opts ...grpc.CallOption) (*apppb.UpdateRobotPartResponse, error)
- func (asc *AppServiceClient) UploadModuleFile(ctx context.Context, opts ...grpc.CallOption) (apppb.AppService_UploadModuleFileClient, error)
- type AppServiceTailRobotPartLogsClient
- type AppServiceUploadModuleFileClient
- type Arm
- func (a *Arm) Close(ctx context.Context) error
- func (a *Arm) CurrentInputs(ctx context.Context) ([]referenceframe.Input, error)
- func (a *Arm) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (a *Arm) EndPosition(ctx context.Context, extra map[string]interface{}) (spatialmath.Pose, error)
- func (a *Arm) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
- func (a *Arm) GoToInputs(ctx context.Context, inputSteps ...[]referenceframe.Input) error
- func (a *Arm) IsMoving(ctx context.Context) (bool, error)
- func (a *Arm) JointPositions(ctx context.Context, extra map[string]interface{}) ([]referenceframe.Input, error)
- func (a *Arm) ModelFrame() referenceframe.Model
- func (a *Arm) MoveThroughJointPositions(ctx context.Context, positions [][]referenceframe.Input, ...) error
- func (a *Arm) MoveToJointPositions(ctx context.Context, positions []referenceframe.Input, ...) error
- func (a *Arm) MoveToPosition(ctx context.Context, to spatialmath.Pose, extra map[string]interface{}) error
- func (a *Arm) Name() resource.Name
- func (a *Arm) Stop(ctx context.Context, extra map[string]interface{}) error
- type AudioInput
- func (ai *AudioInput) Close(ctx context.Context) error
- func (ai *AudioInput) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (ai *AudioInput) MediaProperties(ctx context.Context) (prop.Audio, error)
- func (ai *AudioInput) Name() resource.Name
- func (ai *AudioInput) Stream(ctx context.Context, errHandlers ...gostream.ErrorHandler) (gostream.AudioStream, error)
- type Base
- func (b *Base) Close(ctx context.Context) error
- func (b *Base) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (b *Base) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
- func (b *Base) IsMoving(ctx context.Context) (bool, error)
- func (b *Base) MoveStraight(ctx context.Context, distanceMm int, mmPerSec float64, ...) error
- func (b *Base) Name() resource.Name
- func (b *Base) Properties(ctx context.Context, extra map[string]interface{}) (base.Properties, error)
- func (b *Base) SetPower(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (b *Base) SetVelocity(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (b *Base) Spin(ctx context.Context, angleDeg, degsPerSec float64, ...) error
- func (b *Base) Stop(ctx context.Context, extra map[string]interface{}) error
- type BillingServiceClient
- func (bsc *BillingServiceClient) GetCurrentMonthUsage(ctx context.Context, in *billingpb.GetCurrentMonthUsageRequest, ...) (*billingpb.GetCurrentMonthUsageResponse, error)
- func (bsc *BillingServiceClient) GetInvoicePdf(ctx context.Context, in *billingpb.GetInvoicePdfRequest, ...) (billingpb.BillingService_GetInvoicePdfClient, error)
- func (bsc *BillingServiceClient) GetInvoicesSummary(ctx context.Context, in *billingpb.GetInvoicesSummaryRequest, ...) (*billingpb.GetInvoicesSummaryResponse, error)
- func (bsc *BillingServiceClient) GetOrgBillingInformation(ctx context.Context, in *billingpb.GetOrgBillingInformationRequest, ...) (*billingpb.GetOrgBillingInformationResponse, error)
- func (bsc *BillingServiceClient) SendPaymentRequiredEmail(ctx context.Context, in *billingpb.SendPaymentRequiredEmailRequest, ...) (*billingpb.SendPaymentRequiredEmailResponse, error)
- type BillingServiceGetInvoicePdfClient
- type Board
- func (b *Board) AnalogByName(name string) (board.Analog, error)
- func (b *Board) AnalogByNameCap() []interface{}
- func (b *Board) Close(ctx context.Context) error
- func (b *Board) DigitalInterruptByName(name string) (board.DigitalInterrupt, error)
- func (b *Board) DigitalInterruptByNameCap() []interface{}
- func (b *Board) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (b *Board) GPIOPinByName(name string) (board.GPIOPin, error)
- func (b *Board) GPIOPinByNameCap() []interface{}
- func (b *Board) Name() resource.Name
- func (b *Board) SetPowerMode(ctx context.Context, mode boardpb.PowerMode, duration *time.Duration) error
- func (b *Board) StreamTicks(ctx context.Context, interrupts []board.DigitalInterrupt, ch chan board.Tick, ...) error
- type BuildServiceClient
- func (bsc *BuildServiceClient) ListJobs(ctx context.Context, in *buildpb.ListJobsRequest, opts ...grpc.CallOption) (*buildpb.ListJobsResponse, error)
- func (bsc *BuildServiceClient) StartBuild(ctx context.Context, in *buildpb.StartBuildRequest, opts ...grpc.CallOption) (*buildpb.StartBuildResponse, error)
- type Camera
- func (c *Camera) Close(ctx context.Context) error
- func (c *Camera) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (c *Camera) Image(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error)
- func (c *Camera) Images(ctx context.Context) ([]camera.NamedImage, resource.ResponseMetadata, error)
- func (c *Camera) Name() resource.Name
- func (c *Camera) NextPointCloud(ctx context.Context) (pointcloud.PointCloud, error)
- func (c *Camera) Properties(ctx context.Context) (camera.Properties, error)
- func (c *Camera) Stream(ctx context.Context, errHandlers ...gostream.ErrorHandler) (gostream.VideoStream, error)
- func (c *Camera) SubscribeRTP(ctx context.Context, bufferSize int, packetsCB rtppassthrough.PacketCallback) (rtppassthrough.Subscription, error)
- func (c *Camera) Unsubscribe(ctx context.Context, id rtppassthrough.SubscriptionID) error
- type DataManagerService
- func (svc *DataManagerService) Close(ctx context.Context) error
- func (svc *DataManagerService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (svc *DataManagerService) Name() resource.Name
- func (svc *DataManagerService) Sync(ctx context.Context, extra map[string]interface{}) error
- type DataServiceClient
- func (client *DataServiceClient) AddBinaryDataToDatasetByIDs(ctx context.Context, in *datapb.AddBinaryDataToDatasetByIDsRequest, ...) (*datapb.AddBinaryDataToDatasetByIDsResponse, error)
- func (client *DataServiceClient) AddBoundingBoxToImageByID(ctx context.Context, in *datapb.AddBoundingBoxToImageByIDRequest, ...) (*datapb.AddBoundingBoxToImageByIDResponse, error)
- func (client *DataServiceClient) AddTagsToBinaryDataByFilter(ctx context.Context, in *datapb.AddTagsToBinaryDataByFilterRequest, ...) (*datapb.AddTagsToBinaryDataByFilterResponse, error)
- func (client *DataServiceClient) AddTagsToBinaryDataByIDs(ctx context.Context, in *datapb.AddTagsToBinaryDataByIDsRequest, ...) (*datapb.AddTagsToBinaryDataByIDsResponse, error)
- func (client *DataServiceClient) BinaryDataByFilter(ctx context.Context, in *datapb.BinaryDataByFilterRequest, ...) (*datapb.BinaryDataByFilterResponse, error)
- func (client *DataServiceClient) BinaryDataByIDs(ctx context.Context, in *datapb.BinaryDataByIDsRequest, ...) (*datapb.BinaryDataByIDsResponse, error)
- func (client *DataServiceClient) BoundingBoxLabelsByFilter(ctx context.Context, in *datapb.BoundingBoxLabelsByFilterRequest, ...) (*datapb.BoundingBoxLabelsByFilterResponse, error)
- func (client *DataServiceClient) ConfigureDatabaseUser(ctx context.Context, in *datapb.ConfigureDatabaseUserRequest, ...) (*datapb.ConfigureDatabaseUserResponse, error)
- func (client *DataServiceClient) DeleteBinaryDataByFilter(ctx context.Context, in *datapb.DeleteBinaryDataByFilterRequest, ...) (*datapb.DeleteBinaryDataByFilterResponse, error)
- func (client *DataServiceClient) DeleteBinaryDataByIDs(ctx context.Context, in *datapb.DeleteBinaryDataByIDsRequest, ...) (*datapb.DeleteBinaryDataByIDsResponse, error)
- func (client *DataServiceClient) DeleteTabularData(ctx context.Context, in *datapb.DeleteTabularDataRequest, ...) (*datapb.DeleteTabularDataResponse, error)
- func (client *DataServiceClient) ExportTabularData(ctx context.Context, in *datapb.ExportTabularDataRequest, ...) (datapb.DataService_ExportTabularDataClient, error)
- func (client *DataServiceClient) GetDatabaseConnection(ctx context.Context, in *datapb.GetDatabaseConnectionRequest, ...) (*datapb.GetDatabaseConnectionResponse, error)
- func (client *DataServiceClient) GetLatestTabularData(ctx context.Context, in *datapb.GetLatestTabularDataRequest, ...) (*datapb.GetLatestTabularDataResponse, error)
- func (client *DataServiceClient) RemoveBinaryDataFromDatasetByIDs(ctx context.Context, in *datapb.RemoveBinaryDataFromDatasetByIDsRequest, ...) (*datapb.RemoveBinaryDataFromDatasetByIDsResponse, error)
- func (client *DataServiceClient) RemoveBoundingBoxFromImageByID(ctx context.Context, in *datapb.RemoveBoundingBoxFromImageByIDRequest, ...) (*datapb.RemoveBoundingBoxFromImageByIDResponse, error)
- func (client *DataServiceClient) RemoveTagsFromBinaryDataByFilter(ctx context.Context, in *datapb.RemoveTagsFromBinaryDataByFilterRequest, ...) (*datapb.RemoveTagsFromBinaryDataByFilterResponse, error)
- func (client *DataServiceClient) RemoveTagsFromBinaryDataByIDs(ctx context.Context, in *datapb.RemoveTagsFromBinaryDataByIDsRequest, ...) (*datapb.RemoveTagsFromBinaryDataByIDsResponse, error)
- func (client *DataServiceClient) TabularDataByFilter(ctx context.Context, in *datapb.TabularDataByFilterRequest, ...) (*datapb.TabularDataByFilterResponse, error)
- func (client *DataServiceClient) TabularDataByMQL(ctx context.Context, in *datapb.TabularDataByMQLRequest, ...) (*datapb.TabularDataByMQLResponse, error)
- func (client *DataServiceClient) TabularDataBySQL(ctx context.Context, in *datapb.TabularDataBySQLRequest, ...) (*datapb.TabularDataBySQLResponse, error)
- func (client *DataServiceClient) TagsByFilter(ctx context.Context, in *datapb.TagsByFilterRequest, opts ...grpc.CallOption) (*datapb.TagsByFilterResponse, error)
- func (client *DataServiceClient) UpdateBoundingBox(ctx context.Context, in *datapb.UpdateBoundingBoxRequest, ...) (*datapb.UpdateBoundingBoxResponse, error)
- type DataServiceExportTabularDataClient
- type DataSyncServiceClient
- func (client *DataSyncServiceClient) DataCaptureUpload(ctx context.Context, in *datapb.DataCaptureUploadRequest, ...) (*datapb.DataCaptureUploadResponse, error)
- func (client *DataSyncServiceClient) FileUpload(ctx context.Context, opts ...grpc.CallOption) (datapb.DataSyncService_FileUploadClient, error)
- func (client *DataSyncServiceClient) StreamingDataCaptureUpload(ctx context.Context, opts ...grpc.CallOption) (datapb.DataSyncService_StreamingDataCaptureUploadClient, error)
- type DataSyncServiceFileUploadClient
- type DataSyncServiceStreamingDataCaptureUploadClient
- type DatasetServiceClient
- func (client *DatasetServiceClient) CreateDataset(ctx context.Context, in *datasetpb.CreateDatasetRequest, ...) (*datasetpb.CreateDatasetResponse, error)
- func (client *DatasetServiceClient) DeleteDataset(ctx context.Context, in *datasetpb.DeleteDatasetRequest, ...) (*datasetpb.DeleteDatasetResponse, error)
- func (client *DatasetServiceClient) ListDatasetsByIDs(ctx context.Context, in *datasetpb.ListDatasetsByIDsRequest, ...) (*datasetpb.ListDatasetsByIDsResponse, error)
- func (client *DatasetServiceClient) ListDatasetsByOrganizationID(ctx context.Context, in *datasetpb.ListDatasetsByOrganizationIDRequest, ...) (*datasetpb.ListDatasetsByOrganizationIDResponse, error)
- func (client *DatasetServiceClient) RenameDataset(ctx context.Context, in *datasetpb.RenameDatasetRequest, ...) (*datasetpb.RenameDatasetResponse, error)
- type DigitalInterrupt
- func (d *DigitalInterrupt) Name() string
- func (d *DigitalInterrupt) Tick(ctx context.Context, high bool, nanoseconds uint64) error
- func (d *DigitalInterrupt) TickCap() []interface{}
- func (d *DigitalInterrupt) Value(ctx context.Context, extra map[string]interface{}) (int64, error)
- func (d *DigitalInterrupt) ValueCap() []interface{}
- type DiscoveryService
- type Encoder
- func (e *Encoder) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (e *Encoder) Name() resource.Name
- func (e *Encoder) Position(ctx context.Context, positionType encoder.PositionType, ...) (float64, encoder.PositionType, error)
- func (e *Encoder) Properties(ctx context.Context, extra map[string]interface{}) (encoder.Properties, error)
- func (e *Encoder) ResetPosition(ctx context.Context, extra map[string]interface{}) error
- type EndUserServiceClient
- func (eusc *EndUserServiceClient) GetAuthApplication(ctx context.Context, in *apppb.GetAuthApplicationRequest, ...) (*apppb.GetAuthApplicationResponse, error)
- func (eusc *EndUserServiceClient) RegisterAuthApplication(ctx context.Context, in *apppb.RegisterAuthApplicationRequest, ...) (*apppb.RegisterAuthApplicationResponse, error)
- func (eusc *EndUserServiceClient) UpdateAuthApplication(ctx context.Context, in *apppb.UpdateAuthApplicationRequest, ...) (*apppb.UpdateAuthApplicationResponse, error)
- type FrameSystemService
- func (fs *FrameSystemService) Close(ctx context.Context) error
- func (fs *FrameSystemService) CurrentInputs(ctx context.Context) (referenceframe.FrameSystemInputs, map[string]framesystem.InputEnabled, error)
- func (fs *FrameSystemService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (fs *FrameSystemService) FrameSystem(ctx context.Context, additionalTransforms []*referenceframe.LinkInFrame) (referenceframe.FrameSystem, error)
- func (fs *FrameSystemService) Name() resource.Name
- func (fs *FrameSystemService) TransformPointCloud(ctx context.Context, srcpc pointcloud.PointCloud, srcName, dstName string) (pointcloud.PointCloud, error)
- func (fs *FrameSystemService) TransformPose(ctx context.Context, pose *referenceframe.PoseInFrame, dst string, ...) (*referenceframe.PoseInFrame, error)
- type GPIOPin
- func (gp *GPIOPin) Get(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (gp *GPIOPin) GetCap() []interface{}
- func (gp *GPIOPin) PWM(ctx context.Context, extra map[string]interface{}) (float64, error)
- func (gp *GPIOPin) PWMCap() []interface{}
- func (gp *GPIOPin) PWMFreq(ctx context.Context, extra map[string]interface{}) (uint, error)
- func (gp *GPIOPin) PWMFreqCap() []interface{}
- func (gp *GPIOPin) Set(ctx context.Context, high bool, extra map[string]interface{}) error
- func (gp *GPIOPin) SetCap() []interface{}
- func (gp *GPIOPin) SetPWM(ctx context.Context, dutyCyclePct float64, extra map[string]interface{}) error
- func (gp *GPIOPin) SetPWMCap() []interface{}
- func (gp *GPIOPin) SetPWMFreq(ctx context.Context, freqHz uint, extra map[string]interface{}) error
- func (gp *GPIOPin) SetPWMFreqCap() []interface{}
- type Gantry
- func (g *Gantry) Close(ctx context.Context) error
- func (g *Gantry) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (g *Gantry) Home(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (g *Gantry) IsMoving(ctx context.Context) (bool, error)
- func (g *Gantry) Lengths(ctx context.Context, extra map[string]interface{}) ([]float64, error)
- func (g *Gantry) ModelFrame() referenceframe.Model
- func (g *Gantry) MoveToPosition(ctx context.Context, positions, speeds []float64, extra map[string]interface{}) error
- func (g *Gantry) Name() resource.Name
- func (g *Gantry) Position(ctx context.Context, extra map[string]interface{}) ([]float64, error)
- func (g *Gantry) Stop(ctx context.Context, extra map[string]interface{}) error
- type GenericComponent
- type GenericService
- type Gripper
- func (g *Gripper) Close(ctx context.Context) error
- func (g *Gripper) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (g *Gripper) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
- func (g *Gripper) Grab(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (g *Gripper) IsMoving(ctx context.Context) (bool, error)
- func (g *Gripper) Name() resource.Name
- func (g *Gripper) Open(ctx context.Context, extra map[string]interface{}) error
- func (g *Gripper) Stop(ctx context.Context, extra map[string]interface{}) error
- type I2C
- type I2CHandle
- func (handle *I2CHandle) Close() error
- func (handle *I2CHandle) Read(ctx context.Context, count int) ([]byte, error)
- func (handle *I2CHandle) ReadBlockData(ctx context.Context, register byte, numBytes uint8) ([]byte, error)
- func (handle *I2CHandle) ReadByteData(ctx context.Context, register byte) (byte, error)
- func (handle *I2CHandle) Write(ctx context.Context, tx []byte) error
- func (handle *I2CHandle) WriteBlockData(ctx context.Context, register byte, data []byte) error
- func (handle *I2CHandle) WriteByteData(ctx context.Context, register, data byte) error
- type InputController
- func (s *InputController) Controls(ctx context.Context, extra map[string]interface{}) ([]input.Control, error)
- func (s *InputController) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (s *InputController) Events(ctx context.Context, extra map[string]interface{}) (map[input.Control]input.Event, error)
- func (s *InputController) Name() resource.Name
- func (s *InputController) RegisterControlCallback(ctx context.Context, control input.Control, triggers []input.EventType, ...) error
- type MLModelService
- type MLTrainingServiceClient
- func (client *MLTrainingServiceClient) CancelTrainingJob(ctx context.Context, in *mltrainingpb.CancelTrainingJobRequest, ...) (*mltrainingpb.CancelTrainingJobResponse, error)
- func (client *MLTrainingServiceClient) DeleteCompletedTrainingJob(ctx context.Context, in *mltrainingpb.DeleteCompletedTrainingJobRequest, ...) (*mltrainingpb.DeleteCompletedTrainingJobResponse, error)
- func (client *MLTrainingServiceClient) GetTrainingJob(ctx context.Context, in *mltrainingpb.GetTrainingJobRequest, ...) (*mltrainingpb.GetTrainingJobResponse, error)
- func (client *MLTrainingServiceClient) GetTrainingJobLogs(ctx context.Context, in *mltrainingpb.GetTrainingJobLogsRequest, ...) (*mltrainingpb.GetTrainingJobLogsResponse, error)
- func (client *MLTrainingServiceClient) ListTrainingJobs(ctx context.Context, in *mltrainingpb.ListTrainingJobsRequest, ...) (*mltrainingpb.ListTrainingJobsResponse, error)
- func (client *MLTrainingServiceClient) SubmitCustomTrainingJob(ctx context.Context, in *mltrainingpb.SubmitCustomTrainingJobRequest, ...) (*mltrainingpb.SubmitCustomTrainingJobResponse, error)
- func (client *MLTrainingServiceClient) SubmitTrainingJob(ctx context.Context, in *mltrainingpb.SubmitTrainingJobRequest, ...) (*mltrainingpb.SubmitTrainingJobResponse, error)
- type MotionService
- func (mgs *MotionService) Close(ctx context.Context) error
- func (mgs *MotionService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (mgs *MotionService) GetPose(ctx context.Context, componentName resource.Name, destinationFrame string, ...) (*referenceframe.PoseInFrame, error)
- func (mgs *MotionService) ListPlanStatuses(ctx context.Context, req motion.ListPlanStatusesReq) ([]motion.PlanStatusWithID, error)
- func (mgs *MotionService) Move(ctx context.Context, req motion.MoveReq) (bool, error)
- func (mgs *MotionService) MoveOnGlobe(ctx context.Context, req motion.MoveOnGlobeReq) (motion.ExecutionID, error)
- func (mgs *MotionService) MoveOnMap(ctx context.Context, req motion.MoveOnMapReq) (motion.ExecutionID, error)
- func (mgs *MotionService) Name() resource.Name
- func (mgs *MotionService) PlanHistory(ctx context.Context, req motion.PlanHistoryReq) ([]motion.PlanWithStatus, error)
- func (mgs *MotionService) StopPlan(ctx context.Context, req motion.StopPlanReq) error
- type Motor
- func (m *Motor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (m *Motor) GoFor(ctx context.Context, rpm, revolutions float64, extra map[string]interface{}) error
- func (m *Motor) GoTo(ctx context.Context, rpm, positionRevolutions float64, ...) error
- func (m *Motor) IsMoving(ctx context.Context) (bool, error)
- func (m *Motor) IsPowered(ctx context.Context, extra map[string]interface{}) (bool, float64, error)
- func (m *Motor) Name() resource.Name
- func (m *Motor) Position(ctx context.Context, extra map[string]interface{}) (float64, error)
- func (m *Motor) Properties(ctx context.Context, extra map[string]interface{}) (motor.Properties, error)
- func (m *Motor) ResetZeroPosition(ctx context.Context, offset float64, extra map[string]interface{}) error
- func (m *Motor) SetPower(ctx context.Context, powerPct float64, extra map[string]interface{}) error
- func (m *Motor) SetRPM(ctx context.Context, rpm float64, extra map[string]interface{}) error
- func (m *Motor) Stop(ctx context.Context, extra map[string]interface{}) error
- type MovementSensor
- func (i *MovementSensor) Accuracy(ctx context.Context, extra map[string]interface{}) (*movementsensor.Accuracy, error)
- func (i *MovementSensor) AngularVelocity(ctx context.Context, extra map[string]interface{}) (spatialmath.AngularVelocity, error)
- func (i *MovementSensor) Close(ctx context.Context) error
- func (i *MovementSensor) CompassHeading(ctx context.Context, extra map[string]interface{}) (float64, error)
- func (i *MovementSensor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (i *MovementSensor) LinearAcceleration(ctx context.Context, extra map[string]interface{}) (r3.Vector, error)
- func (i *MovementSensor) LinearVelocity(ctx context.Context, extra map[string]interface{}) (r3.Vector, error)
- func (i *MovementSensor) Name() resource.Name
- func (i *MovementSensor) Orientation(ctx context.Context, extra map[string]interface{}) (spatialmath.Orientation, error)
- func (i *MovementSensor) Position(ctx context.Context, extra map[string]interface{}) (*geo.Point, float64, error)
- func (i *MovementSensor) Properties(ctx context.Context, extra map[string]interface{}) (*movementsensor.Properties, error)
- func (i *MovementSensor) Readings(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error)
- type NavigationService
- func (ns *NavigationService) AddWaypoint(ctx context.Context, point *geo.Point, extra map[string]interface{}) error
- func (ns *NavigationService) Close(ctx context.Context) error
- func (ns *NavigationService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (ns *NavigationService) Location(ctx context.Context, extra map[string]interface{}) (*spatialmath.GeoPose, error)
- func (ns *NavigationService) Mode(ctx context.Context, extra map[string]interface{}) (navigation.Mode, error)
- func (ns *NavigationService) Name() resource.Name
- func (ns *NavigationService) Obstacles(ctx context.Context, extra map[string]interface{}) ([]*spatialmath.GeoGeometry, error)
- func (ns *NavigationService) Paths(ctx context.Context, extra map[string]interface{}) ([]*navigation.Path, error)
- func (ns *NavigationService) Properties(ctx context.Context) (navigation.Properties, error)
- func (ns *NavigationService) RemoveWaypoint(ctx context.Context, id primitive.ObjectID, extra map[string]interface{}) error
- func (ns *NavigationService) SetMode(ctx context.Context, mode navigation.Mode, extra map[string]interface{}) error
- func (ns *NavigationService) Waypoints(ctx context.Context, extra map[string]interface{}) ([]navigation.Waypoint, error)
- type PoseTracker
- type PowerSensor
- func (i *PowerSensor) Current(ctx context.Context, cmd map[string]interface{}) (float64, bool, error)
- func (i *PowerSensor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (i *PowerSensor) Name() resource.Name
- func (i *PowerSensor) Power(ctx context.Context, cmd map[string]interface{}) (float64, error)
- func (i *PowerSensor) Readings(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (i *PowerSensor) Voltage(ctx context.Context, cmd map[string]interface{}) (float64, bool, error)
- type ProvisioningServiceClient
- func (psc *ProvisioningServiceClient) GetNetworkList(ctx context.Context, in *provisioningPb.GetNetworkListRequest, ...) (*provisioningPb.GetNetworkListResponse, error)
- func (psc *ProvisioningServiceClient) GetSmartMachineStatus(ctx context.Context, in *provisioningPb.GetSmartMachineStatusRequest, ...) (*provisioningPb.GetSmartMachineStatusResponse, error)
- func (psc *ProvisioningServiceClient) SetNetworkCredentials(ctx context.Context, in *provisioningPb.SetNetworkCredentialsRequest, ...) (*provisioningPb.SetNetworkCredentialsResponse, error)
- func (psc *ProvisioningServiceClient) SetSmartMachineCredentials(ctx context.Context, in *provisioningPb.SetSmartMachineCredentialsRequest, ...) (*provisioningPb.SetSmartMachineCredentialsResponse, error)
- type ReadWriteCloser
- type Robot
- func (r *Robot) Close(ctx context.Context) error
- func (r *Robot) CloudMetadata(ctx context.Context) (cloud.Metadata, error)
- func (r *Robot) Config() *config.Config
- func (r *Robot) DiscoverComponents(ctx context.Context, keys []resource.DiscoveryQuery) ([]resource.Discovery, error)
- func (r *Robot) FrameSystemConfig(ctx context.Context) (*framesystem.Config, error)
- func (r *Robot) Logger() logging.Logger
- func (r *Robot) MachineStatus(ctx context.Context) (robot.MachineStatus, error)
- func (r *Robot) MockResourcesFromMap(rs map[resource.Name]resource.Resource)
- func (r *Robot) ModuleAddress() (string, error)
- func (r *Robot) OperationManager() *operation.Manager
- func (r *Robot) PackageManager() packages.Manager
- func (r *Robot) ProcessManager() pexec.ProcessManager
- func (r *Robot) RemoteByName(name string) (robot.Robot, bool)
- func (r *Robot) RemoteNames() []string
- func (r *Robot) ResourceByName(name resource.Name) (resource.Resource, error)
- func (r *Robot) ResourceNames() []resource.Name
- func (r *Robot) ResourceRPCAPIs() []resource.RPCAPI
- func (r *Robot) SessionManager() session.Manager
- func (r *Robot) Shutdown(ctx context.Context) error
- func (r *Robot) StopAll(ctx context.Context, extra map[resource.Name]map[string]interface{}) error
- func (r *Robot) TransformPointCloud(ctx context.Context, srcpc pointcloud.PointCloud, srcName, dstName string) (pointcloud.PointCloud, error)
- func (r *Robot) TransformPose(ctx context.Context, pose *referenceframe.PoseInFrame, dst string, ...) (*referenceframe.PoseInFrame, error)
- type SLAMService
- func (slamSvc *SLAMService) Close(ctx context.Context) error
- func (slamSvc *SLAMService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (slamSvc *SLAMService) InternalState(ctx context.Context) (func() ([]byte, error), error)
- func (slamSvc *SLAMService) Name() resource.Name
- func (slamSvc *SLAMService) PointCloudMap(ctx context.Context, returnEditedMap bool) (func() ([]byte, error), error)
- func (slamSvc *SLAMService) Position(ctx context.Context) (spatialmath.Pose, error)
- func (slamSvc *SLAMService) Properties(ctx context.Context) (slam.Properties, error)
- type SPI
- type Sensor
- func (s *Sensor) Close(ctx context.Context) error
- func (s *Sensor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (s *Sensor) Name() resource.Name
- func (s *Sensor) Readings(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error)
- type Servo
- func (s *Servo) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (s *Servo) IsMoving(ctx context.Context) (bool, error)
- func (s *Servo) Move(ctx context.Context, angleDeg uint32, extra map[string]interface{}) error
- func (s *Servo) Name() resource.Name
- func (s *Servo) Position(ctx context.Context, extra map[string]interface{}) (uint32, error)
- func (s *Servo) Stop(ctx context.Context, extra map[string]interface{}) error
- type ShellService
- func (s *ShellService) Close(ctx context.Context) error
- func (s *ShellService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (s *ShellService) Name() resource.Name
- func (s *ShellService) Reconfigure(ctx context.Context, deps resource.Dependencies, conf resource.Config) error
- type TriggerableInputController
- type VisionService
- func (vs *VisionService) CaptureAllFromCamera(ctx context.Context, cameraName string, opts viscapture.CaptureOptions, ...) (viscapture.VisCapture, error)
- func (vs *VisionService) Classifications(ctx context.Context, img image.Image, n int, extra map[string]interface{}) (classification.Classifications, error)
- func (vs *VisionService) ClassificationsFromCamera(ctx context.Context, cameraName string, n int, extra map[string]interface{}) (classification.Classifications, error)
- func (vs *VisionService) Close(ctx context.Context) error
- func (vs *VisionService) Detections(ctx context.Context, img image.Image, extra map[string]interface{}) ([]objectdetection.Detection, error)
- func (vs *VisionService) DetectionsFromCamera(ctx context.Context, cameraName string, extra map[string]interface{}) ([]objectdetection.Detection, error)
- func (vs *VisionService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (vs *VisionService) GetObjectPointClouds(ctx context.Context, cameraName string, extra map[string]interface{}) ([]*viz.Object, error)
- func (vs *VisionService) GetProperties(ctx context.Context, extra map[string]interface{}) (*vision.Properties, error)
- func (vs *VisionService) Name() resource.Name
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analog ¶ added in v0.26.0
type Analog struct { board.Analog ReadFunc func(ctx context.Context, extra map[string]interface{}) (board.AnalogValue, error) WriteFunc func(ctx context.Context, value int, extra map[string]interface{}) error // contains filtered or unexported fields }
Analog is an injected analog pin.
func (*Analog) ReadCap ¶ added in v0.26.0
func (a *Analog) ReadCap() []interface{}
ReadCap returns the last parameters received by Read, and then clears them.
type AppServiceClient ¶ added in v0.7.3
type AppServiceClient struct { apppb.AppServiceClient GetUserIDByEmailFunc func(ctx context.Context, in *apppb.GetUserIDByEmailRequest, opts ...grpc.CallOption) (*apppb.GetUserIDByEmailResponse, error) CreateOrganizationFunc func(ctx context.Context, in *apppb.CreateOrganizationRequest, opts ...grpc.CallOption) (*apppb.CreateOrganizationResponse, error) ListOrganizationsFunc func(ctx context.Context, in *apppb.ListOrganizationsRequest, opts ...grpc.CallOption) (*apppb.ListOrganizationsResponse, error) GetOrganizationsWithAccessToLocationFunc func(ctx context.Context, in *apppb.GetOrganizationsWithAccessToLocationRequest, opts ...grpc.CallOption) (*apppb.GetOrganizationsWithAccessToLocationResponse, error) ListOrganizationsByUserFunc func(ctx context.Context, in *apppb.ListOrganizationsByUserRequest, opts ...grpc.CallOption) (*apppb.ListOrganizationsByUserResponse, error) GetOrganizationFunc func(ctx context.Context, in *apppb.GetOrganizationRequest, opts ...grpc.CallOption) (*apppb.GetOrganizationResponse, error) GetOrganizationNamespaceAvailabilityFunc func(ctx context.Context, in *apppb.GetOrganizationNamespaceAvailabilityRequest, opts ...grpc.CallOption) (*apppb.GetOrganizationNamespaceAvailabilityResponse, error) UpdateOrganizationFunc func(ctx context.Context, in *apppb.UpdateOrganizationRequest, opts ...grpc.CallOption) (*apppb.UpdateOrganizationResponse, error) DeleteOrganizationFunc func(ctx context.Context, in *apppb.DeleteOrganizationRequest, opts ...grpc.CallOption) (*apppb.DeleteOrganizationResponse, error) ListOrganizationMembersFunc func(ctx context.Context, in *apppb.ListOrganizationMembersRequest, opts ...grpc.CallOption) (*apppb.ListOrganizationMembersResponse, error) CreateOrganizationInviteFunc func(ctx context.Context, in *apppb.CreateOrganizationInviteRequest, opts ...grpc.CallOption) (*apppb.CreateOrganizationInviteResponse, error) UpdateOrganizationInviteAuthorizationsFunc func(ctx context.Context, in *apppb.UpdateOrganizationInviteAuthorizationsRequest, opts ...grpc.CallOption) (*apppb.UpdateOrganizationInviteAuthorizationsResponse, error) DeleteOrganizationMemberFunc func(ctx context.Context, in *apppb.DeleteOrganizationMemberRequest, opts ...grpc.CallOption) (*apppb.DeleteOrganizationMemberResponse, error) DeleteOrganizationInviteFunc func(ctx context.Context, in *apppb.DeleteOrganizationInviteRequest, opts ...grpc.CallOption) (*apppb.DeleteOrganizationInviteResponse, error) ResendOrganizationInviteFunc func(ctx context.Context, in *apppb.ResendOrganizationInviteRequest, opts ...grpc.CallOption) (*apppb.ResendOrganizationInviteResponse, error) EnableBillingServiceFunc func(ctx context.Context, in *apppb.EnableBillingServiceRequest, opts ...grpc.CallOption) (*apppb.EnableBillingServiceResponse, error) GetBillingServiceConfigFunc func(ctx context.Context, in *apppb.GetBillingServiceConfigRequest, opts ...grpc.CallOption) (*apppb.GetBillingServiceConfigResponse, error) DisableBillingServiceFunc func(ctx context.Context, in *apppb.DisableBillingServiceRequest, opts ...grpc.CallOption) (*apppb.DisableBillingServiceResponse, error) UpdateBillingServiceFunc func(ctx context.Context, in *apppb.UpdateBillingServiceRequest, opts ...grpc.CallOption) (*apppb.UpdateBillingServiceResponse, error) OrganizationSetSupportEmailFunc func(ctx context.Context, in *apppb.OrganizationSetSupportEmailRequest, opts ...grpc.CallOption) (*apppb.OrganizationSetSupportEmailResponse, error) OrganizationGetSupportEmailFunc func(ctx context.Context, in *apppb.OrganizationGetSupportEmailRequest, opts ...grpc.CallOption) (*apppb.OrganizationGetSupportEmailResponse, error) OrganizationSetLogoFunc func(ctx context.Context, in *apppb.OrganizationSetLogoRequest, opts ...grpc.CallOption) (*apppb.OrganizationSetLogoResponse, error) OrganizationGetLogoFunc func(ctx context.Context, in *apppb.OrganizationGetLogoRequest, opts ...grpc.CallOption) (*apppb.OrganizationGetLogoResponse, error) CreateOAuthAppFunc func(ctx context.Context, in *apppb.CreateOAuthAppRequest, opts ...grpc.CallOption) (*apppb.CreateOAuthAppResponse, error) ReadOAuthAppFunc func(ctx context.Context, in *apppb.ReadOAuthAppRequest, opts ...grpc.CallOption) (*apppb.ReadOAuthAppResponse, error) UpdateOAuthAppFunc func(ctx context.Context, in *apppb.UpdateOAuthAppRequest, opts ...grpc.CallOption) (*apppb.UpdateOAuthAppResponse, error) EnableAuthServiceFunc func(ctx context.Context, in *apppb.EnableAuthServiceRequest, opts ...grpc.CallOption) (*apppb.EnableAuthServiceResponse, error) DisableAuthServiceFunc func(ctx context.Context, in *apppb.DisableAuthServiceRequest, opts ...grpc.CallOption) (*apppb.DisableAuthServiceResponse, error) ListOAuthAppsFunc func(ctx context.Context, in *apppb.ListOAuthAppsRequest, opts ...grpc.CallOption) (*apppb.ListOAuthAppsResponse, error) DeleteOAuthAppFunc func(ctx context.Context, in *apppb.DeleteOAuthAppRequest, opts ...grpc.CallOption) (*apppb.DeleteOAuthAppResponse, error) CreateLocationFunc func(ctx context.Context, in *apppb.CreateLocationRequest, opts ...grpc.CallOption) (*apppb.CreateLocationResponse, error) GetLocationFunc func(ctx context.Context, in *apppb.GetLocationRequest, opts ...grpc.CallOption) (*apppb.GetLocationResponse, error) UpdateLocationFunc func(ctx context.Context, in *apppb.UpdateLocationRequest, opts ...grpc.CallOption) (*apppb.UpdateLocationResponse, error) DeleteLocationFunc func(ctx context.Context, in *apppb.DeleteLocationRequest, opts ...grpc.CallOption) (*apppb.DeleteLocationResponse, error) ListLocationsFunc func(ctx context.Context, in *apppb.ListLocationsRequest, opts ...grpc.CallOption) (*apppb.ListLocationsResponse, error) opts ...grpc.CallOption) (*apppb.ShareLocationResponse, error) opts ...grpc.CallOption) (*apppb.UnshareLocationResponse, error) LocationAuthFunc func(ctx context.Context, in *apppb.LocationAuthRequest, opts ...grpc.CallOption) (*apppb.LocationAuthResponse, error) CreateLocationSecretFunc func(ctx context.Context, in *apppb.CreateLocationSecretRequest, opts ...grpc.CallOption) (*apppb.CreateLocationSecretResponse, error) DeleteLocationSecretFunc func(ctx context.Context, in *apppb.DeleteLocationSecretRequest, opts ...grpc.CallOption) (*apppb.DeleteLocationSecretResponse, error) GetRobotFunc func(ctx context.Context, in *apppb.GetRobotRequest, opts ...grpc.CallOption) (*apppb.GetRobotResponse, error) GetRoverRentalRobotsFunc func(ctx context.Context, in *apppb.GetRoverRentalRobotsRequest, opts ...grpc.CallOption) (*apppb.GetRoverRentalRobotsResponse, error) GetRobotPartsFunc func(ctx context.Context, in *apppb.GetRobotPartsRequest, opts ...grpc.CallOption) (*apppb.GetRobotPartsResponse, error) GetRobotPartFunc func(ctx context.Context, in *apppb.GetRobotPartRequest, opts ...grpc.CallOption) (*apppb.GetRobotPartResponse, error) GetRobotPartLogsFunc func(ctx context.Context, in *apppb.GetRobotPartLogsRequest, opts ...grpc.CallOption) (*apppb.GetRobotPartLogsResponse, error) TailRobotPartLogsFunc func(ctx context.Context, in *apppb.TailRobotPartLogsRequest, opts ...grpc.CallOption) (apppb.AppService_TailRobotPartLogsClient, error) GetRobotPartHistoryFunc func(ctx context.Context, in *apppb.GetRobotPartHistoryRequest, opts ...grpc.CallOption) (*apppb.GetRobotPartHistoryResponse, error) UpdateRobotPartFunc func(ctx context.Context, in *apppb.UpdateRobotPartRequest, opts ...grpc.CallOption) (*apppb.UpdateRobotPartResponse, error) NewRobotPartFunc func(ctx context.Context, in *apppb.NewRobotPartRequest, opts ...grpc.CallOption) (*apppb.NewRobotPartResponse, error) DeleteRobotPartFunc func(ctx context.Context, in *apppb.DeleteRobotPartRequest, opts ...grpc.CallOption) (*apppb.DeleteRobotPartResponse, error) GetRobotAPIKeysFunc func(ctx context.Context, in *apppb.GetRobotAPIKeysRequest, opts ...grpc.CallOption) (*apppb.GetRobotAPIKeysResponse, error) MarkPartAsMainFunc func(ctx context.Context, in *apppb.MarkPartAsMainRequest, opts ...grpc.CallOption) (*apppb.MarkPartAsMainResponse, error) MarkPartForRestartFunc func(ctx context.Context, in *apppb.MarkPartForRestartRequest, opts ...grpc.CallOption) (*apppb.MarkPartForRestartResponse, error) CreateRobotPartSecretFunc func(ctx context.Context, in *apppb.CreateRobotPartSecretRequest, opts ...grpc.CallOption) (*apppb.CreateRobotPartSecretResponse, error) DeleteRobotPartSecretFunc func(ctx context.Context, in *apppb.DeleteRobotPartSecretRequest, opts ...grpc.CallOption) (*apppb.DeleteRobotPartSecretResponse, error) ListRobotsFunc func(ctx context.Context, in *apppb.ListRobotsRequest, opts ...grpc.CallOption) (*apppb.ListRobotsResponse, error) NewRobotFunc func(ctx context.Context, in *apppb.NewRobotRequest, opts ...grpc.CallOption) (*apppb.NewRobotResponse, error) UpdateRobotFunc func(ctx context.Context, in *apppb.UpdateRobotRequest, opts ...grpc.CallOption) (*apppb.UpdateRobotResponse, error) DeleteRobotFunc func(ctx context.Context, in *apppb.DeleteRobotRequest, opts ...grpc.CallOption) (*apppb.DeleteRobotResponse, error) ListFragmentsFunc func(ctx context.Context, in *apppb.ListFragmentsRequest, opts ...grpc.CallOption) (*apppb.ListFragmentsResponse, error) GetFragmentFunc func(ctx context.Context, in *apppb.GetFragmentRequest, opts ...grpc.CallOption) (*apppb.GetFragmentResponse, error) CreateFragmentFunc func(ctx context.Context, in *apppb.CreateFragmentRequest, opts ...grpc.CallOption) (*apppb.CreateFragmentResponse, error) UpdateFragmentFunc func(ctx context.Context, in *apppb.UpdateFragmentRequest, opts ...grpc.CallOption) (*apppb.UpdateFragmentResponse, error) DeleteFragmentFunc func(ctx context.Context, in *apppb.DeleteFragmentRequest, opts ...grpc.CallOption) (*apppb.DeleteFragmentResponse, error) ListMachineFragmentsFunc func(ctx context.Context, in *apppb.ListMachineFragmentsRequest, opts ...grpc.CallOption) (*apppb.ListMachineFragmentsResponse, error) GetFragmentHistoryFunc func(ctx context.Context, in *apppb.GetFragmentHistoryRequest, opts ...grpc.CallOption) (*apppb.GetFragmentHistoryResponse, error) AddRoleFunc func(ctx context.Context, in *apppb.AddRoleRequest, opts ...grpc.CallOption) (*apppb.AddRoleResponse, error) RemoveRoleFunc func(ctx context.Context, in *apppb.RemoveRoleRequest, opts ...grpc.CallOption) (*apppb.RemoveRoleResponse, error) ChangeRoleFunc func(ctx context.Context, in *apppb.ChangeRoleRequest, opts ...grpc.CallOption) (*apppb.ChangeRoleResponse, error) ListAuthorizationsFunc func(ctx context.Context, in *apppb.ListAuthorizationsRequest, opts ...grpc.CallOption) (*apppb.ListAuthorizationsResponse, error) CheckPermissionsFunc func(ctx context.Context, in *apppb.CheckPermissionsRequest, opts ...grpc.CallOption) (*apppb.CheckPermissionsResponse, error) GetRegistryItemFunc func(ctx context.Context, in *apppb.GetRegistryItemRequest, opts ...grpc.CallOption) (*apppb.GetRegistryItemResponse, error) CreateRegistryItemFunc func(ctx context.Context, in *apppb.CreateRegistryItemRequest, opts ...grpc.CallOption) (*apppb.CreateRegistryItemResponse, error) UpdateRegistryItemFunc func(ctx context.Context, in *apppb.UpdateRegistryItemRequest, opts ...grpc.CallOption) (*apppb.UpdateRegistryItemResponse, error) ListRegistryItemsFunc func(ctx context.Context, in *apppb.ListRegistryItemsRequest, opts ...grpc.CallOption) (*apppb.ListRegistryItemsResponse, error) DeleteRegistryItemFunc func(ctx context.Context, in *apppb.DeleteRegistryItemRequest, opts ...grpc.CallOption) (*apppb.DeleteRegistryItemResponse, error) TransferRegistryItemFunc func(ctx context.Context, in *apppb.TransferRegistryItemRequest, opts ...grpc.CallOption) (*apppb.TransferRegistryItemResponse, error) CreateModuleFunc func(ctx context.Context, in *apppb.CreateModuleRequest, opts ...grpc.CallOption) (*apppb.CreateModuleResponse, error) UpdateModuleFunc func(ctx context.Context, in *apppb.UpdateModuleRequest, opts ...grpc.CallOption) (*apppb.UpdateModuleResponse, error) UploadModuleFileFunc func(ctx context.Context, opts ...grpc.CallOption) (apppb.AppService_UploadModuleFileClient, error) GetModuleFunc func(ctx context.Context, in *apppb.GetModuleRequest, opts ...grpc.CallOption) (*apppb.GetModuleResponse, error) ListModulesFunc func(ctx context.Context, in *apppb.ListModulesRequest, opts ...grpc.CallOption) (*apppb.ListModulesResponse, error) CreateKeyFunc func(ctx context.Context, in *apppb.CreateKeyRequest, opts ...grpc.CallOption) (*apppb.CreateKeyResponse, error) DeleteKeyFunc func(ctx context.Context, in *apppb.DeleteKeyRequest, opts ...grpc.CallOption) (*apppb.DeleteKeyResponse, error) ListKeysFunc func(ctx context.Context, in *apppb.ListKeysRequest, opts ...grpc.CallOption) (*apppb.ListKeysResponse, error) RenameKeyFunc func(ctx context.Context, in *apppb.RenameKeyRequest, opts ...grpc.CallOption) (*apppb.RenameKeyResponse, error) RotateKeyFunc func(ctx context.Context, in *apppb.RotateKeyRequest, opts ...grpc.CallOption) (*apppb.RotateKeyResponse, error) CreateKeyFromExistingKeyAuthorizationsFunc func(ctx context.Context, in *apppb.CreateKeyFromExistingKeyAuthorizationsRequest, opts ...grpc.CallOption) (*apppb.CreateKeyFromExistingKeyAuthorizationsResponse, error) }
AppServiceClient represents a fake instance of an app service client.
func (*AppServiceClient) AddRole ¶ added in v0.53.0
func (asc *AppServiceClient) AddRole( ctx context.Context, in *apppb.AddRoleRequest, opts ...grpc.CallOption, ) (*apppb.AddRoleResponse, error)
AddRole calls the injected AddRoleFunc or the real version.
func (*AppServiceClient) ChangeRole ¶ added in v0.53.0
func (asc *AppServiceClient) ChangeRole( ctx context.Context, in *apppb.ChangeRoleRequest, opts ...grpc.CallOption, ) (*apppb.ChangeRoleResponse, error)
ChangeRole calls the injected ChangeRoleFunc or the real version.
func (*AppServiceClient) CheckPermissions ¶ added in v0.53.0
func (asc *AppServiceClient) CheckPermissions( ctx context.Context, in *apppb.CheckPermissionsRequest, opts ...grpc.CallOption, ) (*apppb.CheckPermissionsResponse, error)
CheckPermissions calls the injected CheckPermissionsFunc or the real version.
func (*AppServiceClient) CreateFragment ¶ added in v0.53.0
func (asc *AppServiceClient) CreateFragment( ctx context.Context, in *apppb.CreateFragmentRequest, opts ...grpc.CallOption, ) (*apppb.CreateFragmentResponse, error)
CreateFragment calls the injected CreateFragmentFunc or the real version.
func (*AppServiceClient) CreateKey ¶ added in v0.8.0
func (asc *AppServiceClient) CreateKey( ctx context.Context, in *apppb.CreateKeyRequest, opts ...grpc.CallOption, ) (*apppb.CreateKeyResponse, error)
CreateKey calls the injected CreateKeyFunc or the real version.
func (*AppServiceClient) CreateKeyFromExistingKeyAuthorizations ¶ added in v0.53.0
func (asc *AppServiceClient) CreateKeyFromExistingKeyAuthorizations( ctx context.Context, in *apppb.CreateKeyFromExistingKeyAuthorizationsRequest, opts ...grpc.CallOption, ) (*apppb.CreateKeyFromExistingKeyAuthorizationsResponse, error)
CreateKeyFromExistingKeyAuthorizations calls the injected CreateKeyFromExistingKeyAuthorizationsFunc or the real version.
func (*AppServiceClient) CreateLocation ¶ added in v0.53.0
func (asc *AppServiceClient) CreateLocation( ctx context.Context, in *apppb.CreateLocationRequest, opts ...grpc.CallOption, ) (*apppb.CreateLocationResponse, error)
CreateLocation calls the injected CreateLocationFunc or the real version.
func (*AppServiceClient) CreateLocationSecret ¶ added in v0.53.0
func (asc *AppServiceClient) CreateLocationSecret( ctx context.Context, in *apppb.CreateLocationSecretRequest, opts ...grpc.CallOption, ) (*apppb.CreateLocationSecretResponse, error)
CreateLocationSecret calls the injected CreateLocationSecretFunc or the real version.
func (*AppServiceClient) CreateModule ¶ added in v0.53.0
func (asc *AppServiceClient) CreateModule( ctx context.Context, in *apppb.CreateModuleRequest, opts ...grpc.CallOption, ) (*apppb.CreateModuleResponse, error)
CreateModule calls the injected CreateModuleFunc or the real version.
func (*AppServiceClient) CreateOAuthApp ¶ added in v0.58.0
func (asc *AppServiceClient) CreateOAuthApp( ctx context.Context, in *apppb.CreateOAuthAppRequest, opts ...grpc.CallOption, ) (*apppb.CreateOAuthAppResponse, error)
CreateOAuthApp calls the injected CreateOAuthAppFunc or the real version.
func (*AppServiceClient) CreateOrganization ¶ added in v0.53.0
func (asc *AppServiceClient) CreateOrganization( ctx context.Context, in *apppb.CreateOrganizationRequest, opts ...grpc.CallOption, ) (*apppb.CreateOrganizationResponse, error)
CreateOrganization calls the injected CreateOrganizationFunc or the real version.
func (*AppServiceClient) CreateOrganizationInvite ¶ added in v0.53.0
func (asc *AppServiceClient) CreateOrganizationInvite( ctx context.Context, in *apppb.CreateOrganizationInviteRequest, opts ...grpc.CallOption, ) (*apppb.CreateOrganizationInviteResponse, error)
CreateOrganizationInvite calls the injected CreateOrganizationInviteFunc or the real version.
func (*AppServiceClient) CreateRegistryItem ¶ added in v0.53.0
func (asc *AppServiceClient) CreateRegistryItem( ctx context.Context, in *apppb.CreateRegistryItemRequest, opts ...grpc.CallOption, ) (*apppb.CreateRegistryItemResponse, error)
CreateRegistryItem calls the injected CreateRegistryItemFunc or the real version.
func (*AppServiceClient) CreateRobotPartSecret ¶ added in v0.53.0
func (asc *AppServiceClient) CreateRobotPartSecret( ctx context.Context, in *apppb.CreateRobotPartSecretRequest, opts ...grpc.CallOption, ) (*apppb.CreateRobotPartSecretResponse, error)
CreateRobotPartSecret calls the injected CreateRobotPartSecretFunc or the real version.
func (*AppServiceClient) DeleteFragment ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteFragment( ctx context.Context, in *apppb.DeleteFragmentRequest, opts ...grpc.CallOption, ) (*apppb.DeleteFragmentResponse, error)
DeleteFragment calls the injected DeleteFragmentFunc or the real version.
func (*AppServiceClient) DeleteKey ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteKey( ctx context.Context, in *apppb.DeleteKeyRequest, opts ...grpc.CallOption, ) (*apppb.DeleteKeyResponse, error)
DeleteKey calls the injected DeleteKeyFunc or the real version.
func (*AppServiceClient) DeleteLocation ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteLocation( ctx context.Context, in *apppb.DeleteLocationRequest, opts ...grpc.CallOption, ) (*apppb.DeleteLocationResponse, error)
DeleteLocation calls the injected DeleteLocationFunc or the real version.
func (*AppServiceClient) DeleteLocationSecret ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteLocationSecret( ctx context.Context, in *apppb.DeleteLocationSecretRequest, opts ...grpc.CallOption, ) (*apppb.DeleteLocationSecretResponse, error)
DeleteLocationSecret calls the injected DeleteLocationSecretFunc or the real version.
func (*AppServiceClient) DeleteOAuthApp ¶ added in v0.57.0
func (asc *AppServiceClient) DeleteOAuthApp( ctx context.Context, in *apppb.DeleteOAuthAppRequest, opts ...grpc.CallOption, ) (*apppb.DeleteOAuthAppResponse, error)
DeleteOAuthApp calls the injected DeleteOAuthAppFunc or the real version.
func (*AppServiceClient) DeleteOrganization ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteOrganization( ctx context.Context, in *apppb.DeleteOrganizationRequest, opts ...grpc.CallOption, ) (*apppb.DeleteOrganizationResponse, error)
DeleteOrganization calls the injected DeleteOrganizationFunc or the real version.
func (*AppServiceClient) DeleteOrganizationInvite ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteOrganizationInvite( ctx context.Context, in *apppb.DeleteOrganizationInviteRequest, opts ...grpc.CallOption, ) (*apppb.DeleteOrganizationInviteResponse, error)
DeleteOrganizationInvite calls the injected DeleteOrganizationInviteFunc or the real version.
func (*AppServiceClient) DeleteOrganizationMember ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteOrganizationMember( ctx context.Context, in *apppb.DeleteOrganizationMemberRequest, opts ...grpc.CallOption, ) (*apppb.DeleteOrganizationMemberResponse, error)
DeleteOrganizationMember calls the injected DeleteOrganizationMemberFunc or the real version.
func (*AppServiceClient) DeleteRegistryItem ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteRegistryItem( ctx context.Context, in *apppb.DeleteRegistryItemRequest, opts ...grpc.CallOption, ) (*apppb.DeleteRegistryItemResponse, error)
DeleteRegistryItem calls the injected DeleteRegistryItemFunc or the real version.
func (*AppServiceClient) DeleteRobot ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteRobot( ctx context.Context, in *apppb.DeleteRobotRequest, opts ...grpc.CallOption, ) (*apppb.DeleteRobotResponse, error)
DeleteRobot calls the injected DeleteRobotFunc or the real version.
func (*AppServiceClient) DeleteRobotPart ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteRobotPart( ctx context.Context, in *apppb.DeleteRobotPartRequest, opts ...grpc.CallOption, ) (*apppb.DeleteRobotPartResponse, error)
DeleteRobotPart calls the injected DeleteRobotPartFunc or the real version.
func (*AppServiceClient) DeleteRobotPartSecret ¶ added in v0.53.0
func (asc *AppServiceClient) DeleteRobotPartSecret( ctx context.Context, in *apppb.DeleteRobotPartSecretRequest, opts ...grpc.CallOption, ) (*apppb.DeleteRobotPartSecretResponse, error)
DeleteRobotPartSecret calls the injected DeleteRobotPartSecretFunc or the real version.
func (*AppServiceClient) DisableAuthService ¶ added in v0.58.0
func (asc *AppServiceClient) DisableAuthService( ctx context.Context, in *apppb.DisableAuthServiceRequest, opts ...grpc.CallOption, ) (*apppb.DisableAuthServiceResponse, error)
DisableAuthService calls the injected DisableeAuthServiceFunc or the real version.
func (*AppServiceClient) DisableBillingService ¶ added in v0.53.0
func (asc *AppServiceClient) DisableBillingService( ctx context.Context, in *apppb.DisableBillingServiceRequest, opts ...grpc.CallOption, ) (*apppb.DisableBillingServiceResponse, error)
DisableBillingService calls the injected DisableBillingServiceFunc or the real version.
func (*AppServiceClient) EnableAuthService ¶ added in v0.58.0
func (asc *AppServiceClient) EnableAuthService( ctx context.Context, in *apppb.EnableAuthServiceRequest, opts ...grpc.CallOption, ) (*apppb.EnableAuthServiceResponse, error)
EnableAuthService calls the injected EnableAuthServiceFunc or the real version.
func (*AppServiceClient) EnableBillingService ¶ added in v0.53.0
func (asc *AppServiceClient) EnableBillingService( ctx context.Context, in *apppb.EnableBillingServiceRequest, opts ...grpc.CallOption, ) (*apppb.EnableBillingServiceResponse, error)
EnableBillingService calls the injected EnableBillingServiceFunc or the real version.
func (*AppServiceClient) GetBillingServiceConfig ¶ added in v0.54.0
func (asc *AppServiceClient) GetBillingServiceConfig( ctx context.Context, in *apppb.GetBillingServiceConfigRequest, opts ...grpc.CallOption, ) (*apppb.GetBillingServiceConfigResponse, error)
GetBillingServiceConfig calls the injected GetBillingServiceConfigFunc or the real version.
func (*AppServiceClient) GetFragment ¶ added in v0.53.0
func (asc *AppServiceClient) GetFragment( ctx context.Context, in *apppb.GetFragmentRequest, opts ...grpc.CallOption, ) (*apppb.GetFragmentResponse, error)
GetFragment calls the injected GetFragmentFunc or the real version.
func (*AppServiceClient) GetFragmentHistory ¶ added in v0.53.0
func (asc *AppServiceClient) GetFragmentHistory( ctx context.Context, in *apppb.GetFragmentHistoryRequest, opts ...grpc.CallOption, ) (*apppb.GetFragmentHistoryResponse, error)
GetFragmentHistory calls the injected GetFragmentHistoryFunc or the real version.
func (*AppServiceClient) GetLocation ¶ added in v0.53.0
func (asc *AppServiceClient) GetLocation( ctx context.Context, in *apppb.GetLocationRequest, opts ...grpc.CallOption, ) (*apppb.GetLocationResponse, error)
GetLocation calls the injected GetLocationFunc or the real version.
func (*AppServiceClient) GetModule ¶ added in v0.53.0
func (asc *AppServiceClient) GetModule( ctx context.Context, in *apppb.GetModuleRequest, opts ...grpc.CallOption, ) (*apppb.GetModuleResponse, error)
GetModule calls the injected GetModuleFunc or the real version.
func (*AppServiceClient) GetOrganization ¶ added in v0.53.0
func (asc *AppServiceClient) GetOrganization( ctx context.Context, in *apppb.GetOrganizationRequest, opts ...grpc.CallOption, ) (*apppb.GetOrganizationResponse, error)
GetOrganization calls the injected GetOrganizationFunc or the real version.
func (*AppServiceClient) GetOrganizationNamespaceAvailability ¶ added in v0.53.0
func (asc *AppServiceClient) GetOrganizationNamespaceAvailability( ctx context.Context, in *apppb.GetOrganizationNamespaceAvailabilityRequest, opts ...grpc.CallOption, ) (*apppb.GetOrganizationNamespaceAvailabilityResponse, error)
GetOrganizationNamespaceAvailability calls the injected GetOrganizationNamespaceAvailabilityFunc or the real version.
func (*AppServiceClient) GetOrganizationsWithAccessToLocation ¶ added in v0.53.0
func (asc *AppServiceClient) GetOrganizationsWithAccessToLocation( ctx context.Context, in *apppb.GetOrganizationsWithAccessToLocationRequest, opts ...grpc.CallOption, ) (*apppb.GetOrganizationsWithAccessToLocationResponse, error)
GetOrganizationsWithAccessToLocation calls the injected GetOrganizationsWithAccessToLocationFunc or the real version.
func (*AppServiceClient) GetRegistryItem ¶ added in v0.53.0
func (asc *AppServiceClient) GetRegistryItem( ctx context.Context, in *apppb.GetRegistryItemRequest, opts ...grpc.CallOption, ) (*apppb.GetRegistryItemResponse, error)
GetRegistryItem calls the injected GetRegistryItemFunc or the real version.
func (*AppServiceClient) GetRobot ¶ added in v0.53.0
func (asc *AppServiceClient) GetRobot( ctx context.Context, in *apppb.GetRobotRequest, opts ...grpc.CallOption, ) (*apppb.GetRobotResponse, error)
GetRobot calls the injected GetRobotFunc or the real version.
func (*AppServiceClient) GetRobotAPIKeys ¶ added in v0.26.0
func (asc *AppServiceClient) GetRobotAPIKeys( ctx context.Context, in *apppb.GetRobotAPIKeysRequest, opts ...grpc.CallOption, ) (*apppb.GetRobotAPIKeysResponse, error)
GetRobotAPIKeys calls the injected GetRobotAPIKeysFunc or the real version.
func (*AppServiceClient) GetRobotPart ¶ added in v0.26.0
func (asc *AppServiceClient) GetRobotPart( ctx context.Context, in *apppb.GetRobotPartRequest, opts ...grpc.CallOption, ) (*apppb.GetRobotPartResponse, error)
GetRobotPart calls the injected GetRobotPartFunc or the real version.
func (*AppServiceClient) GetRobotPartHistory ¶ added in v0.53.0
func (asc *AppServiceClient) GetRobotPartHistory( ctx context.Context, in *apppb.GetRobotPartHistoryRequest, opts ...grpc.CallOption, ) (*apppb.GetRobotPartHistoryResponse, error)
GetRobotPartHistory calls the injected GetRobotPartHistoryFunc or the real version.
func (*AppServiceClient) GetRobotPartLogs ¶ added in v0.25.0
func (asc *AppServiceClient) GetRobotPartLogs( ctx context.Context, in *apppb.GetRobotPartLogsRequest, opts ...grpc.CallOption, ) (*apppb.GetRobotPartLogsResponse, error)
GetRobotPartLogs calls the injected GetRobotPartLogsFunc or the real version.
func (*AppServiceClient) GetRobotParts ¶ added in v0.25.0
func (asc *AppServiceClient) GetRobotParts( ctx context.Context, in *apppb.GetRobotPartsRequest, opts ...grpc.CallOption, ) (*apppb.GetRobotPartsResponse, error)
GetRobotParts calls the injected GetRobotPartsFunc or the real version.
func (*AppServiceClient) GetRoverRentalRobots ¶ added in v0.53.0
func (asc *AppServiceClient) GetRoverRentalRobots( ctx context.Context, in *apppb.GetRoverRentalRobotsRequest, opts ...grpc.CallOption, ) (*apppb.GetRoverRentalRobotsResponse, error)
GetRoverRentalRobots calls the injected GetRoverRentalRobotsFunc or the real version.
func (*AppServiceClient) GetUserIDByEmail ¶ added in v0.53.0
func (asc *AppServiceClient) GetUserIDByEmail( ctx context.Context, in *apppb.GetUserIDByEmailRequest, opts ...grpc.CallOption, ) (*apppb.GetUserIDByEmailResponse, error)
GetUserIDByEmail calls the injected GetUserIDByEmailFunc or the real version.
func (*AppServiceClient) ListAuthorizations ¶ added in v0.53.0
func (asc *AppServiceClient) ListAuthorizations( ctx context.Context, in *apppb.ListAuthorizationsRequest, opts ...grpc.CallOption, ) (*apppb.ListAuthorizationsResponse, error)
ListAuthorizations calls the injected ListAuthorizationsFunc or the real version.
func (*AppServiceClient) ListFragments ¶ added in v0.53.0
func (asc *AppServiceClient) ListFragments( ctx context.Context, in *apppb.ListFragmentsRequest, opts ...grpc.CallOption, ) (*apppb.ListFragmentsResponse, error)
ListFragments calls the injected ListFragmentsFunc or the real version.
func (*AppServiceClient) ListKeys ¶ added in v0.53.0
func (asc *AppServiceClient) ListKeys( ctx context.Context, in *apppb.ListKeysRequest, opts ...grpc.CallOption, ) (*apppb.ListKeysResponse, error)
ListKeys calls the injected ListKeysFunc or the real version.
func (*AppServiceClient) ListLocations ¶ added in v0.25.0
func (asc *AppServiceClient) ListLocations( ctx context.Context, in *apppb.ListLocationsRequest, opts ...grpc.CallOption, ) (*apppb.ListLocationsResponse, error)
ListLocations calls the injected ListLocationsFunc or the real version.
func (*AppServiceClient) ListMachineFragments ¶ added in v0.53.0
func (asc *AppServiceClient) ListMachineFragments( ctx context.Context, in *apppb.ListMachineFragmentsRequest, opts ...grpc.CallOption, ) (*apppb.ListMachineFragmentsResponse, error)
ListMachineFragments calls the injected ListMachineFragmentsFunc or the real version.
func (*AppServiceClient) ListModules ¶ added in v0.53.0
func (asc *AppServiceClient) ListModules( ctx context.Context, in *apppb.ListModulesRequest, opts ...grpc.CallOption, ) (*apppb.ListModulesResponse, error)
ListModules calls the injected ListModulesFunc or the real version.
func (*AppServiceClient) ListOAuthApps ¶ added in v0.58.0
func (asc *AppServiceClient) ListOAuthApps( ctx context.Context, in *apppb.ListOAuthAppsRequest, opts ...grpc.CallOption, ) (*apppb.ListOAuthAppsResponse, error)
ListOAuthApps calls the injected ListOAuthAppsFunc or the real version.
func (*AppServiceClient) ListOrganizationMembers ¶ added in v0.53.0
func (asc *AppServiceClient) ListOrganizationMembers( ctx context.Context, in *apppb.ListOrganizationMembersRequest, opts ...grpc.CallOption, ) (*apppb.ListOrganizationMembersResponse, error)
ListOrganizationMembers calls the injected ListOrganizationMembersFunc or the real version.
func (*AppServiceClient) ListOrganizations ¶ added in v0.7.3
func (asc *AppServiceClient) ListOrganizations( ctx context.Context, in *apppb.ListOrganizationsRequest, opts ...grpc.CallOption, ) (*apppb.ListOrganizationsResponse, error)
ListOrganizations calls the injected ListOrganizationsFunc or the real version.
func (*AppServiceClient) ListOrganizationsByUser ¶ added in v0.53.0
func (asc *AppServiceClient) ListOrganizationsByUser( ctx context.Context, in *apppb.ListOrganizationsByUserRequest, opts ...grpc.CallOption, ) (*apppb.ListOrganizationsByUserResponse, error)
ListOrganizationsByUser calls the injected ListOrganizationsByUserFunc or the real version.
func (*AppServiceClient) ListRegistryItems ¶ added in v0.53.0
func (asc *AppServiceClient) ListRegistryItems( ctx context.Context, in *apppb.ListRegistryItemsRequest, opts ...grpc.CallOption, ) (*apppb.ListRegistryItemsResponse, error)
ListRegistryItems calls the injected ListRegistryItemsFunc or the real version.
func (*AppServiceClient) ListRobots ¶ added in v0.25.0
func (asc *AppServiceClient) ListRobots( ctx context.Context, in *apppb.ListRobotsRequest, opts ...grpc.CallOption, ) (*apppb.ListRobotsResponse, error)
ListRobots calls the injected ListRobotsFunc or the real version.
func (*AppServiceClient) LocationAuth ¶ added in v0.53.0
func (asc *AppServiceClient) LocationAuth( ctx context.Context, in *apppb.LocationAuthRequest, opts ...grpc.CallOption, ) (*apppb.LocationAuthResponse, error)
LocationAuth calls the injected LocationAuthFunc or the real version.
func (*AppServiceClient) MarkPartAsMain ¶ added in v0.53.0
func (asc *AppServiceClient) MarkPartAsMain( ctx context.Context, in *apppb.MarkPartAsMainRequest, opts ...grpc.CallOption, ) (*apppb.MarkPartAsMainResponse, error)
MarkPartAsMain calls the injected MarkPartAsMainFunc or the real version.
func (*AppServiceClient) MarkPartForRestart ¶ added in v0.53.0
func (asc *AppServiceClient) MarkPartForRestart( ctx context.Context, in *apppb.MarkPartForRestartRequest, opts ...grpc.CallOption, ) (*apppb.MarkPartForRestartResponse, error)
MarkPartForRestart calls the injected MarkPartForRestartFunc or the real version.
func (*AppServiceClient) NewRobot ¶ added in v0.53.0
func (asc *AppServiceClient) NewRobot( ctx context.Context, in *apppb.NewRobotRequest, opts ...grpc.CallOption, ) (*apppb.NewRobotResponse, error)
NewRobot calls the injected NewRobotFunc or the real version.
func (*AppServiceClient) NewRobotPart ¶ added in v0.53.0
func (asc *AppServiceClient) NewRobotPart( ctx context.Context, in *apppb.NewRobotPartRequest, opts ...grpc.CallOption, ) (*apppb.NewRobotPartResponse, error)
NewRobotPart calls the injected NewRobotPartFunc or the real version.
func (*AppServiceClient) OrganizationGetLogo ¶ added in v0.55.0
func (asc *AppServiceClient) OrganizationGetLogo( ctx context.Context, in *apppb.OrganizationGetLogoRequest, opts ...grpc.CallOption, ) (*apppb.OrganizationGetLogoResponse, error)
OrganizationGetLogo calls the injected OrganizationGetLogoFunc or the real version.
func (*AppServiceClient) OrganizationGetSupportEmail ¶ added in v0.53.0
func (asc *AppServiceClient) OrganizationGetSupportEmail( ctx context.Context, in *apppb.OrganizationGetSupportEmailRequest, opts ...grpc.CallOption, ) (*apppb.OrganizationGetSupportEmailResponse, error)
OrganizationGetSupportEmail calls the injected OrganizationGetSupportEmailFunc or the real version.
func (*AppServiceClient) OrganizationSetLogo ¶ added in v0.55.0
func (asc *AppServiceClient) OrganizationSetLogo( ctx context.Context, in *apppb.OrganizationSetLogoRequest, opts ...grpc.CallOption, ) (*apppb.OrganizationSetLogoResponse, error)
OrganizationSetLogo calls the injected OrganizationSetLogoFunc or the real version.
func (*AppServiceClient) OrganizationSetSupportEmail ¶ added in v0.53.0
func (asc *AppServiceClient) OrganizationSetSupportEmail( ctx context.Context, in *apppb.OrganizationSetSupportEmailRequest, opts ...grpc.CallOption, ) (*apppb.OrganizationSetSupportEmailResponse, error)
OrganizationSetSupportEmail calls the injected OrganizationSetSupportEmailFunc or the real version.
func (*AppServiceClient) ReadOAuthApp ¶ added in v0.58.0
func (asc *AppServiceClient) ReadOAuthApp( ctx context.Context, in *apppb.ReadOAuthAppRequest, opts ...grpc.CallOption, ) (*apppb.ReadOAuthAppResponse, error)
ReadOAuthApp calls the injected ReadOAuthAppFunc or the real version.
func (*AppServiceClient) RemoveRole ¶ added in v0.53.0
func (asc *AppServiceClient) RemoveRole( ctx context.Context, in *apppb.RemoveRoleRequest, opts ...grpc.CallOption, ) (*apppb.RemoveRoleResponse, error)
RemoveRole calls the injected RemoveRoleFunc or the real version.
func (*AppServiceClient) RenameKey ¶ added in v0.53.0
func (asc *AppServiceClient) RenameKey( ctx context.Context, in *apppb.RenameKeyRequest, opts ...grpc.CallOption, ) (*apppb.RenameKeyResponse, error)
RenameKey calls the injected RenameKeyFunc or the real version.
func (*AppServiceClient) ResendOrganizationInvite ¶ added in v0.53.0
func (asc *AppServiceClient) ResendOrganizationInvite( ctx context.Context, in *apppb.ResendOrganizationInviteRequest, opts ...grpc.CallOption, ) (*apppb.ResendOrganizationInviteResponse, error)
ResendOrganizationInvite calls the injected ResendOrganizationInviteFunc or the real version.
func (*AppServiceClient) RotateKey ¶ added in v0.53.0
func (asc *AppServiceClient) RotateKey( ctx context.Context, in *apppb.RotateKeyRequest, opts ...grpc.CallOption, ) (*apppb.RotateKeyResponse, error)
RotateKey calls the injected RotateKeyFunc or the real version.
func (*AppServiceClient) ShareLocation ¶ added in v0.53.0
func (asc *AppServiceClient) ShareLocation( ctx context.Context, in *apppb.ShareLocationRequest, opts ...grpc.CallOption, ) (*apppb.ShareLocationResponse, error)
ShareLocation calls the injected ShareLocationFunc or the real version.
func (*AppServiceClient) TailRobotPartLogs ¶ added in v0.53.0
func (asc *AppServiceClient) TailRobotPartLogs( ctx context.Context, in *apppb.TailRobotPartLogsRequest, opts ...grpc.CallOption, ) (apppb.AppService_TailRobotPartLogsClient, error)
TailRobotPartLogs calls the injected TailRobotPartLogsFunc or the real version.
func (*AppServiceClient) TransferRegistryItem ¶ added in v0.53.0
func (asc *AppServiceClient) TransferRegistryItem( ctx context.Context, in *apppb.TransferRegistryItemRequest, opts ...grpc.CallOption, ) (*apppb.TransferRegistryItemResponse, error)
TransferRegistryItem calls the injected TransferRegistryItemFunc or the real version.
func (*AppServiceClient) UnshareLocation ¶ added in v0.53.0
func (asc *AppServiceClient) UnshareLocation( ctx context.Context, in *apppb.UnshareLocationRequest, opts ...grpc.CallOption, ) (*apppb.UnshareLocationResponse, error)
UnshareLocation calls the injected UnshareLocationFunc or the real version.
func (*AppServiceClient) UpdateBillingService ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateBillingService( ctx context.Context, in *apppb.UpdateBillingServiceRequest, opts ...grpc.CallOption, ) (*apppb.UpdateBillingServiceResponse, error)
UpdateBillingService calls the injected UpdateBillingServiceFunc or the real version.
func (*AppServiceClient) UpdateFragment ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateFragment( ctx context.Context, in *apppb.UpdateFragmentRequest, opts ...grpc.CallOption, ) (*apppb.UpdateFragmentResponse, error)
UpdateFragment calls the injected UpdateFragmentFunc or the real version.
func (*AppServiceClient) UpdateLocation ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateLocation( ctx context.Context, in *apppb.UpdateLocationRequest, opts ...grpc.CallOption, ) (*apppb.UpdateLocationResponse, error)
UpdateLocation calls the injected UpdateLocationFunc or the real version.
func (*AppServiceClient) UpdateModule ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateModule( ctx context.Context, in *apppb.UpdateModuleRequest, opts ...grpc.CallOption, ) (*apppb.UpdateModuleResponse, error)
UpdateModule calls the injected UpdateModuleFunc or the real version.
func (*AppServiceClient) UpdateOAuthApp ¶ added in v0.58.0
func (asc *AppServiceClient) UpdateOAuthApp( ctx context.Context, in *apppb.UpdateOAuthAppRequest, opts ...grpc.CallOption, ) (*apppb.UpdateOAuthAppResponse, error)
UpdateOAuthApp calls the injected UpdateOAuthAppFunc or the real version.
func (*AppServiceClient) UpdateOrganization ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateOrganization( ctx context.Context, in *apppb.UpdateOrganizationRequest, opts ...grpc.CallOption, ) (*apppb.UpdateOrganizationResponse, error)
UpdateOrganization calls the injected UpdateOrganizationFunc or the real version.
func (*AppServiceClient) UpdateOrganizationInviteAuthorizations ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateOrganizationInviteAuthorizations( ctx context.Context, in *apppb.UpdateOrganizationInviteAuthorizationsRequest, opts ...grpc.CallOption, ) (*apppb.UpdateOrganizationInviteAuthorizationsResponse, error)
UpdateOrganizationInviteAuthorizations calls the injected UpdateOrganizationInviteAuthorizationsFunc or the real version.
func (*AppServiceClient) UpdateRegistryItem ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateRegistryItem( ctx context.Context, in *apppb.UpdateRegistryItemRequest, opts ...grpc.CallOption, ) (*apppb.UpdateRegistryItemResponse, error)
UpdateRegistryItem calls the injected UpdateRegistryItemFunc or the real version.
func (*AppServiceClient) UpdateRobot ¶ added in v0.53.0
func (asc *AppServiceClient) UpdateRobot( ctx context.Context, in *apppb.UpdateRobotRequest, opts ...grpc.CallOption, ) (*apppb.UpdateRobotResponse, error)
UpdateRobot calls the injected UpdateRobotFunc or the real version.
func (*AppServiceClient) UpdateRobotPart ¶ added in v0.26.0
func (asc *AppServiceClient) UpdateRobotPart( ctx context.Context, in *apppb.UpdateRobotPartRequest, opts ...grpc.CallOption, ) (*apppb.UpdateRobotPartResponse, error)
UpdateRobotPart calls the injected UpdateRobotPartFunc or the real version.
func (*AppServiceClient) UploadModuleFile ¶ added in v0.53.0
func (asc *AppServiceClient) UploadModuleFile( ctx context.Context, opts ...grpc.CallOption, ) (apppb.AppService_UploadModuleFileClient, error)
UploadModuleFile calls the injected UploadModuleFileFunc or the real version.
type AppServiceTailRobotPartLogsClient ¶ added in v0.53.0
type AppServiceTailRobotPartLogsClient struct { apppb.AppService_TailRobotPartLogsClient RecvFunc func() (*apppb.TailRobotPartLogsResponse, error) }
AppServiceTailRobotPartLogsClient represents a fake instance of a proto AppService_TailRobotPartLogsClient.
func (*AppServiceTailRobotPartLogsClient) Recv ¶ added in v0.53.0
func (c *AppServiceTailRobotPartLogsClient) Recv() (*apppb.TailRobotPartLogsResponse, error)
Recv calls the injected RecvFunc or the real version.
type AppServiceUploadModuleFileClient ¶ added in v0.53.0
type AppServiceUploadModuleFileClient struct { apppb.AppService_UploadModuleFileClient SendFunc func(*apppb.UploadModuleFileRequest) error CloseAndRecvFunc func() (*apppb.UploadModuleFileResponse, error) }
AppServiceUploadModuleFileClient represents a fake instance of a proto AppService_UploadModuleFileClient.
func (*AppServiceUploadModuleFileClient) CloseAndRecv ¶ added in v0.53.0
func (c *AppServiceUploadModuleFileClient) CloseAndRecv() (*apppb.UploadModuleFileResponse, error)
CloseAndRecv calls the injected CloseAndRecvFunc or the real version.
func (*AppServiceUploadModuleFileClient) Send ¶ added in v0.53.0
func (c *AppServiceUploadModuleFileClient) Send(req *apppb.UploadModuleFileRequest) error
Send calls the injected SendFunc or the real version.
type Arm ¶
type Arm struct { arm.Arm DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) EndPositionFunc func(ctx context.Context, extra map[string]interface{}) (spatialmath.Pose, error) MoveToPositionFunc func(ctx context.Context, to spatialmath.Pose, extra map[string]interface{}) error MoveToJointPositionsFunc func(ctx context.Context, positions []referenceframe.Input, extra map[string]interface{}) error MoveThroughJointPositionsFunc func( ctx context.Context, positions [][]referenceframe.Input, options *arm.MoveOptions, extra map[string]interface{}, ) error JointPositionsFunc func(ctx context.Context, extra map[string]interface{}) ([]referenceframe.Input, error) StopFunc func(ctx context.Context, extra map[string]interface{}) error IsMovingFunc func(context.Context) (bool, error) CloseFunc func(ctx context.Context) error ModelFrameFunc func() referenceframe.Model CurrentInputsFunc func(ctx context.Context) ([]referenceframe.Input, error) GoToInputsFunc func(ctx context.Context, inputSteps ...[]referenceframe.Input) error GeometriesFunc func(ctx context.Context) ([]spatialmath.Geometry, error) // contains filtered or unexported fields }
Arm is an injected arm.
func (*Arm) CurrentInputs ¶ added in v0.7.3
CurrentInputs calls the injected CurrentInputs or the real version.
func (*Arm) DoCommand ¶ added in v0.1.0
func (a *Arm) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Arm) EndPosition ¶ added in v0.1.0
func (a *Arm) EndPosition(ctx context.Context, extra map[string]interface{}) (spatialmath.Pose, error)
EndPosition calls the injected EndPosition or the real version.
func (*Arm) Geometries ¶ added in v0.27.0
func (a *Arm) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
Geometries returns the gripper's geometries.
func (*Arm) GoToInputs ¶ added in v0.7.3
GoToInputs calls the injected GoToInputs or the real version.
func (*Arm) JointPositions ¶ added in v0.1.0
func (a *Arm) JointPositions(ctx context.Context, extra map[string]interface{}) ([]referenceframe.Input, error)
JointPositions calls the injected JointPositions or the real version.
func (*Arm) ModelFrame ¶ added in v0.2.15
func (a *Arm) ModelFrame() referenceframe.Model
ModelFrame calls the injected ModelFrame or the real version.
func (*Arm) MoveThroughJointPositions ¶ added in v0.50.0
func (a *Arm) MoveThroughJointPositions( ctx context.Context, positions [][]referenceframe.Input, options *arm.MoveOptions, extra map[string]interface{}, ) error
MoveThroughJointPositions calls the injected MoveThroughJointPositions or the real version.
func (*Arm) MoveToJointPositions ¶
func (a *Arm) MoveToJointPositions(ctx context.Context, positions []referenceframe.Input, extra map[string]interface{}) error
MoveToJointPositions calls the injected MoveToJointPositions or the real version.
func (*Arm) MoveToPosition ¶
func (a *Arm) MoveToPosition(ctx context.Context, to spatialmath.Pose, extra map[string]interface{}) error
MoveToPosition calls the injected MoveToPosition or the real version.
type AudioInput ¶ added in v0.0.8
type AudioInput struct { audioinput.AudioInput DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) StreamFunc func( ctx context.Context, errHandlers ...gostream.ErrorHandler, ) (gostream.AudioStream, error) MediaPropertiesFunc func(ctx context.Context) (prop.Audio, error) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
AudioInput is an injected audio input.
func NewAudioInput ¶ added in v0.2.36
func NewAudioInput(name string) *AudioInput
NewAudioInput returns a new injected audio input.
func (*AudioInput) Close ¶ added in v0.0.8
func (ai *AudioInput) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*AudioInput) DoCommand ¶ added in v0.1.0
func (ai *AudioInput) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*AudioInput) MediaProperties ¶ added in v0.0.8
MediaProperties calls the injected MediaProperties or the real version.
func (*AudioInput) Name ¶ added in v0.2.36
func (ai *AudioInput) Name() resource.Name
Name returns the name of the resource.
func (*AudioInput) Stream ¶ added in v0.0.8
func (ai *AudioInput) Stream( ctx context.Context, errHandlers ...gostream.ErrorHandler, ) (gostream.AudioStream, error)
Stream calls the injected Stream or the real version.
type Base ¶
type Base struct { base.Base DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) MoveStraightFunc func(ctx context.Context, distanceMm int, mmPerSec float64, extra map[string]interface{}) error SpinFunc func(ctx context.Context, angleDeg, degsPerSec float64, extra map[string]interface{}) error StopFunc func(ctx context.Context, extra map[string]interface{}) error IsMovingFunc func(context.Context) (bool, error) CloseFunc func(ctx context.Context) error SetPowerFunc func(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error SetVelocityFunc func(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error PropertiesFunc func(ctx context.Context, extra map[string]interface{}) (base.Properties, error) GeometriesFunc func(ctx context.Context) ([]spatialmath.Geometry, error) // contains filtered or unexported fields }
Base is an injected base.
func (*Base) DoCommand ¶ added in v0.1.0
func (b *Base) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Base) Geometries ¶ added in v0.3.0
func (b *Base) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
Geometries returns the base's geometries.
func (*Base) MoveStraight ¶
func (b *Base) MoveStraight(ctx context.Context, distanceMm int, mmPerSec float64, extra map[string]interface{}) error
MoveStraight calls the injected MoveStraight or the real version.
func (*Base) Properties ¶ added in v0.2.50
func (b *Base) Properties(ctx context.Context, extra map[string]interface{}) (base.Properties, error)
Properties returns the base's properties.
func (*Base) SetPower ¶ added in v0.2.5
func (b *Base) SetPower(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
SetPower calls the injected SetPower or the real version.
func (*Base) SetVelocity ¶ added in v0.3.0
func (b *Base) SetVelocity(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
SetVelocity calls the injected SetVelocity or the real version.
type BillingServiceClient ¶ added in v0.53.0
type BillingServiceClient struct { billingpb.BillingServiceClient GetCurrentMonthUsageFunc func(ctx context.Context, in *billingpb.GetCurrentMonthUsageRequest, opts ...grpc.CallOption) (*billingpb.GetCurrentMonthUsageResponse, error) GetOrgBillingInformationFunc func(ctx context.Context, in *billingpb.GetOrgBillingInformationRequest, opts ...grpc.CallOption) (*billingpb.GetOrgBillingInformationResponse, error) GetInvoicesSummaryFunc func(ctx context.Context, in *billingpb.GetInvoicesSummaryRequest, opts ...grpc.CallOption) (*billingpb.GetInvoicesSummaryResponse, error) GetInvoicePdfFunc func(ctx context.Context, in *billingpb.GetInvoicePdfRequest, opts ...grpc.CallOption) (billingpb.BillingService_GetInvoicePdfClient, error) SendPaymentRequiredEmailFunc func(ctx context.Context, in *billingpb.SendPaymentRequiredEmailRequest, opts ...grpc.CallOption) (*billingpb.SendPaymentRequiredEmailResponse, error) }
BillingServiceClient represents a fake instance of a billing service client.
func (*BillingServiceClient) GetCurrentMonthUsage ¶ added in v0.53.0
func (bsc *BillingServiceClient) GetCurrentMonthUsage(ctx context.Context, in *billingpb.GetCurrentMonthUsageRequest, opts ...grpc.CallOption, ) (*billingpb.GetCurrentMonthUsageResponse, error)
GetCurrentMonthUsage calls the injected GetCurrentMonthUsageFunc or the real version.
func (*BillingServiceClient) GetInvoicePdf ¶ added in v0.53.0
func (bsc *BillingServiceClient) GetInvoicePdf(ctx context.Context, in *billingpb.GetInvoicePdfRequest, opts ...grpc.CallOption, ) (billingpb.BillingService_GetInvoicePdfClient, error)
GetInvoicePdf calls the injected GetInvoicePdfFunc or the real version.
func (*BillingServiceClient) GetInvoicesSummary ¶ added in v0.53.0
func (bsc *BillingServiceClient) GetInvoicesSummary(ctx context.Context, in *billingpb.GetInvoicesSummaryRequest, opts ...grpc.CallOption, ) (*billingpb.GetInvoicesSummaryResponse, error)
GetInvoicesSummary calls the injected GetInvoicesSummaryFunc or the real version.
func (*BillingServiceClient) GetOrgBillingInformation ¶ added in v0.53.0
func (bsc *BillingServiceClient) GetOrgBillingInformation(ctx context.Context, in *billingpb.GetOrgBillingInformationRequest, opts ...grpc.CallOption, ) (*billingpb.GetOrgBillingInformationResponse, error)
GetOrgBillingInformation calls the injected GetOrgBillingInformationFunc or the real version.
func (*BillingServiceClient) SendPaymentRequiredEmail ¶ added in v0.53.0
func (bsc *BillingServiceClient) SendPaymentRequiredEmail(ctx context.Context, in *billingpb.SendPaymentRequiredEmailRequest, opts ...grpc.CallOption, ) (*billingpb.SendPaymentRequiredEmailResponse, error)
SendPaymentRequiredEmail calls the injected SendPaymentRequiredEmailFunc or the real version.
type BillingServiceGetInvoicePdfClient ¶ added in v0.53.0
type BillingServiceGetInvoicePdfClient struct { billingpb.BillingService_GetInvoicePdfClient RecvFunc func() (*billingpb.GetInvoicePdfResponse, error) }
BillingServiceGetInvoicePdfClient represents a fake instance of a proto BillingService_GetInvoicePdfClient.
func (*BillingServiceGetInvoicePdfClient) Recv ¶ added in v0.53.0
func (c *BillingServiceGetInvoicePdfClient) Recv() (*billingpb.GetInvoicePdfResponse, error)
Recv calls the injected RecvFunc or the real version.
type Board ¶
type Board struct { board.Board DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) AnalogByNameFunc func(name string) (board.Analog, error) DigitalInterruptByNameFunc func(name string) (board.DigitalInterrupt, error) GPIOPinByNameFunc func(name string) (board.GPIOPin, error) CloseFunc func(ctx context.Context) error SetPowerModeFunc func(ctx context.Context, mode boardpb.PowerMode, duration *time.Duration) error StreamTicksFunc func(ctx context.Context, interrupts []board.DigitalInterrupt, ch chan board.Tick, extra map[string]interface{}) error // contains filtered or unexported fields }
Board is an injected board.
func (*Board) AnalogByName ¶ added in v0.26.0
AnalogByName calls the injected AnalogByName or the real version.
func (*Board) AnalogByNameCap ¶ added in v0.26.0
func (b *Board) AnalogByNameCap() []interface{}
AnalogByNameCap returns the last parameters received by AnalogByName, and then clears them.
func (*Board) DigitalInterruptByName ¶
func (b *Board) DigitalInterruptByName(name string) (board.DigitalInterrupt, error)
DigitalInterruptByName calls the injected DigitalInterruptByName or the real version.
func (*Board) DigitalInterruptByNameCap ¶
func (b *Board) DigitalInterruptByNameCap() []interface{}
DigitalInterruptByNameCap returns the last parameters received by DigitalInterruptByName, and then clears them.
func (*Board) DoCommand ¶ added in v0.1.0
func (b *Board) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Board) GPIOPinByName ¶
GPIOPinByName calls the injected GPIOPinByName or the real version.
func (*Board) GPIOPinByNameCap ¶
func (b *Board) GPIOPinByNameCap() []interface{}
GPIOPinByNameCap returns the last parameters received by GPIOPinByName, and then clears them.
type BuildServiceClient ¶ added in v0.17.0
type BuildServiceClient struct { buildpb.BuildServiceClient ListJobsFunc func(ctx context.Context, in *buildpb.ListJobsRequest, opts ...grpc.CallOption) (*buildpb.ListJobsResponse, error) StartBuildFunc func(ctx context.Context, in *buildpb.StartBuildRequest, opts ...grpc.CallOption) (*buildpb.StartBuildResponse, error) }
BuildServiceClient is an injectable buildpb.BuildServiceClient.
func (*BuildServiceClient) ListJobs ¶ added in v0.17.0
func (bsc *BuildServiceClient) ListJobs(ctx context.Context, in *buildpb.ListJobsRequest, opts ...grpc.CallOption, ) (*buildpb.ListJobsResponse, error)
ListJobs calls the injected ListJobsFunc or the real version.
func (*BuildServiceClient) StartBuild ¶ added in v0.17.0
func (bsc *BuildServiceClient) StartBuild(ctx context.Context, in *buildpb.StartBuildRequest, opts ...grpc.CallOption, ) (*buildpb.StartBuildResponse, error)
StartBuild calls the injected StartBuildFunc or the real version.
type Camera ¶
type Camera struct { camera.Camera RTPPassthroughSource rtppassthrough.Source DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) ImageFunc func(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error) ImagesFunc func(ctx context.Context) ([]camera.NamedImage, resource.ResponseMetadata, error) StreamFunc func( ctx context.Context, errHandlers ...gostream.ErrorHandler, ) (gostream.VideoStream, error) NextPointCloudFunc func(ctx context.Context) (pointcloud.PointCloud, error) ProjectorFunc func(ctx context.Context) (transform.Projector, error) PropertiesFunc func(ctx context.Context) (camera.Properties, error) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
Camera is an injected camera.
func (*Camera) DoCommand ¶ added in v0.1.0
func (c *Camera) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Camera) Image ¶ added in v0.53.0
func (c *Camera) Image(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error)
Image calls the injected Image or the real version.
func (*Camera) Images ¶ added in v0.5.0
func (c *Camera) Images(ctx context.Context) ([]camera.NamedImage, resource.ResponseMetadata, error)
Images calls the injected Images or the real version.
func (*Camera) NextPointCloud ¶
func (c *Camera) NextPointCloud(ctx context.Context) (pointcloud.PointCloud, error)
NextPointCloud calls the injected NextPointCloud or the real version.
func (*Camera) Properties ¶ added in v0.1.0
Properties calls the injected Properties or the real version.
func (*Camera) Stream ¶ added in v0.0.8
func (c *Camera) Stream( ctx context.Context, errHandlers ...gostream.ErrorHandler, ) (gostream.VideoStream, error)
Stream calls the injected Stream or the real version.
func (*Camera) SubscribeRTP ¶ added in v0.25.0
func (c *Camera) SubscribeRTP( ctx context.Context, bufferSize int, packetsCB rtppassthrough.PacketCallback, ) (rtppassthrough.Subscription, error)
SubscribeRTP calls the injected RTPPassthroughSource or returns an error if unimplemented.
func (*Camera) Unsubscribe ¶ added in v0.25.0
func (c *Camera) Unsubscribe(ctx context.Context, id rtppassthrough.SubscriptionID) error
Unsubscribe calls the injected RTPPassthroughSource or returns an error if unimplemented.
type DataManagerService ¶
type DataManagerService struct { datamanager.Service SyncFunc func(ctx context.Context, extra map[string]interface{}) error DoCommandFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
DataManagerService represents a fake instance of an data manager service.
func NewDataManagerService ¶ added in v0.2.36
func NewDataManagerService(name string) *DataManagerService
NewDataManagerService returns a new injected data manager service.
func (*DataManagerService) Close ¶ added in v0.2.36
func (svc *DataManagerService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*DataManagerService) DoCommand ¶ added in v0.2.20
func (svc *DataManagerService) DoCommand(ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real variant.
func (*DataManagerService) Name ¶ added in v0.2.36
func (svc *DataManagerService) Name() resource.Name
Name returns the name of the resource.
type DataServiceClient ¶ added in v0.8.0
type DataServiceClient struct { datapb.DataServiceClient //nolint:deprecated,staticcheck TabularDataByFilterFunc func(ctx context.Context, in *datapb.TabularDataByFilterRequest, opts ...grpc.CallOption) (*datapb.TabularDataByFilterResponse, error) TabularDataBySQLFunc func(ctx context.Context, in *datapb.TabularDataBySQLRequest, opts ...grpc.CallOption) (*datapb.TabularDataBySQLResponse, error) TabularDataByMQLFunc func(ctx context.Context, in *datapb.TabularDataByMQLRequest, opts ...grpc.CallOption) (*datapb.TabularDataByMQLResponse, error) GetLatestTabularDataFunc func(ctx context.Context, in *datapb.GetLatestTabularDataRequest, opts ...grpc.CallOption) (*datapb.GetLatestTabularDataResponse, error) ExportTabularDataFunc func(ctx context.Context, in *datapb.ExportTabularDataRequest, opts ...grpc.CallOption) (datapb.DataService_ExportTabularDataClient, error) BinaryDataByFilterFunc func(ctx context.Context, in *datapb.BinaryDataByFilterRequest, opts ...grpc.CallOption) (*datapb.BinaryDataByFilterResponse, error) BinaryDataByIDsFunc func(ctx context.Context, in *datapb.BinaryDataByIDsRequest, opts ...grpc.CallOption) (*datapb.BinaryDataByIDsResponse, error) DeleteTabularDataFunc func(ctx context.Context, in *datapb.DeleteTabularDataRequest, opts ...grpc.CallOption) (*datapb.DeleteTabularDataResponse, error) DeleteBinaryDataByFilterFunc func(ctx context.Context, in *datapb.DeleteBinaryDataByFilterRequest, opts ...grpc.CallOption) (*datapb.DeleteBinaryDataByFilterResponse, error) DeleteBinaryDataByIDsFunc func(ctx context.Context, in *datapb.DeleteBinaryDataByIDsRequest, opts ...grpc.CallOption) (*datapb.DeleteBinaryDataByIDsResponse, error) AddTagsToBinaryDataByIDsFunc func(ctx context.Context, in *datapb.AddTagsToBinaryDataByIDsRequest, opts ...grpc.CallOption) (*datapb.AddTagsToBinaryDataByIDsResponse, error) AddTagsToBinaryDataByFilterFunc func(ctx context.Context, in *datapb.AddTagsToBinaryDataByFilterRequest, opts ...grpc.CallOption) (*datapb.AddTagsToBinaryDataByFilterResponse, error) RemoveTagsFromBinaryDataByIDsFunc func(ctx context.Context, in *datapb.RemoveTagsFromBinaryDataByIDsRequest, opts ...grpc.CallOption) (*datapb.RemoveTagsFromBinaryDataByIDsResponse, error) RemoveTagsFromBinaryDataByFilterFunc func(ctx context.Context, in *datapb.RemoveTagsFromBinaryDataByFilterRequest, opts ...grpc.CallOption) (*datapb.RemoveTagsFromBinaryDataByFilterResponse, error) TagsByFilterFunc func(ctx context.Context, in *datapb.TagsByFilterRequest, opts ...grpc.CallOption) (*datapb.TagsByFilterResponse, error) AddBoundingBoxToImageByIDFunc func(ctx context.Context, in *datapb.AddBoundingBoxToImageByIDRequest, opts ...grpc.CallOption) (*datapb.AddBoundingBoxToImageByIDResponse, error) RemoveBoundingBoxFromImageByIDFunc func(ctx context.Context, in *datapb.RemoveBoundingBoxFromImageByIDRequest, opts ...grpc.CallOption) (*datapb.RemoveBoundingBoxFromImageByIDResponse, error) BoundingBoxLabelsByFilterFunc func(ctx context.Context, in *datapb.BoundingBoxLabelsByFilterRequest, opts ...grpc.CallOption) (*datapb.BoundingBoxLabelsByFilterResponse, error) UpdateBoundingBoxFunc func(ctx context.Context, in *datapb.UpdateBoundingBoxRequest, opts ...grpc.CallOption) (*datapb.UpdateBoundingBoxResponse, error) GetDatabaseConnectionFunc func(ctx context.Context, in *datapb.GetDatabaseConnectionRequest, opts ...grpc.CallOption) (*datapb.GetDatabaseConnectionResponse, error) ConfigureDatabaseUserFunc func(ctx context.Context, in *datapb.ConfigureDatabaseUserRequest, opts ...grpc.CallOption) (*datapb.ConfigureDatabaseUserResponse, error) AddBinaryDataToDatasetByIDsFunc func(ctx context.Context, in *datapb.AddBinaryDataToDatasetByIDsRequest, opts ...grpc.CallOption) (*datapb.AddBinaryDataToDatasetByIDsResponse, error) RemoveBinaryDataFromDatasetByIDsFunc func(ctx context.Context, in *datapb.RemoveBinaryDataFromDatasetByIDsRequest, opts ...grpc.CallOption) (*datapb.RemoveBinaryDataFromDatasetByIDsResponse, error) }
DataServiceClient represents a fake instance of a data service client.
func (*DataServiceClient) AddBinaryDataToDatasetByIDs ¶ added in v0.52.0
func (client *DataServiceClient) AddBinaryDataToDatasetByIDs(ctx context.Context, in *datapb.AddBinaryDataToDatasetByIDsRequest, opts ...grpc.CallOption, ) (*datapb.AddBinaryDataToDatasetByIDsResponse, error)
AddBinaryDataToDatasetByIDs calls the injected AddBinaryDataToDatasetByIDs or the real version.
func (*DataServiceClient) AddBoundingBoxToImageByID ¶ added in v0.52.0
func (client *DataServiceClient) AddBoundingBoxToImageByID(ctx context.Context, in *datapb.AddBoundingBoxToImageByIDRequest, opts ...grpc.CallOption, ) (*datapb.AddBoundingBoxToImageByIDResponse, error)
AddBoundingBoxToImageByID calls the injected AddBoundingBoxToImageByID or the real version.
func (*DataServiceClient) AddTagsToBinaryDataByFilter ¶ added in v0.52.0
func (client *DataServiceClient) AddTagsToBinaryDataByFilter(ctx context.Context, in *datapb.AddTagsToBinaryDataByFilterRequest, opts ...grpc.CallOption, ) (*datapb.AddTagsToBinaryDataByFilterResponse, error)
AddTagsToBinaryDataByFilter calls the injected AddTagsToBinaryDataByFilter or the real version.
func (*DataServiceClient) AddTagsToBinaryDataByIDs ¶ added in v0.52.0
func (client *DataServiceClient) AddTagsToBinaryDataByIDs(ctx context.Context, in *datapb.AddTagsToBinaryDataByIDsRequest, opts ...grpc.CallOption, ) (*datapb.AddTagsToBinaryDataByIDsResponse, error)
AddTagsToBinaryDataByIDs calls the injected AddTagsToBinaryDataByIDs or the real version.
func (*DataServiceClient) BinaryDataByFilter ¶ added in v0.52.0
func (client *DataServiceClient) BinaryDataByFilter(ctx context.Context, in *datapb.BinaryDataByFilterRequest, opts ...grpc.CallOption, ) (*datapb.BinaryDataByFilterResponse, error)
BinaryDataByFilter calls the injected BinaryDataByFilter or the real version.
func (*DataServiceClient) BinaryDataByIDs ¶ added in v0.52.0
func (client *DataServiceClient) BinaryDataByIDs(ctx context.Context, in *datapb.BinaryDataByIDsRequest, opts ...grpc.CallOption, ) (*datapb.BinaryDataByIDsResponse, error)
BinaryDataByIDs calls the injected BinaryDataByIDs or the real version.
func (*DataServiceClient) BoundingBoxLabelsByFilter ¶ added in v0.52.0
func (client *DataServiceClient) BoundingBoxLabelsByFilter(ctx context.Context, in *datapb.BoundingBoxLabelsByFilterRequest, opts ...grpc.CallOption, ) (*datapb.BoundingBoxLabelsByFilterResponse, error)
BoundingBoxLabelsByFilter calls the injected BoundingBoxLabelsByFilter or the real version.
func (*DataServiceClient) ConfigureDatabaseUser ¶ added in v0.52.0
func (client *DataServiceClient) ConfigureDatabaseUser(ctx context.Context, in *datapb.ConfigureDatabaseUserRequest, opts ...grpc.CallOption, ) (*datapb.ConfigureDatabaseUserResponse, error)
ConfigureDatabaseUser calls the injected ConfigureDatabaseUser or the real version.
func (*DataServiceClient) DeleteBinaryDataByFilter ¶ added in v0.52.0
func (client *DataServiceClient) DeleteBinaryDataByFilter(ctx context.Context, in *datapb.DeleteBinaryDataByFilterRequest, opts ...grpc.CallOption, ) (*datapb.DeleteBinaryDataByFilterResponse, error)
DeleteBinaryDataByFilter calls the injected DeleteBinaryDataByFilter or the real version.
func (*DataServiceClient) DeleteBinaryDataByIDs ¶ added in v0.52.0
func (client *DataServiceClient) DeleteBinaryDataByIDs(ctx context.Context, in *datapb.DeleteBinaryDataByIDsRequest, opts ...grpc.CallOption, ) (*datapb.DeleteBinaryDataByIDsResponse, error)
DeleteBinaryDataByIDs calls the injected DeleteBinaryDataByIDs or the real version.
func (*DataServiceClient) DeleteTabularData ¶ added in v0.52.0
func (client *DataServiceClient) DeleteTabularData(ctx context.Context, in *datapb.DeleteTabularDataRequest, opts ...grpc.CallOption, ) (*datapb.DeleteTabularDataResponse, error)
DeleteTabularData calls the injected DeleteTabularData or the real version.
func (*DataServiceClient) ExportTabularData ¶ added in v0.56.0
func (client *DataServiceClient) ExportTabularData(ctx context.Context, in *datapb.ExportTabularDataRequest, opts ...grpc.CallOption, ) (datapb.DataService_ExportTabularDataClient, error)
ExportTabularData calls the injected ExportTabularData or the real version.
func (*DataServiceClient) GetDatabaseConnection ¶ added in v0.52.0
func (client *DataServiceClient) GetDatabaseConnection(ctx context.Context, in *datapb.GetDatabaseConnectionRequest, opts ...grpc.CallOption, ) (*datapb.GetDatabaseConnectionResponse, error)
GetDatabaseConnection calls the injected GetDatabaseConnection or the real version.
func (*DataServiceClient) GetLatestTabularData ¶ added in v0.54.0
func (client *DataServiceClient) GetLatestTabularData(ctx context.Context, in *datapb.GetLatestTabularDataRequest, opts ...grpc.CallOption, ) (*datapb.GetLatestTabularDataResponse, error)
GetLatestTabularData calls the injected GetLatestTabularData or the real version.
func (*DataServiceClient) RemoveBinaryDataFromDatasetByIDs ¶ added in v0.52.0
func (client *DataServiceClient) RemoveBinaryDataFromDatasetByIDs(ctx context.Context, in *datapb.RemoveBinaryDataFromDatasetByIDsRequest, opts ...grpc.CallOption, ) (*datapb.RemoveBinaryDataFromDatasetByIDsResponse, error)
RemoveBinaryDataFromDatasetByIDs calls the injected RemoveBinaryDataFromDatasetByIDs or the real version.
func (*DataServiceClient) RemoveBoundingBoxFromImageByID ¶ added in v0.52.0
func (client *DataServiceClient) RemoveBoundingBoxFromImageByID(ctx context.Context, in *datapb.RemoveBoundingBoxFromImageByIDRequest, opts ...grpc.CallOption, ) (*datapb.RemoveBoundingBoxFromImageByIDResponse, error)
RemoveBoundingBoxFromImageByID calls the injected RemoveBoundingBoxFromImageByID or the real version.
func (*DataServiceClient) RemoveTagsFromBinaryDataByFilter ¶ added in v0.52.0
func (client *DataServiceClient) RemoveTagsFromBinaryDataByFilter(ctx context.Context, in *datapb.RemoveTagsFromBinaryDataByFilterRequest, opts ...grpc.CallOption, ) (*datapb.RemoveTagsFromBinaryDataByFilterResponse, error)
RemoveTagsFromBinaryDataByFilter calls the injected RemoveTagsFromBinaryDataByFilter or the real version.
func (*DataServiceClient) RemoveTagsFromBinaryDataByIDs ¶ added in v0.52.0
func (client *DataServiceClient) RemoveTagsFromBinaryDataByIDs(ctx context.Context, in *datapb.RemoveTagsFromBinaryDataByIDsRequest, opts ...grpc.CallOption, ) (*datapb.RemoveTagsFromBinaryDataByIDsResponse, error)
RemoveTagsFromBinaryDataByIDs calls the injected RemoveTagsFromBinaryDataByIDs or the real version.
func (*DataServiceClient) TabularDataByFilter ¶ added in v0.8.0
func (client *DataServiceClient) TabularDataByFilter(ctx context.Context, in *datapb.TabularDataByFilterRequest, opts ...grpc.CallOption, ) (*datapb.TabularDataByFilterResponse, error)
TabularDataByFilter calls the injected TabularDataByFilter or the real version.
func (*DataServiceClient) TabularDataByMQL ¶ added in v0.52.0
func (client *DataServiceClient) TabularDataByMQL(ctx context.Context, in *datapb.TabularDataByMQLRequest, opts ...grpc.CallOption, ) (*datapb.TabularDataByMQLResponse, error)
TabularDataByMQL calls the injected TabularDataByMQL or the real version.
func (*DataServiceClient) TabularDataBySQL ¶ added in v0.52.0
func (client *DataServiceClient) TabularDataBySQL(ctx context.Context, in *datapb.TabularDataBySQLRequest, opts ...grpc.CallOption, ) (*datapb.TabularDataBySQLResponse, error)
TabularDataBySQL calls the injected TabularDataBySQL or the real version.
func (*DataServiceClient) TagsByFilter ¶ added in v0.52.0
func (client *DataServiceClient) TagsByFilter(ctx context.Context, in *datapb.TagsByFilterRequest, opts ...grpc.CallOption, ) (*datapb.TagsByFilterResponse, error)
TagsByFilter calls the injected TagsByFilter or the real version.
func (*DataServiceClient) UpdateBoundingBox ¶ added in v0.52.0
func (client *DataServiceClient) UpdateBoundingBox(ctx context.Context, in *datapb.UpdateBoundingBoxRequest, opts ...grpc.CallOption, ) (*datapb.UpdateBoundingBoxResponse, error)
UpdateBoundingBox calls the injected UpdateBoundingBox or the real version.
type DataServiceExportTabularDataClient ¶ added in v0.56.0
type DataServiceExportTabularDataClient struct { datapb.DataService_ExportTabularDataClient RecvFunc func() (*datapb.ExportTabularDataResponse, error) }
DataServiceExportTabularDataClient represents a fake instance of a proto DataService_ExportTabularDataClient.
func (*DataServiceExportTabularDataClient) Recv ¶ added in v0.56.0
func (c *DataServiceExportTabularDataClient) Recv() (*datapb.ExportTabularDataResponse, error)
Recv calls the injected RecvFunc or the real version.
type DataSyncServiceClient ¶ added in v0.52.0
type DataSyncServiceClient struct { datapb.DataSyncServiceClient DataCaptureUploadFunc func(ctx context.Context, in *datapb.DataCaptureUploadRequest, opts ...grpc.CallOption) (*datapb.DataCaptureUploadResponse, error) FileUploadFunc func(ctx context.Context, opts ...grpc.CallOption) (datapb.DataSyncService_FileUploadClient, error) StreamingDataCaptureUploadFunc func(ctx context.Context, opts ...grpc.CallOption) (datapb.DataSyncService_StreamingDataCaptureUploadClient, error) }
DataSyncServiceClient represents a fake instance of a data sync service client.
func (*DataSyncServiceClient) DataCaptureUpload ¶ added in v0.52.0
func (client *DataSyncServiceClient) DataCaptureUpload(ctx context.Context, in *datapb.DataCaptureUploadRequest, opts ...grpc.CallOption, ) (*datapb.DataCaptureUploadResponse, error)
DataCaptureUpload calls the injected DataCaptureUpload or the real version.
func (*DataSyncServiceClient) FileUpload ¶ added in v0.52.0
func (client *DataSyncServiceClient) FileUpload(ctx context.Context, opts ...grpc.CallOption, ) (datapb.DataSyncService_FileUploadClient, error)
FileUpload calls the injected FileUpload or the real version.
func (*DataSyncServiceClient) StreamingDataCaptureUpload ¶ added in v0.52.0
func (client *DataSyncServiceClient) StreamingDataCaptureUpload(ctx context.Context, opts ...grpc.CallOption, ) (datapb.DataSyncService_StreamingDataCaptureUploadClient, error)
StreamingDataCaptureUpload calls the injected StreamingDataCaptureUpload or the real version.
type DataSyncServiceFileUploadClient ¶ added in v0.52.0
type DataSyncServiceFileUploadClient struct { datapb.DataSyncService_FileUploadClient SendFunc func(*datapb.FileUploadRequest) error CloseAndRecvFunc func() (*datapb.FileUploadResponse, error) }
DataSyncServiceFileUploadClient represents a fake instance of a FileUpload client.
func (*DataSyncServiceFileUploadClient) CloseAndRecv ¶ added in v0.52.0
func (client *DataSyncServiceFileUploadClient) CloseAndRecv() (*datapb.FileUploadResponse, error)
CloseAndRecv calls the injected CloseAndRecv or the real version.
func (*DataSyncServiceFileUploadClient) Send ¶ added in v0.52.0
func (client *DataSyncServiceFileUploadClient) Send(req *datapb.FileUploadRequest) error
Send calls the injected Send or the real version.
type DataSyncServiceStreamingDataCaptureUploadClient ¶ added in v0.52.0
type DataSyncServiceStreamingDataCaptureUploadClient struct { datapb.DataSyncService_StreamingDataCaptureUploadClient SendFunc func(*datapb.StreamingDataCaptureUploadRequest) error CloseAndRecvFunc func() (*datapb.StreamingDataCaptureUploadResponse, error) }
DataSyncServiceStreamingDataCaptureUploadClient represents a fake instance of a StreamingDataCaptureUpload client.
func (*DataSyncServiceStreamingDataCaptureUploadClient) CloseAndRecv ¶ added in v0.52.0
func (client *DataSyncServiceStreamingDataCaptureUploadClient) CloseAndRecv() (*datapb.StreamingDataCaptureUploadResponse, error)
CloseAndRecv calls the injected CloseAndRecv or the real version.
func (*DataSyncServiceStreamingDataCaptureUploadClient) Send ¶ added in v0.52.0
func (client *DataSyncServiceStreamingDataCaptureUploadClient) Send(req *datapb.StreamingDataCaptureUploadRequest) error
Send calls the injected Send or the real version.
type DatasetServiceClient ¶ added in v0.53.0
type DatasetServiceClient struct { datasetpb.DatasetServiceClient CreateDatasetFunc func(ctx context.Context, in *datasetpb.CreateDatasetRequest, opts ...grpc.CallOption) (*datasetpb.CreateDatasetResponse, error) DeleteDatasetFunc func(ctx context.Context, in *datasetpb.DeleteDatasetRequest, opts ...grpc.CallOption) (*datasetpb.DeleteDatasetResponse, error) RenameDatasetFunc func(ctx context.Context, in *datasetpb.RenameDatasetRequest, opts ...grpc.CallOption) (*datasetpb.RenameDatasetResponse, error) ListDatasetsByOrganizationIDFunc func(ctx context.Context, in *datasetpb.ListDatasetsByOrganizationIDRequest, opts ...grpc.CallOption) (*datasetpb.ListDatasetsByOrganizationIDResponse, error) ListDatasetsByIDsFunc func(ctx context.Context, in *datasetpb.ListDatasetsByIDsRequest, opts ...grpc.CallOption) (*datasetpb.ListDatasetsByIDsResponse, error) }
DatasetServiceClient represents a fake instance of a dataset service client.
func (*DatasetServiceClient) CreateDataset ¶ added in v0.53.0
func (client *DatasetServiceClient) CreateDataset(ctx context.Context, in *datasetpb.CreateDatasetRequest, opts ...grpc.CallOption, ) (*datasetpb.CreateDatasetResponse, error)
CreateDataset calls the injected CreateDataset or the real version.
func (*DatasetServiceClient) DeleteDataset ¶ added in v0.53.0
func (client *DatasetServiceClient) DeleteDataset(ctx context.Context, in *datasetpb.DeleteDatasetRequest, opts ...grpc.CallOption, ) (*datasetpb.DeleteDatasetResponse, error)
DeleteDataset calls the injected DeleteDataset or the real version.
func (*DatasetServiceClient) ListDatasetsByIDs ¶ added in v0.53.0
func (client *DatasetServiceClient) ListDatasetsByIDs(ctx context.Context, in *datasetpb.ListDatasetsByIDsRequest, opts ...grpc.CallOption, ) (*datasetpb.ListDatasetsByIDsResponse, error)
ListDatasetsByIDs calls the injected ListDatasetsByIDs or the real version.
func (*DatasetServiceClient) ListDatasetsByOrganizationID ¶ added in v0.53.0
func (client *DatasetServiceClient) ListDatasetsByOrganizationID(ctx context.Context, in *datasetpb.ListDatasetsByOrganizationIDRequest, opts ...grpc.CallOption, ) (*datasetpb.ListDatasetsByOrganizationIDResponse, error)
ListDatasetsByOrganizationID calls the injected ListDatasetsByOrganizationID or the real version.
func (*DatasetServiceClient) RenameDataset ¶ added in v0.53.0
func (client *DatasetServiceClient) RenameDataset(ctx context.Context, in *datasetpb.RenameDatasetRequest, opts ...grpc.CallOption, ) (*datasetpb.RenameDatasetResponse, error)
RenameDataset calls the injected RenameDataset or the real version.
type DigitalInterrupt ¶
type DigitalInterrupt struct { board.DigitalInterrupt ValueFunc func(ctx context.Context, extra map[string]interface{}) (int64, error) TickFunc func(ctx context.Context, high bool, nanoseconds uint64) error AddCallbackFunc func(c chan board.Tick) NameFunc func() string // contains filtered or unexported fields }
DigitalInterrupt is an injected digital interrupt.
func (*DigitalInterrupt) Name ¶ added in v0.26.0
func (d *DigitalInterrupt) Name() string
Name calls the injected name or the real version.
func (*DigitalInterrupt) TickCap ¶
func (d *DigitalInterrupt) TickCap() []interface{}
TickCap returns the last parameters received by Tick, and then clears them.
func (*DigitalInterrupt) ValueCap ¶
func (d *DigitalInterrupt) ValueCap() []interface{}
ValueCap returns the last parameters received by Value, and then clears them.
type DiscoveryService ¶ added in v0.58.0
type DiscoveryService struct { discovery.Service DiscoverResourcesFunc func(ctx context.Context, extra map[string]any) ([]resource.Config, error) DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) // contains filtered or unexported fields }
DiscoveryService is an injectable discovery service.
func NewDiscoveryService ¶ added in v0.58.0
func NewDiscoveryService(name string) *DiscoveryService
NewDiscoveryService returns a new injected discovery service.
func (*DiscoveryService) DiscoverResources ¶ added in v0.58.0
func (disSvc *DiscoveryService) DiscoverResources(ctx context.Context, extra map[string]any) ([]resource.Config, error)
DiscoverResources calls the injected DiscoverResourcesFunc or the real version.
func (*DiscoveryService) DoCommand ¶ added in v0.58.0
func (disSvc *DiscoveryService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*DiscoveryService) Name ¶ added in v0.58.0
func (disSvc *DiscoveryService) Name() resource.Name
Name returns the name of the resource.
type Encoder ¶ added in v0.2.34
type Encoder struct { encoder.Encoder DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) ResetPositionFunc func(ctx context.Context, extra map[string]interface{}) error PositionFunc func(ctx context.Context, positionType encoder.PositionType, extra map[string]interface{}, ) (float64, encoder.PositionType, error) PropertiesFunc func(ctx context.Context, extra map[string]interface{}) (encoder.Properties, error) // contains filtered or unexported fields }
Encoder is an injected encoder.
func NewEncoder ¶ added in v0.2.36
NewEncoder returns a new injected Encoder.
func (*Encoder) DoCommand ¶ added in v0.2.34
func (e *Encoder) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Encoder) Position ¶ added in v0.2.50
func (e *Encoder) Position( ctx context.Context, positionType encoder.PositionType, extra map[string]interface{}, ) (float64, encoder.PositionType, error)
Position calls the injected Position or the real version.
func (*Encoder) Properties ¶ added in v0.2.50
func (e *Encoder) Properties(ctx context.Context, extra map[string]interface{}) (encoder.Properties, error)
Properties calls the injected Properties or the real version.
type EndUserServiceClient ¶ added in v0.28.0
type EndUserServiceClient struct { apppb.EndUserServiceClient RegisterAuthApplicationFunc func(ctx context.Context, in *apppb.RegisterAuthApplicationRequest, opts ...grpc.CallOption, ) (*apppb.RegisterAuthApplicationResponse, error) UpdateAuthApplicationFunc func(ctx context.Context, in *apppb.UpdateAuthApplicationRequest, opts ...grpc.CallOption, ) (*apppb.UpdateAuthApplicationResponse, error) GetAuthApplicationFunc func(ctx context.Context, in *apppb.GetAuthApplicationRequest, opts ...grpc.CallOption, ) (*apppb.GetAuthApplicationResponse, error) }
EndUserServiceClient represents a fake instance of an end user service client.
func (*EndUserServiceClient) GetAuthApplication ¶ added in v0.29.0
func (eusc *EndUserServiceClient) GetAuthApplication(ctx context.Context, in *apppb.GetAuthApplicationRequest, opts ...grpc.CallOption, ) (*apppb.GetAuthApplicationResponse, error)
GetAuthApplication calls the injected GetAuthApplication or the real version.
func (*EndUserServiceClient) RegisterAuthApplication ¶ added in v0.28.0
func (eusc *EndUserServiceClient) RegisterAuthApplication(ctx context.Context, in *apppb.RegisterAuthApplicationRequest, opts ...grpc.CallOption, ) (*apppb.RegisterAuthApplicationResponse, error)
RegisterAuthApplication calls the injected RegisterAuthApplicationFunc or the real version.
func (*EndUserServiceClient) UpdateAuthApplication ¶ added in v0.28.0
func (eusc *EndUserServiceClient) UpdateAuthApplication(ctx context.Context, in *apppb.UpdateAuthApplicationRequest, opts ...grpc.CallOption, ) (*apppb.UpdateAuthApplicationResponse, error)
UpdateAuthApplication calls the injected UpdateAuthApplicationFunc or the real version.
type FrameSystemService ¶ added in v0.5.0
type FrameSystemService struct { framesystem.Service TransformPoseFunc func( ctx context.Context, pose *referenceframe.PoseInFrame, dst string, additionalTransforms []*referenceframe.LinkInFrame, ) (*referenceframe.PoseInFrame, error) TransformPointCloudFunc func( ctx context.Context, srcpc pointcloud.PointCloud, srcName, dstName string, ) (pointcloud.PointCloud, error) CurrentInputsFunc func(ctx context.Context) (referenceframe.FrameSystemInputs, map[string]framesystem.InputEnabled, error) FrameSystemFunc func( ctx context.Context, additionalTransforms []*referenceframe.LinkInFrame, ) (referenceframe.FrameSystem, error) DoCommandFunc func( ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
FrameSystemService represents a fake instance of a framesystem service. Due to the nature of the framesystem service, there should never be more than one on a robot. If you use an injected frame system, do not also create the system's default frame system as well.
func NewFrameSystemService ¶ added in v0.5.0
func NewFrameSystemService(name string) *FrameSystemService
NewFrameSystemService returns a new injected framesystem service.
func (*FrameSystemService) Close ¶ added in v0.5.0
func (fs *FrameSystemService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*FrameSystemService) CurrentInputs ¶ added in v0.5.0
func (fs *FrameSystemService) CurrentInputs( ctx context.Context, ) (referenceframe.FrameSystemInputs, map[string]framesystem.InputEnabled, error)
CurrentInputs calls the injected method or the real variant.
func (*FrameSystemService) DoCommand ¶ added in v0.5.0
func (fs *FrameSystemService) DoCommand(ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real variant.
func (*FrameSystemService) FrameSystem ¶ added in v0.5.0
func (fs *FrameSystemService) FrameSystem( ctx context.Context, additionalTransforms []*referenceframe.LinkInFrame, ) (referenceframe.FrameSystem, error)
FrameSystem calls the injected method of the real variant.
func (*FrameSystemService) Name ¶ added in v0.5.0
func (fs *FrameSystemService) Name() resource.Name
Name returns the name of the resource.
func (*FrameSystemService) TransformPointCloud ¶ added in v0.5.0
func (fs *FrameSystemService) TransformPointCloud( ctx context.Context, srcpc pointcloud.PointCloud, srcName, dstName string, ) (pointcloud.PointCloud, error)
TransformPointCloud calls the injected method or the real variant.
func (*FrameSystemService) TransformPose ¶ added in v0.5.0
func (fs *FrameSystemService) TransformPose( ctx context.Context, pose *referenceframe.PoseInFrame, dst string, additionalTransforms []*referenceframe.LinkInFrame, ) (*referenceframe.PoseInFrame, error)
TransformPose calls the injected method or the real variant.
type GPIOPin ¶
type GPIOPin struct { board.GPIOPin SetFunc func(ctx context.Context, high bool, extra map[string]interface{}) error GetFunc func(ctx context.Context, extra map[string]interface{}) (bool, error) PWMFunc func(ctx context.Context, extra map[string]interface{}) (float64, error) SetPWMFunc func(ctx context.Context, dutyCyclePct float64, extra map[string]interface{}) error PWMFreqFunc func(ctx context.Context, extra map[string]interface{}) (uint, error) SetPWMFreqFunc func(ctx context.Context, freqHz uint, extra map[string]interface{}) error // contains filtered or unexported fields }
GPIOPin is an injected GPIOPin.
func (*GPIOPin) GetCap ¶
func (gp *GPIOPin) GetCap() []interface{}
GetCap returns the last parameters received by Get, and then clears them.
func (*GPIOPin) PWMCap ¶
func (gp *GPIOPin) PWMCap() []interface{}
PWMCap returns the last parameters received by PWM, and then clears them.
func (*GPIOPin) PWMFreqCap ¶
func (gp *GPIOPin) PWMFreqCap() []interface{}
PWMFreqCap returns the last parameters received by PWMFreq, and then clears them.
func (*GPIOPin) SetCap ¶
func (gp *GPIOPin) SetCap() []interface{}
SetCap returns the last parameters received by Set, and then clears them.
func (*GPIOPin) SetPWM ¶
func (gp *GPIOPin) SetPWM(ctx context.Context, dutyCyclePct float64, extra map[string]interface{}) error
SetPWM calls the injected SetPWM or the real version.
func (*GPIOPin) SetPWMCap ¶
func (gp *GPIOPin) SetPWMCap() []interface{}
SetPWMCap returns the last parameters received by SetPWM, and then clears them.
func (*GPIOPin) SetPWMFreq ¶
SetPWMFreq calls the injected SetPWMFreq or the real version.
func (*GPIOPin) SetPWMFreqCap ¶
func (gp *GPIOPin) SetPWMFreqCap() []interface{}
SetPWMFreqCap returns the last parameters received by SetPWMFreq, and then clears them.
type Gantry ¶
type Gantry struct { gantry.Gantry DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) PositionFunc func(ctx context.Context, extra map[string]interface{}) ([]float64, error) MoveToPositionFunc func(ctx context.Context, pos, speed []float64, extra map[string]interface{}) error LengthsFunc func(ctx context.Context, extra map[string]interface{}) ([]float64, error) StopFunc func(ctx context.Context, extra map[string]interface{}) error HomeFunc func(ctx context.Context, extra map[string]interface{}) (bool, error) IsMovingFunc func(context.Context) (bool, error) CloseFunc func(ctx context.Context) error ModelFrameFunc func() referenceframe.Model // contains filtered or unexported fields }
Gantry is an injected gantry.
func (*Gantry) DoCommand ¶ added in v0.1.0
func (g *Gantry) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Gantry) ModelFrame ¶
func (g *Gantry) ModelFrame() referenceframe.Model
ModelFrame returns a Gantry ModelFrame.
func (*Gantry) MoveToPosition ¶
func (g *Gantry) MoveToPosition(ctx context.Context, positions, speeds []float64, extra map[string]interface{}) error
MoveToPosition calls the injected MoveToPosition or the real version.
type GenericComponent ¶ added in v0.20.0
type GenericComponent struct { resource.Resource DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) // contains filtered or unexported fields }
GenericComponent is an injectable generic component.
func NewGenericComponent ¶ added in v0.20.0
func NewGenericComponent(name string) *GenericComponent
NewGenericComponent returns a new injected generic component.
func (*GenericComponent) DoCommand ¶ added in v0.20.0
func (g *GenericComponent) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*GenericComponent) Name ¶ added in v0.20.0
func (g *GenericComponent) Name() resource.Name
Name returns the name of the resource.
type GenericService ¶ added in v0.20.0
type GenericService struct { resource.Resource DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) // contains filtered or unexported fields }
GenericService is an injectable generic service.
func NewGenericService ¶ added in v0.20.0
func NewGenericService(name string) *GenericService
NewGenericService returns a new injected generic service.
func (*GenericService) DoCommand ¶ added in v0.20.0
func (g *GenericService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*GenericService) Name ¶ added in v0.20.0
func (g *GenericService) Name() resource.Name
Name returns the name of the resource.
type Gripper ¶
type Gripper struct { gripper.Gripper DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) OpenFunc func(ctx context.Context, extra map[string]interface{}) error GrabFunc func(ctx context.Context, extra map[string]interface{}) (bool, error) StopFunc func(ctx context.Context, extra map[string]interface{}) error IsMovingFunc func(context.Context) (bool, error) CloseFunc func(ctx context.Context) error GeometriesFunc func(ctx context.Context) ([]spatialmath.Geometry, error) // contains filtered or unexported fields }
Gripper is an injected gripper.
func NewGripper ¶ added in v0.2.36
NewGripper returns a new injected gripper.
func (*Gripper) DoCommand ¶ added in v0.1.0
func (g *Gripper) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Gripper) Geometries ¶ added in v0.27.0
func (g *Gripper) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
Geometries returns the gripper's geometries.
type I2CHandle ¶ added in v0.2.25
type I2CHandle struct { buses.I2CHandle WriteFunc func(ctx context.Context, tx []byte) error ReadFunc func(ctx context.Context, count int) ([]byte, error) ReadByteDataFunc func(ctx context.Context, register byte) (byte, error) WriteByteDataFunc func(ctx context.Context, register, data byte) error ReadBlockDataFunc func(ctx context.Context, register byte, numBytes uint8) ([]byte, error) WriteBlockDataFunc func(ctx context.Context, register byte, data []byte) error CloseFunc func() error }
I2CHandle is an injected I2CHandle.
func (*I2CHandle) ReadBlockData ¶ added in v0.2.25
func (handle *I2CHandle) ReadBlockData(ctx context.Context, register byte, numBytes uint8) ([]byte, error)
ReadBlockData calls the injected ReadBlockDataFunc or the real version.
func (*I2CHandle) ReadByteData ¶ added in v0.2.36
ReadByteData calls the injected ReadByteDataFunc or the real version.
func (*I2CHandle) WriteBlockData ¶ added in v0.2.36
WriteBlockData calls the injected WriteBlockDataFunc or the real version.
type InputController ¶
type InputController struct { input.Controller DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) ControlsFunc func(ctx context.Context, extra map[string]interface{}) ([]input.Control, error) EventsFunc func(ctx context.Context, extra map[string]interface{}) (map[input.Control]input.Event, error) RegisterControlCallbackFunc func( ctx context.Context, control input.Control, triggers []input.EventType, ctrlFunc input.ControlFunction, extra map[string]interface{}, ) error // contains filtered or unexported fields }
InputController is an injected InputController.
func NewInputController ¶ added in v0.2.36
func NewInputController(name string) *InputController
NewInputController returns a new injected input controller.
func (*InputController) Controls ¶ added in v0.1.0
func (s *InputController) Controls(ctx context.Context, extra map[string]interface{}) ([]input.Control, error)
Controls calls the injected function or the real version.
func (*InputController) DoCommand ¶ added in v0.1.0
func (s *InputController) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*InputController) Events ¶ added in v0.1.0
func (s *InputController) Events(ctx context.Context, extra map[string]interface{}) (map[input.Control]input.Event, error)
Events calls the injected function or the real version.
func (*InputController) Name ¶ added in v0.2.36
func (s *InputController) Name() resource.Name
Name returns the name of the resource.
func (*InputController) RegisterControlCallback ¶
func (s *InputController) RegisterControlCallback( ctx context.Context, control input.Control, triggers []input.EventType, ctrlFunc input.ControlFunction, extra map[string]interface{}, ) error
RegisterControlCallback calls the injected function or the real version.
type MLModelService ¶ added in v0.2.34
type MLModelService struct { mlmodel.Service InferFunc func(ctx context.Context, tensors ml.Tensors) (ml.Tensors, error) MetadataFunc func(ctx context.Context) (mlmodel.MLMetadata, error) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
MLModelService represents a fake instance of an MLModel service.
func NewMLModelService ¶ added in v0.2.36
func NewMLModelService(name string) *MLModelService
NewMLModelService returns a new injected mlmodel service.
func (*MLModelService) Close ¶ added in v0.2.36
func (s *MLModelService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*MLModelService) Metadata ¶ added in v0.2.34
func (s *MLModelService) Metadata(ctx context.Context) (mlmodel.MLMetadata, error)
Metadata calls the injected Metadata or the real variant.
func (*MLModelService) Name ¶ added in v0.2.36
func (s *MLModelService) Name() resource.Name
Name returns the name of the resource.
type MLTrainingServiceClient ¶ added in v0.54.0
type MLTrainingServiceClient struct { mltrainingpb.MLTrainingServiceClient SubmitTrainingJobFunc func(ctx context.Context, in *mltrainingpb.SubmitTrainingJobRequest, opts ...grpc.CallOption) (*mltrainingpb.SubmitTrainingJobResponse, error) SubmitCustomTrainingJobFunc func(ctx context.Context, in *mltrainingpb.SubmitCustomTrainingJobRequest, opts ...grpc.CallOption) (*mltrainingpb.SubmitCustomTrainingJobResponse, error) GetTrainingJobFunc func(ctx context.Context, in *mltrainingpb.GetTrainingJobRequest, opts ...grpc.CallOption) (*mltrainingpb.GetTrainingJobResponse, error) ListTrainingJobsFunc func(ctx context.Context, in *mltrainingpb.ListTrainingJobsRequest, opts ...grpc.CallOption) (*mltrainingpb.ListTrainingJobsResponse, error) CancelTrainingJobFunc func(ctx context.Context, in *mltrainingpb.CancelTrainingJobRequest, opts ...grpc.CallOption) (*mltrainingpb.CancelTrainingJobResponse, error) DeleteCompletedTrainingJobFunc func(ctx context.Context, in *mltrainingpb.DeleteCompletedTrainingJobRequest, opts ...grpc.CallOption) (*mltrainingpb.DeleteCompletedTrainingJobResponse, error) GetTrainingJobLogsFunc func(ctx context.Context, in *mltrainingpb.GetTrainingJobLogsRequest, opts ...grpc.CallOption) (*mltrainingpb.GetTrainingJobLogsResponse, error) }
MLTrainingServiceClient represents a fake instance of a ML training service client.
func (*MLTrainingServiceClient) CancelTrainingJob ¶ added in v0.54.0
func (client *MLTrainingServiceClient) CancelTrainingJob(ctx context.Context, in *mltrainingpb.CancelTrainingJobRequest, opts ...grpc.CallOption, ) (*mltrainingpb.CancelTrainingJobResponse, error)
CancelTrainingJob calls the injected CancelTrainingJob or the real version.
func (*MLTrainingServiceClient) DeleteCompletedTrainingJob ¶ added in v0.54.0
func (client *MLTrainingServiceClient) DeleteCompletedTrainingJob(ctx context.Context, in *mltrainingpb.DeleteCompletedTrainingJobRequest, opts ...grpc.CallOption, ) (*mltrainingpb.DeleteCompletedTrainingJobResponse, error)
DeleteCompletedTrainingJob calls the injected DeleteCompletedTrainingJob or the real version.
func (*MLTrainingServiceClient) GetTrainingJob ¶ added in v0.54.0
func (client *MLTrainingServiceClient) GetTrainingJob(ctx context.Context, in *mltrainingpb.GetTrainingJobRequest, opts ...grpc.CallOption, ) (*mltrainingpb.GetTrainingJobResponse, error)
GetTrainingJob calls the injected GetTrainingJob or the real version.
func (*MLTrainingServiceClient) GetTrainingJobLogs ¶ added in v0.54.0
func (client *MLTrainingServiceClient) GetTrainingJobLogs(ctx context.Context, in *mltrainingpb.GetTrainingJobLogsRequest, opts ...grpc.CallOption, ) (*mltrainingpb.GetTrainingJobLogsResponse, error)
GetTrainingJobLogs calls the injected GetTrainingJobLogs or the real version.
func (*MLTrainingServiceClient) ListTrainingJobs ¶ added in v0.54.0
func (client *MLTrainingServiceClient) ListTrainingJobs(ctx context.Context, in *mltrainingpb.ListTrainingJobsRequest, opts ...grpc.CallOption, ) (*mltrainingpb.ListTrainingJobsResponse, error)
ListTrainingJobs calls the injected ListTrainingJobs or the real version.
func (*MLTrainingServiceClient) SubmitCustomTrainingJob ¶ added in v0.54.0
func (client *MLTrainingServiceClient) SubmitCustomTrainingJob(ctx context.Context, in *mltrainingpb.SubmitCustomTrainingJobRequest, opts ...grpc.CallOption, ) (*mltrainingpb.SubmitCustomTrainingJobResponse, error)
SubmitCustomTrainingJob calls the injected SubmitCustomTrainingJob or the real version.
func (*MLTrainingServiceClient) SubmitTrainingJob ¶ added in v0.54.0
func (client *MLTrainingServiceClient) SubmitTrainingJob(ctx context.Context, in *mltrainingpb.SubmitTrainingJobRequest, opts ...grpc.CallOption, ) (*mltrainingpb.SubmitTrainingJobResponse, error)
SubmitTrainingJob calls the injected SubmitTrainingJob or the real version.
type MotionService ¶
type MotionService struct { motion.Service MoveFunc func( ctx context.Context, req motion.MoveReq, ) (bool, error) MoveOnMapFunc func( ctx context.Context, req motion.MoveOnMapReq, ) (motion.ExecutionID, error) MoveOnGlobeFunc func( ctx context.Context, req motion.MoveOnGlobeReq, ) (motion.ExecutionID, error) GetPoseFunc func( ctx context.Context, componentName resource.Name, destinationFrame string, supplementalTransforms []*referenceframe.LinkInFrame, extra map[string]interface{}, ) (*referenceframe.PoseInFrame, error) StopPlanFunc func( ctx context.Context, req motion.StopPlanReq, ) error ListPlanStatusesFunc func( ctx context.Context, req motion.ListPlanStatusesReq, ) ([]motion.PlanStatusWithID, error) PlanHistoryFunc func( ctx context.Context, req motion.PlanHistoryReq, ) ([]motion.PlanWithStatus, error) DoCommandFunc func( ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error, ) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
MotionService represents a fake instance of an motion service.
func NewMotionService ¶ added in v0.2.36
func NewMotionService(name string) *MotionService
NewMotionService returns a new injected motion service.
func (*MotionService) Close ¶ added in v0.2.36
func (mgs *MotionService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*MotionService) DoCommand ¶ added in v0.2.20
func (mgs *MotionService) DoCommand(ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real variant.
func (*MotionService) GetPose ¶
func (mgs *MotionService) GetPose( ctx context.Context, componentName resource.Name, destinationFrame string, supplementalTransforms []*referenceframe.LinkInFrame, extra map[string]interface{}, ) (*referenceframe.PoseInFrame, error)
GetPose calls the injected GetPose or the real variant.
func (*MotionService) ListPlanStatuses ¶ added in v0.11.0
func (mgs *MotionService) ListPlanStatuses( ctx context.Context, req motion.ListPlanStatusesReq, ) ([]motion.PlanStatusWithID, error)
ListPlanStatuses calls the injected ListPlanStatuses or the real variant.
func (*MotionService) MoveOnGlobe ¶ added in v0.2.49
func (mgs *MotionService) MoveOnGlobe(ctx context.Context, req motion.MoveOnGlobeReq) (motion.ExecutionID, error)
MoveOnGlobe calls the injected MoveOnGlobe or the real variant.
func (*MotionService) MoveOnMap ¶ added in v0.2.34
func (mgs *MotionService) MoveOnMap( ctx context.Context, req motion.MoveOnMapReq, ) (motion.ExecutionID, error)
MoveOnMap calls the injected MoveOnMap or the real variant.
func (*MotionService) Name ¶ added in v0.2.36
func (mgs *MotionService) Name() resource.Name
Name returns the name of the resource.
func (*MotionService) PlanHistory ¶ added in v0.11.0
func (mgs *MotionService) PlanHistory( ctx context.Context, req motion.PlanHistoryReq, ) ([]motion.PlanWithStatus, error)
PlanHistory calls the injected PlanHistory or the real variant.
func (*MotionService) StopPlan ¶ added in v0.11.0
func (mgs *MotionService) StopPlan( ctx context.Context, req motion.StopPlanReq, ) error
StopPlan calls the injected StopPlan or the real variant.
type Motor ¶
type Motor struct { motor.Motor DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) SetPowerFunc func(ctx context.Context, powerPct float64, extra map[string]interface{}) error GoForFunc func(ctx context.Context, rpm, rotations float64, extra map[string]interface{}) error GoToFunc func(ctx context.Context, rpm, position float64, extra map[string]interface{}) error SetRPMFunc func(ctx context.Context, rpm float64, extra map[string]interface{}) error ResetZeroPositionFunc func(ctx context.Context, offset float64, extra map[string]interface{}) error PositionFunc func(ctx context.Context, extra map[string]interface{}) (float64, error) PropertiesFunc func(ctx context.Context, extra map[string]interface{}) (motor.Properties, error) StopFunc func(ctx context.Context, extra map[string]interface{}) error IsPoweredFunc func(ctx context.Context, extra map[string]interface{}) (bool, float64, error) IsMovingFunc func(context.Context) (bool, error) // contains filtered or unexported fields }
Motor is an injected motor.
func (*Motor) DoCommand ¶ added in v0.1.0
func (m *Motor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*Motor) GoFor ¶
func (m *Motor) GoFor(ctx context.Context, rpm, revolutions float64, extra map[string]interface{}) error
GoFor calls the injected GoFor or the real version.
func (*Motor) GoTo ¶
func (m *Motor) GoTo(ctx context.Context, rpm, positionRevolutions float64, extra map[string]interface{}) error
GoTo calls the injected GoTo or the real version.
func (*Motor) Properties ¶ added in v0.1.0
func (m *Motor) Properties(ctx context.Context, extra map[string]interface{}) (motor.Properties, error)
Properties calls the injected Properties or the real version.
func (*Motor) ResetZeroPosition ¶
func (m *Motor) ResetZeroPosition(ctx context.Context, offset float64, extra map[string]interface{}) error
ResetZeroPosition calls the injected Zero or the real version.
type MovementSensor ¶ added in v0.0.6
type MovementSensor struct { movementsensor.MovementSensor Mu sync.RWMutex PositionFuncExtraCap map[string]interface{} PositionFunc func(ctx context.Context, extra map[string]interface{}) (*geo.Point, float64, error) LinearVelocityFuncExtraCap map[string]interface{} LinearVelocityFunc func(ctx context.Context, extra map[string]interface{}) (r3.Vector, error) AngularVelocityFuncExtraCap map[string]interface{} AngularVelocityFunc func(ctx context.Context, extra map[string]interface{}) (spatialmath.AngularVelocity, error) CompassHeadingFuncExtraCap map[string]interface{} CompassHeadingFunc func(ctx context.Context, extra map[string]interface{}) (float64, error) LinearAccelerationExtraCap map[string]interface{} LinearAccelerationFunc func(ctx context.Context, extra map[string]interface{}) (r3.Vector, error) OrientationFuncExtraCap map[string]interface{} OrientationFunc func(ctx context.Context, extra map[string]interface{}) (spatialmath.Orientation, error) PropertiesFuncExtraCap map[string]interface{} PropertiesFunc func(ctx context.Context, extra map[string]interface{}) (*movementsensor.Properties, error) AccuracyFuncExtraCap map[string]interface{} AccuracyFunc func(ctx context.Context, extra map[string]interface{}) (*movementsensor.Accuracy, error) ReadingsFuncExtraCap map[string]interface{} ReadingsFunc func(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error) DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) CloseFunc func() error // contains filtered or unexported fields }
MovementSensor is an injected MovementSensor.
func NewMovementSensor ¶ added in v0.2.36
func NewMovementSensor(name string) *MovementSensor
NewMovementSensor returns a new injected movement sensor.
func (*MovementSensor) Accuracy ¶ added in v0.2.0
func (i *MovementSensor) Accuracy(ctx context.Context, extra map[string]interface{}) (*movementsensor.Accuracy, error, )
Accuracy func or passthrough.
func (*MovementSensor) AngularVelocity ¶ added in v0.1.0
func (i *MovementSensor) AngularVelocity(ctx context.Context, extra map[string]interface{}) (spatialmath.AngularVelocity, error)
AngularVelocity func or passthrough.
func (*MovementSensor) Close ¶ added in v0.0.6
func (i *MovementSensor) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*MovementSensor) CompassHeading ¶ added in v0.1.0
func (i *MovementSensor) CompassHeading(ctx context.Context, extra map[string]interface{}) (float64, error)
CompassHeading func or passthrough.
func (*MovementSensor) DoCommand ¶ added in v0.1.0
func (i *MovementSensor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*MovementSensor) LinearAcceleration ¶ added in v0.2.11
func (i *MovementSensor) LinearAcceleration(ctx context.Context, extra map[string]interface{}) (r3.Vector, error)
LinearAcceleration func or passthrough.
func (*MovementSensor) LinearVelocity ¶ added in v0.1.0
func (i *MovementSensor) LinearVelocity(ctx context.Context, extra map[string]interface{}) (r3.Vector, error)
LinearVelocity func or passthrough.
func (*MovementSensor) Name ¶ added in v0.2.36
func (i *MovementSensor) Name() resource.Name
Name returns the name of the resource.
func (*MovementSensor) Orientation ¶ added in v0.1.0
func (i *MovementSensor) Orientation(ctx context.Context, extra map[string]interface{}) (spatialmath.Orientation, error)
Orientation func or passthrough.
func (*MovementSensor) Position ¶ added in v0.1.0
func (i *MovementSensor) Position(ctx context.Context, extra map[string]interface{}) (*geo.Point, float64, error)
Position func or passthrough.
func (*MovementSensor) Properties ¶ added in v0.2.0
func (i *MovementSensor) Properties(ctx context.Context, extra map[string]interface{}) (*movementsensor.Properties, error)
Properties func or passthrough.
type NavigationService ¶
type NavigationService struct { // contains filtered or unexported fields }
NavigationService represents a fake instance of a navigation service.
func NewNavigationService ¶ added in v0.2.36
func NewNavigationService(name string) *NavigationService
NewNavigationService returns a new injected navigation service.
func (*NavigationService) AddWaypoint ¶
func (ns *NavigationService) AddWaypoint(ctx context.Context, point *geo.Point, extra map[string]interface{}) error
AddWaypoint calls the injected AddWaypointFunc or the real version.
func (*NavigationService) Close ¶ added in v0.2.36
func (ns *NavigationService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*NavigationService) DoCommand ¶ added in v0.2.20
func (ns *NavigationService) DoCommand(ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real variant.
func (*NavigationService) Location ¶ added in v0.1.0
func (ns *NavigationService) Location(ctx context.Context, extra map[string]interface{}) (*spatialmath.GeoPose, error)
Location calls the injected LocationFunc or the real version.
func (*NavigationService) Mode ¶ added in v0.1.0
func (ns *NavigationService) Mode(ctx context.Context, extra map[string]interface{}) (navigation.Mode, error)
Mode calls the injected ModeFunc or the real version.
func (*NavigationService) Name ¶ added in v0.2.36
func (ns *NavigationService) Name() resource.Name
Name returns the name of the resource.
func (*NavigationService) Obstacles ¶ added in v0.12.0
func (ns *NavigationService) Obstacles(ctx context.Context, extra map[string]interface{}) ([]*spatialmath.GeoGeometry, error)
Obstacles calls the injected Obstacles or the real version.
func (*NavigationService) Paths ¶ added in v0.12.0
func (ns *NavigationService) Paths(ctx context.Context, extra map[string]interface{}) ([]*navigation.Path, error)
Paths calls the injected Paths or the real version.
func (*NavigationService) Properties ¶ added in v0.18.0
func (ns *NavigationService) Properties(ctx context.Context) (navigation.Properties, error)
Properties calls the injected Properties or the real variant.
func (*NavigationService) RemoveWaypoint ¶
func (ns *NavigationService) RemoveWaypoint(ctx context.Context, id primitive.ObjectID, extra map[string]interface{}) error
RemoveWaypoint calls the injected RemoveWaypointFunc or the real version.
func (*NavigationService) SetMode ¶
func (ns *NavigationService) SetMode(ctx context.Context, mode navigation.Mode, extra map[string]interface{}) error
SetMode calls the injected SetModeFunc or the real version.
func (*NavigationService) Waypoints ¶ added in v0.1.0
func (ns *NavigationService) Waypoints(ctx context.Context, extra map[string]interface{}) ([]navigation.Waypoint, error)
Waypoints calls the injected WaypointsFunc or the real version.
type PoseTracker ¶
type PoseTracker struct { posetracker.PoseTracker PosesFunc func(ctx context.Context, bodyNames []string, extra map[string]interface{}) (posetracker.BodyToPoseInFrame, error) DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) // contains filtered or unexported fields }
PoseTracker is an injected pose tracker.
func NewPoseTracker ¶ added in v0.2.36
func NewPoseTracker(name string) *PoseTracker
NewPoseTracker returns a new injected pose tracker.
func (*PoseTracker) DoCommand ¶ added in v0.1.1
func (pT *PoseTracker) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*PoseTracker) Name ¶ added in v0.2.36
func (pT *PoseTracker) Name() resource.Name
Name returns the name of the resource.
func (*PoseTracker) Poses ¶ added in v0.1.1
func (pT *PoseTracker) Poses( ctx context.Context, bodyNames []string, extra map[string]interface{}, ) (posetracker.BodyToPoseInFrame, error)
Poses calls the injected Poses or the real version.
type PowerSensor ¶ added in v0.7.0
type PowerSensor struct { powersensor.PowerSensor VoltageFunc func(ctx context.Context, extra map[string]interface{}) (float64, bool, error) CurrentFunc func(ctx context.Context, extra map[string]interface{}) (float64, bool, error) PowerFunc func(ctx context.Context, extra map[string]interface{}) (float64, error) ReadingsFunc func(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error) DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) // contains filtered or unexported fields }
A PowerSensor reports information about voltage, current and power.
func NewPowerSensor ¶ added in v0.7.0
func NewPowerSensor(name string) *PowerSensor
NewPowerSensor returns a new injected movement sensor.
func (*PowerSensor) Current ¶ added in v0.7.0
func (i *PowerSensor) Current(ctx context.Context, cmd map[string]interface{}) (float64, bool, error)
Current func or passthrough.
func (*PowerSensor) DoCommand ¶ added in v0.7.0
func (i *PowerSensor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
func (*PowerSensor) Name ¶ added in v0.7.0
func (i *PowerSensor) Name() resource.Name
Name returns the name of the resource.
type ProvisioningServiceClient ¶ added in v0.53.0
type ProvisioningServiceClient struct { provisioningPb.ProvisioningServiceClient GetSmartMachineStatusFunc func(ctx context.Context, in *provisioningPb.GetSmartMachineStatusRequest, opts ...grpc.CallOption) (*provisioningPb.GetSmartMachineStatusResponse, error) SetNetworkCredentialsFunc func(ctx context.Context, in *provisioningPb.SetNetworkCredentialsRequest, opts ...grpc.CallOption) (*provisioningPb.SetNetworkCredentialsResponse, error) SetSmartMachineCredentialsFunc func(ctx context.Context, in *provisioningPb.SetSmartMachineCredentialsRequest, opts ...grpc.CallOption) (*provisioningPb.SetSmartMachineCredentialsResponse, error) GetNetworkListFunc func(ctx context.Context, in *provisioningPb.GetNetworkListRequest, opts ...grpc.CallOption) (*provisioningPb.GetNetworkListResponse, error) }
ProvisioningServiceClient represents a fake instance of a provisioning client.
func (*ProvisioningServiceClient) GetNetworkList ¶ added in v0.53.0
func (psc *ProvisioningServiceClient) GetNetworkList(ctx context.Context, in *provisioningPb.GetNetworkListRequest, opts ...grpc.CallOption, ) (*provisioningPb.GetNetworkListResponse, error)
GetNetworkList calls the injected GetNetworkListFunc or the real version.
func (*ProvisioningServiceClient) GetSmartMachineStatus ¶ added in v0.53.0
func (psc *ProvisioningServiceClient) GetSmartMachineStatus(ctx context.Context, in *provisioningPb.GetSmartMachineStatusRequest, opts ...grpc.CallOption, ) (*provisioningPb.GetSmartMachineStatusResponse, error)
GetSmartMachineStatus calls the injected GetSmartMachineStatusFunc or the real version.
func (*ProvisioningServiceClient) SetNetworkCredentials ¶ added in v0.53.0
func (psc *ProvisioningServiceClient) SetNetworkCredentials(ctx context.Context, in *provisioningPb.SetNetworkCredentialsRequest, opts ...grpc.CallOption, ) (*provisioningPb.SetNetworkCredentialsResponse, error)
SetNetworkCredentials calls the injected SetNetworkCredentialsFunc or the real version.
func (*ProvisioningServiceClient) SetSmartMachineCredentials ¶ added in v0.53.0
func (psc *ProvisioningServiceClient) SetSmartMachineCredentials(ctx context.Context, in *provisioningPb.SetSmartMachineCredentialsRequest, opts ...grpc.CallOption, ) (*provisioningPb.SetSmartMachineCredentialsResponse, error)
SetSmartMachineCredentials calls the injected SetSmartMachineCredentialsFunc or the real version.
type ReadWriteCloser ¶
type ReadWriteCloser struct { io.ReadWriteCloser ReadFunc func(p []byte) (n int, err error) WriteFunc func(p []byte) (n int, err error) CloseFunc func() error }
ReadWriteCloser is an injected read write closer.
func (*ReadWriteCloser) Close ¶
func (rwc *ReadWriteCloser) Close() error
Close calls the injected Close or the real version.
type Robot ¶
type Robot struct { robot.LocalRobot Mu sync.RWMutex // Ugly, has to be manually locked if a test means to swap funcs on an in-use robot. DiscoverComponentsFunc func(ctx context.Context, keys []resource.DiscoveryQuery) ([]resource.Discovery, error) RemoteByNameFunc func(name string) (robot.Robot, bool) ResourceByNameFunc func(name resource.Name) (resource.Resource, error) RemoteNamesFunc func() []string ResourceNamesFunc func() []resource.Name ResourceRPCAPIsFunc func() []resource.RPCAPI ProcessManagerFunc func() pexec.ProcessManager ConfigFunc func() *config.Config LoggerFunc func() logging.Logger CloseFunc func(ctx context.Context) error StopAllFunc func(ctx context.Context, extra map[resource.Name]map[string]interface{}) error FrameSystemConfigFunc func(ctx context.Context) (*framesystem.Config, error) TransformPoseFunc func( ctx context.Context, pose *referenceframe.PoseInFrame, dst string, additionalTransforms []*referenceframe.LinkInFrame, ) (*referenceframe.PoseInFrame, error) TransformPointCloudFunc func(ctx context.Context, srcpc pointcloud.PointCloud, srcName, dstName string) (pointcloud.PointCloud, error) ModuleAddressFunc func() (string, error) CloudMetadataFunc func(ctx context.Context) (cloud.Metadata, error) MachineStatusFunc func(ctx context.Context) (robot.MachineStatus, error) ShutdownFunc func(ctx context.Context) error SessMgr session.Manager PackageMgr packages.Manager // contains filtered or unexported fields }
Robot is an injected robot.
func (*Robot) CloudMetadata ¶ added in v0.23.0
CloudMetadata calls the injected CloudMetadata or the real one.
func (*Robot) DiscoverComponents ¶
func (r *Robot) DiscoverComponents(ctx context.Context, keys []resource.DiscoveryQuery) ([]resource.Discovery, error)
DiscoverComponents calls the injected DiscoverComponents or the real one.
func (*Robot) FrameSystemConfig ¶
FrameSystemConfig calls the injected FrameSystemConfig or the real version.
func (*Robot) MachineStatus ¶ added in v0.35.0
MachineStatus calls the injected MachineStatus or the real one.
func (*Robot) MockResourcesFromMap ¶
MockResourcesFromMap mocks ResourceNames and ResourceByName based on a resource map.
func (*Robot) ModuleAddress ¶ added in v0.2.8
ModuleAddress calls the injected ModuleAddress or the real one.
func (*Robot) OperationManager ¶
OperationManager calls the injected OperationManager or the real version.
func (*Robot) PackageManager ¶ added in v0.2.15
PackageManager calls the injected PackageManager or the real version.
func (*Robot) ProcessManager ¶
func (r *Robot) ProcessManager() pexec.ProcessManager
ProcessManager calls the injected ProcessManager or the real version.
func (*Robot) RemoteByName ¶
RemoteByName calls the injected RemoteByName or the real version.
func (*Robot) RemoteNames ¶
RemoteNames calls the injected RemoteNames or the real version.
func (*Robot) ResourceByName ¶
ResourceByName calls the injected ResourceByName or the real version.
func (*Robot) ResourceNames ¶
ResourceNames calls the injected ResourceNames or the real version.
func (*Robot) ResourceRPCAPIs ¶ added in v0.2.36
ResourceRPCAPIs returns a list of all known resource RPC APIs.
func (*Robot) SessionManager ¶ added in v0.2.5
SessionManager calls the injected SessionManager or the real version.
func (*Robot) TransformPointCloud ¶ added in v0.2.11
func (r *Robot) TransformPointCloud(ctx context.Context, srcpc pointcloud.PointCloud, srcName, dstName string, ) (pointcloud.PointCloud, error)
TransformPointCloud calls the injected TransformPointCloud or the real version.
func (*Robot) TransformPose ¶
func (r *Robot) TransformPose( ctx context.Context, pose *referenceframe.PoseInFrame, dst string, additionalTransforms []*referenceframe.LinkInFrame, ) (*referenceframe.PoseInFrame, error)
TransformPose calls the injected TransformPose or the real version.
type SLAMService ¶
type SLAMService struct { slam.Service PositionFunc func(ctx context.Context) (spatialmath.Pose, error) PointCloudMapFunc func(ctx context.Context, returnEditedMap bool) (func() ([]byte, error), error) InternalStateFunc func(ctx context.Context) (func() ([]byte, error), error) PropertiesFunc func(ctx context.Context) (slam.Properties, error) DoCommandFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
SLAMService represents a fake instance of a slam service.
func NewSLAMService ¶ added in v0.2.36
func NewSLAMService(name string) *SLAMService
NewSLAMService returns a new injected SLAM service.
func (*SLAMService) Close ¶ added in v0.2.36
func (slamSvc *SLAMService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*SLAMService) DoCommand ¶ added in v0.2.20
func (slamSvc *SLAMService) DoCommand(ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real variant.
func (*SLAMService) InternalState ¶ added in v0.8.0
InternalState calls the injected InternalState or the real version.
func (*SLAMService) Name ¶ added in v0.2.36
func (slamSvc *SLAMService) Name() resource.Name
Name returns the name of the resource.
func (*SLAMService) PointCloudMap ¶ added in v0.8.0
func (slamSvc *SLAMService) PointCloudMap(ctx context.Context, returnEditedMap bool) (func() ([]byte, error), error)
PointCloudMap calls the injected PointCloudMap or the real version.
func (*SLAMService) Position ¶ added in v0.1.0
func (slamSvc *SLAMService) Position(ctx context.Context) (spatialmath.Pose, error)
Position calls the injected PositionFunc or the real version.
func (*SLAMService) Properties ¶ added in v0.18.0
func (slamSvc *SLAMService) Properties(ctx context.Context) (slam.Properties, error)
Properties calls the injected PropertiesFunc or the real version.
type Sensor ¶
type Sensor struct { sensor.Sensor DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) CloseFunc func(ctx context.Context) error ReadingsFunc func(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error) // contains filtered or unexported fields }
Sensor is an injected sensor.
func (*Sensor) DoCommand ¶ added in v0.1.0
func (s *Sensor) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
type Servo ¶
type Servo struct { servo.Servo DoFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) MoveFunc func(ctx context.Context, angleDeg uint32, extra map[string]interface{}) error PositionFunc func(ctx context.Context, extra map[string]interface{}) (uint32, error) StopFunc func(ctx context.Context, extra map[string]interface{}) error IsMovingFunc func(context.Context) (bool, error) // contains filtered or unexported fields }
Servo is an injected servo.
func (*Servo) DoCommand ¶ added in v0.1.0
func (s *Servo) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real version.
type ShellService ¶ added in v0.2.20
type ShellService struct { shell.Service DoCommandFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) ReconfigureFunc func(ctx context.Context, deps resource.Dependencies, conf resource.Config) error CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
ShellService represents a fake instance of a shell service.
func NewShellService ¶ added in v0.2.36
func NewShellService(name string) *ShellService
NewShellService returns a new injected shell service.
func (*ShellService) Close ¶ added in v0.2.36
func (s *ShellService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*ShellService) DoCommand ¶ added in v0.2.20
func (s *ShellService) DoCommand(ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real variant.
func (*ShellService) Name ¶ added in v0.2.36
func (s *ShellService) Name() resource.Name
Name returns the name of the resource.
func (*ShellService) Reconfigure ¶ added in v0.2.36
func (s *ShellService) Reconfigure(ctx context.Context, deps resource.Dependencies, conf resource.Config) error
Reconfigure calls the injected Reconfigure or the real variant.
type TriggerableInputController ¶
type TriggerableInputController struct { InputController input.Triggerable TriggerEventFunc func(ctx context.Context, event input.Event, extra map[string]interface{}) error }
TriggerableInputController is an injected injectable InputController.
func (*TriggerableInputController) TriggerEvent ¶
func (s *TriggerableInputController) TriggerEvent(ctx context.Context, event input.Event, extra map[string]interface{}) error
TriggerEvent calls the injected function or the real version.
type VisionService ¶
type VisionService struct { vision.Service DetectionsFromCameraFunc func( ctx context.Context, cameraName string, extra map[string]interface{}, ) ([]objectdetection.Detection, error) DetectionsFunc func( ctx context.Context, img image.Image, extra map[string]interface{}, ) ([]objectdetection.Detection, error) // classification functions ClassificationsFromCameraFunc func(ctx context.Context, cameraName string, n int, extra map[string]interface{}) (classification.Classifications, error) ClassificationsFunc func(ctx context.Context, img image.Image, n int, extra map[string]interface{}) (classification.Classifications, error) // segmentation functions GetObjectPointCloudsFunc func(ctx context.Context, cameraName string, extra map[string]interface{}) ([]*viz.Object, error) GetPropertiesFunc func(ctx context.Context, extra map[string]interface{}) (*vision.Properties, error) CaptureAllFromCameraFunc func(ctx context.Context, cameraName string, opts viscapture.CaptureOptions, extra map[string]interface{}, ) (viscapture.VisCapture, error) DoCommandFunc func(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error) CloseFunc func(ctx context.Context) error // contains filtered or unexported fields }
VisionService represents a fake instance of a vision service.
func NewVisionService ¶ added in v0.2.36
func NewVisionService(name string) *VisionService
NewVisionService returns a new injected vision service.
func (*VisionService) CaptureAllFromCamera ¶ added in v0.28.0
func (vs *VisionService) CaptureAllFromCamera(ctx context.Context, cameraName string, opts viscapture.CaptureOptions, extra map[string]interface{}, ) (viscapture.VisCapture, error)
CaptureAllFromCamera calls the injected CaptureAllFromCamera or the real variant.
func (*VisionService) Classifications ¶ added in v0.1.0
func (vs *VisionService) Classifications(ctx context.Context, img image.Image, n int, extra map[string]interface{}, ) (classification.Classifications, error)
Classifications calls the injected Classifier or the real variant.
func (*VisionService) ClassificationsFromCamera ¶ added in v0.1.0
func (vs *VisionService) ClassificationsFromCamera(ctx context.Context, cameraName string, n int, extra map[string]interface{}, ) (classification.Classifications, error)
ClassificationsFromCamera calls the injected Classifer or the real variant.
func (*VisionService) Close ¶ added in v0.2.36
func (vs *VisionService) Close(ctx context.Context) error
Close calls the injected Close or the real version.
func (*VisionService) Detections ¶ added in v0.1.0
func (vs *VisionService) Detections(ctx context.Context, img image.Image, extra map[string]interface{}, ) ([]objectdetection.Detection, error)
Detections calls the injected Detect or the real variant.
func (*VisionService) DetectionsFromCamera ¶ added in v0.1.0
func (vs *VisionService) DetectionsFromCamera(ctx context.Context, cameraName string, extra map[string]interface{}, ) ([]objectdetection.Detection, error)
DetectionsFromCamera calls the injected DetectionsFromCamera or the real variant.
func (*VisionService) DoCommand ¶ added in v0.2.20
func (vs *VisionService) DoCommand(ctx context.Context, cmd map[string]interface{}, ) (map[string]interface{}, error)
DoCommand calls the injected DoCommand or the real variant.
func (*VisionService) GetObjectPointClouds ¶
func (vs *VisionService) GetObjectPointClouds( ctx context.Context, cameraName string, extra map[string]interface{}, ) ([]*viz.Object, error)
GetObjectPointClouds calls the injected GetObjectPointClouds or the real variant.
func (*VisionService) GetProperties ¶ added in v0.28.0
func (vs *VisionService) GetProperties( ctx context.Context, extra map[string]interface{}, ) (*vision.Properties, error)
GetProperties calls the injected GetProperties or the real variant.
func (*VisionService) Name ¶ added in v0.2.36
func (vs *VisionService) Name() resource.Name
Name returns the name of the resource.
Source Files ¶
- analog.go
- app_service_client.go
- arm.go
- audioinput.go
- base.go
- billing_service_client.go
- board.go
- build_service_client.go
- camera.go
- data_service_client.go
- datamanager_service.go
- dataset_service_client.go
- datasync_service_client.go
- digital_interrupt.go
- discovery_service.go
- encoder.go
- enduser_service_client.go
- framesystem_service.go
- gantry.go
- generic_component.go
- generic_service.go
- gpio_pin.go
- gripper.go
- i2c.go
- input.go
- io.go
- mlmodel_service.go
- mltraining_service_client.go
- motion_service.go
- motor.go
- movementsensor.go
- navigation_service.go
- pose_tracker.go
- powersensor.go
- provisioning_service_client.go
- robot.go
- sensor.go
- servo.go
- shell_service.go
- slam_service.go
- spi.go
- vision_service.go