unlock

package
v0.0.0-...-04f18be Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnlockService_StartUnlock_FullMethodName  = "/SpaceX.API.Device.Services.Unlock.UnlockService/StartUnlock"
	UnlockService_FinishUnlock_FullMethodName = "/SpaceX.API.Device.Services.Unlock.UnlockService/FinishUnlock"
)

Variables

View Source
var File_spacex_api_device_services_unlock_service_proto protoreflect.FileDescriptor
View Source
var UnlockService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "SpaceX.API.Device.Services.Unlock.UnlockService",
	HandlerType: (*UnlockServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartUnlock",
			Handler:    _UnlockService_StartUnlock_Handler,
		},
		{
			MethodName: "FinishUnlock",
			Handler:    _UnlockService_FinishUnlock_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spacex/api/device/services/unlock/service.proto",
}

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

Functions

func RegisterUnlockServiceServer

func RegisterUnlockServiceServer(s grpc.ServiceRegistrar, srv UnlockServiceServer)

Types

type FinishUnlockRequest

type FinishUnlockRequest struct {
	Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*FinishUnlockRequest) Descriptor deprecated

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

Deprecated: Use FinishUnlockRequest.ProtoReflect.Descriptor instead.

func (*FinishUnlockRequest) GetChallenge

func (x *FinishUnlockRequest) GetChallenge() []byte

func (*FinishUnlockRequest) GetSignature

func (x *FinishUnlockRequest) GetSignature() []byte

func (*FinishUnlockRequest) ProtoMessage

func (*FinishUnlockRequest) ProtoMessage()

func (*FinishUnlockRequest) ProtoReflect

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

func (*FinishUnlockRequest) Reset

func (x *FinishUnlockRequest) Reset()

func (*FinishUnlockRequest) String

func (x *FinishUnlockRequest) String() string

type FinishUnlockResponse

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

func (*FinishUnlockResponse) Descriptor deprecated

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

Deprecated: Use FinishUnlockResponse.ProtoReflect.Descriptor instead.

func (*FinishUnlockResponse) GetStatus

func (x *FinishUnlockResponse) GetStatus() uint32

func (*FinishUnlockResponse) ProtoMessage

func (*FinishUnlockResponse) ProtoMessage()

func (*FinishUnlockResponse) ProtoReflect

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

func (*FinishUnlockResponse) Reset

func (x *FinishUnlockResponse) Reset()

func (*FinishUnlockResponse) String

func (x *FinishUnlockResponse) String() string

type StartUnlockRequest

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

func (*StartUnlockRequest) Descriptor deprecated

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

Deprecated: Use StartUnlockRequest.ProtoReflect.Descriptor instead.

func (*StartUnlockRequest) ProtoMessage

func (*StartUnlockRequest) ProtoMessage()

func (*StartUnlockRequest) ProtoReflect

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

func (*StartUnlockRequest) Reset

func (x *StartUnlockRequest) Reset()

func (*StartUnlockRequest) String

func (x *StartUnlockRequest) String() string

type StartUnlockResponse

type StartUnlockResponse struct {
	DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	Nonce    []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	SignSpki []byte `protobuf:"bytes,3,opt,name=sign_spki,json=signSpki,proto3" json:"sign_spki,omitempty"`
	// contains filtered or unexported fields
}

func (*StartUnlockResponse) Descriptor deprecated

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

Deprecated: Use StartUnlockResponse.ProtoReflect.Descriptor instead.

func (*StartUnlockResponse) GetDeviceId

func (x *StartUnlockResponse) GetDeviceId() string

func (*StartUnlockResponse) GetNonce

func (x *StartUnlockResponse) GetNonce() []byte

func (*StartUnlockResponse) GetSignSpki

func (x *StartUnlockResponse) GetSignSpki() []byte

func (*StartUnlockResponse) ProtoMessage

func (*StartUnlockResponse) ProtoMessage()

func (*StartUnlockResponse) ProtoReflect

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

func (*StartUnlockResponse) Reset

func (x *StartUnlockResponse) Reset()

func (*StartUnlockResponse) String

func (x *StartUnlockResponse) String() string

type UnimplementedUnlockServiceServer

type UnimplementedUnlockServiceServer struct {
}

UnimplementedUnlockServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUnlockServiceServer) FinishUnlock

func (UnimplementedUnlockServiceServer) StartUnlock

type UnlockChallenge

type UnlockChallenge struct {
	DeviceId        string   `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	Nonce           []byte   `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	SignSpki        []byte   `protobuf:"bytes,4,opt,name=sign_spki,json=signSpki,proto3" json:"sign_spki,omitempty"`
	GrantKeydata    string   `protobuf:"bytes,5,opt,name=grant_keydata,json=grantKeydata,proto3" json:"grant_keydata,omitempty"`
	ServiceKeydata  string   `protobuf:"bytes,6,opt,name=service_keydata,json=serviceKeydata,proto3" json:"service_keydata,omitempty"`
	AuthorityGrants []string `protobuf:"bytes,7,rep,name=authority_grants,json=authorityGrants,proto3" json:"authority_grants,omitempty"`
	// contains filtered or unexported fields
}

func (*UnlockChallenge) Descriptor deprecated

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

Deprecated: Use UnlockChallenge.ProtoReflect.Descriptor instead.

func (*UnlockChallenge) GetAuthorityGrants

func (x *UnlockChallenge) GetAuthorityGrants() []string

func (*UnlockChallenge) GetDeviceId

func (x *UnlockChallenge) GetDeviceId() string

func (*UnlockChallenge) GetGrantKeydata

func (x *UnlockChallenge) GetGrantKeydata() string

func (*UnlockChallenge) GetNonce

func (x *UnlockChallenge) GetNonce() []byte

func (*UnlockChallenge) GetServiceKeydata

func (x *UnlockChallenge) GetServiceKeydata() string

func (*UnlockChallenge) GetSignSpki

func (x *UnlockChallenge) GetSignSpki() []byte

func (*UnlockChallenge) ProtoMessage

func (*UnlockChallenge) ProtoMessage()

func (*UnlockChallenge) ProtoReflect

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

func (*UnlockChallenge) Reset

func (x *UnlockChallenge) Reset()

func (*UnlockChallenge) String

func (x *UnlockChallenge) String() string

type UnlockServiceClient

type UnlockServiceClient interface {
	StartUnlock(ctx context.Context, in *StartUnlockRequest, opts ...grpc.CallOption) (*StartUnlockResponse, error)
	FinishUnlock(ctx context.Context, in *FinishUnlockRequest, opts ...grpc.CallOption) (*FinishUnlockResponse, error)
}

UnlockServiceClient is the client API for UnlockService 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.

type UnlockServiceServer

type UnlockServiceServer interface {
	StartUnlock(context.Context, *StartUnlockRequest) (*StartUnlockResponse, error)
	FinishUnlock(context.Context, *FinishUnlockRequest) (*FinishUnlockResponse, error)
	// contains filtered or unexported methods
}

UnlockServiceServer is the server API for UnlockService service. All implementations must embed UnimplementedUnlockServiceServer for forward compatibility

type UnsafeUnlockServiceServer

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

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

Jump to

Keyboard shortcuts

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