registrypb

package
v0.0.0-...-c6a7f1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Devices_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "infinimesh.deviceregistry.Devices",
	HandlerType: (*DevicesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Devices_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Devices_Update_Handler,
		},
		{
			MethodName: "GetByFingerprint",
			Handler:    _Devices_GetByFingerprint_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Devices_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Devices_List_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Devices_Delete_Handler,
		},
		{
			MethodName: "AssignOwnerDevices",
			Handler:    _Devices_AssignOwnerDevices_Handler,
		},
		{
			MethodName: "RemoveOwnerDevices",
			Handler:    _Devices_RemoveOwnerDevices_Handler,
		},
		{
			MethodName: "GetDeviceStatus",
			Handler:    _Devices_GetDeviceStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/registry/registrypb/device_registry.proto",
}

Devices_ServiceDesc is the grpc.ServiceDesc for Devices service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_registry_registrypb_device_registry_proto protoreflect.FileDescriptor

Functions

func RegisterDevicesServer

func RegisterDevicesServer(s grpc.ServiceRegistrar, srv DevicesServer)

Types

type Certificate

type Certificate struct {
	PemData              string `protobuf:"bytes,1,opt,name=pem_data,json=pemData,proto3" json:"pem_data,omitempty"`
	Algorithm            string `protobuf:"bytes,2,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
	Fingerprint          []byte `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	FingerprintAlgorithm string `protobuf:"bytes,4,opt,name=fingerprintAlgorithm,proto3" json:"fingerprintAlgorithm,omitempty"`
	// contains filtered or unexported fields
}

func (*Certificate) Descriptor deprecated

func (*Certificate) Descriptor() ([]byte, []int)

Deprecated: Use Certificate.ProtoReflect.Descriptor instead.

func (*Certificate) GetAlgorithm

func (x *Certificate) GetAlgorithm() string

func (*Certificate) GetFingerprint

func (x *Certificate) GetFingerprint() []byte

func (*Certificate) GetFingerprintAlgorithm

func (x *Certificate) GetFingerprintAlgorithm() string

func (*Certificate) GetPemData

func (x *Certificate) GetPemData() string

func (*Certificate) ProtoMessage

func (*Certificate) ProtoMessage()

func (*Certificate) ProtoReflect

func (x *Certificate) ProtoReflect() protoreflect.Message

func (*Certificate) Reset

func (x *Certificate) Reset()

func (*Certificate) String

func (x *Certificate) String() string

type CreateRequest

type CreateRequest struct {
	Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

func (*CreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetDevice

func (x *CreateRequest) GetDevice() *Device

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

func (x *CreateRequest) ProtoReflect() protoreflect.Message

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

func (*CreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetDevice

func (x *CreateResponse) GetDevice() *Device

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

func (x *CreateResponse) ProtoReflect() protoreflect.Message

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

func (*DeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

func (*DeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

func (x *DeleteResponse) ProtoReflect() protoreflect.Message

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type Device

type Device struct {
	Id           string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name         string                `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Enabled      *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Certificate  *Certificate          `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Tags         []string              `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	Namespace    string                `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"`
	BasicEnabled *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=basic_enabled,json=basicEnabled,proto3" json:"basic_enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

func (*Device) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetBasicEnabled

func (x *Device) GetBasicEnabled() *wrapperspb.BoolValue

func (*Device) GetCertificate

func (x *Device) GetCertificate() *Certificate

func (*Device) GetEnabled

func (x *Device) GetEnabled() *wrapperspb.BoolValue

func (*Device) GetId

func (x *Device) GetId() string

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetNamespace

func (x *Device) GetNamespace() string

func (*Device) GetTags

func (x *Device) GetTags() []string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type DevicesClient

DevicesClient is the client API for Devices service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDevicesClient

func NewDevicesClient(cc grpc.ClientConnInterface) DevicesClient

type DevicesServer

DevicesServer is the server API for Devices service. All implementations must embed UnimplementedDevicesServer for forward compatibility

type GetByFingerprintRequest

type GetByFingerprintRequest struct {
	Fingerprint []byte `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByFingerprintRequest) Descriptor deprecated

func (*GetByFingerprintRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetByFingerprintRequest.ProtoReflect.Descriptor instead.

func (*GetByFingerprintRequest) GetFingerprint

func (x *GetByFingerprintRequest) GetFingerprint() []byte

func (*GetByFingerprintRequest) ProtoMessage

func (*GetByFingerprintRequest) ProtoMessage()

func (*GetByFingerprintRequest) ProtoReflect

func (x *GetByFingerprintRequest) ProtoReflect() protoreflect.Message

func (*GetByFingerprintRequest) Reset

func (x *GetByFingerprintRequest) Reset()

func (*GetByFingerprintRequest) String

func (x *GetByFingerprintRequest) String() string

type GetByFingerprintResponse

type GetByFingerprintResponse struct {
	Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByFingerprintResponse) Descriptor deprecated

func (*GetByFingerprintResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetByFingerprintResponse.ProtoReflect.Descriptor instead.

func (*GetByFingerprintResponse) GetDevices

func (x *GetByFingerprintResponse) GetDevices() []*Device

func (*GetByFingerprintResponse) ProtoMessage

func (*GetByFingerprintResponse) ProtoMessage()

func (*GetByFingerprintResponse) ProtoReflect

func (x *GetByFingerprintResponse) ProtoReflect() protoreflect.Message

func (*GetByFingerprintResponse) Reset

func (x *GetByFingerprintResponse) Reset()

func (*GetByFingerprintResponse) String

func (x *GetByFingerprintResponse) String() string

type GetDeviceStatusRequest

type GetDeviceStatusRequest struct {
	Deviceid string `protobuf:"bytes,1,opt,name=deviceid,proto3" json:"deviceid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceStatusRequest) Descriptor deprecated

func (*GetDeviceStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeviceStatusRequest.ProtoReflect.Descriptor instead.

func (*GetDeviceStatusRequest) GetDeviceid

func (x *GetDeviceStatusRequest) GetDeviceid() string

func (*GetDeviceStatusRequest) ProtoMessage

func (*GetDeviceStatusRequest) ProtoMessage()

func (*GetDeviceStatusRequest) ProtoReflect

func (x *GetDeviceStatusRequest) ProtoReflect() protoreflect.Message

func (*GetDeviceStatusRequest) Reset

func (x *GetDeviceStatusRequest) Reset()

func (*GetDeviceStatusRequest) String

func (x *GetDeviceStatusRequest) String() string

type GetDeviceStatusResponse

type GetDeviceStatusResponse struct {
	Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceStatusResponse) Descriptor deprecated

func (*GetDeviceStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDeviceStatusResponse.ProtoReflect.Descriptor instead.

func (*GetDeviceStatusResponse) GetStatus

func (x *GetDeviceStatusResponse) GetStatus() bool

func (*GetDeviceStatusResponse) ProtoMessage

func (*GetDeviceStatusResponse) ProtoMessage()

func (*GetDeviceStatusResponse) ProtoReflect

func (x *GetDeviceStatusResponse) ProtoReflect() protoreflect.Message

func (*GetDeviceStatusResponse) Reset

func (x *GetDeviceStatusResponse) Reset()

func (*GetDeviceStatusResponse) String

func (x *GetDeviceStatusResponse) String() string

type GetRequest

type GetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

func (*GetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId

func (x *GetRequest) GetId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

func (x *GetRequest) ProtoReflect() protoreflect.Message

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {
	Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

func (*GetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetDevice

func (x *GetResponse) GetDevice() *Device

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

func (x *GetResponse) ProtoReflect() protoreflect.Message

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type ListDevicesRequest

type ListDevicesRequest struct {
	Namespaceid string `protobuf:"bytes,1,opt,name=namespaceid,proto3" json:"namespaceid,omitempty"`
	Account     string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDevicesRequest) Descriptor deprecated

func (*ListDevicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDevicesRequest.ProtoReflect.Descriptor instead.

func (*ListDevicesRequest) GetAccount

func (x *ListDevicesRequest) GetAccount() string

func (*ListDevicesRequest) GetNamespaceid

func (x *ListDevicesRequest) GetNamespaceid() string

func (*ListDevicesRequest) ProtoMessage

func (*ListDevicesRequest) ProtoMessage()

func (*ListDevicesRequest) ProtoReflect

func (x *ListDevicesRequest) ProtoReflect() protoreflect.Message

func (*ListDevicesRequest) Reset

func (x *ListDevicesRequest) Reset()

func (*ListDevicesRequest) String

func (x *ListDevicesRequest) String() string

type ListResponse

type ListResponse struct {
	Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetDevices

func (x *ListResponse) GetDevices() []*Device

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type OwnershipRequestDevices

type OwnershipRequestDevices struct {
	Ownerid  string `protobuf:"bytes,1,opt,name=ownerid,proto3" json:"ownerid,omitempty"`
	Deviceid string `protobuf:"bytes,2,opt,name=deviceid,proto3" json:"deviceid,omitempty"`
	// contains filtered or unexported fields
}

func (*OwnershipRequestDevices) Descriptor deprecated

func (*OwnershipRequestDevices) Descriptor() ([]byte, []int)

Deprecated: Use OwnershipRequestDevices.ProtoReflect.Descriptor instead.

func (*OwnershipRequestDevices) GetDeviceid

func (x *OwnershipRequestDevices) GetDeviceid() string

func (*OwnershipRequestDevices) GetOwnerid

func (x *OwnershipRequestDevices) GetOwnerid() string

func (*OwnershipRequestDevices) ProtoMessage

func (*OwnershipRequestDevices) ProtoMessage()

func (*OwnershipRequestDevices) ProtoReflect

func (x *OwnershipRequestDevices) ProtoReflect() protoreflect.Message

func (*OwnershipRequestDevices) Reset

func (x *OwnershipRequestDevices) Reset()

func (*OwnershipRequestDevices) String

func (x *OwnershipRequestDevices) String() string

type OwnershipResponseDevices

type OwnershipResponseDevices struct {
	// contains filtered or unexported fields
}

func (*OwnershipResponseDevices) Descriptor deprecated

func (*OwnershipResponseDevices) Descriptor() ([]byte, []int)

Deprecated: Use OwnershipResponseDevices.ProtoReflect.Descriptor instead.

func (*OwnershipResponseDevices) ProtoMessage

func (*OwnershipResponseDevices) ProtoMessage()

func (*OwnershipResponseDevices) ProtoReflect

func (x *OwnershipResponseDevices) ProtoReflect() protoreflect.Message

func (*OwnershipResponseDevices) Reset

func (x *OwnershipResponseDevices) Reset()

func (*OwnershipResponseDevices) String

func (x *OwnershipResponseDevices) String() string

type UnimplementedDevicesServer

type UnimplementedDevicesServer struct {
}

UnimplementedDevicesServer must be embedded to have forward compatible implementations.

func (UnimplementedDevicesServer) AssignOwnerDevices

func (UnimplementedDevicesServer) Create

func (UnimplementedDevicesServer) Delete

func (UnimplementedDevicesServer) Get

func (UnimplementedDevicesServer) GetByFingerprint

func (UnimplementedDevicesServer) GetDeviceStatus

func (UnimplementedDevicesServer) List

func (UnimplementedDevicesServer) RemoveOwnerDevices

func (UnimplementedDevicesServer) Update

type UnsafeDevicesServer

type UnsafeDevicesServer interface {
	// contains filtered or unexported methods
}

UnsafeDevicesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DevicesServer will result in compilation errors.

type UpdateRequest

type UpdateRequest struct {
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=fieldMask,proto3" json:"fieldMask,omitempty"`
	Device    *Device                `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

func (*UpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetDevice

func (x *UpdateRequest) GetDevice() *Device

func (*UpdateRequest) GetFieldMask

func (x *UpdateRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

func (x *UpdateRequest) ProtoReflect() protoreflect.Message

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

func (*UpdateResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

func (x *UpdateResponse) ProtoReflect() protoreflect.Message

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL