Documentation ¶
Index ¶
- Variables
- func RegisterPluginServer(s *grpc.Server, srv PluginServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetAttributes() []byte
- func (x *Action) GetIdentity() string
- func (x *Action) GetInstanceId() int32
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetIdentity() string
- func (x *Device) GetManufacturer() string
- func (x *Device) GetModel() string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type Empty
- type ExecuteReq
- func (*ExecuteReq) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteReq) GetCmd() string
- func (x *ExecuteReq) GetData() []byte
- func (x *ExecuteReq) GetIdentity() string
- func (*ExecuteReq) ProtoMessage()
- func (x *ExecuteReq) ProtoReflect() protoreflect.Message
- func (x *ExecuteReq) Reset()
- func (x *ExecuteReq) String() string
- type ExecuteResp
- func (*ExecuteResp) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteResp) GetData() []byte
- func (x *ExecuteResp) GetError() string
- func (x *ExecuteResp) GetSuccess() bool
- func (*ExecuteResp) ProtoMessage()
- func (x *ExecuteResp) ProtoReflect() protoreflect.Message
- func (x *ExecuteResp) Reset()
- func (x *ExecuteResp) String() string
- type GetAttributesReq
- type GetAttributesResp
- func (*GetAttributesResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttributesResp) GetError() string
- func (x *GetAttributesResp) GetInstances() []*Instance
- func (x *GetAttributesResp) GetSuccess() bool
- func (*GetAttributesResp) ProtoMessage()
- func (x *GetAttributesResp) ProtoReflect() protoreflect.Message
- func (x *GetAttributesResp) Reset()
- func (x *GetAttributesResp) String() string
- type HealthCheckReq
- type HealthCheckResp
- func (*HealthCheckResp) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResp) GetIdentity() string
- func (x *HealthCheckResp) GetOnline() bool
- func (*HealthCheckResp) ProtoMessage()
- func (x *HealthCheckResp) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResp) Reset()
- func (x *HealthCheckResp) String() string
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)deprecated
- func (x *Instance) GetAttributes() []byte
- func (x *Instance) GetIdentity() string
- func (x *Instance) GetInstanceId() int32
- func (x *Instance) GetType() string
- func (*Instance) ProtoMessage()
- func (x *Instance) ProtoReflect() protoreflect.Message
- func (x *Instance) Reset()
- func (x *Instance) String() string
- type PluginClient
- type PluginServer
- type Plugin_DiscoverClient
- type Plugin_DiscoverServer
- type Plugin_StateChangeClient
- type Plugin_StateChangeServer
- type SetAttributesReq
- func (*SetAttributesReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetAttributesReq) GetData() []byte
- func (x *SetAttributesReq) GetIdentity() string
- func (*SetAttributesReq) ProtoMessage()
- func (x *SetAttributesReq) ProtoReflect() protoreflect.Message
- func (x *SetAttributesReq) Reset()
- func (x *SetAttributesReq) String() string
- type SetAttributesResp
- func (*SetAttributesResp) Descriptor() ([]byte, []int)deprecated
- func (x *SetAttributesResp) GetError() string
- func (x *SetAttributesResp) GetSuccess() bool
- func (*SetAttributesResp) ProtoMessage()
- func (x *SetAttributesResp) ProtoReflect() protoreflect.Message
- func (x *SetAttributesResp) Reset()
- func (x *SetAttributesResp) String() string
- type State
- func (*State) Descriptor() ([]byte, []int)deprecated
- func (x *State) GetAttributes() []byte
- func (x *State) GetIdentity() string
- func (x *State) GetInstanceId() int32
- func (*State) ProtoMessage()
- func (x *State) ProtoReflect() protoreflect.Message
- func (x *State) Reset()
- func (x *State) String() string
- type UnimplementedPluginServer
- func (*UnimplementedPluginServer) Discover(*Empty, Plugin_DiscoverServer) error
- func (*UnimplementedPluginServer) GetAttributes(context.Context, *GetAttributesReq) (*GetAttributesResp, error)
- func (*UnimplementedPluginServer) HealthCheck(context.Context, *HealthCheckReq) (*HealthCheckResp, error)
- func (*UnimplementedPluginServer) SetAttributes(context.Context, *SetAttributesReq) (*SetAttributesResp, error)
- func (*UnimplementedPluginServer) StateChange(*Empty, Plugin_StateChangeServer) error
Constants ¶
This section is empty.
Variables ¶
var File_plugin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPluginServer ¶
func RegisterPluginServer(s *grpc.Server, srv PluginServer)
Types ¶
type Action ¶
type Action struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` InstanceId int32 `protobuf:"varint,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` Attributes []byte `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetAttributes ¶
func (*Action) GetIdentity ¶
func (*Action) GetInstanceId ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type Device ¶
type Device struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` Manufacturer string `protobuf:"bytes,3,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetIdentity ¶
func (*Device) GetManufacturer ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ExecuteReq ¶
type ExecuteReq struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Cmd string `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ExecuteReq) Descriptor
deprecated
func (*ExecuteReq) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteReq.ProtoReflect.Descriptor instead.
func (*ExecuteReq) GetCmd ¶
func (x *ExecuteReq) GetCmd() string
func (*ExecuteReq) GetData ¶
func (x *ExecuteReq) GetData() []byte
func (*ExecuteReq) GetIdentity ¶
func (x *ExecuteReq) GetIdentity() string
func (*ExecuteReq) ProtoMessage ¶
func (*ExecuteReq) ProtoMessage()
func (*ExecuteReq) ProtoReflect ¶
func (x *ExecuteReq) ProtoReflect() protoreflect.Message
func (*ExecuteReq) Reset ¶
func (x *ExecuteReq) Reset()
func (*ExecuteReq) String ¶
func (x *ExecuteReq) String() string
type ExecuteResp ¶
type ExecuteResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ExecuteResp) Descriptor
deprecated
func (*ExecuteResp) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteResp.ProtoReflect.Descriptor instead.
func (*ExecuteResp) GetData ¶
func (x *ExecuteResp) GetData() []byte
func (*ExecuteResp) GetError ¶
func (x *ExecuteResp) GetError() string
func (*ExecuteResp) GetSuccess ¶
func (x *ExecuteResp) GetSuccess() bool
func (*ExecuteResp) ProtoMessage ¶
func (*ExecuteResp) ProtoMessage()
func (*ExecuteResp) ProtoReflect ¶
func (x *ExecuteResp) ProtoReflect() protoreflect.Message
func (*ExecuteResp) Reset ¶
func (x *ExecuteResp) Reset()
func (*ExecuteResp) String ¶
func (x *ExecuteResp) String() string
type GetAttributesReq ¶
type GetAttributesReq struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // contains filtered or unexported fields }
func (*GetAttributesReq) Descriptor
deprecated
func (*GetAttributesReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAttributesReq.ProtoReflect.Descriptor instead.
func (*GetAttributesReq) GetIdentity ¶
func (x *GetAttributesReq) GetIdentity() string
func (*GetAttributesReq) ProtoMessage ¶
func (*GetAttributesReq) ProtoMessage()
func (*GetAttributesReq) ProtoReflect ¶
func (x *GetAttributesReq) ProtoReflect() protoreflect.Message
func (*GetAttributesReq) Reset ¶
func (x *GetAttributesReq) Reset()
func (*GetAttributesReq) String ¶
func (x *GetAttributesReq) String() string
type GetAttributesResp ¶
type GetAttributesResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Instances []*Instance `protobuf:"bytes,3,rep,name=instances,proto3" json:"instances,omitempty"` // contains filtered or unexported fields }
func (*GetAttributesResp) Descriptor
deprecated
func (*GetAttributesResp) Descriptor() ([]byte, []int)
Deprecated: Use GetAttributesResp.ProtoReflect.Descriptor instead.
func (*GetAttributesResp) GetError ¶
func (x *GetAttributesResp) GetError() string
func (*GetAttributesResp) GetInstances ¶
func (x *GetAttributesResp) GetInstances() []*Instance
func (*GetAttributesResp) GetSuccess ¶
func (x *GetAttributesResp) GetSuccess() bool
func (*GetAttributesResp) ProtoMessage ¶
func (*GetAttributesResp) ProtoMessage()
func (*GetAttributesResp) ProtoReflect ¶
func (x *GetAttributesResp) ProtoReflect() protoreflect.Message
func (*GetAttributesResp) Reset ¶
func (x *GetAttributesResp) Reset()
func (*GetAttributesResp) String ¶
func (x *GetAttributesResp) String() string
type HealthCheckReq ¶
type HealthCheckReq struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // contains filtered or unexported fields }
func (*HealthCheckReq) Descriptor
deprecated
func (*HealthCheckReq) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckReq.ProtoReflect.Descriptor instead.
func (*HealthCheckReq) GetIdentity ¶
func (x *HealthCheckReq) GetIdentity() string
func (*HealthCheckReq) ProtoMessage ¶
func (*HealthCheckReq) ProtoMessage()
func (*HealthCheckReq) ProtoReflect ¶
func (x *HealthCheckReq) ProtoReflect() protoreflect.Message
func (*HealthCheckReq) Reset ¶
func (x *HealthCheckReq) Reset()
func (*HealthCheckReq) String ¶
func (x *HealthCheckReq) String() string
type HealthCheckResp ¶
type HealthCheckResp struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Online bool `protobuf:"varint,2,opt,name=online,proto3" json:"online,omitempty"` // contains filtered or unexported fields }
func (*HealthCheckResp) Descriptor
deprecated
func (*HealthCheckResp) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResp.ProtoReflect.Descriptor instead.
func (*HealthCheckResp) GetIdentity ¶
func (x *HealthCheckResp) GetIdentity() string
func (*HealthCheckResp) GetOnline ¶
func (x *HealthCheckResp) GetOnline() bool
func (*HealthCheckResp) ProtoMessage ¶
func (*HealthCheckResp) ProtoMessage()
func (*HealthCheckResp) ProtoReflect ¶
func (x *HealthCheckResp) ProtoReflect() protoreflect.Message
func (*HealthCheckResp) Reset ¶
func (x *HealthCheckResp) Reset()
func (*HealthCheckResp) String ¶
func (x *HealthCheckResp) String() string
type Instance ¶
type Instance struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` InstanceId int32 `protobuf:"varint,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` Attributes []byte `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Instance) Descriptor
deprecated
func (*Instance) GetAttributes ¶
func (*Instance) GetIdentity ¶
func (*Instance) GetInstanceId ¶
func (*Instance) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
type PluginClient ¶
type PluginClient interface { Discover(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Plugin_DiscoverClient, error) StateChange(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Plugin_StateChangeClient, error) HealthCheck(ctx context.Context, in *HealthCheckReq, opts ...grpc.CallOption) (*HealthCheckResp, error) GetAttributes(ctx context.Context, in *GetAttributesReq, opts ...grpc.CallOption) (*GetAttributesResp, error) SetAttributes(ctx context.Context, in *SetAttributesReq, opts ...grpc.CallOption) (*SetAttributesResp, error) }
PluginClient is the client API for Plugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPluginClient ¶
func NewPluginClient(cc grpc.ClientConnInterface) PluginClient
type PluginServer ¶
type PluginServer interface { Discover(*Empty, Plugin_DiscoverServer) error StateChange(*Empty, Plugin_StateChangeServer) error HealthCheck(context.Context, *HealthCheckReq) (*HealthCheckResp, error) GetAttributes(context.Context, *GetAttributesReq) (*GetAttributesResp, error) SetAttributes(context.Context, *SetAttributesReq) (*SetAttributesResp, error) }
PluginServer is the server API for Plugin service.
type Plugin_DiscoverClient ¶
type Plugin_DiscoverClient interface { Recv() (*Device, error) grpc.ClientStream }
type Plugin_DiscoverServer ¶
type Plugin_DiscoverServer interface { Send(*Device) error grpc.ServerStream }
type Plugin_StateChangeClient ¶
type Plugin_StateChangeClient interface { Recv() (*State, error) grpc.ClientStream }
type Plugin_StateChangeServer ¶
type Plugin_StateChangeServer interface { Send(*State) error grpc.ServerStream }
type SetAttributesReq ¶
type SetAttributesReq struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SetAttributesReq) Descriptor
deprecated
func (*SetAttributesReq) Descriptor() ([]byte, []int)
Deprecated: Use SetAttributesReq.ProtoReflect.Descriptor instead.
func (*SetAttributesReq) GetData ¶
func (x *SetAttributesReq) GetData() []byte
func (*SetAttributesReq) GetIdentity ¶
func (x *SetAttributesReq) GetIdentity() string
func (*SetAttributesReq) ProtoMessage ¶
func (*SetAttributesReq) ProtoMessage()
func (*SetAttributesReq) ProtoReflect ¶
func (x *SetAttributesReq) ProtoReflect() protoreflect.Message
func (*SetAttributesReq) Reset ¶
func (x *SetAttributesReq) Reset()
func (*SetAttributesReq) String ¶
func (x *SetAttributesReq) String() string
type SetAttributesResp ¶
type SetAttributesResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*SetAttributesResp) Descriptor
deprecated
func (*SetAttributesResp) Descriptor() ([]byte, []int)
Deprecated: Use SetAttributesResp.ProtoReflect.Descriptor instead.
func (*SetAttributesResp) GetError ¶
func (x *SetAttributesResp) GetError() string
func (*SetAttributesResp) GetSuccess ¶
func (x *SetAttributesResp) GetSuccess() bool
func (*SetAttributesResp) ProtoMessage ¶
func (*SetAttributesResp) ProtoMessage()
func (*SetAttributesResp) ProtoReflect ¶
func (x *SetAttributesResp) ProtoReflect() protoreflect.Message
func (*SetAttributesResp) Reset ¶
func (x *SetAttributesResp) Reset()
func (*SetAttributesResp) String ¶
func (x *SetAttributesResp) String() string
type State ¶
type State struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` InstanceId int32 `protobuf:"varint,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` Attributes []byte `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*State) Descriptor
deprecated
func (*State) GetAttributes ¶
func (*State) GetIdentity ¶
func (*State) GetInstanceId ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶
func (x *State) ProtoReflect() protoreflect.Message
type UnimplementedPluginServer ¶
type UnimplementedPluginServer struct { }
UnimplementedPluginServer can be embedded to have forward compatible implementations.
func (*UnimplementedPluginServer) Discover ¶
func (*UnimplementedPluginServer) Discover(*Empty, Plugin_DiscoverServer) error
func (*UnimplementedPluginServer) GetAttributes ¶
func (*UnimplementedPluginServer) GetAttributes(context.Context, *GetAttributesReq) (*GetAttributesResp, error)
func (*UnimplementedPluginServer) HealthCheck ¶
func (*UnimplementedPluginServer) HealthCheck(context.Context, *HealthCheckReq) (*HealthCheckResp, error)
func (*UnimplementedPluginServer) SetAttributes ¶
func (*UnimplementedPluginServer) SetAttributes(context.Context, *SetAttributesReq) (*SetAttributesResp, error)
func (*UnimplementedPluginServer) StateChange ¶
func (*UnimplementedPluginServer) StateChange(*Empty, Plugin_StateChangeServer) error