Documentation ¶
Overview ¶
************************************************************************ Copyright (C) 2022 plgd.dev, s.r.o.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ************************************************************************
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterClientApplicationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterClientApplicationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClientApplicationClient) error
- func RegisterClientApplicationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterClientApplicationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClientApplicationServer) error
- func RegisterClientApplicationServer(s grpc.ServiceRegistrar, srv ClientApplicationServer)
- type Authorization
- func (r *Authorization) Clone() *Authorization
- func (*Authorization) Descriptor() ([]byte, []int)deprecated
- func (x *Authorization) GetAudience() string
- func (x *Authorization) GetAuthority() string
- func (x *Authorization) GetClientId() string
- func (x *Authorization) GetOwnerClaim() string
- func (x *Authorization) GetScopes() []string
- func (*Authorization) ProtoMessage()
- func (x *Authorization) ProtoReflect() protoreflect.Message
- func (x *Authorization) Reset()
- func (x *Authorization) String() string
- type ClearCacheRequest
- type ClearCacheResponse
- type ClientApplicationClient
- type ClientApplicationServer
- type ClientApplication_GetDevicesClient
- type ClientApplication_GetDevicesServer
- type CreateResourceRequest
- func (*CreateResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResourceRequest) GetContent() *pb.Content
- func (x *CreateResourceRequest) GetResourceId() *commands.ResourceId
- func (*CreateResourceRequest) ProtoMessage()
- func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateResourceRequest) Reset()
- func (x *CreateResourceRequest) String() string
- type DeleteResourceRequest
- func (*DeleteResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResourceRequest) GetResourceId() *commands.ResourceId
- func (*DeleteResourceRequest) ProtoMessage()
- func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteResourceRequest) Reset()
- func (x *DeleteResourceRequest) String() string
- type DisownDeviceRequest
- func (*DisownDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisownDeviceRequest) GetDeviceId() string
- func (*DisownDeviceRequest) ProtoMessage()
- func (x *DisownDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *DisownDeviceRequest) Reset()
- func (x *DisownDeviceRequest) String() string
- type DisownDeviceResponse
- type FinishInitializeRequest
- func (*FinishInitializeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FinishInitializeRequest) GetCertificate() []byte
- func (x *FinishInitializeRequest) GetState() string
- func (*FinishInitializeRequest) ProtoMessage()
- func (x *FinishInitializeRequest) ProtoReflect() protoreflect.Message
- func (x *FinishInitializeRequest) Reset()
- func (x *FinishInitializeRequest) String() string
- type FinishInitializeResponse
- type FinishOwnDeviceRequest
- func (*FinishOwnDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FinishOwnDeviceRequest) GetCertificate() []byte
- func (x *FinishOwnDeviceRequest) GetDeviceId() string
- func (x *FinishOwnDeviceRequest) GetState() string
- func (*FinishOwnDeviceRequest) ProtoMessage()
- func (x *FinishOwnDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *FinishOwnDeviceRequest) Reset()
- func (x *FinishOwnDeviceRequest) String() string
- type FinishOwnDeviceResponse
- type GetConfigurationRequest
- type GetConfigurationResponse
- func (r *GetConfigurationResponse) Clone() *GetConfigurationResponse
- func (*GetConfigurationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigurationResponse) GetBuildDate() string
- func (x *GetConfigurationResponse) GetCommitDate() string
- func (x *GetConfigurationResponse) GetCommitHash() string
- func (x *GetConfigurationResponse) GetDeviceAuthenticationMode() GetConfigurationResponse_DeviceAuthenticationMode
- func (x *GetConfigurationResponse) GetIsInitialized() bool
- func (x *GetConfigurationResponse) GetOwner() string
- func (x *GetConfigurationResponse) GetReleaseUrl() string
- func (x *GetConfigurationResponse) GetRemoteProvisioning() *RemoteProvisioning
- func (x *GetConfigurationResponse) GetVersion() string
- func (*GetConfigurationResponse) ProtoMessage()
- func (x *GetConfigurationResponse) ProtoReflect() protoreflect.Message
- func (x *GetConfigurationResponse) Reset()
- func (x *GetConfigurationResponse) String() string
- type GetConfigurationResponse_DeviceAuthenticationMode
- func (GetConfigurationResponse_DeviceAuthenticationMode) Descriptor() protoreflect.EnumDescriptor
- func (x GetConfigurationResponse_DeviceAuthenticationMode) Enum() *GetConfigurationResponse_DeviceAuthenticationMode
- func (GetConfigurationResponse_DeviceAuthenticationMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetConfigurationResponse_DeviceAuthenticationMode) Number() protoreflect.EnumNumber
- func (x GetConfigurationResponse_DeviceAuthenticationMode) String() string
- func (GetConfigurationResponse_DeviceAuthenticationMode) Type() protoreflect.EnumType
- type GetDeviceRequest
- type GetDeviceResourceLinksRequest
- func (*GetDeviceResourceLinksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceResourceLinksRequest) GetDeviceId() string
- func (*GetDeviceResourceLinksRequest) ProtoMessage()
- func (x *GetDeviceResourceLinksRequest) ProtoReflect() protoreflect.Message
- func (x *GetDeviceResourceLinksRequest) Reset()
- func (x *GetDeviceResourceLinksRequest) String() string
- type GetDevicesRequest
- func (*GetDevicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDevicesRequest) GetOwnershipStatusFilter() []GetDevicesRequest_OwnershipStatusFilter
- func (x *GetDevicesRequest) GetTimeout() int64
- func (x *GetDevicesRequest) GetTypeFilter() []string
- func (x *GetDevicesRequest) GetUseCache() bool
- func (x *GetDevicesRequest) GetUseEndpoints() []string
- func (x *GetDevicesRequest) GetUseMulticast() []GetDevicesRequest_UseMulticast
- func (*GetDevicesRequest) ProtoMessage()
- func (x *GetDevicesRequest) ProtoReflect() protoreflect.Message
- func (x *GetDevicesRequest) Reset()
- func (x *GetDevicesRequest) String() string
- type GetDevicesRequest_OwnershipStatusFilter
- func (GetDevicesRequest_OwnershipStatusFilter) Descriptor() protoreflect.EnumDescriptor
- func (x GetDevicesRequest_OwnershipStatusFilter) Enum() *GetDevicesRequest_OwnershipStatusFilter
- func (GetDevicesRequest_OwnershipStatusFilter) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetDevicesRequest_OwnershipStatusFilter) Number() protoreflect.EnumNumber
- func (x GetDevicesRequest_OwnershipStatusFilter) String() string
- func (GetDevicesRequest_OwnershipStatusFilter) Type() protoreflect.EnumType
- type GetDevicesRequest_UseMulticast
- func (GetDevicesRequest_UseMulticast) Descriptor() protoreflect.EnumDescriptor
- func (x GetDevicesRequest_UseMulticast) Enum() *GetDevicesRequest_UseMulticast
- func (GetDevicesRequest_UseMulticast) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetDevicesRequest_UseMulticast) Number() protoreflect.EnumNumber
- func (x GetDevicesRequest_UseMulticast) String() string
- func (GetDevicesRequest_UseMulticast) Type() protoreflect.EnumType
- type GetIdentityCertificateRequest
- func (*GetIdentityCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetIdentityCertificateRequest) ProtoMessage()
- func (x *GetIdentityCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *GetIdentityCertificateRequest) Reset()
- func (x *GetIdentityCertificateRequest) String() string
- type GetIdentityCertificateResponse
- func (*GetIdentityCertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityCertificateResponse) GetCertificate() []byte
- func (*GetIdentityCertificateResponse) ProtoMessage()
- func (x *GetIdentityCertificateResponse) ProtoReflect() protoreflect.Message
- func (x *GetIdentityCertificateResponse) Reset()
- func (x *GetIdentityCertificateResponse) String() string
- type GetJSONWebKeysRequest
- type GetResourceRequest
- func (*GetResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetResourceRequest) GetResourceId() *commands.ResourceId
- func (*GetResourceRequest) ProtoMessage()
- func (x *GetResourceRequest) ProtoReflect() protoreflect.Message
- func (x *GetResourceRequest) Reset()
- func (x *GetResourceRequest) String() string
- type IdentityCertificateChallenge
- func (*IdentityCertificateChallenge) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityCertificateChallenge) GetCertificateSigningRequest() []byte
- func (x *IdentityCertificateChallenge) GetState() string
- func (*IdentityCertificateChallenge) ProtoMessage()
- func (x *IdentityCertificateChallenge) ProtoReflect() protoreflect.Message
- func (x *IdentityCertificateChallenge) Reset()
- func (x *IdentityCertificateChallenge) String() string
- type InitializePreSharedKey
- func (*InitializePreSharedKey) Descriptor() ([]byte, []int)deprecated
- func (x *InitializePreSharedKey) GetKeyUuid() string
- func (x *InitializePreSharedKey) GetSubjectUuid() string
- func (*InitializePreSharedKey) ProtoMessage()
- func (x *InitializePreSharedKey) ProtoReflect() protoreflect.Message
- func (x *InitializePreSharedKey) Reset()
- func (x *InitializePreSharedKey) String() string
- type InitializeRequest
- func (*InitializeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitializeRequest) GetJwks() *structpb.Struct
- func (x *InitializeRequest) GetPreSharedKey() *InitializePreSharedKey
- func (*InitializeRequest) ProtoMessage()
- func (x *InitializeRequest) ProtoReflect() protoreflect.Message
- func (x *InitializeRequest) Reset()
- func (x *InitializeRequest) String() string
- type InitializeResponse
- func (*InitializeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitializeResponse) GetIdentityCertificateChallenge() *IdentityCertificateChallenge
- func (*InitializeResponse) ProtoMessage()
- func (x *InitializeResponse) ProtoReflect() protoreflect.Message
- func (x *InitializeResponse) Reset()
- func (x *InitializeResponse) String() string
- type InitializeX509
- type OwnDeviceRequest
- func (*OwnDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OwnDeviceRequest) GetDeviceId() string
- func (x *OwnDeviceRequest) GetTimeout() int64
- func (*OwnDeviceRequest) ProtoMessage()
- func (x *OwnDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *OwnDeviceRequest) Reset()
- func (x *OwnDeviceRequest) String() string
- type OwnDeviceResponse
- func (*OwnDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OwnDeviceResponse) GetIdentityCertificateChallenge() *IdentityCertificateChallenge
- func (*OwnDeviceResponse) ProtoMessage()
- func (x *OwnDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *OwnDeviceResponse) Reset()
- func (x *OwnDeviceResponse) String() string
- type RemoteProvisioning
- func (r *RemoteProvisioning) Clone() *RemoteProvisioning
- func (*RemoteProvisioning) Descriptor() ([]byte, []int)deprecated
- func (x *RemoteProvisioning) GetAuthorization() *Authorization
- func (x *RemoteProvisioning) GetMode() RemoteProvisioning_Mode
- func (x *RemoteProvisioning) GetUserAgent() *UserAgent
- func (*RemoteProvisioning) ProtoMessage()
- func (x *RemoteProvisioning) ProtoReflect() protoreflect.Message
- func (x *RemoteProvisioning) Reset()
- func (x *RemoteProvisioning) String() string
- type RemoteProvisioning_Mode
- func (RemoteProvisioning_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x RemoteProvisioning_Mode) Enum() *RemoteProvisioning_Mode
- func (RemoteProvisioning_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x RemoteProvisioning_Mode) Number() protoreflect.EnumNumber
- func (x RemoteProvisioning_Mode) String() string
- func (RemoteProvisioning_Mode) Type() protoreflect.EnumType
- type ResetRequest
- type ResetResponse
- type UnimplementedClientApplicationServer
- func (UnimplementedClientApplicationServer) ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error)
- func (UnimplementedClientApplicationServer) CreateResource(context.Context, *CreateResourceRequest) (*pb.CreateResourceResponse, error)
- func (UnimplementedClientApplicationServer) DeleteResource(context.Context, *DeleteResourceRequest) (*pb.DeleteResourceResponse, error)
- func (UnimplementedClientApplicationServer) DisownDevice(context.Context, *DisownDeviceRequest) (*DisownDeviceResponse, error)
- func (UnimplementedClientApplicationServer) FinishInitialize(context.Context, *FinishInitializeRequest) (*FinishInitializeResponse, error)
- func (UnimplementedClientApplicationServer) FinishOwnDevice(context.Context, *FinishOwnDeviceRequest) (*FinishOwnDeviceResponse, error)
- func (UnimplementedClientApplicationServer) GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error)
- func (UnimplementedClientApplicationServer) GetDevice(context.Context, *GetDeviceRequest) (*pb.Device, error)
- func (UnimplementedClientApplicationServer) GetDeviceResourceLinks(context.Context, *GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error)
- func (UnimplementedClientApplicationServer) GetDevices(*GetDevicesRequest, ClientApplication_GetDevicesServer) error
- func (UnimplementedClientApplicationServer) GetIdentityCertificate(context.Context, *GetIdentityCertificateRequest) (*GetIdentityCertificateResponse, error)
- func (UnimplementedClientApplicationServer) GetJSONWebKeys(context.Context, *GetJSONWebKeysRequest) (*structpb.Struct, error)
- func (UnimplementedClientApplicationServer) GetResource(context.Context, *GetResourceRequest) (*pb.Resource, error)
- func (UnimplementedClientApplicationServer) Initialize(context.Context, *InitializeRequest) (*InitializeResponse, error)
- func (UnimplementedClientApplicationServer) OwnDevice(context.Context, *OwnDeviceRequest) (*OwnDeviceResponse, error)
- func (UnimplementedClientApplicationServer) Reset(context.Context, *ResetRequest) (*ResetResponse, error)
- func (UnimplementedClientApplicationServer) UpdateResource(context.Context, *UpdateResourceRequest) (*pb.UpdateResourceResponse, error)
- type UnsafeClientApplicationServer
- type UpdateResourceRequest
- func (*UpdateResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResourceRequest) GetContent() *pb.Content
- func (x *UpdateResourceRequest) GetResourceId() *commands.ResourceId
- func (*UpdateResourceRequest) ProtoMessage()
- func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateResourceRequest) Reset()
- func (x *UpdateResourceRequest) String() string
- type UserAgent
- func (r *UserAgent) Clone() *UserAgent
- func (*UserAgent) Descriptor() ([]byte, []int)deprecated
- func (x *UserAgent) GetCertificateAuthorityAddress() string
- func (x *UserAgent) GetCsrChallengeStateExpiration() int64
- func (*UserAgent) ProtoMessage()
- func (x *UserAgent) ProtoReflect() protoreflect.Message
- func (x *UserAgent) Reset()
- func (x *UserAgent) String() string
Constants ¶
This section is empty.
Variables ¶
var ( RemoteProvisioning_Mode_name = map[int32]string{ 0: "MODE_NONE", 1: "USER_AGENT", } RemoteProvisioning_Mode_value = map[string]int32{ "MODE_NONE": 0, "USER_AGENT": 1, } )
Enum value maps for RemoteProvisioning_Mode.
var ( GetConfigurationResponse_DeviceAuthenticationMode_name = map[int32]string{ 0: "PRE_SHARED_KEY", 1: "X509", } GetConfigurationResponse_DeviceAuthenticationMode_value = map[string]int32{ "PRE_SHARED_KEY": 0, "X509": 1, } )
Enum value maps for GetConfigurationResponse_DeviceAuthenticationMode.
var ( GetDevicesRequest_OwnershipStatusFilter_name = map[int32]string{ 0: "UNOWNED", 1: "OWNED", } GetDevicesRequest_OwnershipStatusFilter_value = map[string]int32{ "UNOWNED": 0, "OWNED": 1, } )
Enum value maps for GetDevicesRequest_OwnershipStatusFilter.
var ( GetDevicesRequest_UseMulticast_name = map[int32]string{ 0: "IPV4", 1: "IPV6", } GetDevicesRequest_UseMulticast_value = map[string]int32{ "IPV4": 0, "IPV6": 1, } )
Enum value maps for GetDevicesRequest_UseMulticast.
var ClientApplication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "service.pb.ClientApplication", HandlerType: (*ClientApplicationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDevice", Handler: _ClientApplication_GetDevice_Handler, }, { MethodName: "GetDeviceResourceLinks", Handler: _ClientApplication_GetDeviceResourceLinks_Handler, }, { MethodName: "GetResource", Handler: _ClientApplication_GetResource_Handler, }, { MethodName: "UpdateResource", Handler: _ClientApplication_UpdateResource_Handler, }, { MethodName: "CreateResource", Handler: _ClientApplication_CreateResource_Handler, }, { MethodName: "DeleteResource", Handler: _ClientApplication_DeleteResource_Handler, }, { MethodName: "OwnDevice", Handler: _ClientApplication_OwnDevice_Handler, }, { MethodName: "FinishOwnDevice", Handler: _ClientApplication_FinishOwnDevice_Handler, }, { MethodName: "DisownDevice", Handler: _ClientApplication_DisownDevice_Handler, }, { MethodName: "ClearCache", Handler: _ClientApplication_ClearCache_Handler, }, { MethodName: "GetConfiguration", Handler: _ClientApplication_GetConfiguration_Handler, }, { MethodName: "GetJSONWebKeys", Handler: _ClientApplication_GetJSONWebKeys_Handler, }, { MethodName: "GetIdentityCertificate", Handler: _ClientApplication_GetIdentityCertificate_Handler, }, { MethodName: "Initialize", Handler: _ClientApplication_Initialize_Handler, }, { MethodName: "FinishInitialize", Handler: _ClientApplication_FinishInitialize_Handler, }, { MethodName: "Reset", Handler: _ClientApplication_Reset_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDevices", Handler: _ClientApplication_GetDevices_Handler, ServerStreams: true, }, }, Metadata: "github.com/plgd-dev/client-application/pb/service.proto", }
ClientApplication_ServiceDesc is the grpc.ServiceDesc for ClientApplication service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_plgd_dev_client_application_pb_clear_cache_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_create_resource_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_delete_resource_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_disown_device_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_configuration_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_device_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_device_resource_links_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_devices_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_identity_certificate_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_json_web_keys_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_resource_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_initialize_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_own_device_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_reset_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_update_resource_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClientApplicationHandler ¶
func RegisterClientApplicationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterClientApplicationHandler registers the http handlers for service ClientApplication to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterClientApplicationHandlerClient ¶
func RegisterClientApplicationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClientApplicationClient) error
RegisterClientApplicationHandlerClient registers the http handlers for service ClientApplication to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ClientApplicationClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ClientApplicationClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ClientApplicationClient" to call the correct interceptors.
func RegisterClientApplicationHandlerFromEndpoint ¶
func RegisterClientApplicationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterClientApplicationHandlerFromEndpoint is same as RegisterClientApplicationHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterClientApplicationHandlerServer ¶
func RegisterClientApplicationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClientApplicationServer) error
RegisterClientApplicationHandlerServer registers the http handlers for service ClientApplication to "mux". UnaryRPC :call ClientApplicationServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterClientApplicationHandlerFromEndpoint instead.
func RegisterClientApplicationServer ¶
func RegisterClientApplicationServer(s grpc.ServiceRegistrar, srv ClientApplicationServer)
Types ¶
type Authorization ¶ added in v0.2.0
type Authorization struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"` OwnerClaim string `protobuf:"bytes,4,opt,name=owner_claim,json=ownerClaim,proto3" json:"owner_claim,omitempty"` Authority string `protobuf:"bytes,5,opt,name=authority,proto3" json:"authority,omitempty"` // contains filtered or unexported fields }
func (*Authorization) Clone ¶ added in v0.2.0
func (r *Authorization) Clone() *Authorization
func (*Authorization) Descriptor
deprecated
added in
v0.2.0
func (*Authorization) Descriptor() ([]byte, []int)
Deprecated: Use Authorization.ProtoReflect.Descriptor instead.
func (*Authorization) GetAudience ¶ added in v0.2.0
func (x *Authorization) GetAudience() string
func (*Authorization) GetAuthority ¶ added in v0.2.0
func (x *Authorization) GetAuthority() string
func (*Authorization) GetClientId ¶ added in v0.2.0
func (x *Authorization) GetClientId() string
func (*Authorization) GetOwnerClaim ¶ added in v0.2.0
func (x *Authorization) GetOwnerClaim() string
func (*Authorization) GetScopes ¶ added in v0.2.0
func (x *Authorization) GetScopes() []string
func (*Authorization) ProtoMessage ¶ added in v0.2.0
func (*Authorization) ProtoMessage()
func (*Authorization) ProtoReflect ¶ added in v0.2.0
func (x *Authorization) ProtoReflect() protoreflect.Message
func (*Authorization) Reset ¶ added in v0.2.0
func (x *Authorization) Reset()
func (*Authorization) String ¶ added in v0.2.0
func (x *Authorization) String() string
type ClearCacheRequest ¶
type ClearCacheRequest struct {
// contains filtered or unexported fields
}
func (*ClearCacheRequest) Descriptor
deprecated
func (*ClearCacheRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearCacheRequest.ProtoReflect.Descriptor instead.
func (*ClearCacheRequest) ProtoMessage ¶
func (*ClearCacheRequest) ProtoMessage()
func (*ClearCacheRequest) ProtoReflect ¶
func (x *ClearCacheRequest) ProtoReflect() protoreflect.Message
func (*ClearCacheRequest) Reset ¶
func (x *ClearCacheRequest) Reset()
func (*ClearCacheRequest) String ¶
func (x *ClearCacheRequest) String() string
type ClearCacheResponse ¶
type ClearCacheResponse struct {
// contains filtered or unexported fields
}
func (*ClearCacheResponse) Descriptor
deprecated
func (*ClearCacheResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClearCacheResponse.ProtoReflect.Descriptor instead.
func (*ClearCacheResponse) ProtoMessage ¶
func (*ClearCacheResponse) ProtoMessage()
func (*ClearCacheResponse) ProtoReflect ¶
func (x *ClearCacheResponse) ProtoReflect() protoreflect.Message
func (*ClearCacheResponse) Reset ¶
func (x *ClearCacheResponse) Reset()
func (*ClearCacheResponse) String ¶
func (x *ClearCacheResponse) String() string
type ClientApplicationClient ¶
type ClientApplicationClient interface { GetDevices(ctx context.Context, in *GetDevicesRequest, opts ...grpc.CallOption) (ClientApplication_GetDevicesClient, error) GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*pb.Device, error) GetDeviceResourceLinks(ctx context.Context, in *GetDeviceResourceLinksRequest, opts ...grpc.CallOption) (*events.ResourceLinksPublished, error) GetResource(ctx context.Context, in *GetResourceRequest, opts ...grpc.CallOption) (*pb.Resource, error) UpdateResource(ctx context.Context, in *UpdateResourceRequest, opts ...grpc.CallOption) (*pb.UpdateResourceResponse, error) CreateResource(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*pb.CreateResourceResponse, error) DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*pb.DeleteResourceResponse, error) OwnDevice(ctx context.Context, in *OwnDeviceRequest, opts ...grpc.CallOption) (*OwnDeviceResponse, error) FinishOwnDevice(ctx context.Context, in *FinishOwnDeviceRequest, opts ...grpc.CallOption) (*FinishOwnDeviceResponse, error) DisownDevice(ctx context.Context, in *DisownDeviceRequest, opts ...grpc.CallOption) (*DisownDeviceResponse, error) ClearCache(ctx context.Context, in *ClearCacheRequest, opts ...grpc.CallOption) (*ClearCacheResponse, error) GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) GetJSONWebKeys(ctx context.Context, in *GetJSONWebKeysRequest, opts ...grpc.CallOption) (*structpb.Struct, error) GetIdentityCertificate(ctx context.Context, in *GetIdentityCertificateRequest, opts ...grpc.CallOption) (*GetIdentityCertificateResponse, error) Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*InitializeResponse, error) FinishInitialize(ctx context.Context, in *FinishInitializeRequest, opts ...grpc.CallOption) (*FinishInitializeResponse, error) Reset(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (*ResetResponse, error) }
ClientApplicationClient is the client API for ClientApplication 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 NewClientApplicationClient ¶
func NewClientApplicationClient(cc grpc.ClientConnInterface) ClientApplicationClient
type ClientApplicationServer ¶
type ClientApplicationServer interface { GetDevices(*GetDevicesRequest, ClientApplication_GetDevicesServer) error GetDevice(context.Context, *GetDeviceRequest) (*pb.Device, error) GetDeviceResourceLinks(context.Context, *GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error) GetResource(context.Context, *GetResourceRequest) (*pb.Resource, error) UpdateResource(context.Context, *UpdateResourceRequest) (*pb.UpdateResourceResponse, error) CreateResource(context.Context, *CreateResourceRequest) (*pb.CreateResourceResponse, error) DeleteResource(context.Context, *DeleteResourceRequest) (*pb.DeleteResourceResponse, error) OwnDevice(context.Context, *OwnDeviceRequest) (*OwnDeviceResponse, error) FinishOwnDevice(context.Context, *FinishOwnDeviceRequest) (*FinishOwnDeviceResponse, error) DisownDevice(context.Context, *DisownDeviceRequest) (*DisownDeviceResponse, error) ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error) GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error) GetJSONWebKeys(context.Context, *GetJSONWebKeysRequest) (*structpb.Struct, error) GetIdentityCertificate(context.Context, *GetIdentityCertificateRequest) (*GetIdentityCertificateResponse, error) Initialize(context.Context, *InitializeRequest) (*InitializeResponse, error) FinishInitialize(context.Context, *FinishInitializeRequest) (*FinishInitializeResponse, error) Reset(context.Context, *ResetRequest) (*ResetResponse, error) // contains filtered or unexported methods }
ClientApplicationServer is the server API for ClientApplication service. All implementations must embed UnimplementedClientApplicationServer for forward compatibility
type ClientApplication_GetDevicesClient ¶
type ClientApplication_GetDevicesClient interface { Recv() (*pb.Device, error) grpc.ClientStream }
type ClientApplication_GetDevicesServer ¶
type ClientApplication_GetDevicesServer interface { Send(*pb.Device) error grpc.ServerStream }
type CreateResourceRequest ¶
type CreateResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Content *pb.Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*CreateResourceRequest) Descriptor
deprecated
func (*CreateResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.
func (*CreateResourceRequest) GetContent ¶
func (x *CreateResourceRequest) GetContent() *pb.Content
func (*CreateResourceRequest) GetResourceId ¶
func (x *CreateResourceRequest) GetResourceId() *commands.ResourceId
func (*CreateResourceRequest) ProtoMessage ¶
func (*CreateResourceRequest) ProtoMessage()
func (*CreateResourceRequest) ProtoReflect ¶
func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message
func (*CreateResourceRequest) Reset ¶
func (x *CreateResourceRequest) Reset()
func (*CreateResourceRequest) String ¶
func (x *CreateResourceRequest) String() string
type DeleteResourceRequest ¶
type DeleteResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteResourceRequest) Descriptor
deprecated
func (*DeleteResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.
func (*DeleteResourceRequest) GetResourceId ¶
func (x *DeleteResourceRequest) GetResourceId() *commands.ResourceId
func (*DeleteResourceRequest) ProtoMessage ¶
func (*DeleteResourceRequest) ProtoMessage()
func (*DeleteResourceRequest) ProtoReflect ¶
func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message
func (*DeleteResourceRequest) Reset ¶
func (x *DeleteResourceRequest) Reset()
func (*DeleteResourceRequest) String ¶
func (x *DeleteResourceRequest) String() string
type DisownDeviceRequest ¶
type DisownDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*DisownDeviceRequest) Descriptor
deprecated
func (*DisownDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisownDeviceRequest.ProtoReflect.Descriptor instead.
func (*DisownDeviceRequest) GetDeviceId ¶
func (x *DisownDeviceRequest) GetDeviceId() string
func (*DisownDeviceRequest) ProtoMessage ¶
func (*DisownDeviceRequest) ProtoMessage()
func (*DisownDeviceRequest) ProtoReflect ¶
func (x *DisownDeviceRequest) ProtoReflect() protoreflect.Message
func (*DisownDeviceRequest) Reset ¶
func (x *DisownDeviceRequest) Reset()
func (*DisownDeviceRequest) String ¶
func (x *DisownDeviceRequest) String() string
type DisownDeviceResponse ¶
type DisownDeviceResponse struct {
// contains filtered or unexported fields
}
func (*DisownDeviceResponse) Descriptor
deprecated
func (*DisownDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisownDeviceResponse.ProtoReflect.Descriptor instead.
func (*DisownDeviceResponse) ProtoMessage ¶
func (*DisownDeviceResponse) ProtoMessage()
func (*DisownDeviceResponse) ProtoReflect ¶
func (x *DisownDeviceResponse) ProtoReflect() protoreflect.Message
func (*DisownDeviceResponse) Reset ¶
func (x *DisownDeviceResponse) Reset()
func (*DisownDeviceResponse) String ¶
func (x *DisownDeviceResponse) String() string
type FinishInitializeRequest ¶ added in v0.2.0
type FinishInitializeRequest struct { // Certificate chain in PEM format Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // Use value for pairing otherwise finish will be refused. State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*FinishInitializeRequest) Descriptor
deprecated
added in
v0.2.0
func (*FinishInitializeRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinishInitializeRequest.ProtoReflect.Descriptor instead.
func (*FinishInitializeRequest) GetCertificate ¶ added in v0.2.0
func (x *FinishInitializeRequest) GetCertificate() []byte
func (*FinishInitializeRequest) GetState ¶ added in v0.2.0
func (x *FinishInitializeRequest) GetState() string
func (*FinishInitializeRequest) ProtoMessage ¶ added in v0.2.0
func (*FinishInitializeRequest) ProtoMessage()
func (*FinishInitializeRequest) ProtoReflect ¶ added in v0.2.0
func (x *FinishInitializeRequest) ProtoReflect() protoreflect.Message
func (*FinishInitializeRequest) Reset ¶ added in v0.2.0
func (x *FinishInitializeRequest) Reset()
func (*FinishInitializeRequest) String ¶ added in v0.2.0
func (x *FinishInitializeRequest) String() string
type FinishInitializeResponse ¶ added in v0.2.0
type FinishInitializeResponse struct {
// contains filtered or unexported fields
}
func (*FinishInitializeResponse) Descriptor
deprecated
added in
v0.2.0
func (*FinishInitializeResponse) Descriptor() ([]byte, []int)
Deprecated: Use FinishInitializeResponse.ProtoReflect.Descriptor instead.
func (*FinishInitializeResponse) ProtoMessage ¶ added in v0.2.0
func (*FinishInitializeResponse) ProtoMessage()
func (*FinishInitializeResponse) ProtoReflect ¶ added in v0.2.0
func (x *FinishInitializeResponse) ProtoReflect() protoreflect.Message
func (*FinishInitializeResponse) Reset ¶ added in v0.2.0
func (x *FinishInitializeResponse) Reset()
func (*FinishInitializeResponse) String ¶ added in v0.2.0
func (x *FinishInitializeResponse) String() string
type FinishOwnDeviceRequest ¶ added in v0.2.0
type FinishOwnDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // Use value form OwnDeviceResponse.get_identity_csr.state State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // Certificate chain in PEM format Certificate []byte `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*FinishOwnDeviceRequest) Descriptor
deprecated
added in
v0.2.0
func (*FinishOwnDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinishOwnDeviceRequest.ProtoReflect.Descriptor instead.
func (*FinishOwnDeviceRequest) GetCertificate ¶ added in v0.2.0
func (x *FinishOwnDeviceRequest) GetCertificate() []byte
func (*FinishOwnDeviceRequest) GetDeviceId ¶ added in v0.2.0
func (x *FinishOwnDeviceRequest) GetDeviceId() string
func (*FinishOwnDeviceRequest) GetState ¶ added in v0.2.0
func (x *FinishOwnDeviceRequest) GetState() string
func (*FinishOwnDeviceRequest) ProtoMessage ¶ added in v0.2.0
func (*FinishOwnDeviceRequest) ProtoMessage()
func (*FinishOwnDeviceRequest) ProtoReflect ¶ added in v0.2.0
func (x *FinishOwnDeviceRequest) ProtoReflect() protoreflect.Message
func (*FinishOwnDeviceRequest) Reset ¶ added in v0.2.0
func (x *FinishOwnDeviceRequest) Reset()
func (*FinishOwnDeviceRequest) String ¶ added in v0.2.0
func (x *FinishOwnDeviceRequest) String() string
type FinishOwnDeviceResponse ¶ added in v0.2.0
type FinishOwnDeviceResponse struct {
// contains filtered or unexported fields
}
func (*FinishOwnDeviceResponse) Descriptor
deprecated
added in
v0.2.0
func (*FinishOwnDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use FinishOwnDeviceResponse.ProtoReflect.Descriptor instead.
func (*FinishOwnDeviceResponse) ProtoMessage ¶ added in v0.2.0
func (*FinishOwnDeviceResponse) ProtoMessage()
func (*FinishOwnDeviceResponse) ProtoReflect ¶ added in v0.2.0
func (x *FinishOwnDeviceResponse) ProtoReflect() protoreflect.Message
func (*FinishOwnDeviceResponse) Reset ¶ added in v0.2.0
func (x *FinishOwnDeviceResponse) Reset()
func (*FinishOwnDeviceResponse) String ¶ added in v0.2.0
func (x *FinishOwnDeviceResponse) String() string
type GetConfigurationRequest ¶ added in v0.2.0
type GetConfigurationRequest struct {
// contains filtered or unexported fields
}
func (*GetConfigurationRequest) Descriptor
deprecated
added in
v0.2.0
func (*GetConfigurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigurationRequest.ProtoReflect.Descriptor instead.
func (*GetConfigurationRequest) ProtoMessage ¶ added in v0.2.0
func (*GetConfigurationRequest) ProtoMessage()
func (*GetConfigurationRequest) ProtoReflect ¶ added in v0.2.0
func (x *GetConfigurationRequest) ProtoReflect() protoreflect.Message
func (*GetConfigurationRequest) Reset ¶ added in v0.2.0
func (x *GetConfigurationRequest) Reset()
func (*GetConfigurationRequest) String ¶ added in v0.2.0
func (x *GetConfigurationRequest) String() string
type GetConfigurationResponse ¶ added in v0.2.0
type GetConfigurationResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` BuildDate string `protobuf:"bytes,2,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"` CommitHash string `protobuf:"bytes,3,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"` CommitDate string `protobuf:"bytes,4,opt,name=commit_date,json=commitDate,proto3" json:"commit_date,omitempty"` ReleaseUrl string `protobuf:"bytes,5,opt,name=release_url,json=releaseUrl,proto3" json:"release_url,omitempty"` // user don't need to call initialize endpoint IsInitialized bool `protobuf:"varint,6,opt,name=is_initialized,json=isInitialized,proto3" json:"is_initialized,omitempty"` DeviceAuthenticationMode GetConfigurationResponse_DeviceAuthenticationMode `` /* 202-byte string literal not displayed */ RemoteProvisioning *RemoteProvisioning `protobuf:"bytes,8,opt,name=remote_provisioning,json=remoteProvisioning,proto3" json:"remote_provisioning,omitempty"` Owner string `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*GetConfigurationResponse) Clone ¶ added in v0.2.0
func (r *GetConfigurationResponse) Clone() *GetConfigurationResponse
func (*GetConfigurationResponse) Descriptor
deprecated
added in
v0.2.0
func (*GetConfigurationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigurationResponse.ProtoReflect.Descriptor instead.
func (*GetConfigurationResponse) GetBuildDate ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetBuildDate() string
func (*GetConfigurationResponse) GetCommitDate ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetCommitDate() string
func (*GetConfigurationResponse) GetCommitHash ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetCommitHash() string
func (*GetConfigurationResponse) GetDeviceAuthenticationMode ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetDeviceAuthenticationMode() GetConfigurationResponse_DeviceAuthenticationMode
func (*GetConfigurationResponse) GetIsInitialized ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetIsInitialized() bool
func (*GetConfigurationResponse) GetOwner ¶ added in v0.2.2
func (x *GetConfigurationResponse) GetOwner() string
func (*GetConfigurationResponse) GetReleaseUrl ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetReleaseUrl() string
func (*GetConfigurationResponse) GetRemoteProvisioning ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetRemoteProvisioning() *RemoteProvisioning
func (*GetConfigurationResponse) GetVersion ¶ added in v0.2.0
func (x *GetConfigurationResponse) GetVersion() string
func (*GetConfigurationResponse) ProtoMessage ¶ added in v0.2.0
func (*GetConfigurationResponse) ProtoMessage()
func (*GetConfigurationResponse) ProtoReflect ¶ added in v0.2.0
func (x *GetConfigurationResponse) ProtoReflect() protoreflect.Message
func (*GetConfigurationResponse) Reset ¶ added in v0.2.0
func (x *GetConfigurationResponse) Reset()
func (*GetConfigurationResponse) String ¶ added in v0.2.0
func (x *GetConfigurationResponse) String() string
type GetConfigurationResponse_DeviceAuthenticationMode ¶ added in v0.2.0
type GetConfigurationResponse_DeviceAuthenticationMode int32
const ( GetConfigurationResponse_PRE_SHARED_KEY GetConfigurationResponse_DeviceAuthenticationMode = 0 GetConfigurationResponse_X509 GetConfigurationResponse_DeviceAuthenticationMode = 1 )
func (GetConfigurationResponse_DeviceAuthenticationMode) Descriptor ¶ added in v0.2.0
func (GetConfigurationResponse_DeviceAuthenticationMode) Descriptor() protoreflect.EnumDescriptor
func (GetConfigurationResponse_DeviceAuthenticationMode) EnumDescriptor
deprecated
added in
v0.2.0
func (GetConfigurationResponse_DeviceAuthenticationMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetConfigurationResponse_DeviceAuthenticationMode.Descriptor instead.
func (GetConfigurationResponse_DeviceAuthenticationMode) Number ¶ added in v0.2.0
func (x GetConfigurationResponse_DeviceAuthenticationMode) Number() protoreflect.EnumNumber
func (GetConfigurationResponse_DeviceAuthenticationMode) String ¶ added in v0.2.0
func (x GetConfigurationResponse_DeviceAuthenticationMode) String() string
type GetDeviceRequest ¶
type GetDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceRequest) Descriptor
deprecated
func (*GetDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceRequest) GetDeviceId ¶
func (x *GetDeviceRequest) GetDeviceId() string
func (*GetDeviceRequest) ProtoMessage ¶
func (*GetDeviceRequest) ProtoMessage()
func (*GetDeviceRequest) ProtoReflect ¶
func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceRequest) Reset ¶
func (x *GetDeviceRequest) Reset()
func (*GetDeviceRequest) String ¶
func (x *GetDeviceRequest) String() string
type GetDeviceResourceLinksRequest ¶
type GetDeviceResourceLinksRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceResourceLinksRequest) Descriptor
deprecated
func (*GetDeviceResourceLinksRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceResourceLinksRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceResourceLinksRequest) GetDeviceId ¶
func (x *GetDeviceResourceLinksRequest) GetDeviceId() string
func (*GetDeviceResourceLinksRequest) ProtoMessage ¶
func (*GetDeviceResourceLinksRequest) ProtoMessage()
func (*GetDeviceResourceLinksRequest) ProtoReflect ¶
func (x *GetDeviceResourceLinksRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceResourceLinksRequest) Reset ¶
func (x *GetDeviceResourceLinksRequest) Reset()
func (*GetDeviceResourceLinksRequest) String ¶
func (x *GetDeviceResourceLinksRequest) String() string
type GetDevicesRequest ¶
type GetDevicesRequest struct { // Devices are taken from the cache. Default: false. UseCache bool `protobuf:"varint,1,opt,name=use_cache,json=useCache,proto3" json:"use_cache,omitempty"` // Filter by multicast IP address version. Default: [] - multicast is disabled. If it is set, the new devices will be added to cache. UseMulticast []GetDevicesRequest_UseMulticast `` /* 152-byte string literal not displayed */ // Returns devices via endpoints. Default: [] - filter is disabled. New devices will be added to cache. Not reachable devices will be not in response. // Endpoint can be in format: // - <host>:<port> is interpreted as coap://<host>:<port> // - <host> is interpreted as coap://<host>:5683 UseEndpoints []string `protobuf:"bytes,3,rep,name=use_endpoints,json=useEndpoints,proto3" json:"use_endpoints,omitempty"` // How long to wait for the devices responses for responses in nanoseconds. Default: 0 - means 2sec. Timeout int64 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // Filter by ownership status. Default: [UNOWNED,OWNED]. OwnershipStatusFilter []GetDevicesRequest_OwnershipStatusFilter `` /* 190-byte string literal not displayed */ // Filter by device resource type of oic/d. Default: [] - filter is disabled. TypeFilter []string `protobuf:"bytes,6,rep,name=type_filter,json=typeFilter,proto3" json:"type_filter,omitempty"` // contains filtered or unexported fields }
Returns a list of devices. The list is sorted by device id. If use_cache, use_multicast, use_endpoints are not set, then it will set use_multicast with [IPV4,IPV6].
func (*GetDevicesRequest) Descriptor
deprecated
func (*GetDevicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDevicesRequest.ProtoReflect.Descriptor instead.
func (*GetDevicesRequest) GetOwnershipStatusFilter ¶
func (x *GetDevicesRequest) GetOwnershipStatusFilter() []GetDevicesRequest_OwnershipStatusFilter
func (*GetDevicesRequest) GetTimeout ¶
func (x *GetDevicesRequest) GetTimeout() int64
func (*GetDevicesRequest) GetTypeFilter ¶
func (x *GetDevicesRequest) GetTypeFilter() []string
func (*GetDevicesRequest) GetUseCache ¶
func (x *GetDevicesRequest) GetUseCache() bool
func (*GetDevicesRequest) GetUseEndpoints ¶
func (x *GetDevicesRequest) GetUseEndpoints() []string
func (*GetDevicesRequest) GetUseMulticast ¶
func (x *GetDevicesRequest) GetUseMulticast() []GetDevicesRequest_UseMulticast
func (*GetDevicesRequest) ProtoMessage ¶
func (*GetDevicesRequest) ProtoMessage()
func (*GetDevicesRequest) ProtoReflect ¶
func (x *GetDevicesRequest) ProtoReflect() protoreflect.Message
func (*GetDevicesRequest) Reset ¶
func (x *GetDevicesRequest) Reset()
func (*GetDevicesRequest) String ¶
func (x *GetDevicesRequest) String() string
type GetDevicesRequest_OwnershipStatusFilter ¶
type GetDevicesRequest_OwnershipStatusFilter int32
const ( // get only unowned devices GetDevicesRequest_UNOWNED GetDevicesRequest_OwnershipStatusFilter = 0 // get only owned devices GetDevicesRequest_OWNED GetDevicesRequest_OwnershipStatusFilter = 1 )
func (GetDevicesRequest_OwnershipStatusFilter) Descriptor ¶
func (GetDevicesRequest_OwnershipStatusFilter) Descriptor() protoreflect.EnumDescriptor
func (GetDevicesRequest_OwnershipStatusFilter) EnumDescriptor
deprecated
func (GetDevicesRequest_OwnershipStatusFilter) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetDevicesRequest_OwnershipStatusFilter.Descriptor instead.
func (GetDevicesRequest_OwnershipStatusFilter) Number ¶
func (x GetDevicesRequest_OwnershipStatusFilter) Number() protoreflect.EnumNumber
func (GetDevicesRequest_OwnershipStatusFilter) String ¶
func (x GetDevicesRequest_OwnershipStatusFilter) String() string
func (GetDevicesRequest_OwnershipStatusFilter) Type ¶
func (GetDevicesRequest_OwnershipStatusFilter) Type() protoreflect.EnumType
type GetDevicesRequest_UseMulticast ¶
type GetDevicesRequest_UseMulticast int32
const ( GetDevicesRequest_IPV4 GetDevicesRequest_UseMulticast = 0 GetDevicesRequest_IPV6 GetDevicesRequest_UseMulticast = 1 )
func (GetDevicesRequest_UseMulticast) Descriptor ¶
func (GetDevicesRequest_UseMulticast) Descriptor() protoreflect.EnumDescriptor
func (GetDevicesRequest_UseMulticast) Enum ¶
func (x GetDevicesRequest_UseMulticast) Enum() *GetDevicesRequest_UseMulticast
func (GetDevicesRequest_UseMulticast) EnumDescriptor
deprecated
func (GetDevicesRequest_UseMulticast) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetDevicesRequest_UseMulticast.Descriptor instead.
func (GetDevicesRequest_UseMulticast) Number ¶
func (x GetDevicesRequest_UseMulticast) Number() protoreflect.EnumNumber
func (GetDevicesRequest_UseMulticast) String ¶
func (x GetDevicesRequest_UseMulticast) String() string
func (GetDevicesRequest_UseMulticast) Type ¶
func (GetDevicesRequest_UseMulticast) Type() protoreflect.EnumType
type GetIdentityCertificateRequest ¶ added in v0.2.0
type GetIdentityCertificateRequest struct {
// contains filtered or unexported fields
}
func (*GetIdentityCertificateRequest) Descriptor
deprecated
added in
v0.2.0
func (*GetIdentityCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityCertificateRequest.ProtoReflect.Descriptor instead.
func (*GetIdentityCertificateRequest) ProtoMessage ¶ added in v0.2.0
func (*GetIdentityCertificateRequest) ProtoMessage()
func (*GetIdentityCertificateRequest) ProtoReflect ¶ added in v0.2.0
func (x *GetIdentityCertificateRequest) ProtoReflect() protoreflect.Message
func (*GetIdentityCertificateRequest) Reset ¶ added in v0.2.0
func (x *GetIdentityCertificateRequest) Reset()
func (*GetIdentityCertificateRequest) String ¶ added in v0.2.0
func (x *GetIdentityCertificateRequest) String() string
type GetIdentityCertificateResponse ¶ added in v0.2.0
type GetIdentityCertificateResponse struct { Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // PEM format // contains filtered or unexported fields }
func (*GetIdentityCertificateResponse) Descriptor
deprecated
added in
v0.2.0
func (*GetIdentityCertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityCertificateResponse.ProtoReflect.Descriptor instead.
func (*GetIdentityCertificateResponse) GetCertificate ¶ added in v0.2.0
func (x *GetIdentityCertificateResponse) GetCertificate() []byte
func (*GetIdentityCertificateResponse) ProtoMessage ¶ added in v0.2.0
func (*GetIdentityCertificateResponse) ProtoMessage()
func (*GetIdentityCertificateResponse) ProtoReflect ¶ added in v0.2.0
func (x *GetIdentityCertificateResponse) ProtoReflect() protoreflect.Message
func (*GetIdentityCertificateResponse) Reset ¶ added in v0.2.0
func (x *GetIdentityCertificateResponse) Reset()
func (*GetIdentityCertificateResponse) String ¶ added in v0.2.0
func (x *GetIdentityCertificateResponse) String() string
type GetJSONWebKeysRequest ¶ added in v0.2.0
type GetJSONWebKeysRequest struct {
// contains filtered or unexported fields
}
func (*GetJSONWebKeysRequest) Descriptor
deprecated
added in
v0.2.0
func (*GetJSONWebKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJSONWebKeysRequest.ProtoReflect.Descriptor instead.
func (*GetJSONWebKeysRequest) ProtoMessage ¶ added in v0.2.0
func (*GetJSONWebKeysRequest) ProtoMessage()
func (*GetJSONWebKeysRequest) ProtoReflect ¶ added in v0.2.0
func (x *GetJSONWebKeysRequest) ProtoReflect() protoreflect.Message
func (*GetJSONWebKeysRequest) Reset ¶ added in v0.2.0
func (x *GetJSONWebKeysRequest) Reset()
func (*GetJSONWebKeysRequest) String ¶ added in v0.2.0
func (x *GetJSONWebKeysRequest) String() string
type GetResourceRequest ¶
type GetResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*GetResourceRequest) Descriptor
deprecated
func (*GetResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetResourceRequest.ProtoReflect.Descriptor instead.
func (*GetResourceRequest) GetResourceId ¶
func (x *GetResourceRequest) GetResourceId() *commands.ResourceId
func (*GetResourceRequest) ProtoMessage ¶
func (*GetResourceRequest) ProtoMessage()
func (*GetResourceRequest) ProtoReflect ¶
func (x *GetResourceRequest) ProtoReflect() protoreflect.Message
func (*GetResourceRequest) Reset ¶
func (x *GetResourceRequest) Reset()
func (*GetResourceRequest) String ¶
func (x *GetResourceRequest) String() string
type IdentityCertificateChallenge ¶ added in v0.2.0
type IdentityCertificateChallenge struct { CertificateSigningRequest []byte `` // in PEM format /* 138-byte string literal not displayed */ State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // for pairing calls // contains filtered or unexported fields }
func (*IdentityCertificateChallenge) Descriptor
deprecated
added in
v0.2.0
func (*IdentityCertificateChallenge) Descriptor() ([]byte, []int)
Deprecated: Use IdentityCertificateChallenge.ProtoReflect.Descriptor instead.
func (*IdentityCertificateChallenge) GetCertificateSigningRequest ¶ added in v0.2.0
func (x *IdentityCertificateChallenge) GetCertificateSigningRequest() []byte
func (*IdentityCertificateChallenge) GetState ¶ added in v0.2.0
func (x *IdentityCertificateChallenge) GetState() string
func (*IdentityCertificateChallenge) ProtoMessage ¶ added in v0.2.0
func (*IdentityCertificateChallenge) ProtoMessage()
func (*IdentityCertificateChallenge) ProtoReflect ¶ added in v0.2.0
func (x *IdentityCertificateChallenge) ProtoReflect() protoreflect.Message
func (*IdentityCertificateChallenge) Reset ¶ added in v0.2.0
func (x *IdentityCertificateChallenge) Reset()
func (*IdentityCertificateChallenge) String ¶ added in v0.2.0
func (x *IdentityCertificateChallenge) String() string
type InitializePreSharedKey ¶ added in v0.2.0
type InitializePreSharedKey struct { string `protobuf:"bytes,1,opt,name=subject_uuid,json=subjectUuid,proto3" json:"subject_uuid,omitempty"` KeyUuid string `protobuf:"bytes,2,opt,name=key_uuid,json=keyUuid,proto3" json:"key_uuid,omitempty"` // contains filtered or unexported fields }SubjectUuid
func (*InitializePreSharedKey) Descriptor
deprecated
added in
v0.2.0
func (*InitializePreSharedKey) Descriptor() ([]byte, []int)
Deprecated: Use InitializePreSharedKey.ProtoReflect.Descriptor instead.
func (*InitializePreSharedKey) GetKeyUuid ¶ added in v0.2.0
func (x *InitializePreSharedKey) GetKeyUuid() string
func (*InitializePreSharedKey) GetSubjectUuid ¶ added in v0.2.0
func (x *InitializePreSharedKey) GetSubjectUuid() string
func (*InitializePreSharedKey) ProtoMessage ¶ added in v0.2.0
func (*InitializePreSharedKey) ProtoMessage()
func (*InitializePreSharedKey) ProtoReflect ¶ added in v0.2.0
func (x *InitializePreSharedKey) ProtoReflect() protoreflect.Message
func (*InitializePreSharedKey) Reset ¶ added in v0.2.0
func (x *InitializePreSharedKey) Reset()
func (*InitializePreSharedKey) String ¶ added in v0.2.0
func (x *InitializePreSharedKey) String() string
type InitializeRequest ¶ added in v0.2.0
type InitializeRequest struct { Jwks *structpb.Struct `protobuf:"bytes,2,opt,name=jwks,proto3" json:"jwks,omitempty"` // contains filtered or unexported fields }
The client application must be initialized when GetConfigurationResponse.is_initialized is set to false. The initialization depends on the GetConfigurationResponse.device_authentication_mode. For:
- PRE_SHARED_KEY - pre_shared_key values need to be set.
- X509 - jwks need to be set only if GetConfigurationResponse.remote_provisioning.mode is set to USER_AGENT
func (*InitializeRequest) Descriptor
deprecated
added in
v0.2.0
func (*InitializeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitializeRequest.ProtoReflect.Descriptor instead.
func (*InitializeRequest) GetJwks ¶ added in v0.2.0
func (x *InitializeRequest) GetJwks() *structpb.Struct
func (*InitializeRequest) GetPreSharedKey ¶ added in v0.2.0
func (x *InitializeRequest) GetPreSharedKey() *InitializePreSharedKey
func (*InitializeRequest) ProtoMessage ¶ added in v0.2.0
func (*InitializeRequest) ProtoMessage()
func (*InitializeRequest) ProtoReflect ¶ added in v0.2.0
func (x *InitializeRequest) ProtoReflect() protoreflect.Message
func (*InitializeRequest) Reset ¶ added in v0.2.0
func (x *InitializeRequest) Reset()
func (*InitializeRequest) String ¶ added in v0.2.0
func (x *InitializeRequest) String() string
type InitializeResponse ¶ added in v0.2.0
type InitializeResponse struct { // If is set, the initialization process will be paused. // For the next call FinishInitialize, request must contain provided identity_certificate_challenge.state. IdentityCertificateChallenge *IdentityCertificateChallenge `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*InitializeResponse) Descriptor
deprecated
added in
v0.2.0
func (*InitializeResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitializeResponse.ProtoReflect.Descriptor instead.
func (*InitializeResponse) GetIdentityCertificateChallenge ¶ added in v0.2.0
func (x *InitializeResponse) GetIdentityCertificateChallenge() *IdentityCertificateChallenge
func (*InitializeResponse) ProtoMessage ¶ added in v0.2.0
func (*InitializeResponse) ProtoMessage()
func (*InitializeResponse) ProtoReflect ¶ added in v0.2.0
func (x *InitializeResponse) ProtoReflect() protoreflect.Message
func (*InitializeResponse) Reset ¶ added in v0.2.0
func (x *InitializeResponse) Reset()
func (*InitializeResponse) String ¶ added in v0.2.0
func (x *InitializeResponse) String() string
type InitializeX509 ¶ added in v0.2.0
type InitializeX509 struct { // Certificate chain in PEM format Certificate string `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*InitializeX509) Descriptor
deprecated
added in
v0.2.0
func (*InitializeX509) Descriptor() ([]byte, []int)
Deprecated: Use InitializeX509.ProtoReflect.Descriptor instead.
func (*InitializeX509) GetCertificate ¶ added in v0.2.0
func (x *InitializeX509) GetCertificate() string
func (*InitializeX509) ProtoMessage ¶ added in v0.2.0
func (*InitializeX509) ProtoMessage()
func (*InitializeX509) ProtoReflect ¶ added in v0.2.0
func (x *InitializeX509) ProtoReflect() protoreflect.Message
func (*InitializeX509) Reset ¶ added in v0.2.0
func (x *InitializeX509) Reset()
func (*InitializeX509) String ¶ added in v0.2.0
func (x *InitializeX509) String() string
type OwnDeviceRequest ¶
type OwnDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // Defines how long own process will wait for the OwnDeviceRequest with set_identity_certificate in nanoseconds. Default value is 15secs. Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*OwnDeviceRequest) Descriptor
deprecated
func (*OwnDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use OwnDeviceRequest.ProtoReflect.Descriptor instead.
func (*OwnDeviceRequest) GetDeviceId ¶
func (x *OwnDeviceRequest) GetDeviceId() string
func (*OwnDeviceRequest) GetTimeout ¶ added in v0.2.0
func (x *OwnDeviceRequest) GetTimeout() int64
func (*OwnDeviceRequest) ProtoMessage ¶
func (*OwnDeviceRequest) ProtoMessage()
func (*OwnDeviceRequest) ProtoReflect ¶
func (x *OwnDeviceRequest) ProtoReflect() protoreflect.Message
func (*OwnDeviceRequest) Reset ¶
func (x *OwnDeviceRequest) Reset()
func (*OwnDeviceRequest) String ¶
func (x *OwnDeviceRequest) String() string
type OwnDeviceResponse ¶
type OwnDeviceResponse struct { // Filled when OwnDeviceRequest.get_identity_csr is true IdentityCertificateChallenge *IdentityCertificateChallenge `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OwnDeviceResponse) Descriptor
deprecated
func (*OwnDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use OwnDeviceResponse.ProtoReflect.Descriptor instead.
func (*OwnDeviceResponse) GetIdentityCertificateChallenge ¶ added in v0.2.0
func (x *OwnDeviceResponse) GetIdentityCertificateChallenge() *IdentityCertificateChallenge
func (*OwnDeviceResponse) ProtoMessage ¶
func (*OwnDeviceResponse) ProtoMessage()
func (*OwnDeviceResponse) ProtoReflect ¶
func (x *OwnDeviceResponse) ProtoReflect() protoreflect.Message
func (*OwnDeviceResponse) Reset ¶
func (x *OwnDeviceResponse) Reset()
func (*OwnDeviceResponse) String ¶
func (x *OwnDeviceResponse) String() string
type RemoteProvisioning ¶ added in v0.2.0
type RemoteProvisioning struct { Mode RemoteProvisioning_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=service.pb.RemoteProvisioning_Mode" json:"mode,omitempty"` UserAgent *UserAgent `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` Authorization *Authorization `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"` // contains filtered or unexported fields }
func (*RemoteProvisioning) Clone ¶ added in v0.2.0
func (r *RemoteProvisioning) Clone() *RemoteProvisioning
func (*RemoteProvisioning) Descriptor
deprecated
added in
v0.2.0
func (*RemoteProvisioning) Descriptor() ([]byte, []int)
Deprecated: Use RemoteProvisioning.ProtoReflect.Descriptor instead.
func (*RemoteProvisioning) GetAuthorization ¶ added in v0.2.0
func (x *RemoteProvisioning) GetAuthorization() *Authorization
func (*RemoteProvisioning) GetMode ¶ added in v0.2.0
func (x *RemoteProvisioning) GetMode() RemoteProvisioning_Mode
func (*RemoteProvisioning) GetUserAgent ¶ added in v0.2.0
func (x *RemoteProvisioning) GetUserAgent() *UserAgent
func (*RemoteProvisioning) ProtoMessage ¶ added in v0.2.0
func (*RemoteProvisioning) ProtoMessage()
func (*RemoteProvisioning) ProtoReflect ¶ added in v0.2.0
func (x *RemoteProvisioning) ProtoReflect() protoreflect.Message
func (*RemoteProvisioning) Reset ¶ added in v0.2.0
func (x *RemoteProvisioning) Reset()
func (*RemoteProvisioning) String ¶ added in v0.2.0
func (x *RemoteProvisioning) String() string
type RemoteProvisioning_Mode ¶ added in v0.2.0
type RemoteProvisioning_Mode int32
const ( RemoteProvisioning_MODE_NONE RemoteProvisioning_Mode = 0 RemoteProvisioning_USER_AGENT RemoteProvisioning_Mode = 1 )
func (RemoteProvisioning_Mode) Descriptor ¶ added in v0.2.0
func (RemoteProvisioning_Mode) Descriptor() protoreflect.EnumDescriptor
func (RemoteProvisioning_Mode) Enum ¶ added in v0.2.0
func (x RemoteProvisioning_Mode) Enum() *RemoteProvisioning_Mode
func (RemoteProvisioning_Mode) EnumDescriptor
deprecated
added in
v0.2.0
func (RemoteProvisioning_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use RemoteProvisioning_Mode.Descriptor instead.
func (RemoteProvisioning_Mode) Number ¶ added in v0.2.0
func (x RemoteProvisioning_Mode) Number() protoreflect.EnumNumber
func (RemoteProvisioning_Mode) String ¶ added in v0.2.0
func (x RemoteProvisioning_Mode) String() string
func (RemoteProvisioning_Mode) Type ¶ added in v0.2.0
func (RemoteProvisioning_Mode) Type() protoreflect.EnumType
type ResetRequest ¶ added in v0.2.0
type ResetRequest struct {
// contains filtered or unexported fields
}
func (*ResetRequest) Descriptor
deprecated
added in
v0.2.0
func (*ResetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetRequest.ProtoReflect.Descriptor instead.
func (*ResetRequest) ProtoMessage ¶ added in v0.2.0
func (*ResetRequest) ProtoMessage()
func (*ResetRequest) ProtoReflect ¶ added in v0.2.0
func (x *ResetRequest) ProtoReflect() protoreflect.Message
func (*ResetRequest) Reset ¶ added in v0.2.0
func (x *ResetRequest) Reset()
func (*ResetRequest) String ¶ added in v0.2.0
func (x *ResetRequest) String() string
type ResetResponse ¶ added in v0.2.0
type ResetResponse struct {
// contains filtered or unexported fields
}
func (*ResetResponse) Descriptor
deprecated
added in
v0.2.0
func (*ResetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetResponse.ProtoReflect.Descriptor instead.
func (*ResetResponse) ProtoMessage ¶ added in v0.2.0
func (*ResetResponse) ProtoMessage()
func (*ResetResponse) ProtoReflect ¶ added in v0.2.0
func (x *ResetResponse) ProtoReflect() protoreflect.Message
func (*ResetResponse) Reset ¶ added in v0.2.0
func (x *ResetResponse) Reset()
func (*ResetResponse) String ¶ added in v0.2.0
func (x *ResetResponse) String() string
type UnimplementedClientApplicationServer ¶
type UnimplementedClientApplicationServer struct { }
UnimplementedClientApplicationServer must be embedded to have forward compatible implementations.
func (UnimplementedClientApplicationServer) ClearCache ¶
func (UnimplementedClientApplicationServer) ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error)
func (UnimplementedClientApplicationServer) CreateResource ¶
func (UnimplementedClientApplicationServer) CreateResource(context.Context, *CreateResourceRequest) (*pb.CreateResourceResponse, error)
func (UnimplementedClientApplicationServer) DeleteResource ¶
func (UnimplementedClientApplicationServer) DeleteResource(context.Context, *DeleteResourceRequest) (*pb.DeleteResourceResponse, error)
func (UnimplementedClientApplicationServer) DisownDevice ¶
func (UnimplementedClientApplicationServer) DisownDevice(context.Context, *DisownDeviceRequest) (*DisownDeviceResponse, error)
func (UnimplementedClientApplicationServer) FinishInitialize ¶ added in v0.2.0
func (UnimplementedClientApplicationServer) FinishInitialize(context.Context, *FinishInitializeRequest) (*FinishInitializeResponse, error)
func (UnimplementedClientApplicationServer) FinishOwnDevice ¶ added in v0.2.0
func (UnimplementedClientApplicationServer) FinishOwnDevice(context.Context, *FinishOwnDeviceRequest) (*FinishOwnDeviceResponse, error)
func (UnimplementedClientApplicationServer) GetConfiguration ¶ added in v0.2.0
func (UnimplementedClientApplicationServer) GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error)
func (UnimplementedClientApplicationServer) GetDevice ¶
func (UnimplementedClientApplicationServer) GetDevice(context.Context, *GetDeviceRequest) (*pb.Device, error)
func (UnimplementedClientApplicationServer) GetDeviceResourceLinks ¶
func (UnimplementedClientApplicationServer) GetDeviceResourceLinks(context.Context, *GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error)
func (UnimplementedClientApplicationServer) GetDevices ¶
func (UnimplementedClientApplicationServer) GetDevices(*GetDevicesRequest, ClientApplication_GetDevicesServer) error
func (UnimplementedClientApplicationServer) GetIdentityCertificate ¶ added in v0.2.0
func (UnimplementedClientApplicationServer) GetIdentityCertificate(context.Context, *GetIdentityCertificateRequest) (*GetIdentityCertificateResponse, error)
func (UnimplementedClientApplicationServer) GetJSONWebKeys ¶ added in v0.2.0
func (UnimplementedClientApplicationServer) GetJSONWebKeys(context.Context, *GetJSONWebKeysRequest) (*structpb.Struct, error)
func (UnimplementedClientApplicationServer) GetResource ¶
func (UnimplementedClientApplicationServer) GetResource(context.Context, *GetResourceRequest) (*pb.Resource, error)
func (UnimplementedClientApplicationServer) Initialize ¶ added in v0.2.0
func (UnimplementedClientApplicationServer) Initialize(context.Context, *InitializeRequest) (*InitializeResponse, error)
func (UnimplementedClientApplicationServer) OwnDevice ¶
func (UnimplementedClientApplicationServer) OwnDevice(context.Context, *OwnDeviceRequest) (*OwnDeviceResponse, error)
func (UnimplementedClientApplicationServer) Reset ¶ added in v0.2.0
func (UnimplementedClientApplicationServer) Reset(context.Context, *ResetRequest) (*ResetResponse, error)
func (UnimplementedClientApplicationServer) UpdateResource ¶
func (UnimplementedClientApplicationServer) UpdateResource(context.Context, *UpdateResourceRequest) (*pb.UpdateResourceResponse, error)
type UnsafeClientApplicationServer ¶
type UnsafeClientApplicationServer interface {
// contains filtered or unexported methods
}
UnsafeClientApplicationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientApplicationServer will result in compilation errors.
type UpdateResourceRequest ¶
type UpdateResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Content *pb.Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*UpdateResourceRequest) Descriptor
deprecated
func (*UpdateResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead.
func (*UpdateResourceRequest) GetContent ¶
func (x *UpdateResourceRequest) GetContent() *pb.Content
func (*UpdateResourceRequest) GetResourceId ¶
func (x *UpdateResourceRequest) GetResourceId() *commands.ResourceId
func (*UpdateResourceRequest) ProtoMessage ¶
func (*UpdateResourceRequest) ProtoMessage()
func (*UpdateResourceRequest) ProtoReflect ¶
func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message
func (*UpdateResourceRequest) Reset ¶
func (x *UpdateResourceRequest) Reset()
func (*UpdateResourceRequest) String ¶
func (x *UpdateResourceRequest) String() string
type UserAgent ¶ added in v0.2.0
type UserAgent struct { CertificateAuthorityAddress string `` /* 144-byte string literal not displayed */ CsrChallengeStateExpiration int64 `` // in nanoseconds /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UserAgent) Descriptor
deprecated
added in
v0.2.0
func (*UserAgent) GetCertificateAuthorityAddress ¶ added in v0.2.0
func (*UserAgent) GetCsrChallengeStateExpiration ¶ added in v0.2.0
func (*UserAgent) ProtoMessage ¶ added in v0.2.0
func (*UserAgent) ProtoMessage()
func (*UserAgent) ProtoReflect ¶ added in v0.2.0
func (x *UserAgent) ProtoReflect() protoreflect.Message
Source Files ¶
- clear_cache.pb.go
- create_resource.pb.go
- delete_resource.pb.go
- disown_device.pb.go
- get_configuration.go
- get_configuration.pb.go
- get_device.pb.go
- get_device_resource_links.pb.go
- get_devices.pb.go
- get_identity_certificate.pb.go
- get_json_web_keys.pb.go
- get_resource.pb.go
- initialize.pb.go
- internal.go
- own_device.pb.go
- reset.pb.go
- service.pb.gw.go
- service_grpc.pb.go
- update_resource.pb.go