Documentation ¶
Index ¶
- Variables
- func RegisterProvisionServiceServer(s grpc.ServiceRegistrar, srv ProvisionServiceServer)
- type ProvisionRequest
- func (*ProvisionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProvisionRequest) GetJoinToken() string
- func (x *ProvisionRequest) GetNodePublicKey() string
- func (x *ProvisionRequest) GetNodeUuid() string
- func (m *ProvisionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ProvisionRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ProvisionRequest) MarshalVT() (dAtA []byte, err error)
- func (*ProvisionRequest) ProtoMessage()
- func (x *ProvisionRequest) ProtoReflect() protoreflect.Message
- func (x *ProvisionRequest) Reset()
- func (m *ProvisionRequest) SizeVT() (n int)
- func (x *ProvisionRequest) String() string
- func (m *ProvisionRequest) UnmarshalVT(dAtA []byte) error
- type ProvisionResponse
- func (*ProvisionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProvisionResponse) GetNodeAddressPrefix() string
- func (x *ProvisionResponse) GetServerAddress() string
- func (x *ProvisionResponse) GetServerEndpoint() string
- func (x *ProvisionResponse) GetServerPublicKey() string
- func (m *ProvisionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ProvisionResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *ProvisionResponse) MarshalVT() (dAtA []byte, err error)
- func (*ProvisionResponse) ProtoMessage()
- func (x *ProvisionResponse) ProtoReflect() protoreflect.Message
- func (x *ProvisionResponse) Reset()
- func (m *ProvisionResponse) SizeVT() (n int)
- func (x *ProvisionResponse) String() string
- func (m *ProvisionResponse) UnmarshalVT(dAtA []byte) error
- type ProvisionServiceClient
- type ProvisionServiceServer
- type UnimplementedProvisionServiceServer
- type UnsafeProvisionServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_siderolink_provision_proto protoreflect.FileDescriptor
var ProvisionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sidero.link.ProvisionService", HandlerType: (*ProvisionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Provision", Handler: _ProvisionService_Provision_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "siderolink/provision.proto", }
ProvisionService_ServiceDesc is the grpc.ServiceDesc for ProvisionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProvisionServiceServer ¶
func RegisterProvisionServiceServer(s grpc.ServiceRegistrar, srv ProvisionServiceServer)
Types ¶
type ProvisionRequest ¶
type ProvisionRequest struct { // Node UUID as string. NodeUuid string `protobuf:"bytes,1,opt,name=node_uuid,json=nodeUuid,proto3" json:"node_uuid,omitempty"` // Wireguard public key (as string) of the node. NodePublicKey string `protobuf:"bytes,2,opt,name=node_public_key,json=nodePublicKey,proto3" json:"node_public_key,omitempty"` // Join token (as string) of the node. JoinToken *string `protobuf:"bytes,3,opt,name=join_token,json=joinToken,proto3,oneof" json:"join_token,omitempty"` // contains filtered or unexported fields }
func (*ProvisionRequest) Descriptor
deprecated
func (*ProvisionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProvisionRequest.ProtoReflect.Descriptor instead.
func (*ProvisionRequest) GetJoinToken ¶
func (x *ProvisionRequest) GetJoinToken() string
func (*ProvisionRequest) GetNodePublicKey ¶
func (x *ProvisionRequest) GetNodePublicKey() string
func (*ProvisionRequest) GetNodeUuid ¶
func (x *ProvisionRequest) GetNodeUuid() string
func (*ProvisionRequest) MarshalToSizedBufferVT ¶
func (m *ProvisionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ProvisionRequest) MarshalToVT ¶
func (m *ProvisionRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ProvisionRequest) MarshalVT ¶
func (m *ProvisionRequest) MarshalVT() (dAtA []byte, err error)
func (*ProvisionRequest) ProtoMessage ¶
func (*ProvisionRequest) ProtoMessage()
func (*ProvisionRequest) ProtoReflect ¶
func (x *ProvisionRequest) ProtoReflect() protoreflect.Message
func (*ProvisionRequest) Reset ¶
func (x *ProvisionRequest) Reset()
func (*ProvisionRequest) SizeVT ¶
func (m *ProvisionRequest) SizeVT() (n int)
func (*ProvisionRequest) String ¶
func (x *ProvisionRequest) String() string
func (*ProvisionRequest) UnmarshalVT ¶
func (m *ProvisionRequest) UnmarshalVT(dAtA []byte) error
type ProvisionResponse ¶
type ProvisionResponse struct { // Server Wireguard endpoint IP and port. ServerEndpoint string `protobuf:"bytes,1,opt,name=server_endpoint,json=serverEndpoint,proto3" json:"server_endpoint,omitempty"` // Server public Wireguard key encoded as string. ServerPublicKey string `protobuf:"bytes,3,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"` // Node address with prefix on the Wireguard tunnel. NodeAddressPrefix string `protobuf:"bytes,4,opt,name=node_address_prefix,json=nodeAddressPrefix,proto3" json:"node_address_prefix,omitempty"` // Server address on the Wireguard tunnel. ServerAddress string `protobuf:"bytes,5,opt,name=server_address,json=serverAddress,proto3" json:"server_address,omitempty"` // contains filtered or unexported fields }
func (*ProvisionResponse) Descriptor
deprecated
func (*ProvisionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProvisionResponse.ProtoReflect.Descriptor instead.
func (*ProvisionResponse) GetNodeAddressPrefix ¶
func (x *ProvisionResponse) GetNodeAddressPrefix() string
func (*ProvisionResponse) GetServerAddress ¶
func (x *ProvisionResponse) GetServerAddress() string
func (*ProvisionResponse) GetServerEndpoint ¶
func (x *ProvisionResponse) GetServerEndpoint() string
func (*ProvisionResponse) GetServerPublicKey ¶
func (x *ProvisionResponse) GetServerPublicKey() string
func (*ProvisionResponse) MarshalToSizedBufferVT ¶
func (m *ProvisionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ProvisionResponse) MarshalToVT ¶
func (m *ProvisionResponse) MarshalToVT(dAtA []byte) (int, error)
func (*ProvisionResponse) MarshalVT ¶
func (m *ProvisionResponse) MarshalVT() (dAtA []byte, err error)
func (*ProvisionResponse) ProtoMessage ¶
func (*ProvisionResponse) ProtoMessage()
func (*ProvisionResponse) ProtoReflect ¶
func (x *ProvisionResponse) ProtoReflect() protoreflect.Message
func (*ProvisionResponse) Reset ¶
func (x *ProvisionResponse) Reset()
func (*ProvisionResponse) SizeVT ¶
func (m *ProvisionResponse) SizeVT() (n int)
func (*ProvisionResponse) String ¶
func (x *ProvisionResponse) String() string
func (*ProvisionResponse) UnmarshalVT ¶
func (m *ProvisionResponse) UnmarshalVT(dAtA []byte) error
type ProvisionServiceClient ¶
type ProvisionServiceClient interface {
Provision(ctx context.Context, in *ProvisionRequest, opts ...grpc.CallOption) (*ProvisionResponse, error)
}
ProvisionServiceClient is the client API for ProvisionService 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 NewProvisionServiceClient ¶
func NewProvisionServiceClient(cc grpc.ClientConnInterface) ProvisionServiceClient
type ProvisionServiceServer ¶
type ProvisionServiceServer interface { Provision(context.Context, *ProvisionRequest) (*ProvisionResponse, error) // contains filtered or unexported methods }
ProvisionServiceServer is the server API for ProvisionService service. All implementations must embed UnimplementedProvisionServiceServer for forward compatibility
type UnimplementedProvisionServiceServer ¶
type UnimplementedProvisionServiceServer struct { }
UnimplementedProvisionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProvisionServiceServer) Provision ¶
func (UnimplementedProvisionServiceServer) Provision(context.Context, *ProvisionRequest) (*ProvisionResponse, error)
type UnsafeProvisionServiceServer ¶
type UnsafeProvisionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProvisionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProvisionServiceServer will result in compilation errors.