Documentation
¶
Index ¶
- Constants
- Variables
- func FromDevicesResponse(list []*DeviceResponse) map[string][]device2.Device
- type AndroidParams
- type AppBundleManager
- type AppBundleMetaData
- type AppParameterRequest
- func (*AppParameterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AppParameterRequest) GetApp() *AppParams
- func (x *AppParameterRequest) GetDeviceID() string
- func (x *AppParameterRequest) GetIdentifier() string
- func (x *AppParameterRequest) GetName() string
- func (x *AppParameterRequest) GetPlatform() string
- func (x *AppParameterRequest) GetVersion() string
- func (x *AppParameterRequest) GetWeb() *WebParams
- func (*AppParameterRequest) ProtoMessage()
- func (x *AppParameterRequest) ProtoReflect() protoreflect.Message
- func (x *AppParameterRequest) Reset()
- func (x *AppParameterRequest) String() string
- type AppParams
- func (*AppParams) Descriptor() ([]byte, []int)deprecated
- func (x *AppParams) GetAdditional() string
- func (x *AppParams) GetAndroid() *AndroidParams
- func (x *AppParams) GetAppID() int32
- func (x *AppParams) GetAppPath() string
- func (x *AppParams) GetExecutable() *ExecutableParams
- func (x *AppParams) GetHash() string
- func (x *AppParams) GetSize() int64
- func (*AppParams) ProtoMessage()
- func (x *AppParams) ProtoReflect() protoreflect.Message
- func (x *AppParams) Reset()
- func (x *AppParams) String() string
- type BoolResponse
- func (*BoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BoolResponse) GetErrorCode() int32
- func (x *BoolResponse) GetErrorMessage() string
- func (x *BoolResponse) GetValue() bool
- func (*BoolResponse) ProtoMessage()
- func (x *BoolResponse) ProtoReflect() protoreflect.Message
- func (x *BoolResponse) Reset()
- func (x *BoolResponse) String() string
- type ConnectionHandler
- type DeviceConnectionParams
- func (*DeviceConnectionParams) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceConnectionParams) GetIP() string
- func (x *DeviceConnectionParams) GetPort() int64
- func (x *DeviceConnectionParams) GetType() DeviceConnectionType
- func (*DeviceConnectionParams) ProtoMessage()
- func (x *DeviceConnectionParams) ProtoReflect() protoreflect.Message
- func (x *DeviceConnectionParams) Reset()
- func (x *DeviceConnectionParams) String() string
- type DeviceConnectionType
- func (DeviceConnectionType) Descriptor() protoreflect.EnumDescriptor
- func (x DeviceConnectionType) Enum() *DeviceConnectionType
- func (DeviceConnectionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeviceConnectionType) Number() protoreflect.EnumNumber
- func (x DeviceConnectionType) String() string
- func (DeviceConnectionType) Type() protoreflect.EnumType
- type DeviceCustomParameter
- func (*DeviceCustomParameter) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceCustomParameter) GetKey() string
- func (x *DeviceCustomParameter) GetValue() string
- func (*DeviceCustomParameter) ProtoMessage()
- func (x *DeviceCustomParameter) ProtoReflect() protoreflect.Message
- func (x *DeviceCustomParameter) Reset()
- func (x *DeviceCustomParameter) String() string
- type DeviceRequest
- type DeviceResponse
- func (*DeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceResponse) GetDeviceID() string
- func (x *DeviceResponse) GetDeviceIP() string
- func (x *DeviceResponse) GetDeviceModel() string
- func (x *DeviceResponse) GetDeviceOS() string
- func (x *DeviceResponse) GetDeviceOSInfos() string
- func (x *DeviceResponse) GetDeviceOSVersion() string
- func (x *DeviceResponse) GetDeviceParameter() string
- func (x *DeviceResponse) GetDeviceType() int32
- func (x *DeviceResponse) GetManager() string
- func (x *DeviceResponse) GetName() string
- func (x *DeviceResponse) GetPlatformType() int32
- func (x *DeviceResponse) GetProjectDir() string
- func (x *DeviceResponse) GetState() DeviceState
- func (x *DeviceResponse) GetTargetVersion() string
- func (*DeviceResponse) ProtoMessage()
- func (x *DeviceResponse) ProtoReflect() protoreflect.Message
- func (x *DeviceResponse) Reset()
- func (x *DeviceResponse) String() string
- type DeviceState
- func (DeviceState) Descriptor() protoreflect.EnumDescriptor
- func (x DeviceState) Enum() *DeviceState
- func (DeviceState) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeviceState) Number() protoreflect.EnumNumber
- func (x DeviceState) String() string
- func (DeviceState) Type() protoreflect.EnumType
- type DeviceStatusRequest
- func (*DeviceStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceStatusRequest) GetDeviceId() string
- func (*DeviceStatusRequest) ProtoMessage()
- func (x *DeviceStatusRequest) ProtoReflect() protoreflect.Message
- func (x *DeviceStatusRequest) Reset()
- func (x *DeviceStatusRequest) String() string
- type DevicesChangedRequest
- type DevicesNotifier
- type DevicesResponse
- type ErrorResponse
- func (*ErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorResponse) GetErrorCode() int32
- func (x *ErrorResponse) GetErrorMessage() string
- func (*ErrorResponse) ProtoMessage()
- func (x *ErrorResponse) ProtoReflect() protoreflect.Message
- func (x *ErrorResponse) Reset()
- func (x *ErrorResponse) String() string
- type ExecutableParams
- type ExecuteRequest
- func (*ExecuteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteRequest) GetData() string
- func (x *ExecuteRequest) GetDeviceID() string
- func (*ExecuteRequest) ProtoMessage()
- func (x *ExecuteRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteRequest) Reset()
- func (x *ExecuteRequest) String() string
- type FeatureRequest
- func (*FeatureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FeatureRequest) GetDeviceID() string
- func (x *FeatureRequest) GetFeature() string
- func (*FeatureRequest) ProtoMessage()
- func (x *FeatureRequest) ProtoReflect() protoreflect.Message
- func (x *FeatureRequest) Reset()
- func (x *FeatureRequest) String() string
- type RPCClient
- func (c *RPCClient) ClearAppData(deviceId string, parameter *app.Parameter) error
- func (c *RPCClient) ConnectionTimeout(deviceId string) time.Duration
- func (c *RPCClient) Control(req device.ControlRequest) (device.ControlResponse, error)
- func (c *RPCClient) Execute(deviceId string, data string)
- func (c *RPCClient) GetDevices() (map[string][]device.Device, error)
- func (c *RPCClient) GetScreenshot(deviceId string) ([]byte, int, int, error)
- func (c *RPCClient) HasFeature(deviceId string, feature string) bool
- func (c *RPCClient) InstallApp(deviceId string, parameter *app.Parameter) error
- func (c *RPCClient) IsAppInstalled(deviceId string, parameter *app.Parameter) (bool, error)
- func (c *RPCClient) IsAppUploaded(parameter *app.Parameter) (bool, error)
- func (c *RPCClient) IsConnected(deviceId string) bool
- func (c *RPCClient) Ping() error
- func (c *RPCClient) RunNativeScript(deviceId string, script []byte)
- func (c *RPCClient) SendAction(deviceId string, script []byte)
- func (c *RPCClient) StartApp(deviceId string, config *device.DeviceConfig, parameter *app.Parameter, ...) error
- func (c *RPCClient) StartDevice(deviceId string) error
- func (c *RPCClient) StartVideoStream(req device.VideoStreamRequest) error
- func (c *RPCClient) StopApp(deviceId string, parameter *app.Parameter) error
- func (c *RPCClient) StopDevice(deviceId string) error
- func (c *RPCClient) UninstallApp(deviceId string, parameter *app.Parameter) error
- func (c *RPCClient) UploadApp(ctx context.Context, parameter *app.Parameter) error
- type RPCDevice
- func (d *RPCDevice) ConnectionTimeout() time.Duration
- func (d *RPCDevice) DeviceID() string
- func (d *RPCDevice) DeviceIP() net.IP
- func (d *RPCDevice) DeviceName() string
- func (d *RPCDevice) DeviceOSName() string
- func (d *RPCDevice) DeviceOSVersion() string
- func (d *RPCDevice) DeviceParameter() map[string]string
- func (d *RPCDevice) DeviceState() device.State
- func (d *RPCDevice) DeviceType() int
- func (d *RPCDevice) InstallApp(*app.Parameter) error
- func (d *RPCDevice) IsAppConnected() bool
- func (d *RPCDevice) IsAppInstalled(*app.Parameter) (bool, error)
- func (d *RPCDevice) PlatformType() int
- func (d *RPCDevice) StartApp(*device.DeviceConfig, *app.Parameter, string, string) error
- func (d *RPCDevice) StopApp(*app.Parameter) error
- func (d *RPCDevice) TargetVersion() string
- func (d *RPCDevice) UninstallApp(*app.Parameter) error
- type RPCNode
- func (s *RPCNode) ClearAppData(req *AppParameterRequest, resp *BoolResponse) error
- func (s *RPCNode) ConnectionTimeout(req *DeviceRequest, resp *TimeoutResponse) error
- func (s *RPCNode) Control(req *device.ControlRequest, resp *device.ControlResponse) error
- func (s *RPCNode) DeviceStatus(req *DeviceStatusRequest, resp *DeviceResponse) error
- func (s *RPCNode) Execute(req *ExecuteRequest, resp *Void) error
- func (s *RPCNode) GetDevices(req *Void, resp *DevicesResponse) error
- func (s *RPCNode) GetScreenshotData(req *ScreenShotDataRequest, resp *ScreenShotDataResponse) error
- func (s *RPCNode) HasFeature(req *FeatureRequest, resp *BoolResponse) error
- func (s *RPCNode) InstallApp(req *AppParameterRequest, resp *BoolResponse) error
- func (s *RPCNode) IsAppInstalled(req *AppParameterRequest, resp *BoolResponse) error
- func (s *RPCNode) IsAppUploaded(req *AppParameterRequest, resp *BoolResponse) error
- func (s *RPCNode) IsConnected(req *DeviceRequest, resp *BoolResponse) error
- func (s *RPCNode) Ping(args *Void, reply *Void) error
- func (s *RPCNode) RunNativeScript(req *ExecuteRequest, resp *Void) error
- func (s *RPCNode) SendAction(req *ExecuteRequest, resp *Void) error
- func (s *RPCNode) StartApp(req *StartAppRequest, resp *BoolResponse) error
- func (s *RPCNode) StartDevice(req *DeviceRequest, resp *ErrorResponse) error
- func (s *RPCNode) StartVideoStream(req *device.VideoStreamRequest, resp *Void) error
- func (s *RPCNode) StopApp(req *AppParameterRequest, resp *BoolResponse) error
- func (s *RPCNode) StopDevice(req *DeviceRequest, resp *ErrorResponse) error
- func (s *RPCNode) TakeScreenshot(req *DeviceRequest, resp *ScreenShotResponse) error
- func (s *RPCNode) UninstallApp(req *AppParameterRequest, resp *BoolResponse) error
- func (s *RPCNode) UploadApp(req *UploadAppRequest, resp *BoolResponse) error
- func (s *RPCNode) UploadAppProgress(req *UploadAppProgressRequest, resp *UploadAppProgressResponse) error
- type ReconnectHandler
- type RegisterNodeRequest
- func (*RegisterNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNodeRequest) GetEnvironmentVariables() string
- func (x *RegisterNodeRequest) GetHostname() string
- func (x *RegisterNodeRequest) GetIdentifier() string
- func (x *RegisterNodeRequest) GetManagers() []string
- func (x *RegisterNodeRequest) GetOperationSystem() string
- func (x *RegisterNodeRequest) GetPort() int32
- func (*RegisterNodeRequest) ProtoMessage()
- func (x *RegisterNodeRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterNodeRequest) Reset()
- func (x *RegisterNodeRequest) String() string
- type ScreenShotDataRequest
- func (*ScreenShotDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ScreenShotDataRequest) GetEnd() int32
- func (x *ScreenShotDataRequest) GetHash() string
- func (x *ScreenShotDataRequest) GetStart() int32
- func (*ScreenShotDataRequest) ProtoMessage()
- func (x *ScreenShotDataRequest) ProtoReflect() protoreflect.Message
- func (x *ScreenShotDataRequest) Reset()
- func (x *ScreenShotDataRequest) String() string
- type ScreenShotDataResponse
- func (*ScreenShotDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ScreenShotDataResponse) GetData() []byte
- func (*ScreenShotDataResponse) ProtoMessage()
- func (x *ScreenShotDataResponse) ProtoReflect() protoreflect.Message
- func (x *ScreenShotDataResponse) Reset()
- func (x *ScreenShotDataResponse) String() string
- type ScreenShotResponse
- func (*ScreenShotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ScreenShotResponse) GetHash() string
- func (x *ScreenShotResponse) GetHeight() int32
- func (x *ScreenShotResponse) GetSize() int32
- func (x *ScreenShotResponse) GetWidth() int32
- func (*ScreenShotResponse) ProtoMessage()
- func (x *ScreenShotResponse) ProtoReflect() protoreflect.Message
- func (x *ScreenShotResponse) Reset()
- func (x *ScreenShotResponse) String() string
- type StartAppRequest
- func (*StartAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartAppRequest) GetApp() *AppParameterRequest
- func (x *StartAppRequest) GetConnectionParams() *DeviceConnectionParams
- func (x *StartAppRequest) GetCustomParameter() []*DeviceCustomParameter
- func (x *StartAppRequest) GetHostIP() string
- func (x *StartAppRequest) GetSessionID() string
- func (*StartAppRequest) ProtoMessage()
- func (x *StartAppRequest) ProtoReflect() protoreflect.Message
- func (x *StartAppRequest) Reset()
- func (x *StartAppRequest) String() string
- type TimeoutResponse
- type UploadAppProgressRequest
- func (*UploadAppProgressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadAppProgressRequest) GetAppID() int32
- func (*UploadAppProgressRequest) ProtoMessage()
- func (x *UploadAppProgressRequest) ProtoReflect() protoreflect.Message
- func (x *UploadAppProgressRequest) Reset()
- func (x *UploadAppProgressRequest) String() string
- type UploadAppProgressResponse
- func (*UploadAppProgressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadAppProgressResponse) GetAppID() int32
- func (x *UploadAppProgressResponse) GetDataReceived() int64
- func (*UploadAppProgressResponse) ProtoMessage()
- func (x *UploadAppProgressResponse) ProtoReflect() protoreflect.Message
- func (x *UploadAppProgressResponse) Reset()
- func (x *UploadAppProgressResponse) String() string
- type UploadAppRequest
- func (*UploadAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadAppRequest) GetAppID() int32
- func (x *UploadAppRequest) GetHash() string
- func (x *UploadAppRequest) GetIdentifier() string
- func (x *UploadAppRequest) GetName() string
- func (x *UploadAppRequest) GetSize() int64
- func (x *UploadAppRequest) GetURL() string
- func (*UploadAppRequest) ProtoMessage()
- func (x *UploadAppRequest) ProtoReflect() protoreflect.Message
- func (x *UploadAppRequest) Reset()
- func (x *UploadAppRequest) String() string
- type UploadProgress
- type Void
- type WebParams
Constants ¶
const DevicesNotifierDelay = 300 * time.Millisecond
DevicesNotifierDelay coalesces bursts of device events (a phone that is plugged in usually produces several state changes) into one notification.
const ScreenshotChunkSize = 512 * 1024
ScreenshotChunkSize is the number of bytes requested per GetScreenshotData call.
const UploadStallTimeout = 2 * time.Minute
UploadStallTimeout aborts an app upload to a node when no progress was made.
Variables ¶
var ( DeviceState_name = map[int32]string{ 0: "None", 1: "Unknown", 2: "Shutdown", 3: "RemoteDisconnected", 4: "Booted", 5: "Locked", 6: "Unauthorized", } DeviceState_value = map[string]int32{ "None": 0, "Unknown": 1, "Shutdown": 2, "RemoteDisconnected": 3, "Booted": 4, "Locked": 5, "Unauthorized": 6, } )
Enum value maps for DeviceState.
var ( DeviceConnectionType_name = map[int32]string{ 0: "USB", 1: "Remote", 2: "Node", } DeviceConnectionType_value = map[string]int32{ "USB": 0, "Remote": 1, "Node": 2, } )
Enum value maps for DeviceConnectionType.
var (
ErrAppNotFound = fmt.Errorf("AppBundleMetaData not found")
)
var File_node_proto protoreflect.FileDescriptor
Functions ¶
func FromDevicesResponse ¶ added in v1.1.0
func FromDevicesResponse(list []*DeviceResponse) map[string][]device2.Device
FromDevicesResponse is the master side of ToDevicesResponse.
Types ¶
type AndroidParams ¶
type AndroidParams struct {
LaunchActivity string `protobuf:"bytes,1,opt,name=LaunchActivity,proto3" json:"LaunchActivity,omitempty"`
// contains filtered or unexported fields
}
func (*AndroidParams) Descriptor
deprecated
func (*AndroidParams) Descriptor() ([]byte, []int)
Deprecated: Use AndroidParams.ProtoReflect.Descriptor instead.
func (*AndroidParams) GetLaunchActivity ¶
func (x *AndroidParams) GetLaunchActivity() string
func (*AndroidParams) ProtoMessage ¶
func (*AndroidParams) ProtoMessage()
func (*AndroidParams) ProtoReflect ¶
func (x *AndroidParams) ProtoReflect() protoreflect.Message
func (*AndroidParams) Reset ¶
func (x *AndroidParams) Reset()
func (*AndroidParams) String ¶
func (x *AndroidParams) String() string
type AppBundleManager ¶
type AppBundleManager struct {
// contains filtered or unexported fields
}
func NewAppBundleManager ¶
func NewAppBundleManager(dataDir string) (*AppBundleManager, error)
func (*AppBundleManager) GetAppParameter ¶
func (dm *AppBundleManager) GetAppParameter(hash string) (*AppBundleMetaData, error)
func (*AppBundleManager) StoreData ¶
func (dm *AppBundleManager) StoreData(appData []byte, metadata *AppBundleMetaData) error
type AppBundleMetaData ¶
type AppParameterRequest ¶
type AppParameterRequest struct {
DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
Platform string `protobuf:"bytes,2,opt,name=Platform,proto3" json:"Platform,omitempty"`
Identifier string `protobuf:"bytes,3,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"`
Version string `protobuf:"bytes,5,opt,name=Version,proto3" json:"Version,omitempty"`
App *AppParams `protobuf:"bytes,6,opt,name=App,proto3,oneof" json:"App,omitempty"`
Web *WebParams `protobuf:"bytes,7,opt,name=Web,proto3,oneof" json:"Web,omitempty"`
// contains filtered or unexported fields
}
func (*AppParameterRequest) Descriptor
deprecated
func (*AppParameterRequest) Descriptor() ([]byte, []int)
Deprecated: Use AppParameterRequest.ProtoReflect.Descriptor instead.
func (*AppParameterRequest) GetApp ¶
func (x *AppParameterRequest) GetApp() *AppParams
func (*AppParameterRequest) GetDeviceID ¶
func (x *AppParameterRequest) GetDeviceID() string
func (*AppParameterRequest) GetIdentifier ¶
func (x *AppParameterRequest) GetIdentifier() string
func (*AppParameterRequest) GetName ¶
func (x *AppParameterRequest) GetName() string
func (*AppParameterRequest) GetPlatform ¶
func (x *AppParameterRequest) GetPlatform() string
func (*AppParameterRequest) GetVersion ¶
func (x *AppParameterRequest) GetVersion() string
func (*AppParameterRequest) GetWeb ¶
func (x *AppParameterRequest) GetWeb() *WebParams
func (*AppParameterRequest) ProtoMessage ¶
func (*AppParameterRequest) ProtoMessage()
func (*AppParameterRequest) ProtoReflect ¶
func (x *AppParameterRequest) ProtoReflect() protoreflect.Message
func (*AppParameterRequest) Reset ¶
func (x *AppParameterRequest) Reset()
func (*AppParameterRequest) String ¶
func (x *AppParameterRequest) String() string
type AppParams ¶
type AppParams struct {
AppID int32 `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
AppPath string `protobuf:"bytes,2,opt,name=AppPath,proto3" json:"AppPath,omitempty"`
Additional string `protobuf:"bytes,3,opt,name=Additional,proto3" json:"Additional,omitempty"`
Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
Size int64 `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"`
Android *AndroidParams `protobuf:"bytes,6,opt,name=Android,proto3,oneof" json:"Android,omitempty"`
Executable *ExecutableParams `protobuf:"bytes,7,opt,name=Executable,proto3,oneof" json:"Executable,omitempty"`
// contains filtered or unexported fields
}
func (*AppParams) Descriptor
deprecated
func (*AppParams) GetAdditional ¶
func (*AppParams) GetAndroid ¶
func (x *AppParams) GetAndroid() *AndroidParams
func (*AppParams) GetAppPath ¶
func (*AppParams) GetExecutable ¶
func (x *AppParams) GetExecutable() *ExecutableParams
func (*AppParams) ProtoMessage ¶
func (*AppParams) ProtoMessage()
func (*AppParams) ProtoReflect ¶
func (x *AppParams) ProtoReflect() protoreflect.Message
type BoolResponse ¶
type BoolResponse struct {
Value bool `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
ErrorCode int32 `protobuf:"varint,2,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"`
ErrorMessage string `protobuf:"bytes,3,opt,name=ErrorMessage,proto3" json:"ErrorMessage,omitempty"`
// contains filtered or unexported fields
}
func (*BoolResponse) Descriptor
deprecated
func (*BoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use BoolResponse.ProtoReflect.Descriptor instead.
func (*BoolResponse) GetErrorCode ¶
func (x *BoolResponse) GetErrorCode() int32
func (*BoolResponse) GetErrorMessage ¶
func (x *BoolResponse) GetErrorMessage() string
func (*BoolResponse) GetValue ¶
func (x *BoolResponse) GetValue() bool
func (*BoolResponse) ProtoMessage ¶
func (*BoolResponse) ProtoMessage()
func (*BoolResponse) ProtoReflect ¶
func (x *BoolResponse) ProtoReflect() protoreflect.Message
func (*BoolResponse) Reset ¶
func (x *BoolResponse) Reset()
func (*BoolResponse) String ¶
func (x *BoolResponse) String() string
type ConnectionHandler ¶
type ConnectionHandler interface {
PingReceived()
}
type DeviceConnectionParams ¶ added in v1.0.4
type DeviceConnectionParams struct {
Type DeviceConnectionType `protobuf:"varint,1,opt,name=Type,proto3,enum=node.DeviceConnectionType" json:"Type,omitempty"`
IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"`
Port int64 `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"`
// contains filtered or unexported fields
}
func (*DeviceConnectionParams) Descriptor
deprecated
added in
v1.0.4
func (*DeviceConnectionParams) Descriptor() ([]byte, []int)
Deprecated: Use DeviceConnectionParams.ProtoReflect.Descriptor instead.
func (*DeviceConnectionParams) GetIP ¶ added in v1.0.4
func (x *DeviceConnectionParams) GetIP() string
func (*DeviceConnectionParams) GetPort ¶ added in v1.0.4
func (x *DeviceConnectionParams) GetPort() int64
func (*DeviceConnectionParams) GetType ¶ added in v1.0.4
func (x *DeviceConnectionParams) GetType() DeviceConnectionType
func (*DeviceConnectionParams) ProtoMessage ¶ added in v1.0.4
func (*DeviceConnectionParams) ProtoMessage()
func (*DeviceConnectionParams) ProtoReflect ¶ added in v1.0.4
func (x *DeviceConnectionParams) ProtoReflect() protoreflect.Message
func (*DeviceConnectionParams) Reset ¶ added in v1.0.4
func (x *DeviceConnectionParams) Reset()
func (*DeviceConnectionParams) String ¶ added in v1.0.4
func (x *DeviceConnectionParams) String() string
type DeviceConnectionType ¶ added in v1.0.4
type DeviceConnectionType int32
const ( DeviceConnectionType_USB DeviceConnectionType = 0 DeviceConnectionType_Remote DeviceConnectionType = 1 DeviceConnectionType_Node DeviceConnectionType = 2 )
func (DeviceConnectionType) Descriptor ¶ added in v1.0.4
func (DeviceConnectionType) Descriptor() protoreflect.EnumDescriptor
func (DeviceConnectionType) Enum ¶ added in v1.0.4
func (x DeviceConnectionType) Enum() *DeviceConnectionType
func (DeviceConnectionType) EnumDescriptor
deprecated
added in
v1.0.4
func (DeviceConnectionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceConnectionType.Descriptor instead.
func (DeviceConnectionType) Number ¶ added in v1.0.4
func (x DeviceConnectionType) Number() protoreflect.EnumNumber
func (DeviceConnectionType) String ¶ added in v1.0.4
func (x DeviceConnectionType) String() string
func (DeviceConnectionType) Type ¶ added in v1.0.4
func (DeviceConnectionType) Type() protoreflect.EnumType
type DeviceCustomParameter ¶ added in v1.0.4
type DeviceCustomParameter struct {
Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
// contains filtered or unexported fields
}
func (*DeviceCustomParameter) Descriptor
deprecated
added in
v1.0.4
func (*DeviceCustomParameter) Descriptor() ([]byte, []int)
Deprecated: Use DeviceCustomParameter.ProtoReflect.Descriptor instead.
func (*DeviceCustomParameter) GetKey ¶ added in v1.0.4
func (x *DeviceCustomParameter) GetKey() string
func (*DeviceCustomParameter) GetValue ¶ added in v1.0.4
func (x *DeviceCustomParameter) GetValue() string
func (*DeviceCustomParameter) ProtoMessage ¶ added in v1.0.4
func (*DeviceCustomParameter) ProtoMessage()
func (*DeviceCustomParameter) ProtoReflect ¶ added in v1.0.4
func (x *DeviceCustomParameter) ProtoReflect() protoreflect.Message
func (*DeviceCustomParameter) Reset ¶ added in v1.0.4
func (x *DeviceCustomParameter) Reset()
func (*DeviceCustomParameter) String ¶ added in v1.0.4
func (x *DeviceCustomParameter) String() string
type DeviceRequest ¶
type DeviceRequest struct {
DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
// contains filtered or unexported fields
}
func (*DeviceRequest) Descriptor
deprecated
func (*DeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceRequest.ProtoReflect.Descriptor instead.
func (*DeviceRequest) GetDeviceID ¶
func (x *DeviceRequest) GetDeviceID() string
func (*DeviceRequest) ProtoMessage ¶
func (*DeviceRequest) ProtoMessage()
func (*DeviceRequest) ProtoReflect ¶
func (x *DeviceRequest) ProtoReflect() protoreflect.Message
func (*DeviceRequest) Reset ¶
func (x *DeviceRequest) Reset()
func (*DeviceRequest) String ¶
func (x *DeviceRequest) String() string
type DeviceResponse ¶
type DeviceResponse struct {
Manager string `protobuf:"bytes,1,opt,name=Manager,proto3" json:"Manager,omitempty"`
DeviceID string `protobuf:"bytes,2,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
DeviceOS string `protobuf:"bytes,4,opt,name=DeviceOS,proto3" json:"DeviceOS,omitempty"`
DeviceOSVersion string `protobuf:"bytes,5,opt,name=DeviceOSVersion,proto3" json:"DeviceOSVersion,omitempty"`
DeviceOSInfos string `protobuf:"bytes,6,opt,name=DeviceOSInfos,proto3" json:"DeviceOSInfos,omitempty"`
ProjectDir string `protobuf:"bytes,7,opt,name=ProjectDir,proto3" json:"ProjectDir,omitempty"`
DeviceIP string `protobuf:"bytes,8,opt,name=DeviceIP,proto3" json:"DeviceIP,omitempty"`
DeviceModel string `protobuf:"bytes,9,opt,name=DeviceModel,proto3" json:"DeviceModel,omitempty"`
State DeviceState `protobuf:"varint,10,opt,name=State,proto3,enum=node.DeviceState" json:"State,omitempty"`
TargetVersion string `protobuf:"bytes,11,opt,name=TargetVersion,proto3" json:"TargetVersion,omitempty"`
DeviceType int32 `protobuf:"varint,12,opt,name=DeviceType,proto3" json:"DeviceType,omitempty"`
DeviceParameter string `protobuf:"bytes,13,opt,name=DeviceParameter,proto3" json:"DeviceParameter,omitempty"`
PlatformType int32 `protobuf:"varint,14,opt,name=PlatformType,proto3" json:"PlatformType,omitempty"`
// contains filtered or unexported fields
}
func ToDevicesResponse ¶ added in v1.1.0
func ToDevicesResponse(devices map[string][]device2.Device) []*DeviceResponse
ToDevicesResponse flattens a node's devices (keyed by manager) into the list sent to the master, both over RPC and with a device push.
func (*DeviceResponse) Descriptor
deprecated
func (*DeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeviceResponse.ProtoReflect.Descriptor instead.
func (*DeviceResponse) GetDeviceID ¶
func (x *DeviceResponse) GetDeviceID() string
func (*DeviceResponse) GetDeviceIP ¶
func (x *DeviceResponse) GetDeviceIP() string
func (*DeviceResponse) GetDeviceModel ¶
func (x *DeviceResponse) GetDeviceModel() string
func (*DeviceResponse) GetDeviceOS ¶
func (x *DeviceResponse) GetDeviceOS() string
func (*DeviceResponse) GetDeviceOSInfos ¶
func (x *DeviceResponse) GetDeviceOSInfos() string
func (*DeviceResponse) GetDeviceOSVersion ¶
func (x *DeviceResponse) GetDeviceOSVersion() string
func (*DeviceResponse) GetDeviceParameter ¶
func (x *DeviceResponse) GetDeviceParameter() string
func (*DeviceResponse) GetDeviceType ¶
func (x *DeviceResponse) GetDeviceType() int32
func (*DeviceResponse) GetManager ¶
func (x *DeviceResponse) GetManager() string
func (*DeviceResponse) GetName ¶
func (x *DeviceResponse) GetName() string
func (*DeviceResponse) GetPlatformType ¶
func (x *DeviceResponse) GetPlatformType() int32
func (*DeviceResponse) GetProjectDir ¶
func (x *DeviceResponse) GetProjectDir() string
func (*DeviceResponse) GetState ¶
func (x *DeviceResponse) GetState() DeviceState
func (*DeviceResponse) GetTargetVersion ¶
func (x *DeviceResponse) GetTargetVersion() string
func (*DeviceResponse) ProtoMessage ¶
func (*DeviceResponse) ProtoMessage()
func (*DeviceResponse) ProtoReflect ¶
func (x *DeviceResponse) ProtoReflect() protoreflect.Message
func (*DeviceResponse) Reset ¶
func (x *DeviceResponse) Reset()
func (*DeviceResponse) String ¶
func (x *DeviceResponse) String() string
type DeviceState ¶
type DeviceState int32
const ( DeviceState_None DeviceState = 0 DeviceState_Unknown DeviceState = 1 DeviceState_Shutdown DeviceState = 2 DeviceState_RemoteDisconnected DeviceState = 3 DeviceState_Booted DeviceState = 4 DeviceState_Locked DeviceState = 5 )
func (DeviceState) Descriptor ¶
func (DeviceState) Descriptor() protoreflect.EnumDescriptor
func (DeviceState) Enum ¶
func (x DeviceState) Enum() *DeviceState
func (DeviceState) EnumDescriptor
deprecated
func (DeviceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceState.Descriptor instead.
func (DeviceState) Number ¶
func (x DeviceState) Number() protoreflect.EnumNumber
func (DeviceState) String ¶
func (x DeviceState) String() string
func (DeviceState) Type ¶
func (DeviceState) Type() protoreflect.EnumType
type DeviceStatusRequest ¶
type DeviceStatusRequest struct {
DeviceId string `protobuf:"bytes,1,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
// contains filtered or unexported fields
}
func (*DeviceStatusRequest) Descriptor
deprecated
func (*DeviceStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceStatusRequest.ProtoReflect.Descriptor instead.
func (*DeviceStatusRequest) GetDeviceId ¶
func (x *DeviceStatusRequest) GetDeviceId() string
func (*DeviceStatusRequest) ProtoMessage ¶
func (*DeviceStatusRequest) ProtoMessage()
func (*DeviceStatusRequest) ProtoReflect ¶
func (x *DeviceStatusRequest) ProtoReflect() protoreflect.Message
func (*DeviceStatusRequest) Reset ¶
func (x *DeviceStatusRequest) Reset()
func (*DeviceStatusRequest) String ¶
func (x *DeviceStatusRequest) String() string
type DevicesChangedRequest ¶ added in v1.1.0
type DevicesChangedRequest struct {
Node string `json:"node" binding:"required"`
// SentAt (unix nano, node clock) orders pushes; the master drops one
// that is older than the last it applied.
SentAt int64 `json:"sentAt,omitempty"`
Devices *[]*DeviceResponse `json:"devices,omitempty"`
}
DevicesChangedRequest is the body of POST /node/devices. Devices is the node's complete device list, so the master applies it without asking the node again. A body without devices (older nodes) makes the master fetch the list over RPC.
type DevicesNotifier ¶ added in v1.1.0
type DevicesNotifier struct {
// contains filtered or unexported fields
}
DevicesNotifier pushes this node's device list to the master whenever it changed. Notify is cheap: the list is only sent when it differs from the last one the master accepted, and a failed send is retried with backoff.
func NewDevicesNotifier ¶ added in v1.1.0
func NewDevicesNotifier(masterURL, nodeIdentifier string, authToken *string, snapshot func() []*DeviceResponse) *DevicesNotifier
NewDevicesNotifier returns nil when there is no master to notify (the service runs as master itself); Notify on nil is a no-op. snapshot returns the node's current device list.
func (*DevicesNotifier) Notify ¶ added in v1.1.0
func (n *DevicesNotifier) Notify()
Notify schedules a push; calls within DevicesNotifierDelay are merged.
type DevicesResponse ¶
type DevicesResponse struct {
Devices []*DeviceResponse `protobuf:"bytes,1,rep,name=Devices,proto3" json:"Devices,omitempty"`
// contains filtered or unexported fields
}
func (*DevicesResponse) Descriptor
deprecated
func (*DevicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use DevicesResponse.ProtoReflect.Descriptor instead.
func (*DevicesResponse) GetDevices ¶
func (x *DevicesResponse) GetDevices() []*DeviceResponse
func (*DevicesResponse) ProtoMessage ¶
func (*DevicesResponse) ProtoMessage()
func (*DevicesResponse) ProtoReflect ¶
func (x *DevicesResponse) ProtoReflect() protoreflect.Message
func (*DevicesResponse) Reset ¶
func (x *DevicesResponse) Reset()
func (*DevicesResponse) String ¶
func (x *DevicesResponse) String() string
type ErrorResponse ¶
type ErrorResponse struct {
ErrorCode int32 `protobuf:"varint,1,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"`
ErrorMessage string `protobuf:"bytes,2,opt,name=ErrorMessage,proto3" json:"ErrorMessage,omitempty"`
// contains filtered or unexported fields
}
func (*ErrorResponse) Descriptor
deprecated
func (*ErrorResponse) Descriptor() ([]byte, []int)
Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.
func (*ErrorResponse) GetErrorCode ¶
func (x *ErrorResponse) GetErrorCode() int32
func (*ErrorResponse) GetErrorMessage ¶
func (x *ErrorResponse) GetErrorMessage() string
func (*ErrorResponse) ProtoMessage ¶
func (*ErrorResponse) ProtoMessage()
func (*ErrorResponse) ProtoReflect ¶
func (x *ErrorResponse) ProtoReflect() protoreflect.Message
func (*ErrorResponse) Reset ¶
func (x *ErrorResponse) Reset()
func (*ErrorResponse) String ¶
func (x *ErrorResponse) String() string
type ExecutableParams ¶
type ExecutableParams struct {
Executable string `protobuf:"bytes,1,opt,name=Executable,proto3" json:"Executable,omitempty"`
// contains filtered or unexported fields
}
func (*ExecutableParams) Descriptor
deprecated
func (*ExecutableParams) Descriptor() ([]byte, []int)
Deprecated: Use ExecutableParams.ProtoReflect.Descriptor instead.
func (*ExecutableParams) GetExecutable ¶
func (x *ExecutableParams) GetExecutable() string
func (*ExecutableParams) ProtoMessage ¶
func (*ExecutableParams) ProtoMessage()
func (*ExecutableParams) ProtoReflect ¶
func (x *ExecutableParams) ProtoReflect() protoreflect.Message
func (*ExecutableParams) Reset ¶
func (x *ExecutableParams) Reset()
func (*ExecutableParams) String ¶
func (x *ExecutableParams) String() string
type ExecuteRequest ¶
type ExecuteRequest struct {
DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
Data string `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
// contains filtered or unexported fields
}
func (*ExecuteRequest) Descriptor
deprecated
func (*ExecuteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.
func (*ExecuteRequest) GetData ¶
func (x *ExecuteRequest) GetData() string
func (*ExecuteRequest) GetDeviceID ¶
func (x *ExecuteRequest) GetDeviceID() string
func (*ExecuteRequest) ProtoMessage ¶
func (*ExecuteRequest) ProtoMessage()
func (*ExecuteRequest) ProtoReflect ¶
func (x *ExecuteRequest) ProtoReflect() protoreflect.Message
func (*ExecuteRequest) Reset ¶
func (x *ExecuteRequest) Reset()
func (*ExecuteRequest) String ¶
func (x *ExecuteRequest) String() string
type FeatureRequest ¶
type FeatureRequest struct {
DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
Feature string `protobuf:"bytes,2,opt,name=Feature,proto3" json:"Feature,omitempty"`
// contains filtered or unexported fields
}
func (*FeatureRequest) Descriptor
deprecated
func (*FeatureRequest) Descriptor() ([]byte, []int)
Deprecated: Use FeatureRequest.ProtoReflect.Descriptor instead.
func (*FeatureRequest) GetDeviceID ¶
func (x *FeatureRequest) GetDeviceID() string
func (*FeatureRequest) GetFeature ¶
func (x *FeatureRequest) GetFeature() string
func (*FeatureRequest) ProtoMessage ¶
func (*FeatureRequest) ProtoMessage()
func (*FeatureRequest) ProtoReflect ¶
func (x *FeatureRequest) ProtoReflect() protoreflect.Message
func (*FeatureRequest) Reset ¶
func (x *FeatureRequest) Reset()
func (*FeatureRequest) String ¶
func (x *FeatureRequest) String() string
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
RPCClient is the master's RPC connection to one node.
func (*RPCClient) ClearAppData ¶ added in v1.1.0
func (*RPCClient) ConnectionTimeout ¶
func (*RPCClient) Control ¶ added in v1.1.0
func (c *RPCClient) Control(req device.ControlRequest) (device.ControlResponse, error)
Control forwards a native control call (tap, swipe, text, key, logs).
func (*RPCClient) GetScreenshot ¶
GetScreenshot has the node take a screenshot and fetches it in chunks.
func (*RPCClient) InstallApp ¶
func (*RPCClient) IsAppInstalled ¶
func (*RPCClient) IsAppUploaded ¶
func (*RPCClient) IsConnected ¶
func (*RPCClient) RunNativeScript ¶
func (*RPCClient) SendAction ¶
func (*RPCClient) StartDevice ¶
func (*RPCClient) StartVideoStream ¶ added in v1.1.0
func (c *RPCClient) StartVideoStream(req device.VideoStreamRequest) error
StartVideoStream asks the node to stream a device's video to the master.
func (*RPCClient) StopDevice ¶
func (*RPCClient) UninstallApp ¶
type RPCDevice ¶
type RPCDevice struct {
generic.Device
Dev *DeviceResponse
}
func (*RPCDevice) ConnectionTimeout ¶
func (*RPCDevice) DeviceName ¶
func (*RPCDevice) DeviceOSName ¶
func (*RPCDevice) DeviceOSVersion ¶
func (*RPCDevice) DeviceParameter ¶
func (*RPCDevice) DeviceState ¶
func (*RPCDevice) DeviceType ¶
func (*RPCDevice) IsAppConnected ¶
IsAppConnected is false: the description has no connection to the app.
func (*RPCDevice) PlatformType ¶
func (*RPCDevice) TargetVersion ¶
type RPCNode ¶
type RPCNode struct {
// contains filtered or unexported fields
}
RPCNode is the RPC receiver on a node; the master's RPCClient calls it. The exported methods and their request types are the wire format.
func NewRPCNode ¶
NewRPCNode builds the receiver; the bundles it receives live in the bundle folder of the config.
func (*RPCNode) ClearAppData ¶ added in v1.1.0
func (s *RPCNode) ClearAppData(req *AppParameterRequest, resp *BoolResponse) error
func (*RPCNode) ConnectionTimeout ¶
func (s *RPCNode) ConnectionTimeout(req *DeviceRequest, resp *TimeoutResponse) error
func (*RPCNode) Control ¶ added in v1.1.0
func (s *RPCNode) Control(req *device.ControlRequest, resp *device.ControlResponse) error
Control applies a native control call to a local device.
func (*RPCNode) DeviceStatus ¶
func (s *RPCNode) DeviceStatus(req *DeviceStatusRequest, resp *DeviceResponse) error
func (*RPCNode) Execute ¶
func (s *RPCNode) Execute(req *ExecuteRequest, resp *Void) error
Execute is skipped on a device without features.
func (*RPCNode) GetDevices ¶
func (s *RPCNode) GetDevices(req *Void, resp *DevicesResponse) error
func (*RPCNode) GetScreenshotData ¶
func (s *RPCNode) GetScreenshotData(req *ScreenShotDataRequest, resp *ScreenShotDataResponse) error
GetScreenshotData returns a slice of the last screenshot taken for the device. The buffer is released once its last chunk was requested.
func (*RPCNode) HasFeature ¶
func (s *RPCNode) HasFeature(req *FeatureRequest, resp *BoolResponse) error
HasFeature answers false for a device without features.
func (*RPCNode) InstallApp ¶
func (s *RPCNode) InstallApp(req *AppParameterRequest, resp *BoolResponse) error
func (*RPCNode) IsAppInstalled ¶
func (s *RPCNode) IsAppInstalled(req *AppParameterRequest, resp *BoolResponse) error
func (*RPCNode) IsAppUploaded ¶
func (s *RPCNode) IsAppUploaded(req *AppParameterRequest, resp *BoolResponse) error
func (*RPCNode) IsConnected ¶
func (s *RPCNode) IsConnected(req *DeviceRequest, resp *BoolResponse) error
func (*RPCNode) RunNativeScript ¶
func (s *RPCNode) RunNativeScript(req *ExecuteRequest, resp *Void) error
RunNativeScript is skipped on a device without native scripts.
func (*RPCNode) SendAction ¶
func (s *RPCNode) SendAction(req *ExecuteRequest, resp *Void) error
func (*RPCNode) StartApp ¶
func (s *RPCNode) StartApp(req *StartAppRequest, resp *BoolResponse) error
func (*RPCNode) StartDevice ¶
func (s *RPCNode) StartDevice(req *DeviceRequest, resp *ErrorResponse) error
func (*RPCNode) StartVideoStream ¶ added in v1.1.0
func (s *RPCNode) StartVideoStream(req *device.VideoStreamRequest, resp *Void) error
StartVideoStream starts the video of a local device and pumps it into a websocket to the master's /node/video/:stream_id endpoint.
func (*RPCNode) StopApp ¶
func (s *RPCNode) StopApp(req *AppParameterRequest, resp *BoolResponse) error
func (*RPCNode) StopDevice ¶
func (s *RPCNode) StopDevice(req *DeviceRequest, resp *ErrorResponse) error
func (*RPCNode) TakeScreenshot ¶
func (s *RPCNode) TakeScreenshot(req *DeviceRequest, resp *ScreenShotResponse) error
func (*RPCNode) UninstallApp ¶
func (s *RPCNode) UninstallApp(req *AppParameterRequest, resp *BoolResponse) error
func (*RPCNode) UploadApp ¶
func (s *RPCNode) UploadApp(req *UploadAppRequest, resp *BoolResponse) error
func (*RPCNode) UploadAppProgress ¶
func (s *RPCNode) UploadAppProgress(req *UploadAppProgressRequest, resp *UploadAppProgressResponse) error
type ReconnectHandler ¶
type ReconnectHandler struct {
ConnectFunction func()
// contains filtered or unexported fields
}
func (*ReconnectHandler) HandleConnect ¶
func (h *ReconnectHandler) HandleConnect() error
HandleConnect starts a connection attempt in the background. The ping timer is reset so the observer gives the new connection a full ping interval before trying again. ConnectFunction must close a previous connection and ignore calls while a dial is still in progress.
func (*ReconnectHandler) ObserveConnectionState ¶
func (*ReconnectHandler) PingReceived ¶
func (h *ReconnectHandler) PingReceived()
type RegisterNodeRequest ¶
type RegisterNodeRequest struct {
Identifier string `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
Hostname string `protobuf:"bytes,2,opt,name=Hostname,proto3" json:"Hostname,omitempty"`
OperationSystem string `protobuf:"bytes,3,opt,name=OperationSystem,proto3" json:"OperationSystem,omitempty"`
EnvironmentVariables string `protobuf:"bytes,4,opt,name=EnvironmentVariables,proto3" json:"EnvironmentVariables,omitempty"`
Port int32 `protobuf:"varint,5,opt,name=Port,proto3" json:"Port,omitempty"`
Managers []string `protobuf:"bytes,6,rep,name=Managers,proto3" json:"Managers,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterNodeRequest) Descriptor
deprecated
func (*RegisterNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNodeRequest.ProtoReflect.Descriptor instead.
func (*RegisterNodeRequest) GetEnvironmentVariables ¶
func (x *RegisterNodeRequest) GetEnvironmentVariables() string
func (*RegisterNodeRequest) GetHostname ¶
func (x *RegisterNodeRequest) GetHostname() string
func (*RegisterNodeRequest) GetIdentifier ¶
func (x *RegisterNodeRequest) GetIdentifier() string
func (*RegisterNodeRequest) GetManagers ¶
func (x *RegisterNodeRequest) GetManagers() []string
func (*RegisterNodeRequest) GetOperationSystem ¶
func (x *RegisterNodeRequest) GetOperationSystem() string
func (*RegisterNodeRequest) GetPort ¶
func (x *RegisterNodeRequest) GetPort() int32
func (*RegisterNodeRequest) ProtoMessage ¶
func (*RegisterNodeRequest) ProtoMessage()
func (*RegisterNodeRequest) ProtoReflect ¶
func (x *RegisterNodeRequest) ProtoReflect() protoreflect.Message
func (*RegisterNodeRequest) Reset ¶
func (x *RegisterNodeRequest) Reset()
func (*RegisterNodeRequest) String ¶
func (x *RegisterNodeRequest) String() string
type ScreenShotDataRequest ¶
type ScreenShotDataRequest struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Start int32 `protobuf:"varint,2,opt,name=Start,proto3" json:"Start,omitempty"`
End int32 `protobuf:"varint,3,opt,name=End,proto3" json:"End,omitempty"`
// contains filtered or unexported fields
}
func (*ScreenShotDataRequest) Descriptor
deprecated
func (*ScreenShotDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use ScreenShotDataRequest.ProtoReflect.Descriptor instead.
func (*ScreenShotDataRequest) GetEnd ¶
func (x *ScreenShotDataRequest) GetEnd() int32
func (*ScreenShotDataRequest) GetHash ¶
func (x *ScreenShotDataRequest) GetHash() string
func (*ScreenShotDataRequest) GetStart ¶
func (x *ScreenShotDataRequest) GetStart() int32
func (*ScreenShotDataRequest) ProtoMessage ¶
func (*ScreenShotDataRequest) ProtoMessage()
func (*ScreenShotDataRequest) ProtoReflect ¶
func (x *ScreenShotDataRequest) ProtoReflect() protoreflect.Message
func (*ScreenShotDataRequest) Reset ¶
func (x *ScreenShotDataRequest) Reset()
func (*ScreenShotDataRequest) String ¶
func (x *ScreenShotDataRequest) String() string
type ScreenShotDataResponse ¶
type ScreenShotDataResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
// contains filtered or unexported fields
}
func (*ScreenShotDataResponse) Descriptor
deprecated
func (*ScreenShotDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use ScreenShotDataResponse.ProtoReflect.Descriptor instead.
func (*ScreenShotDataResponse) GetData ¶
func (x *ScreenShotDataResponse) GetData() []byte
func (*ScreenShotDataResponse) ProtoMessage ¶
func (*ScreenShotDataResponse) ProtoMessage()
func (*ScreenShotDataResponse) ProtoReflect ¶
func (x *ScreenShotDataResponse) ProtoReflect() protoreflect.Message
func (*ScreenShotDataResponse) Reset ¶
func (x *ScreenShotDataResponse) Reset()
func (*ScreenShotDataResponse) String ¶
func (x *ScreenShotDataResponse) String() string
type ScreenShotResponse ¶
type ScreenShotResponse struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"`
Width int32 `protobuf:"varint,3,opt,name=Width,proto3" json:"Width,omitempty"`
Height int32 `protobuf:"varint,4,opt,name=Height,proto3" json:"Height,omitempty"`
// contains filtered or unexported fields
}
func (*ScreenShotResponse) Descriptor
deprecated
func (*ScreenShotResponse) Descriptor() ([]byte, []int)
Deprecated: Use ScreenShotResponse.ProtoReflect.Descriptor instead.
func (*ScreenShotResponse) GetHash ¶
func (x *ScreenShotResponse) GetHash() string
func (*ScreenShotResponse) GetHeight ¶
func (x *ScreenShotResponse) GetHeight() int32
func (*ScreenShotResponse) GetSize ¶
func (x *ScreenShotResponse) GetSize() int32
func (*ScreenShotResponse) GetWidth ¶
func (x *ScreenShotResponse) GetWidth() int32
func (*ScreenShotResponse) ProtoMessage ¶
func (*ScreenShotResponse) ProtoMessage()
func (*ScreenShotResponse) ProtoReflect ¶
func (x *ScreenShotResponse) ProtoReflect() protoreflect.Message
func (*ScreenShotResponse) Reset ¶
func (x *ScreenShotResponse) Reset()
func (*ScreenShotResponse) String ¶
func (x *ScreenShotResponse) String() string
type StartAppRequest ¶
type StartAppRequest struct {
App *AppParameterRequest `protobuf:"bytes,1,opt,name=App,proto3" json:"App,omitempty"`
SessionID string `protobuf:"bytes,2,opt,name=SessionID,proto3" json:"SessionID,omitempty"`
HostIP string `protobuf:"bytes,3,opt,name=HostIP,proto3" json:"HostIP,omitempty"`
ConnectionParams *DeviceConnectionParams `protobuf:"bytes,4,opt,name=ConnectionParams,proto3,oneof" json:"ConnectionParams,omitempty"`
CustomParameter []*DeviceCustomParameter `protobuf:"bytes,5,rep,name=CustomParameter,proto3" json:"CustomParameter,omitempty"`
// contains filtered or unexported fields
}
func (*StartAppRequest) Descriptor
deprecated
func (*StartAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartAppRequest.ProtoReflect.Descriptor instead.
func (*StartAppRequest) GetApp ¶
func (x *StartAppRequest) GetApp() *AppParameterRequest
func (*StartAppRequest) GetConnectionParams ¶ added in v1.0.4
func (x *StartAppRequest) GetConnectionParams() *DeviceConnectionParams
func (*StartAppRequest) GetCustomParameter ¶ added in v1.0.4
func (x *StartAppRequest) GetCustomParameter() []*DeviceCustomParameter
func (*StartAppRequest) GetHostIP ¶
func (x *StartAppRequest) GetHostIP() string
func (*StartAppRequest) GetSessionID ¶
func (x *StartAppRequest) GetSessionID() string
func (*StartAppRequest) ProtoMessage ¶
func (*StartAppRequest) ProtoMessage()
func (*StartAppRequest) ProtoReflect ¶
func (x *StartAppRequest) ProtoReflect() protoreflect.Message
func (*StartAppRequest) Reset ¶
func (x *StartAppRequest) Reset()
func (*StartAppRequest) String ¶
func (x *StartAppRequest) String() string
type TimeoutResponse ¶
type TimeoutResponse struct {
Timeout int64 `protobuf:"varint,1,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
// contains filtered or unexported fields
}
func (*TimeoutResponse) Descriptor
deprecated
func (*TimeoutResponse) Descriptor() ([]byte, []int)
Deprecated: Use TimeoutResponse.ProtoReflect.Descriptor instead.
func (*TimeoutResponse) GetTimeout ¶
func (x *TimeoutResponse) GetTimeout() int64
func (*TimeoutResponse) ProtoMessage ¶
func (*TimeoutResponse) ProtoMessage()
func (*TimeoutResponse) ProtoReflect ¶
func (x *TimeoutResponse) ProtoReflect() protoreflect.Message
func (*TimeoutResponse) Reset ¶
func (x *TimeoutResponse) Reset()
func (*TimeoutResponse) String ¶
func (x *TimeoutResponse) String() string
type UploadAppProgressRequest ¶
type UploadAppProgressRequest struct {
AppID int32 `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
// contains filtered or unexported fields
}
func (*UploadAppProgressRequest) Descriptor
deprecated
func (*UploadAppProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadAppProgressRequest.ProtoReflect.Descriptor instead.
func (*UploadAppProgressRequest) GetAppID ¶
func (x *UploadAppProgressRequest) GetAppID() int32
func (*UploadAppProgressRequest) ProtoMessage ¶
func (*UploadAppProgressRequest) ProtoMessage()
func (*UploadAppProgressRequest) ProtoReflect ¶
func (x *UploadAppProgressRequest) ProtoReflect() protoreflect.Message
func (*UploadAppProgressRequest) Reset ¶
func (x *UploadAppProgressRequest) Reset()
func (*UploadAppProgressRequest) String ¶
func (x *UploadAppProgressRequest) String() string
type UploadAppProgressResponse ¶
type UploadAppProgressResponse struct {
AppID int32 `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
DataReceived int64 `protobuf:"varint,2,opt,name=DataReceived,proto3" json:"DataReceived,omitempty"`
// contains filtered or unexported fields
}
func (*UploadAppProgressResponse) Descriptor
deprecated
func (*UploadAppProgressResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadAppProgressResponse.ProtoReflect.Descriptor instead.
func (*UploadAppProgressResponse) GetAppID ¶
func (x *UploadAppProgressResponse) GetAppID() int32
func (*UploadAppProgressResponse) GetDataReceived ¶
func (x *UploadAppProgressResponse) GetDataReceived() int64
func (*UploadAppProgressResponse) ProtoMessage ¶
func (*UploadAppProgressResponse) ProtoMessage()
func (*UploadAppProgressResponse) ProtoReflect ¶
func (x *UploadAppProgressResponse) ProtoReflect() protoreflect.Message
func (*UploadAppProgressResponse) Reset ¶
func (x *UploadAppProgressResponse) Reset()
func (*UploadAppProgressResponse) String ¶
func (x *UploadAppProgressResponse) String() string
type UploadAppRequest ¶
type UploadAppRequest struct {
AppID int32 `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
Identifier string `protobuf:"bytes,2,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
Hash string `protobuf:"bytes,4,opt,name=Hash,proto3" json:"Hash,omitempty"`
Size int64 `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"`
URL string `protobuf:"bytes,6,opt,name=URL,proto3" json:"URL,omitempty"`
// contains filtered or unexported fields
}
func (*UploadAppRequest) Descriptor
deprecated
func (*UploadAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadAppRequest.ProtoReflect.Descriptor instead.
func (*UploadAppRequest) GetAppID ¶
func (x *UploadAppRequest) GetAppID() int32
func (*UploadAppRequest) GetHash ¶
func (x *UploadAppRequest) GetHash() string
func (*UploadAppRequest) GetIdentifier ¶
func (x *UploadAppRequest) GetIdentifier() string
func (*UploadAppRequest) GetName ¶
func (x *UploadAppRequest) GetName() string
func (*UploadAppRequest) GetSize ¶
func (x *UploadAppRequest) GetSize() int64
func (*UploadAppRequest) GetURL ¶
func (x *UploadAppRequest) GetURL() string
func (*UploadAppRequest) ProtoMessage ¶
func (*UploadAppRequest) ProtoMessage()
func (*UploadAppRequest) ProtoReflect ¶
func (x *UploadAppRequest) ProtoReflect() protoreflect.Message
func (*UploadAppRequest) Reset ¶
func (x *UploadAppRequest) Reset()
func (*UploadAppRequest) String ¶
func (x *UploadAppRequest) String() string
type UploadProgress ¶
type UploadProgress struct {
Request *UploadAppRequest
// contains filtered or unexported fields
}
UploadProgress tracks one app the node downloads from the master.
func (*UploadProgress) Error ¶ added in v1.1.0
func (p *UploadProgress) Error() error
type Void ¶
type Void struct {
// contains filtered or unexported fields
}
func (*Void) Descriptor
deprecated
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) ProtoReflect ¶
func (x *Void) ProtoReflect() protoreflect.Message
type WebParams ¶
type WebParams struct {
StartURL string `protobuf:"bytes,1,opt,name=StartURL,proto3" json:"StartURL,omitempty"`
// contains filtered or unexported fields
}
func (*WebParams) Descriptor
deprecated
func (*WebParams) GetStartURL ¶
func (*WebParams) ProtoMessage ¶
func (*WebParams) ProtoMessage()
func (*WebParams) ProtoReflect ¶
func (x *WebParams) ProtoReflect() protoreflect.Message