Compare commits
8 Commits
implement-
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f4959475d | |||
| f2ffc52321 | |||
| d06c827862 | |||
| fc9f6fe537 | |||
| c676c47095 | |||
| bf7467c36f | |||
| 9cd7ea0b99 | |||
| b9850db6fe |
@@ -122,8 +122,8 @@ func (x *AccountData) GetEmail() string {
|
||||
|
||||
type SignUpRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Password *AccountPassword `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -158,24 +158,24 @@ func (*SignUpRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *SignUpRequest) GetData() *AccountData {
|
||||
func (x *SignUpRequest) GetEmail() string {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
return x.Email
|
||||
}
|
||||
return nil
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SignUpRequest) GetPassword() *AccountPassword {
|
||||
func (x *SignUpRequest) GetPassword() string {
|
||||
if x != nil {
|
||||
return x.Password
|
||||
}
|
||||
return nil
|
||||
return ""
|
||||
}
|
||||
|
||||
type SignInRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
Verifier string `protobuf:"bytes,2,opt,name=verifier,proto3" json:"verifier,omitempty"`
|
||||
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -210,16 +210,16 @@ func (*SignInRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SignInRequest) GetCode() string {
|
||||
func (x *SignInRequest) GetEmail() string {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
return x.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SignInRequest) GetVerifier() string {
|
||||
func (x *SignInRequest) GetPassword() string {
|
||||
if x != nil {
|
||||
return x.Verifier
|
||||
return x.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -416,6 +416,50 @@ func (x *IsEmailVerifiedResponse) GetVerified() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
type RefreshTokenRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RefreshTokenRequest) Reset() {
|
||||
*x = RefreshTokenRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RefreshTokenRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RefreshTokenRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RefreshTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *RefreshTokenRequest) GetSessionId() string {
|
||||
if x != nil {
|
||||
return x.SessionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_accounts_v1_accounts_v1_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_accounts_v1_accounts_v1_proto_rawDesc = "" +
|
||||
@@ -425,13 +469,13 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" +
|
||||
"\bpassword\x18\x01 \x01(\tR\bpassword\"7\n" +
|
||||
"\vAccountData\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
|
||||
"\x05email\x18\x02 \x01(\tR\x05email\"w\n" +
|
||||
"\rSignUpRequest\x12,\n" +
|
||||
"\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\x128\n" +
|
||||
"\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"?\n" +
|
||||
"\rSignInRequest\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\tR\x04code\x12\x1a\n" +
|
||||
"\bverifier\x18\x02 \x01(\tR\bverifier\"D\n" +
|
||||
"\x05email\x18\x02 \x01(\tR\x05email\"A\n" +
|
||||
"\rSignUpRequest\x12\x14\n" +
|
||||
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"A\n" +
|
||||
"\rSignInRequest\x12\x14\n" +
|
||||
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"D\n" +
|
||||
"\x14ResetPasswordRequest\x12,\n" +
|
||||
"\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"\x90\x01\n" +
|
||||
"\x12NewPasswordRequest\x12,\n" +
|
||||
@@ -441,12 +485,17 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" +
|
||||
"\x16IsEmailVerifiedRequest\x12,\n" +
|
||||
"\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"5\n" +
|
||||
"\x17IsEmailVerifiedResponse\x12\x1a\n" +
|
||||
"\bverified\x18\x01 \x01(\bR\bverified2W\n" +
|
||||
"\x15AccountsNoAuthService\x12>\n" +
|
||||
"\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x002\xb7\x01\n" +
|
||||
"\x13AccountsAuthService\x12^\n" +
|
||||
"\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00\x12@\n" +
|
||||
"\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3"
|
||||
"\bverified\x18\x01 \x01(\bR\bverified\"4\n" +
|
||||
"\x13RefreshTokenRequest\x12\x1d\n" +
|
||||
"\n" +
|
||||
"session_id\x18\x01 \x01(\tR\tsessionId2\x97\x01\n" +
|
||||
"\x15PublicAccountsService\x12>\n" +
|
||||
"\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" +
|
||||
"\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x002\xfd\x01\n" +
|
||||
"\x0fAccountsService\x12^\n" +
|
||||
"\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00\x12B\n" +
|
||||
"\x0eRefreshSession\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12F\n" +
|
||||
"\x12TokenAuthorization\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_accounts_v1_accounts_v1_proto_rawDescOnce sync.Once
|
||||
@@ -460,7 +509,7 @@ func file_accounts_v1_accounts_v1_proto_rawDescGZIP() []byte {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_accounts_v1_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_accounts_v1_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_accounts_v1_accounts_v1_proto_goTypes = []any{
|
||||
(*AccountPassword)(nil), // 0: accounts.v1.AccountPassword
|
||||
(*AccountData)(nil), // 1: accounts.v1.AccountData
|
||||
@@ -470,26 +519,29 @@ var file_accounts_v1_accounts_v1_proto_goTypes = []any{
|
||||
(*NewPasswordRequest)(nil), // 5: accounts.v1.NewPasswordRequest
|
||||
(*IsEmailVerifiedRequest)(nil), // 6: accounts.v1.IsEmailVerifiedRequest
|
||||
(*IsEmailVerifiedResponse)(nil), // 7: accounts.v1.IsEmailVerifiedResponse
|
||||
(*emptypb.Empty)(nil), // 8: google.protobuf.Empty
|
||||
(*RefreshTokenRequest)(nil), // 8: accounts.v1.RefreshTokenRequest
|
||||
(*emptypb.Empty)(nil), // 9: google.protobuf.Empty
|
||||
}
|
||||
var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{
|
||||
1, // 0: accounts.v1.SignUpRequest.data:type_name -> accounts.v1.AccountData
|
||||
0, // 1: accounts.v1.SignUpRequest.password:type_name -> accounts.v1.AccountPassword
|
||||
1, // 2: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
1, // 3: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
0, // 4: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword
|
||||
1, // 5: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData
|
||||
3, // 6: accounts.v1.AccountsNoAuthService.SignIn:input_type -> accounts.v1.SignInRequest
|
||||
6, // 7: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest
|
||||
8, // 8: accounts.v1.AccountsAuthService.RefreshToken:input_type -> google.protobuf.Empty
|
||||
8, // 9: accounts.v1.AccountsNoAuthService.SignIn:output_type -> google.protobuf.Empty
|
||||
7, // 10: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse
|
||||
8, // 11: accounts.v1.AccountsAuthService.RefreshToken:output_type -> google.protobuf.Empty
|
||||
9, // [9:12] is the sub-list for method output_type
|
||||
6, // [6:9] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
1, // 0: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
1, // 1: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
0, // 2: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword
|
||||
1, // 3: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData
|
||||
3, // 4: accounts.v1.PublicAccountsService.SignIn:input_type -> accounts.v1.SignInRequest
|
||||
2, // 5: accounts.v1.PublicAccountsService.SignUp:input_type -> accounts.v1.SignUpRequest
|
||||
6, // 6: accounts.v1.AccountsService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest
|
||||
9, // 7: accounts.v1.AccountsService.RefreshSession:input_type -> google.protobuf.Empty
|
||||
9, // 8: accounts.v1.AccountsService.TokenAuthorization:input_type -> google.protobuf.Empty
|
||||
9, // 9: accounts.v1.PublicAccountsService.SignIn:output_type -> google.protobuf.Empty
|
||||
9, // 10: accounts.v1.PublicAccountsService.SignUp:output_type -> google.protobuf.Empty
|
||||
7, // 11: accounts.v1.AccountsService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse
|
||||
9, // 12: accounts.v1.AccountsService.RefreshSession:output_type -> google.protobuf.Empty
|
||||
9, // 13: accounts.v1.AccountsService.TokenAuthorization:output_type -> google.protobuf.Empty
|
||||
9, // [9:14] is the sub-list for method output_type
|
||||
4, // [4:9] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_accounts_v1_accounts_v1_proto_init() }
|
||||
@@ -503,7 +555,7 @@ func file_accounts_v1_accounts_v1_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_accounts_v1_accounts_v1_proto_rawDesc), len(file_accounts_v1_accounts_v1_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 2,
|
||||
},
|
||||
|
||||
@@ -22,107 +22,147 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
AccountsNoAuthService_SignIn_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignIn"
|
||||
PublicAccountsService_SignIn_FullMethodName = "/accounts.v1.PublicAccountsService/SignIn"
|
||||
PublicAccountsService_SignUp_FullMethodName = "/accounts.v1.PublicAccountsService/SignUp"
|
||||
)
|
||||
|
||||
// AccountsNoAuthServiceClient is the client API for AccountsNoAuthService service.
|
||||
// PublicAccountsServiceClient is the client API for PublicAccountsService 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.
|
||||
//
|
||||
// *
|
||||
// Service for handling accounts that do not require authentication
|
||||
type AccountsNoAuthServiceClient interface {
|
||||
type PublicAccountsServiceClient interface {
|
||||
// Sing in into an existing account
|
||||
SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Create a new account
|
||||
SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type accountsNoAuthServiceClient struct {
|
||||
type publicAccountsServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewAccountsNoAuthServiceClient(cc grpc.ClientConnInterface) AccountsNoAuthServiceClient {
|
||||
return &accountsNoAuthServiceClient{cc}
|
||||
func NewPublicAccountsServiceClient(cc grpc.ClientConnInterface) PublicAccountsServiceClient {
|
||||
return &publicAccountsServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *accountsNoAuthServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
func (c *publicAccountsServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, AccountsNoAuthService_SignIn_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, PublicAccountsService_SignIn_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AccountsNoAuthServiceServer is the server API for AccountsNoAuthService service.
|
||||
// All implementations should embed UnimplementedAccountsNoAuthServiceServer
|
||||
func (c *publicAccountsServiceClient) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, PublicAccountsService_SignUp_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// PublicAccountsServiceServer is the server API for PublicAccountsService service.
|
||||
// All implementations should embed UnimplementedPublicAccountsServiceServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// *
|
||||
// Service for handling accounts that do not require authentication
|
||||
type AccountsNoAuthServiceServer interface {
|
||||
type PublicAccountsServiceServer interface {
|
||||
// Sing in into an existing account
|
||||
SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error)
|
||||
// Create a new account
|
||||
SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
// UnimplementedAccountsNoAuthServiceServer should be embedded to have
|
||||
// UnimplementedPublicAccountsServiceServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedAccountsNoAuthServiceServer struct{}
|
||||
type UnimplementedPublicAccountsServiceServer struct{}
|
||||
|
||||
func (UnimplementedAccountsNoAuthServiceServer) SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) {
|
||||
func (UnimplementedPublicAccountsServiceServer) SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SignIn not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsNoAuthServiceServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedPublicAccountsServiceServer) SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SignUp not implemented")
|
||||
}
|
||||
func (UnimplementedPublicAccountsServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeAccountsNoAuthServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to AccountsNoAuthServiceServer will
|
||||
// UnsafePublicAccountsServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to PublicAccountsServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeAccountsNoAuthServiceServer interface {
|
||||
mustEmbedUnimplementedAccountsNoAuthServiceServer()
|
||||
type UnsafePublicAccountsServiceServer interface {
|
||||
mustEmbedUnimplementedPublicAccountsServiceServer()
|
||||
}
|
||||
|
||||
func RegisterAccountsNoAuthServiceServer(s grpc.ServiceRegistrar, srv AccountsNoAuthServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedAccountsNoAuthServiceServer was
|
||||
func RegisterPublicAccountsServiceServer(s grpc.ServiceRegistrar, srv PublicAccountsServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedPublicAccountsServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&AccountsNoAuthService_ServiceDesc, srv)
|
||||
s.RegisterService(&PublicAccountsService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _AccountsNoAuthService_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _PublicAccountsService_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SignInRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountsNoAuthServiceServer).SignIn(ctx, in)
|
||||
return srv.(PublicAccountsServiceServer).SignIn(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountsNoAuthService_SignIn_FullMethodName,
|
||||
FullMethod: PublicAccountsService_SignIn_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountsNoAuthServiceServer).SignIn(ctx, req.(*SignInRequest))
|
||||
return srv.(PublicAccountsServiceServer).SignIn(ctx, req.(*SignInRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AccountsNoAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsNoAuthService service.
|
||||
func _PublicAccountsService_SignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SignUpRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PublicAccountsServiceServer).SignUp(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: PublicAccountsService_SignUp_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PublicAccountsServiceServer).SignUp(ctx, req.(*SignUpRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// PublicAccountsService_ServiceDesc is the grpc.ServiceDesc for PublicAccountsService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "accounts.v1.AccountsNoAuthService",
|
||||
HandlerType: (*AccountsNoAuthServiceServer)(nil),
|
||||
var PublicAccountsService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "accounts.v1.PublicAccountsService",
|
||||
HandlerType: (*PublicAccountsServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "SignIn",
|
||||
Handler: _AccountsNoAuthService_SignIn_Handler,
|
||||
Handler: _PublicAccountsService_SignIn_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SignUp",
|
||||
Handler: _PublicAccountsService_SignUp_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
@@ -130,147 +170,179 @@ var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
const (
|
||||
AccountsAuthService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsAuthService/IsEmailVerified"
|
||||
AccountsAuthService_RefreshToken_FullMethodName = "/accounts.v1.AccountsAuthService/RefreshToken"
|
||||
AccountsService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsService/IsEmailVerified"
|
||||
AccountsService_RefreshSession_FullMethodName = "/accounts.v1.AccountsService/RefreshSession"
|
||||
AccountsService_TokenAuthorization_FullMethodName = "/accounts.v1.AccountsService/TokenAuthorization"
|
||||
)
|
||||
|
||||
// AccountsAuthServiceClient is the client API for AccountsAuthService service.
|
||||
// AccountsServiceClient is the client API for AccountsService 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.
|
||||
//
|
||||
// *
|
||||
// Service for handling accounts that do require authentication
|
||||
// Tokens should be sent via metadata, so the service is able to authenticate a user for a request
|
||||
type AccountsAuthServiceClient interface {
|
||||
type AccountsServiceClient interface {
|
||||
// Is email for the current account verified
|
||||
IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error)
|
||||
RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
RefreshSession(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Authorize using long living tokens
|
||||
TokenAuthorization(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type accountsAuthServiceClient struct {
|
||||
type accountsServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewAccountsAuthServiceClient(cc grpc.ClientConnInterface) AccountsAuthServiceClient {
|
||||
return &accountsAuthServiceClient{cc}
|
||||
func NewAccountsServiceClient(cc grpc.ClientConnInterface) AccountsServiceClient {
|
||||
return &accountsServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *accountsAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) {
|
||||
func (c *accountsServiceClient) IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(IsEmailVerifiedResponse)
|
||||
err := c.cc.Invoke(ctx, AccountsAuthService_IsEmailVerified_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, AccountsService_IsEmailVerified_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountsAuthServiceClient) RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
func (c *accountsServiceClient) RefreshSession(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, AccountsAuthService_RefreshToken_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, AccountsService_RefreshSession_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AccountsAuthServiceServer is the server API for AccountsAuthService service.
|
||||
// All implementations should embed UnimplementedAccountsAuthServiceServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// *
|
||||
// Service for handling accounts that do require authentication
|
||||
// Tokens should be sent via metadata, so the service is able to authenticate a user for a request
|
||||
type AccountsAuthServiceServer interface {
|
||||
// Is email for the current account verified
|
||||
IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error)
|
||||
RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
||||
func (c *accountsServiceClient) TokenAuthorization(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, AccountsService_TokenAuthorization_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// UnimplementedAccountsAuthServiceServer should be embedded to have
|
||||
// AccountsServiceServer is the server API for AccountsService service.
|
||||
// All implementations should embed UnimplementedAccountsServiceServer
|
||||
// for forward compatibility.
|
||||
type AccountsServiceServer interface {
|
||||
// Is email for the current account verified
|
||||
IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error)
|
||||
RefreshSession(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
||||
// Authorize using long living tokens
|
||||
TokenAuthorization(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
// UnimplementedAccountsServiceServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedAccountsAuthServiceServer struct{}
|
||||
type UnimplementedAccountsServiceServer struct{}
|
||||
|
||||
func (UnimplementedAccountsAuthServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) {
|
||||
func (UnimplementedAccountsServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsAuthServiceServer) RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RefreshToken not implemented")
|
||||
func (UnimplementedAccountsServiceServer) RefreshSession(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RefreshSession not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsAuthServiceServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedAccountsServiceServer) TokenAuthorization(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TokenAuthorization not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeAccountsAuthServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to AccountsAuthServiceServer will
|
||||
// UnsafeAccountsServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to AccountsServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeAccountsAuthServiceServer interface {
|
||||
mustEmbedUnimplementedAccountsAuthServiceServer()
|
||||
type UnsafeAccountsServiceServer interface {
|
||||
mustEmbedUnimplementedAccountsServiceServer()
|
||||
}
|
||||
|
||||
func RegisterAccountsAuthServiceServer(s grpc.ServiceRegistrar, srv AccountsAuthServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedAccountsAuthServiceServer was
|
||||
func RegisterAccountsServiceServer(s grpc.ServiceRegistrar, srv AccountsServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedAccountsServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&AccountsAuthService_ServiceDesc, srv)
|
||||
s.RegisterService(&AccountsService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _AccountsAuthService_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _AccountsService_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IsEmailVerifiedRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountsAuthServiceServer).IsEmailVerified(ctx, in)
|
||||
return srv.(AccountsServiceServer).IsEmailVerified(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountsAuthService_IsEmailVerified_FullMethodName,
|
||||
FullMethod: AccountsService_IsEmailVerified_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountsAuthServiceServer).IsEmailVerified(ctx, req.(*IsEmailVerifiedRequest))
|
||||
return srv.(AccountsServiceServer).IsEmailVerified(ctx, req.(*IsEmailVerifiedRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountsAuthService_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _AccountsService_RefreshSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(emptypb.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountsAuthServiceServer).RefreshToken(ctx, in)
|
||||
return srv.(AccountsServiceServer).RefreshSession(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountsAuthService_RefreshToken_FullMethodName,
|
||||
FullMethod: AccountsService_RefreshSession_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountsAuthServiceServer).RefreshToken(ctx, req.(*emptypb.Empty))
|
||||
return srv.(AccountsServiceServer).RefreshSession(ctx, req.(*emptypb.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AccountsAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsAuthService service.
|
||||
func _AccountsService_TokenAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(emptypb.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountsServiceServer).TokenAuthorization(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountsService_TokenAuthorization_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountsServiceServer).TokenAuthorization(ctx, req.(*emptypb.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AccountsService_ServiceDesc is the grpc.ServiceDesc for AccountsService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var AccountsAuthService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "accounts.v1.AccountsAuthService",
|
||||
HandlerType: (*AccountsAuthServiceServer)(nil),
|
||||
var AccountsService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "accounts.v1.AccountsService",
|
||||
HandlerType: (*AccountsServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "IsEmailVerified",
|
||||
Handler: _AccountsAuthService_IsEmailVerified_Handler,
|
||||
Handler: _AccountsService_IsEmailVerified_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RefreshToken",
|
||||
Handler: _AccountsAuthService_RefreshToken_Handler,
|
||||
MethodName: "RefreshSession",
|
||||
Handler: _AccountsService_RefreshSession_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "TokenAuthorization",
|
||||
Handler: _AccountsService_TokenAuthorization_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
|
||||
@@ -1,840 +0,0 @@
|
||||
/// This file has messages for describing applications
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: applications/v1/applications_v1.proto
|
||||
|
||||
package applications
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type OwnerId struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUID of a user that is creating an environemnt
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *OwnerId) Reset() {
|
||||
*x = OwnerId{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *OwnerId) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*OwnerId) ProtoMessage() {}
|
||||
|
||||
func (x *OwnerId) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use OwnerId.ProtoReflect.Descriptor instead.
|
||||
func (*OwnerId) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *OwnerId) GetUuid() string {
|
||||
if x != nil {
|
||||
return x.Uuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Token struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Token that should be used to create an environment
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Token) Reset() {
|
||||
*x = Token{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Token) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Token) ProtoMessage() {}
|
||||
|
||||
func (x *Token) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Token.ProtoReflect.Descriptor instead.
|
||||
func (*Token) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Token) GetToken() string {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CreateOptions struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Metadata *ApplicationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
Spec *ApplicationSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
|
||||
OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
||||
Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateOptions) Reset() {
|
||||
*x = CreateOptions{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateOptions) ProtoMessage() {}
|
||||
|
||||
func (x *CreateOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CreateOptions.ProtoReflect.Descriptor instead.
|
||||
func (*CreateOptions) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *CreateOptions) GetMetadata() *ApplicationMetadata {
|
||||
if x != nil {
|
||||
return x.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateOptions) GetSpec() *ApplicationSpec {
|
||||
if x != nil {
|
||||
return x.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateOptions) GetOwnerId() *OwnerId {
|
||||
if x != nil {
|
||||
return x.OwnerId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateOptions) GetToken() *Token {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type UpdateOptions struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id *ApplicationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Metadata *ApplicationMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
Spec *ApplicationSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
|
||||
OwnerId *OwnerId `protobuf:"bytes,4,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
||||
Token *Token `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UpdateOptions) Reset() {
|
||||
*x = UpdateOptions{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdateOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateOptions) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateOptions.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateOptions) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *UpdateOptions) GetId() *ApplicationId {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateOptions) GetMetadata() *ApplicationMetadata {
|
||||
if x != nil {
|
||||
return x.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateOptions) GetSpec() *ApplicationSpec {
|
||||
if x != nil {
|
||||
return x.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateOptions) GetOwnerId() *OwnerId {
|
||||
if x != nil {
|
||||
return x.OwnerId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateOptions) GetToken() *Token {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DeleteOptions struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id *ApplicationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Metadata *ApplicationMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
||||
Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DeleteOptions) Reset() {
|
||||
*x = DeleteOptions{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DeleteOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeleteOptions) ProtoMessage() {}
|
||||
|
||||
func (x *DeleteOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DeleteOptions.ProtoReflect.Descriptor instead.
|
||||
func (*DeleteOptions) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *DeleteOptions) GetId() *ApplicationId {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeleteOptions) GetMetadata() *ApplicationMetadata {
|
||||
if x != nil {
|
||||
return x.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeleteOptions) GetOwnerId() *OwnerId {
|
||||
if x != nil {
|
||||
return x.OwnerId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeleteOptions) GetToken() *Token {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetOptions struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id *ApplicationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Metadata *ApplicationMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
||||
Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetOptions) Reset() {
|
||||
*x = GetOptions{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetOptions) ProtoMessage() {}
|
||||
|
||||
func (x *GetOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetOptions.ProtoReflect.Descriptor instead.
|
||||
func (*GetOptions) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *GetOptions) GetId() *ApplicationId {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetOptions) GetMetadata() *ApplicationMetadata {
|
||||
if x != nil {
|
||||
return x.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetOptions) GetOwnerId() *OwnerId {
|
||||
if x != nil {
|
||||
return x.OwnerId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetOptions) GetToken() *Token {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListOptions struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Metadata *ApplicationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
OwnerId *OwnerId `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
||||
Token *Token `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListOptions) Reset() {
|
||||
*x = ListOptions{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListOptions) ProtoMessage() {}
|
||||
|
||||
func (x *ListOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListOptions.ProtoReflect.Descriptor instead.
|
||||
func (*ListOptions) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *ListOptions) GetMetadata() *ApplicationMetadata {
|
||||
if x != nil {
|
||||
return x.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListOptions) GetOwnerId() *OwnerId {
|
||||
if x != nil {
|
||||
return x.OwnerId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListOptions) GetToken() *Token {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ApplicationId struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApplicationId) Reset() {
|
||||
*x = ApplicationId{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApplicationId) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApplicationId) ProtoMessage() {}
|
||||
|
||||
func (x *ApplicationId) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApplicationId.ProtoReflect.Descriptor instead.
|
||||
func (*ApplicationId) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *ApplicationId) GetUuid() string {
|
||||
if x != nil {
|
||||
return x.Uuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ApplicationMetadata struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApplicationMetadata) Reset() {
|
||||
*x = ApplicationMetadata{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApplicationMetadata) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApplicationMetadata) ProtoMessage() {}
|
||||
|
||||
func (x *ApplicationMetadata) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApplicationMetadata.ProtoReflect.Descriptor instead.
|
||||
func (*ApplicationMetadata) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *ApplicationMetadata) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApplicationMetadata) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ApplicationSpec struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
EnvironemntId string `protobuf:"bytes,3,opt,name=environemnt_id,json=environemntId,proto3" json:"environemnt_id,omitempty"`
|
||||
Config map[string]string `protobuf:"bytes,4,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
RawConfig string `protobuf:"bytes,5,opt,name=raw_config,json=rawConfig,proto3" json:"raw_config,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApplicationSpec) Reset() {
|
||||
*x = ApplicationSpec{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApplicationSpec) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApplicationSpec) ProtoMessage() {}
|
||||
|
||||
func (x *ApplicationSpec) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApplicationSpec.ProtoReflect.Descriptor instead.
|
||||
func (*ApplicationSpec) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *ApplicationSpec) GetApplication() string {
|
||||
if x != nil {
|
||||
return x.Application
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApplicationSpec) GetVersion() string {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApplicationSpec) GetEnvironemntId() string {
|
||||
if x != nil {
|
||||
return x.EnvironemntId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApplicationSpec) GetConfig() map[string]string {
|
||||
if x != nil {
|
||||
return x.Config
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ApplicationSpec) GetRawConfig() string {
|
||||
if x != nil {
|
||||
return x.RawConfig
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ApplicationFull struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Metadata *ApplicationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
Spec *ApplicationSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
|
||||
Id *ApplicationId `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApplicationFull) Reset() {
|
||||
*x = ApplicationFull{}
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApplicationFull) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApplicationFull) ProtoMessage() {}
|
||||
|
||||
func (x *ApplicationFull) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_applications_v1_applications_v1_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApplicationFull.ProtoReflect.Descriptor instead.
|
||||
func (*ApplicationFull) Descriptor() ([]byte, []int) {
|
||||
return file_applications_v1_applications_v1_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *ApplicationFull) GetMetadata() *ApplicationMetadata {
|
||||
if x != nil {
|
||||
return x.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ApplicationFull) GetSpec() *ApplicationSpec {
|
||||
if x != nil {
|
||||
return x.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ApplicationFull) GetId() *ApplicationId {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_applications_v1_applications_v1_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_applications_v1_applications_v1_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"%applications/v1/applications_v1.proto\x12\fapplications\x1a\x1bgoogle/protobuf/empty.proto\"\x1d\n" +
|
||||
"\aOwnerId\x12\x12\n" +
|
||||
"\x04uuid\x18\x01 \x01(\tR\x04uuid\"\x1d\n" +
|
||||
"\x05Token\x12\x14\n" +
|
||||
"\x05token\x18\x01 \x01(\tR\x05token\"\xde\x01\n" +
|
||||
"\rCreateOptions\x12=\n" +
|
||||
"\bmetadata\x18\x01 \x01(\v2!.applications.ApplicationMetadataR\bmetadata\x121\n" +
|
||||
"\x04spec\x18\x02 \x01(\v2\x1d.applications.ApplicationSpecR\x04spec\x120\n" +
|
||||
"\bowner_id\x18\x03 \x01(\v2\x15.applications.OwnerIdR\aownerId\x12)\n" +
|
||||
"\x05token\x18\x04 \x01(\v2\x13.applications.TokenR\x05token\"\x8b\x02\n" +
|
||||
"\rUpdateOptions\x12+\n" +
|
||||
"\x02id\x18\x01 \x01(\v2\x1b.applications.ApplicationIdR\x02id\x12=\n" +
|
||||
"\bmetadata\x18\x02 \x01(\v2!.applications.ApplicationMetadataR\bmetadata\x121\n" +
|
||||
"\x04spec\x18\x03 \x01(\v2\x1d.applications.ApplicationSpecR\x04spec\x120\n" +
|
||||
"\bowner_id\x18\x04 \x01(\v2\x15.applications.OwnerIdR\aownerId\x12)\n" +
|
||||
"\x05token\x18\x05 \x01(\v2\x13.applications.TokenR\x05token\"\xd8\x01\n" +
|
||||
"\rDeleteOptions\x12+\n" +
|
||||
"\x02id\x18\x01 \x01(\v2\x1b.applications.ApplicationIdR\x02id\x12=\n" +
|
||||
"\bmetadata\x18\x02 \x01(\v2!.applications.ApplicationMetadataR\bmetadata\x120\n" +
|
||||
"\bowner_id\x18\x03 \x01(\v2\x15.applications.OwnerIdR\aownerId\x12)\n" +
|
||||
"\x05token\x18\x04 \x01(\v2\x13.applications.TokenR\x05token\"\xd5\x01\n" +
|
||||
"\n" +
|
||||
"GetOptions\x12+\n" +
|
||||
"\x02id\x18\x01 \x01(\v2\x1b.applications.ApplicationIdR\x02id\x12=\n" +
|
||||
"\bmetadata\x18\x02 \x01(\v2!.applications.ApplicationMetadataR\bmetadata\x120\n" +
|
||||
"\bowner_id\x18\x03 \x01(\v2\x15.applications.OwnerIdR\aownerId\x12)\n" +
|
||||
"\x05token\x18\x04 \x01(\v2\x13.applications.TokenR\x05token\"\xa9\x01\n" +
|
||||
"\vListOptions\x12=\n" +
|
||||
"\bmetadata\x18\x01 \x01(\v2!.applications.ApplicationMetadataR\bmetadata\x120\n" +
|
||||
"\bowner_id\x18\x02 \x01(\v2\x15.applications.OwnerIdR\aownerId\x12)\n" +
|
||||
"\x05token\x18\x03 \x01(\v2\x13.applications.TokenR\x05token\"#\n" +
|
||||
"\rApplicationId\x12\x12\n" +
|
||||
"\x04uuid\x18\x01 \x01(\tR\x04uuid\"K\n" +
|
||||
"\x13ApplicationMetadata\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
||||
"\vdescription\x18\x02 \x01(\tR\vdescription\"\x91\x02\n" +
|
||||
"\x0fApplicationSpec\x12 \n" +
|
||||
"\vapplication\x18\x01 \x01(\tR\vapplication\x12\x18\n" +
|
||||
"\aversion\x18\x02 \x01(\tR\aversion\x12%\n" +
|
||||
"\x0eenvironemnt_id\x18\x03 \x01(\tR\renvironemntId\x12A\n" +
|
||||
"\x06config\x18\x04 \x03(\v2).applications.ApplicationSpec.ConfigEntryR\x06config\x12\x1d\n" +
|
||||
"\n" +
|
||||
"raw_config\x18\x05 \x01(\tR\trawConfig\x1a9\n" +
|
||||
"\vConfigEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb0\x01\n" +
|
||||
"\x0fApplicationFull\x12=\n" +
|
||||
"\bmetadata\x18\x01 \x01(\v2!.applications.ApplicationMetadataR\bmetadata\x121\n" +
|
||||
"\x04spec\x18\x02 \x01(\v2\x1d.applications.ApplicationSpecR\x04spec\x12+\n" +
|
||||
"\x02id\x18\x03 \x01(\v2\x1b.applications.ApplicationIdR\x02id2\xe7\x02\n" +
|
||||
"\fApplications\x12F\n" +
|
||||
"\x06Create\x12\x1b.applications.CreateOptions\x1a\x1d.applications.ApplicationFull\"\x00\x12F\n" +
|
||||
"\x06Update\x12\x1b.applications.UpdateOptions\x1a\x1d.applications.ApplicationFull\"\x00\x12?\n" +
|
||||
"\x06Delete\x12\x1b.applications.DeleteOptions\x1a\x16.google.protobuf.Empty\"\x00\x12@\n" +
|
||||
"\x03Get\x12\x18.applications.GetOptions\x1a\x1d.applications.ApplicationFull\"\x00\x12D\n" +
|
||||
"\x04List\x12\x19.applications.ListOptions\x1a\x1d.applications.ApplicationFull\"\x000\x01BJZHgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/applicationsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_applications_v1_applications_v1_proto_rawDescOnce sync.Once
|
||||
file_applications_v1_applications_v1_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_applications_v1_applications_v1_proto_rawDescGZIP() []byte {
|
||||
file_applications_v1_applications_v1_proto_rawDescOnce.Do(func() {
|
||||
file_applications_v1_applications_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_applications_v1_applications_v1_proto_rawDesc), len(file_applications_v1_applications_v1_proto_rawDesc)))
|
||||
})
|
||||
return file_applications_v1_applications_v1_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_applications_v1_applications_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||
var file_applications_v1_applications_v1_proto_goTypes = []any{
|
||||
(*OwnerId)(nil), // 0: applications.OwnerId
|
||||
(*Token)(nil), // 1: applications.Token
|
||||
(*CreateOptions)(nil), // 2: applications.CreateOptions
|
||||
(*UpdateOptions)(nil), // 3: applications.UpdateOptions
|
||||
(*DeleteOptions)(nil), // 4: applications.DeleteOptions
|
||||
(*GetOptions)(nil), // 5: applications.GetOptions
|
||||
(*ListOptions)(nil), // 6: applications.ListOptions
|
||||
(*ApplicationId)(nil), // 7: applications.ApplicationId
|
||||
(*ApplicationMetadata)(nil), // 8: applications.ApplicationMetadata
|
||||
(*ApplicationSpec)(nil), // 9: applications.ApplicationSpec
|
||||
(*ApplicationFull)(nil), // 10: applications.ApplicationFull
|
||||
nil, // 11: applications.ApplicationSpec.ConfigEntry
|
||||
(*emptypb.Empty)(nil), // 12: google.protobuf.Empty
|
||||
}
|
||||
var file_applications_v1_applications_v1_proto_depIdxs = []int32{
|
||||
8, // 0: applications.CreateOptions.metadata:type_name -> applications.ApplicationMetadata
|
||||
9, // 1: applications.CreateOptions.spec:type_name -> applications.ApplicationSpec
|
||||
0, // 2: applications.CreateOptions.owner_id:type_name -> applications.OwnerId
|
||||
1, // 3: applications.CreateOptions.token:type_name -> applications.Token
|
||||
7, // 4: applications.UpdateOptions.id:type_name -> applications.ApplicationId
|
||||
8, // 5: applications.UpdateOptions.metadata:type_name -> applications.ApplicationMetadata
|
||||
9, // 6: applications.UpdateOptions.spec:type_name -> applications.ApplicationSpec
|
||||
0, // 7: applications.UpdateOptions.owner_id:type_name -> applications.OwnerId
|
||||
1, // 8: applications.UpdateOptions.token:type_name -> applications.Token
|
||||
7, // 9: applications.DeleteOptions.id:type_name -> applications.ApplicationId
|
||||
8, // 10: applications.DeleteOptions.metadata:type_name -> applications.ApplicationMetadata
|
||||
0, // 11: applications.DeleteOptions.owner_id:type_name -> applications.OwnerId
|
||||
1, // 12: applications.DeleteOptions.token:type_name -> applications.Token
|
||||
7, // 13: applications.GetOptions.id:type_name -> applications.ApplicationId
|
||||
8, // 14: applications.GetOptions.metadata:type_name -> applications.ApplicationMetadata
|
||||
0, // 15: applications.GetOptions.owner_id:type_name -> applications.OwnerId
|
||||
1, // 16: applications.GetOptions.token:type_name -> applications.Token
|
||||
8, // 17: applications.ListOptions.metadata:type_name -> applications.ApplicationMetadata
|
||||
0, // 18: applications.ListOptions.owner_id:type_name -> applications.OwnerId
|
||||
1, // 19: applications.ListOptions.token:type_name -> applications.Token
|
||||
11, // 20: applications.ApplicationSpec.config:type_name -> applications.ApplicationSpec.ConfigEntry
|
||||
8, // 21: applications.ApplicationFull.metadata:type_name -> applications.ApplicationMetadata
|
||||
9, // 22: applications.ApplicationFull.spec:type_name -> applications.ApplicationSpec
|
||||
7, // 23: applications.ApplicationFull.id:type_name -> applications.ApplicationId
|
||||
2, // 24: applications.Applications.Create:input_type -> applications.CreateOptions
|
||||
3, // 25: applications.Applications.Update:input_type -> applications.UpdateOptions
|
||||
4, // 26: applications.Applications.Delete:input_type -> applications.DeleteOptions
|
||||
5, // 27: applications.Applications.Get:input_type -> applications.GetOptions
|
||||
6, // 28: applications.Applications.List:input_type -> applications.ListOptions
|
||||
10, // 29: applications.Applications.Create:output_type -> applications.ApplicationFull
|
||||
10, // 30: applications.Applications.Update:output_type -> applications.ApplicationFull
|
||||
12, // 31: applications.Applications.Delete:output_type -> google.protobuf.Empty
|
||||
10, // 32: applications.Applications.Get:output_type -> applications.ApplicationFull
|
||||
10, // 33: applications.Applications.List:output_type -> applications.ApplicationFull
|
||||
29, // [29:34] is the sub-list for method output_type
|
||||
24, // [24:29] is the sub-list for method input_type
|
||||
24, // [24:24] is the sub-list for extension type_name
|
||||
24, // [24:24] is the sub-list for extension extendee
|
||||
0, // [0:24] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_applications_v1_applications_v1_proto_init() }
|
||||
func file_applications_v1_applications_v1_proto_init() {
|
||||
if File_applications_v1_applications_v1_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_applications_v1_applications_v1_proto_rawDesc), len(file_applications_v1_applications_v1_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 12,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_applications_v1_applications_v1_proto_goTypes,
|
||||
DependencyIndexes: file_applications_v1_applications_v1_proto_depIdxs,
|
||||
MessageInfos: file_applications_v1_applications_v1_proto_msgTypes,
|
||||
}.Build()
|
||||
File_applications_v1_applications_v1_proto = out.File
|
||||
file_applications_v1_applications_v1_proto_goTypes = nil
|
||||
file_applications_v1_applications_v1_proto_depIdxs = nil
|
||||
}
|
||||
@@ -1,284 +0,0 @@
|
||||
/// This file has messages for describing applications
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: applications/v1/applications_v1.proto
|
||||
|
||||
package applications
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Applications_Create_FullMethodName = "/applications.Applications/Create"
|
||||
Applications_Update_FullMethodName = "/applications.Applications/Update"
|
||||
Applications_Delete_FullMethodName = "/applications.Applications/Delete"
|
||||
Applications_Get_FullMethodName = "/applications.Applications/Get"
|
||||
Applications_List_FullMethodName = "/applications.Applications/List"
|
||||
)
|
||||
|
||||
// ApplicationsClient is the client API for Applications 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.
|
||||
//
|
||||
// *
|
||||
// Service for handling applications
|
||||
type ApplicationsClient interface {
|
||||
Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*ApplicationFull, error)
|
||||
Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*ApplicationFull, error)
|
||||
Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*ApplicationFull, error)
|
||||
List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ApplicationFull], error)
|
||||
}
|
||||
|
||||
type applicationsClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewApplicationsClient(cc grpc.ClientConnInterface) ApplicationsClient {
|
||||
return &applicationsClient{cc}
|
||||
}
|
||||
|
||||
func (c *applicationsClient) Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ApplicationFull)
|
||||
err := c.cc.Invoke(ctx, Applications_Create_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *applicationsClient) Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ApplicationFull)
|
||||
err := c.cc.Invoke(ctx, Applications_Update_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *applicationsClient) Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, Applications_Delete_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *applicationsClient) Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*ApplicationFull, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ApplicationFull)
|
||||
err := c.cc.Invoke(ctx, Applications_Get_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *applicationsClient) List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ApplicationFull], error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
stream, err := c.cc.NewStream(ctx, &Applications_ServiceDesc.Streams[0], Applications_List_FullMethodName, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &grpc.GenericClientStream[ListOptions, ApplicationFull]{ClientStream: stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type Applications_ListClient = grpc.ServerStreamingClient[ApplicationFull]
|
||||
|
||||
// ApplicationsServer is the server API for Applications service.
|
||||
// All implementations should embed UnimplementedApplicationsServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// *
|
||||
// Service for handling applications
|
||||
type ApplicationsServer interface {
|
||||
Create(context.Context, *CreateOptions) (*ApplicationFull, error)
|
||||
Update(context.Context, *UpdateOptions) (*ApplicationFull, error)
|
||||
Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error)
|
||||
Get(context.Context, *GetOptions) (*ApplicationFull, error)
|
||||
List(*ListOptions, grpc.ServerStreamingServer[ApplicationFull]) error
|
||||
}
|
||||
|
||||
// UnimplementedApplicationsServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedApplicationsServer struct{}
|
||||
|
||||
func (UnimplementedApplicationsServer) Create(context.Context, *CreateOptions) (*ApplicationFull, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedApplicationsServer) Update(context.Context, *UpdateOptions) (*ApplicationFull, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedApplicationsServer) Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedApplicationsServer) Get(context.Context, *GetOptions) (*ApplicationFull, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedApplicationsServer) List(*ListOptions, grpc.ServerStreamingServer[ApplicationFull]) error {
|
||||
return status.Error(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedApplicationsServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeApplicationsServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ApplicationsServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeApplicationsServer interface {
|
||||
mustEmbedUnimplementedApplicationsServer()
|
||||
}
|
||||
|
||||
func RegisterApplicationsServer(s grpc.ServiceRegistrar, srv ApplicationsServer) {
|
||||
// If the following call panics, it indicates UnimplementedApplicationsServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&Applications_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Applications_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ApplicationsServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Applications_Create_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ApplicationsServer).Create(ctx, req.(*CreateOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Applications_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ApplicationsServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Applications_Update_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ApplicationsServer).Update(ctx, req.(*UpdateOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Applications_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ApplicationsServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Applications_Delete_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ApplicationsServer).Delete(ctx, req.(*DeleteOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Applications_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ApplicationsServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Applications_Get_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ApplicationsServer).Get(ctx, req.(*GetOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Applications_List_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(ListOptions)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(ApplicationsServer).List(m, &grpc.GenericServerStream[ListOptions, ApplicationFull]{ServerStream: stream})
|
||||
}
|
||||
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type Applications_ListServer = grpc.ServerStreamingServer[ApplicationFull]
|
||||
|
||||
// Applications_ServiceDesc is the grpc.ServiceDesc for Applications service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Applications_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "applications.Applications",
|
||||
HandlerType: (*ApplicationsServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _Applications_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _Applications_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _Applications_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _Applications_Get_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "List",
|
||||
Handler: _Applications_List_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: "applications/v1/applications_v1.proto",
|
||||
}
|
||||
@@ -1,187 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: email/v1/email_v1.proto
|
||||
|
||||
package email
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type RequestValidation struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RequestValidation) Reset() {
|
||||
*x = RequestValidation{}
|
||||
mi := &file_email_v1_email_v1_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RequestValidation) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RequestValidation) ProtoMessage() {}
|
||||
|
||||
func (x *RequestValidation) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_email_v1_email_v1_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RequestValidation.ProtoReflect.Descriptor instead.
|
||||
func (*RequestValidation) Descriptor() ([]byte, []int) {
|
||||
return file_email_v1_email_v1_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *RequestValidation) GetUserId() string {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ConfirmValidation struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ConfirmValidation) Reset() {
|
||||
*x = ConfirmValidation{}
|
||||
mi := &file_email_v1_email_v1_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ConfirmValidation) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ConfirmValidation) ProtoMessage() {}
|
||||
|
||||
func (x *ConfirmValidation) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_email_v1_email_v1_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ConfirmValidation.ProtoReflect.Descriptor instead.
|
||||
func (*ConfirmValidation) Descriptor() ([]byte, []int) {
|
||||
return file_email_v1_email_v1_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *ConfirmValidation) GetUserId() string {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ConfirmValidation) GetCode() int32 {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_email_v1_email_v1_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_email_v1_email_v1_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x17email/v1/email_v1.proto\x12\x05email\x1a\x1bgoogle/protobuf/empty.proto\",\n" +
|
||||
"\x11RequestValidation\x12\x17\n" +
|
||||
"\auser_id\x18\x01 \x01(\tR\x06userId\"@\n" +
|
||||
"\x11ConfirmValidation\x12\x17\n" +
|
||||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x12\n" +
|
||||
"\x04code\x18\x02 \x01(\x05R\x04code2\x99\x01\n" +
|
||||
"\x0fEmailValidation\x12A\n" +
|
||||
"\vSendRequest\x12\x18.email.RequestValidation\x1a\x16.google.protobuf.Empty\"\x00\x12C\n" +
|
||||
"\rValidateEmail\x12\x18.email.ConfirmValidation\x1a\x16.google.protobuf.Empty\"\x00BCZAgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/emailb\x06proto3"
|
||||
|
||||
var (
|
||||
file_email_v1_email_v1_proto_rawDescOnce sync.Once
|
||||
file_email_v1_email_v1_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_email_v1_email_v1_proto_rawDescGZIP() []byte {
|
||||
file_email_v1_email_v1_proto_rawDescOnce.Do(func() {
|
||||
file_email_v1_email_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_email_v1_email_v1_proto_rawDesc), len(file_email_v1_email_v1_proto_rawDesc)))
|
||||
})
|
||||
return file_email_v1_email_v1_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_email_v1_email_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_email_v1_email_v1_proto_goTypes = []any{
|
||||
(*RequestValidation)(nil), // 0: email.RequestValidation
|
||||
(*ConfirmValidation)(nil), // 1: email.ConfirmValidation
|
||||
(*emptypb.Empty)(nil), // 2: google.protobuf.Empty
|
||||
}
|
||||
var file_email_v1_email_v1_proto_depIdxs = []int32{
|
||||
0, // 0: email.EmailValidation.SendRequest:input_type -> email.RequestValidation
|
||||
1, // 1: email.EmailValidation.ValidateEmail:input_type -> email.ConfirmValidation
|
||||
2, // 2: email.EmailValidation.SendRequest:output_type -> google.protobuf.Empty
|
||||
2, // 3: email.EmailValidation.ValidateEmail:output_type -> google.protobuf.Empty
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_email_v1_email_v1_proto_init() }
|
||||
func file_email_v1_email_v1_proto_init() {
|
||||
if File_email_v1_email_v1_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_email_v1_email_v1_proto_rawDesc), len(file_email_v1_email_v1_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_email_v1_email_v1_proto_goTypes,
|
||||
DependencyIndexes: file_email_v1_email_v1_proto_depIdxs,
|
||||
MessageInfos: file_email_v1_email_v1_proto_msgTypes,
|
||||
}.Build()
|
||||
File_email_v1_email_v1_proto = out.File
|
||||
file_email_v1_email_v1_proto_goTypes = nil
|
||||
file_email_v1_email_v1_proto_depIdxs = nil
|
||||
}
|
||||
@@ -1,162 +0,0 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: email/v1/email_v1.proto
|
||||
|
||||
package email
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
EmailValidation_SendRequest_FullMethodName = "/email.EmailValidation/SendRequest"
|
||||
EmailValidation_ValidateEmail_FullMethodName = "/email.EmailValidation/ValidateEmail"
|
||||
)
|
||||
|
||||
// EmailValidationClient is the client API for EmailValidation 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.
|
||||
//
|
||||
// A service that should handle email validation
|
||||
type EmailValidationClient interface {
|
||||
SendRequest(ctx context.Context, in *RequestValidation, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
ValidateEmail(ctx context.Context, in *ConfirmValidation, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type emailValidationClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewEmailValidationClient(cc grpc.ClientConnInterface) EmailValidationClient {
|
||||
return &emailValidationClient{cc}
|
||||
}
|
||||
|
||||
func (c *emailValidationClient) SendRequest(ctx context.Context, in *RequestValidation, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, EmailValidation_SendRequest_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *emailValidationClient) ValidateEmail(ctx context.Context, in *ConfirmValidation, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, EmailValidation_ValidateEmail_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// EmailValidationServer is the server API for EmailValidation service.
|
||||
// All implementations should embed UnimplementedEmailValidationServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// A service that should handle email validation
|
||||
type EmailValidationServer interface {
|
||||
SendRequest(context.Context, *RequestValidation) (*emptypb.Empty, error)
|
||||
ValidateEmail(context.Context, *ConfirmValidation) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
// UnimplementedEmailValidationServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedEmailValidationServer struct{}
|
||||
|
||||
func (UnimplementedEmailValidationServer) SendRequest(context.Context, *RequestValidation) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SendRequest not implemented")
|
||||
}
|
||||
func (UnimplementedEmailValidationServer) ValidateEmail(context.Context, *ConfirmValidation) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ValidateEmail not implemented")
|
||||
}
|
||||
func (UnimplementedEmailValidationServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeEmailValidationServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to EmailValidationServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeEmailValidationServer interface {
|
||||
mustEmbedUnimplementedEmailValidationServer()
|
||||
}
|
||||
|
||||
func RegisterEmailValidationServer(s grpc.ServiceRegistrar, srv EmailValidationServer) {
|
||||
// If the following call panics, it indicates UnimplementedEmailValidationServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&EmailValidation_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _EmailValidation_SendRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RequestValidation)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EmailValidationServer).SendRequest(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EmailValidation_SendRequest_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EmailValidationServer).SendRequest(ctx, req.(*RequestValidation))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EmailValidation_ValidateEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ConfirmValidation)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EmailValidationServer).ValidateEmail(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EmailValidation_ValidateEmail_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EmailValidationServer).ValidateEmail(ctx, req.(*ConfirmValidation))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// EmailValidation_ServiceDesc is the grpc.ServiceDesc for EmailValidation service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var EmailValidation_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "email.EmailValidation",
|
||||
HandlerType: (*EmailValidationServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "SendRequest",
|
||||
Handler: _EmailValidation_SendRequest_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ValidateEmail",
|
||||
Handler: _EmailValidation_ValidateEmail_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "email/v1/email_v1.proto",
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,284 +0,0 @@
|
||||
/// This file has messages for describing environments
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: environments/v1/environments_v1.proto
|
||||
|
||||
package environments
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Environments_Create_FullMethodName = "/environments.Environments/Create"
|
||||
Environments_Update_FullMethodName = "/environments.Environments/Update"
|
||||
Environments_Delete_FullMethodName = "/environments.Environments/Delete"
|
||||
Environments_Get_FullMethodName = "/environments.Environments/Get"
|
||||
Environments_List_FullMethodName = "/environments.Environments/List"
|
||||
)
|
||||
|
||||
// EnvironmentsClient is the client API for Environments 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.
|
||||
//
|
||||
// *
|
||||
// Service for handling environments
|
||||
type EnvironmentsClient interface {
|
||||
Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
||||
Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
||||
Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
||||
List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EnvironmentFull], error)
|
||||
}
|
||||
|
||||
type environmentsClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewEnvironmentsClient(cc grpc.ClientConnInterface) EnvironmentsClient {
|
||||
return &environmentsClient{cc}
|
||||
}
|
||||
|
||||
func (c *environmentsClient) Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(EnvironmentFull)
|
||||
err := c.cc.Invoke(ctx, Environments_Create_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *environmentsClient) Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(EnvironmentFull)
|
||||
err := c.cc.Invoke(ctx, Environments_Update_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *environmentsClient) Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, Environments_Delete_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *environmentsClient) Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(EnvironmentFull)
|
||||
err := c.cc.Invoke(ctx, Environments_Get_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *environmentsClient) List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EnvironmentFull], error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
stream, err := c.cc.NewStream(ctx, &Environments_ServiceDesc.Streams[0], Environments_List_FullMethodName, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &grpc.GenericClientStream[ListOptions, EnvironmentFull]{ClientStream: stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type Environments_ListClient = grpc.ServerStreamingClient[EnvironmentFull]
|
||||
|
||||
// EnvironmentsServer is the server API for Environments service.
|
||||
// All implementations should embed UnimplementedEnvironmentsServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// *
|
||||
// Service for handling environments
|
||||
type EnvironmentsServer interface {
|
||||
Create(context.Context, *CreateOptions) (*EnvironmentFull, error)
|
||||
Update(context.Context, *UpdateOptions) (*EnvironmentFull, error)
|
||||
Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error)
|
||||
Get(context.Context, *GetOptions) (*EnvironmentFull, error)
|
||||
List(*ListOptions, grpc.ServerStreamingServer[EnvironmentFull]) error
|
||||
}
|
||||
|
||||
// UnimplementedEnvironmentsServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedEnvironmentsServer struct{}
|
||||
|
||||
func (UnimplementedEnvironmentsServer) Create(context.Context, *CreateOptions) (*EnvironmentFull, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedEnvironmentsServer) Update(context.Context, *UpdateOptions) (*EnvironmentFull, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedEnvironmentsServer) Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedEnvironmentsServer) Get(context.Context, *GetOptions) (*EnvironmentFull, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedEnvironmentsServer) List(*ListOptions, grpc.ServerStreamingServer[EnvironmentFull]) error {
|
||||
return status.Error(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedEnvironmentsServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeEnvironmentsServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to EnvironmentsServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeEnvironmentsServer interface {
|
||||
mustEmbedUnimplementedEnvironmentsServer()
|
||||
}
|
||||
|
||||
func RegisterEnvironmentsServer(s grpc.ServiceRegistrar, srv EnvironmentsServer) {
|
||||
// If the following call panics, it indicates UnimplementedEnvironmentsServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&Environments_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Environments_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EnvironmentsServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Environments_Create_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EnvironmentsServer).Create(ctx, req.(*CreateOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Environments_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EnvironmentsServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Environments_Update_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EnvironmentsServer).Update(ctx, req.(*UpdateOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Environments_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EnvironmentsServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Environments_Delete_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EnvironmentsServer).Delete(ctx, req.(*DeleteOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Environments_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetOptions)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EnvironmentsServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Environments_Get_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EnvironmentsServer).Get(ctx, req.(*GetOptions))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Environments_List_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(ListOptions)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(EnvironmentsServer).List(m, &grpc.GenericServerStream[ListOptions, EnvironmentFull]{ServerStream: stream})
|
||||
}
|
||||
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type Environments_ListServer = grpc.ServerStreamingServer[EnvironmentFull]
|
||||
|
||||
// Environments_ServiceDesc is the grpc.ServiceDesc for Environments service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Environments_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "environments.Environments",
|
||||
HandlerType: (*EnvironmentsServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _Environments_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _Environments_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _Environments_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _Environments_Get_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "List",
|
||||
Handler: _Environments_List_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: "environments/v1/environments_v1.proto",
|
||||
}
|
||||
@@ -174,9 +174,9 @@ const file_test_v1_test_v1_proto_rawDesc = "" +
|
||||
"\fPingResponse\"\r\n" +
|
||||
"\vPongRequest\"\x0e\n" +
|
||||
"\fPongResponse2J\n" +
|
||||
"\x11TestNoAuthService\x125\n" +
|
||||
"\x04Ping\x12\x14.test.v1.PingRequest\x1a\x15.test.v1.PingResponse\"\x002H\n" +
|
||||
"\x0fTestAuthService\x125\n" +
|
||||
"\x11PublicTestService\x125\n" +
|
||||
"\x04Ping\x12\x14.test.v1.PingRequest\x1a\x15.test.v1.PingResponse\"\x002D\n" +
|
||||
"\vTestService\x125\n" +
|
||||
"\x04Pong\x12\x14.test.v1.PongRequest\x1a\x15.test.v1.PongResponse\"\x00BEZCgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/test/v1b\x06proto3"
|
||||
|
||||
var (
|
||||
@@ -199,10 +199,10 @@ var file_test_v1_test_v1_proto_goTypes = []any{
|
||||
(*PongResponse)(nil), // 3: test.v1.PongResponse
|
||||
}
|
||||
var file_test_v1_test_v1_proto_depIdxs = []int32{
|
||||
0, // 0: test.v1.TestNoAuthService.Ping:input_type -> test.v1.PingRequest
|
||||
2, // 1: test.v1.TestAuthService.Pong:input_type -> test.v1.PongRequest
|
||||
1, // 2: test.v1.TestNoAuthService.Ping:output_type -> test.v1.PingResponse
|
||||
3, // 3: test.v1.TestAuthService.Pong:output_type -> test.v1.PongResponse
|
||||
0, // 0: test.v1.PublicTestService.Ping:input_type -> test.v1.PingRequest
|
||||
2, // 1: test.v1.TestService.Pong:input_type -> test.v1.PongRequest
|
||||
1, // 2: test.v1.PublicTestService.Ping:output_type -> test.v1.PingResponse
|
||||
3, // 3: test.v1.TestService.Pong:output_type -> test.v1.PongResponse
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
|
||||
@@ -19,105 +19,105 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
TestNoAuthService_Ping_FullMethodName = "/test.v1.TestNoAuthService/Ping"
|
||||
PublicTestService_Ping_FullMethodName = "/test.v1.PublicTestService/Ping"
|
||||
)
|
||||
|
||||
// TestNoAuthServiceClient is the client API for TestNoAuthService service.
|
||||
// PublicTestServiceClient is the client API for PublicTestService 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.
|
||||
//
|
||||
// *
|
||||
// Service for handling environments
|
||||
type TestNoAuthServiceClient interface {
|
||||
type PublicTestServiceClient interface {
|
||||
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
|
||||
}
|
||||
|
||||
type testNoAuthServiceClient struct {
|
||||
type publicTestServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewTestNoAuthServiceClient(cc grpc.ClientConnInterface) TestNoAuthServiceClient {
|
||||
return &testNoAuthServiceClient{cc}
|
||||
func NewPublicTestServiceClient(cc grpc.ClientConnInterface) PublicTestServiceClient {
|
||||
return &publicTestServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *testNoAuthServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
|
||||
func (c *publicTestServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(PingResponse)
|
||||
err := c.cc.Invoke(ctx, TestNoAuthService_Ping_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, PublicTestService_Ping_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// TestNoAuthServiceServer is the server API for TestNoAuthService service.
|
||||
// All implementations should embed UnimplementedTestNoAuthServiceServer
|
||||
// PublicTestServiceServer is the server API for PublicTestService service.
|
||||
// All implementations should embed UnimplementedPublicTestServiceServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// *
|
||||
// Service for handling environments
|
||||
type TestNoAuthServiceServer interface {
|
||||
type PublicTestServiceServer interface {
|
||||
Ping(context.Context, *PingRequest) (*PingResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedTestNoAuthServiceServer should be embedded to have
|
||||
// UnimplementedPublicTestServiceServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedTestNoAuthServiceServer struct{}
|
||||
type UnimplementedPublicTestServiceServer struct{}
|
||||
|
||||
func (UnimplementedTestNoAuthServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
|
||||
func (UnimplementedPublicTestServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Ping not implemented")
|
||||
}
|
||||
func (UnimplementedTestNoAuthServiceServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedPublicTestServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeTestNoAuthServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to TestNoAuthServiceServer will
|
||||
// UnsafePublicTestServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to PublicTestServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeTestNoAuthServiceServer interface {
|
||||
mustEmbedUnimplementedTestNoAuthServiceServer()
|
||||
type UnsafePublicTestServiceServer interface {
|
||||
mustEmbedUnimplementedPublicTestServiceServer()
|
||||
}
|
||||
|
||||
func RegisterTestNoAuthServiceServer(s grpc.ServiceRegistrar, srv TestNoAuthServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedTestNoAuthServiceServer was
|
||||
func RegisterPublicTestServiceServer(s grpc.ServiceRegistrar, srv PublicTestServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedPublicTestServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&TestNoAuthService_ServiceDesc, srv)
|
||||
s.RegisterService(&PublicTestService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _TestNoAuthService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _PublicTestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(PingRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TestNoAuthServiceServer).Ping(ctx, in)
|
||||
return srv.(PublicTestServiceServer).Ping(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: TestNoAuthService_Ping_FullMethodName,
|
||||
FullMethod: PublicTestService_Ping_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TestNoAuthServiceServer).Ping(ctx, req.(*PingRequest))
|
||||
return srv.(PublicTestServiceServer).Ping(ctx, req.(*PingRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// TestNoAuthService_ServiceDesc is the grpc.ServiceDesc for TestNoAuthService service.
|
||||
// PublicTestService_ServiceDesc is the grpc.ServiceDesc for PublicTestService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var TestNoAuthService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "test.v1.TestNoAuthService",
|
||||
HandlerType: (*TestNoAuthServiceServer)(nil),
|
||||
var PublicTestService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "test.v1.PublicTestService",
|
||||
HandlerType: (*PublicTestServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Ping",
|
||||
Handler: _TestNoAuthService_Ping_Handler,
|
||||
Handler: _PublicTestService_Ping_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
@@ -125,99 +125,99 @@ var TestNoAuthService_ServiceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
const (
|
||||
TestAuthService_Pong_FullMethodName = "/test.v1.TestAuthService/Pong"
|
||||
TestService_Pong_FullMethodName = "/test.v1.TestService/Pong"
|
||||
)
|
||||
|
||||
// TestAuthServiceClient is the client API for TestAuthService service.
|
||||
// TestServiceClient is the client API for TestService 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 TestAuthServiceClient interface {
|
||||
type TestServiceClient interface {
|
||||
Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error)
|
||||
}
|
||||
|
||||
type testAuthServiceClient struct {
|
||||
type testServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewTestAuthServiceClient(cc grpc.ClientConnInterface) TestAuthServiceClient {
|
||||
return &testAuthServiceClient{cc}
|
||||
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient {
|
||||
return &testServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *testAuthServiceClient) Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) {
|
||||
func (c *testServiceClient) Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(PongResponse)
|
||||
err := c.cc.Invoke(ctx, TestAuthService_Pong_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, TestService_Pong_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// TestAuthServiceServer is the server API for TestAuthService service.
|
||||
// All implementations should embed UnimplementedTestAuthServiceServer
|
||||
// TestServiceServer is the server API for TestService service.
|
||||
// All implementations should embed UnimplementedTestServiceServer
|
||||
// for forward compatibility.
|
||||
type TestAuthServiceServer interface {
|
||||
type TestServiceServer interface {
|
||||
Pong(context.Context, *PongRequest) (*PongResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedTestAuthServiceServer should be embedded to have
|
||||
// UnimplementedTestServiceServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedTestAuthServiceServer struct{}
|
||||
type UnimplementedTestServiceServer struct{}
|
||||
|
||||
func (UnimplementedTestAuthServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error) {
|
||||
func (UnimplementedTestServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Pong not implemented")
|
||||
}
|
||||
func (UnimplementedTestAuthServiceServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedTestServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeTestAuthServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to TestAuthServiceServer will
|
||||
// UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to TestServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeTestAuthServiceServer interface {
|
||||
mustEmbedUnimplementedTestAuthServiceServer()
|
||||
type UnsafeTestServiceServer interface {
|
||||
mustEmbedUnimplementedTestServiceServer()
|
||||
}
|
||||
|
||||
func RegisterTestAuthServiceServer(s grpc.ServiceRegistrar, srv TestAuthServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedTestAuthServiceServer was
|
||||
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedTestServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&TestAuthService_ServiceDesc, srv)
|
||||
s.RegisterService(&TestService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _TestAuthService_Pong_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _TestService_Pong_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(PongRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TestAuthServiceServer).Pong(ctx, in)
|
||||
return srv.(TestServiceServer).Pong(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: TestAuthService_Pong_FullMethodName,
|
||||
FullMethod: TestService_Pong_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TestAuthServiceServer).Pong(ctx, req.(*PongRequest))
|
||||
return srv.(TestServiceServer).Pong(ctx, req.(*PongRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// TestAuthService_ServiceDesc is the grpc.ServiceDesc for TestAuthService service.
|
||||
// TestService_ServiceDesc is the grpc.ServiceDesc for TestService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var TestAuthService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "test.v1.TestAuthService",
|
||||
HandlerType: (*TestAuthServiceServer)(nil),
|
||||
var TestService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "test.v1.TestService",
|
||||
HandlerType: (*TestServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Pong",
|
||||
Handler: _TestAuthService_Pong_Handler,
|
||||
Handler: _TestService_Pong_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
|
||||
907
pkg/tokens/v1/tokens_v1.pb.go
Normal file
907
pkg/tokens/v1/tokens_v1.pb.go
Normal file
@@ -0,0 +1,907 @@
|
||||
/// Protobuf definitions for the accounts service.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: tokens/v1/tokens_v1.proto
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type TokenMetadata struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// A token name
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Token expiration timestamp
|
||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TokenMetadata) Reset() {
|
||||
*x = TokenMetadata{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TokenMetadata) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TokenMetadata) ProtoMessage() {}
|
||||
|
||||
func (x *TokenMetadata) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TokenMetadata.ProtoReflect.Descriptor instead.
|
||||
func (*TokenMetadata) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *TokenMetadata) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TokenMetadata) GetExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.ExpiresAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type TokenUUID struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// An ID of a token
|
||||
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TokenUUID) Reset() {
|
||||
*x = TokenUUID{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TokenUUID) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TokenUUID) ProtoMessage() {}
|
||||
|
||||
func (x *TokenUUID) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TokenUUID.ProtoReflect.Descriptor instead.
|
||||
func (*TokenUUID) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *TokenUUID) GetUuid() string {
|
||||
if x != nil {
|
||||
return x.Uuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type TokenValue struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Token value
|
||||
// Can be only retrieved once after the generation
|
||||
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TokenValue) Reset() {
|
||||
*x = TokenValue{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TokenValue) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TokenValue) ProtoMessage() {}
|
||||
|
||||
func (x *TokenValue) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TokenValue.ProtoReflect.Descriptor instead.
|
||||
func (*TokenValue) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *TokenValue) GetToken() string {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type TokenPermissions struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TokenPermissions) Reset() {
|
||||
*x = TokenPermissions{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TokenPermissions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TokenPermissions) ProtoMessage() {}
|
||||
|
||||
func (x *TokenPermissions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TokenPermissions.ProtoReflect.Descriptor instead.
|
||||
func (*TokenPermissions) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
type CreateTokenRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenMetadata *TokenMetadata `protobuf:"bytes,1,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"`
|
||||
TokenPermissions *TokenPermissions `protobuf:"bytes,2,opt,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateTokenRequest) Reset() {
|
||||
*x = CreateTokenRequest{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateTokenRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateTokenRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *CreateTokenRequest) GetTokenMetadata() *TokenMetadata {
|
||||
if x != nil {
|
||||
return x.TokenMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTokenRequest) GetTokenPermissions() *TokenPermissions {
|
||||
if x != nil {
|
||||
return x.TokenPermissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CreateTokenResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
TokenMetadata *TokenMetadata `protobuf:"bytes,2,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"`
|
||||
TokenPermissions *TokenPermissions `protobuf:"bytes,3,opt,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty"`
|
||||
TokenValue *TokenValue `protobuf:"bytes,4,opt,name=token_value,json=tokenValue,proto3" json:"token_value,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) Reset() {
|
||||
*x = CreateTokenResponse{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateTokenResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CreateTokenResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CreateTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) GetTokenMetadata() *TokenMetadata {
|
||||
if x != nil {
|
||||
return x.TokenMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) GetTokenPermissions() *TokenPermissions {
|
||||
if x != nil {
|
||||
return x.TokenPermissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) GetTokenValue() *TokenValue {
|
||||
if x != nil {
|
||||
return x.TokenValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type UpdateTokenRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
TokenMetadata *TokenMetadata `protobuf:"bytes,2,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"`
|
||||
TokenPermissions *TokenPermissions `protobuf:"bytes,3,opt,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UpdateTokenRequest) Reset() {
|
||||
*x = UpdateTokenRequest{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdateTokenRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateTokenRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateTokenRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *UpdateTokenRequest) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateTokenRequest) GetTokenMetadata() *TokenMetadata {
|
||||
if x != nil {
|
||||
return x.TokenMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateTokenRequest) GetTokenPermissions() *TokenPermissions {
|
||||
if x != nil {
|
||||
return x.TokenPermissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type UpdateTokenResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
TokenMetadata *TokenMetadata `protobuf:"bytes,2,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"`
|
||||
TokenPermissions *TokenPermissions `protobuf:"bytes,3,opt,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UpdateTokenResponse) Reset() {
|
||||
*x = UpdateTokenResponse{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdateTokenResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateTokenResponse) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateTokenResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateTokenResponse.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *UpdateTokenResponse) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateTokenResponse) GetTokenMetadata() *TokenMetadata {
|
||||
if x != nil {
|
||||
return x.TokenMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateTokenResponse) GetTokenPermissions() *TokenPermissions {
|
||||
if x != nil {
|
||||
return x.TokenPermissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ForceTokenExpirationRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ForceTokenExpirationRequest) Reset() {
|
||||
*x = ForceTokenExpirationRequest{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ForceTokenExpirationRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ForceTokenExpirationRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ForceTokenExpirationRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ForceTokenExpirationRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ForceTokenExpirationRequest) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *ForceTokenExpirationRequest) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RegenerateTokenRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenRequest) Reset() {
|
||||
*x = RegenerateTokenRequest{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RegenerateTokenRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RegenerateTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RegenerateTokenRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RegenerateTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenRequest) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RegenerateTokenResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenValue *TokenValue `protobuf:"bytes,1,opt,name=token_value,json=tokenValue,proto3" json:"token_value,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenResponse) Reset() {
|
||||
*x = RegenerateTokenResponse{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RegenerateTokenResponse) ProtoMessage() {}
|
||||
|
||||
func (x *RegenerateTokenResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RegenerateTokenResponse.ProtoReflect.Descriptor instead.
|
||||
func (*RegenerateTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenResponse) GetTokenValue() *TokenValue {
|
||||
if x != nil {
|
||||
return x.TokenValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetTokenRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetTokenRequest) Reset() {
|
||||
*x = GetTokenRequest{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetTokenRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetTokenRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[11]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *GetTokenRequest) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetTokenResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
TokenMetadata *TokenMetadata `protobuf:"bytes,2,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"`
|
||||
TokenPermissions *TokenPermissions `protobuf:"bytes,3,opt,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetTokenResponse) Reset() {
|
||||
*x = GetTokenResponse{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetTokenResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetTokenResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetTokenResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[12]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetTokenResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *GetTokenResponse) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTokenResponse) GetTokenMetadata() *TokenMetadata {
|
||||
if x != nil {
|
||||
return x.TokenMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTokenResponse) GetTokenPermissions() *TokenPermissions {
|
||||
if x != nil {
|
||||
return x.TokenPermissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListTokensResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
TokenMetadata *TokenMetadata `protobuf:"bytes,2,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"`
|
||||
TokenPermissions *TokenPermissions `protobuf:"bytes,3,opt,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListTokensResponse) Reset() {
|
||||
*x = ListTokensResponse{}
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListTokensResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListTokensResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListTokensResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_tokens_v1_tokens_v1_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListTokensResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListTokensResponse) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *ListTokensResponse) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListTokensResponse) GetTokenMetadata() *TokenMetadata {
|
||||
if x != nil {
|
||||
return x.TokenMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListTokensResponse) GetTokenPermissions() *TokenPermissions {
|
||||
if x != nil {
|
||||
return x.TokenPermissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_tokens_v1_tokens_v1_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_tokens_v1_tokens_v1_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x19tokens/v1/tokens_v1.proto\x12\ttokens.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"^\n" +
|
||||
"\rTokenMetadata\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x129\n" +
|
||||
"\n" +
|
||||
"expires_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\"\x1f\n" +
|
||||
"\tTokenUUID\x12\x12\n" +
|
||||
"\x04uuid\x18\x01 \x01(\tR\x04uuid\"\"\n" +
|
||||
"\n" +
|
||||
"TokenValue\x12\x14\n" +
|
||||
"\x05token\x18\x01 \x01(\tR\x05token\"\x12\n" +
|
||||
"\x10TokenPermissions\"\x9f\x01\n" +
|
||||
"\x12CreateTokenRequest\x12?\n" +
|
||||
"\x0etoken_metadata\x18\x01 \x01(\v2\x18.tokens.v1.TokenMetadataR\rtokenMetadata\x12H\n" +
|
||||
"\x11token_permissions\x18\x02 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions\"\x8d\x02\n" +
|
||||
"\x13CreateTokenResponse\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\x12?\n" +
|
||||
"\x0etoken_metadata\x18\x02 \x01(\v2\x18.tokens.v1.TokenMetadataR\rtokenMetadata\x12H\n" +
|
||||
"\x11token_permissions\x18\x03 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions\x126\n" +
|
||||
"\vtoken_value\x18\x04 \x01(\v2\x15.tokens.v1.TokenValueR\n" +
|
||||
"tokenValue\"\xd4\x01\n" +
|
||||
"\x12UpdateTokenRequest\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\x12?\n" +
|
||||
"\x0etoken_metadata\x18\x02 \x01(\v2\x18.tokens.v1.TokenMetadataR\rtokenMetadata\x12H\n" +
|
||||
"\x11token_permissions\x18\x03 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions\"\xd5\x01\n" +
|
||||
"\x13UpdateTokenResponse\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\x12?\n" +
|
||||
"\x0etoken_metadata\x18\x02 \x01(\v2\x18.tokens.v1.TokenMetadataR\rtokenMetadata\x12H\n" +
|
||||
"\x11token_permissions\x18\x03 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions\"R\n" +
|
||||
"\x1bForceTokenExpirationRequest\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\"M\n" +
|
||||
"\x16RegenerateTokenRequest\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\"Q\n" +
|
||||
"\x17RegenerateTokenResponse\x126\n" +
|
||||
"\vtoken_value\x18\x01 \x01(\v2\x15.tokens.v1.TokenValueR\n" +
|
||||
"tokenValue\"F\n" +
|
||||
"\x0fGetTokenRequest\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\"\xd2\x01\n" +
|
||||
"\x10GetTokenResponse\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\x12?\n" +
|
||||
"\x0etoken_metadata\x18\x02 \x01(\v2\x18.tokens.v1.TokenMetadataR\rtokenMetadata\x12H\n" +
|
||||
"\x11token_permissions\x18\x03 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions\"\xd4\x01\n" +
|
||||
"\x12ListTokensResponse\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\x12?\n" +
|
||||
"\x0etoken_metadata\x18\x02 \x01(\v2\x18.tokens.v1.TokenMetadataR\rtokenMetadata\x12H\n" +
|
||||
"\x11token_permissions\x18\x03 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions2\xf5\x03\n" +
|
||||
"\rTokensService\x12N\n" +
|
||||
"\vCreateToken\x12\x1d.tokens.v1.CreateTokenRequest\x1a\x1e.tokens.v1.CreateTokenResponse\"\x00\x12N\n" +
|
||||
"\vUpdateToken\x12\x1d.tokens.v1.UpdateTokenRequest\x1a\x1e.tokens.v1.UpdateTokenResponse\"\x00\x12X\n" +
|
||||
"\x14ForceTokenExpiration\x12&.tokens.v1.ForceTokenExpirationRequest\x1a\x16.google.protobuf.Empty\"\x00\x12Z\n" +
|
||||
"\x0fRegenerateToken\x12!.tokens.v1.RegenerateTokenRequest\x1a\".tokens.v1.RegenerateTokenResponse\"\x00\x12E\n" +
|
||||
"\bGetToken\x12\x1a.tokens.v1.GetTokenRequest\x1a\x1b.tokens.v1.GetTokenResponse\"\x00\x12G\n" +
|
||||
"\n" +
|
||||
"ListTokens\x12\x16.google.protobuf.Empty\x1a\x1d.tokens.v1.ListTokensResponse\"\x000\x01BGZEgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/tokens/v1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_tokens_v1_tokens_v1_proto_rawDescOnce sync.Once
|
||||
file_tokens_v1_tokens_v1_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_tokens_v1_tokens_v1_proto_rawDescGZIP() []byte {
|
||||
file_tokens_v1_tokens_v1_proto_rawDescOnce.Do(func() {
|
||||
file_tokens_v1_tokens_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_tokens_v1_tokens_v1_proto_rawDesc), len(file_tokens_v1_tokens_v1_proto_rawDesc)))
|
||||
})
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_tokens_v1_tokens_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
||||
var file_tokens_v1_tokens_v1_proto_goTypes = []any{
|
||||
(*TokenMetadata)(nil), // 0: tokens.v1.TokenMetadata
|
||||
(*TokenUUID)(nil), // 1: tokens.v1.TokenUUID
|
||||
(*TokenValue)(nil), // 2: tokens.v1.TokenValue
|
||||
(*TokenPermissions)(nil), // 3: tokens.v1.TokenPermissions
|
||||
(*CreateTokenRequest)(nil), // 4: tokens.v1.CreateTokenRequest
|
||||
(*CreateTokenResponse)(nil), // 5: tokens.v1.CreateTokenResponse
|
||||
(*UpdateTokenRequest)(nil), // 6: tokens.v1.UpdateTokenRequest
|
||||
(*UpdateTokenResponse)(nil), // 7: tokens.v1.UpdateTokenResponse
|
||||
(*ForceTokenExpirationRequest)(nil), // 8: tokens.v1.ForceTokenExpirationRequest
|
||||
(*RegenerateTokenRequest)(nil), // 9: tokens.v1.RegenerateTokenRequest
|
||||
(*RegenerateTokenResponse)(nil), // 10: tokens.v1.RegenerateTokenResponse
|
||||
(*GetTokenRequest)(nil), // 11: tokens.v1.GetTokenRequest
|
||||
(*GetTokenResponse)(nil), // 12: tokens.v1.GetTokenResponse
|
||||
(*ListTokensResponse)(nil), // 13: tokens.v1.ListTokensResponse
|
||||
(*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp
|
||||
(*emptypb.Empty)(nil), // 15: google.protobuf.Empty
|
||||
}
|
||||
var file_tokens_v1_tokens_v1_proto_depIdxs = []int32{
|
||||
14, // 0: tokens.v1.TokenMetadata.expires_at:type_name -> google.protobuf.Timestamp
|
||||
0, // 1: tokens.v1.CreateTokenRequest.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
3, // 2: tokens.v1.CreateTokenRequest.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 3: tokens.v1.CreateTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 4: tokens.v1.CreateTokenResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
3, // 5: tokens.v1.CreateTokenResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
2, // 6: tokens.v1.CreateTokenResponse.token_value:type_name -> tokens.v1.TokenValue
|
||||
1, // 7: tokens.v1.UpdateTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 8: tokens.v1.UpdateTokenRequest.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
3, // 9: tokens.v1.UpdateTokenRequest.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 10: tokens.v1.UpdateTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 11: tokens.v1.UpdateTokenResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
3, // 12: tokens.v1.UpdateTokenResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 13: tokens.v1.ForceTokenExpirationRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
1, // 14: tokens.v1.RegenerateTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
2, // 15: tokens.v1.RegenerateTokenResponse.token_value:type_name -> tokens.v1.TokenValue
|
||||
1, // 16: tokens.v1.GetTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
1, // 17: tokens.v1.GetTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 18: tokens.v1.GetTokenResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
3, // 19: tokens.v1.GetTokenResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 20: tokens.v1.ListTokensResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 21: tokens.v1.ListTokensResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
3, // 22: tokens.v1.ListTokensResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
4, // 23: tokens.v1.TokensService.CreateToken:input_type -> tokens.v1.CreateTokenRequest
|
||||
6, // 24: tokens.v1.TokensService.UpdateToken:input_type -> tokens.v1.UpdateTokenRequest
|
||||
8, // 25: tokens.v1.TokensService.ForceTokenExpiration:input_type -> tokens.v1.ForceTokenExpirationRequest
|
||||
9, // 26: tokens.v1.TokensService.RegenerateToken:input_type -> tokens.v1.RegenerateTokenRequest
|
||||
11, // 27: tokens.v1.TokensService.GetToken:input_type -> tokens.v1.GetTokenRequest
|
||||
15, // 28: tokens.v1.TokensService.ListTokens:input_type -> google.protobuf.Empty
|
||||
5, // 29: tokens.v1.TokensService.CreateToken:output_type -> tokens.v1.CreateTokenResponse
|
||||
7, // 30: tokens.v1.TokensService.UpdateToken:output_type -> tokens.v1.UpdateTokenResponse
|
||||
15, // 31: tokens.v1.TokensService.ForceTokenExpiration:output_type -> google.protobuf.Empty
|
||||
10, // 32: tokens.v1.TokensService.RegenerateToken:output_type -> tokens.v1.RegenerateTokenResponse
|
||||
12, // 33: tokens.v1.TokensService.GetToken:output_type -> tokens.v1.GetTokenResponse
|
||||
13, // 34: tokens.v1.TokensService.ListTokens:output_type -> tokens.v1.ListTokensResponse
|
||||
29, // [29:35] is the sub-list for method output_type
|
||||
23, // [23:29] is the sub-list for method input_type
|
||||
23, // [23:23] is the sub-list for extension type_name
|
||||
23, // [23:23] is the sub-list for extension extendee
|
||||
0, // [0:23] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_tokens_v1_tokens_v1_proto_init() }
|
||||
func file_tokens_v1_tokens_v1_proto_init() {
|
||||
if File_tokens_v1_tokens_v1_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_tokens_v1_tokens_v1_proto_rawDesc), len(file_tokens_v1_tokens_v1_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 14,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_tokens_v1_tokens_v1_proto_goTypes,
|
||||
DependencyIndexes: file_tokens_v1_tokens_v1_proto_depIdxs,
|
||||
MessageInfos: file_tokens_v1_tokens_v1_proto_msgTypes,
|
||||
}.Build()
|
||||
File_tokens_v1_tokens_v1_proto = out.File
|
||||
file_tokens_v1_tokens_v1_proto_goTypes = nil
|
||||
file_tokens_v1_tokens_v1_proto_depIdxs = nil
|
||||
}
|
||||
334
pkg/tokens/v1/tokens_v1_grpc.pb.go
Normal file
334
pkg/tokens/v1/tokens_v1_grpc.pb.go
Normal file
@@ -0,0 +1,334 @@
|
||||
/// Protobuf definitions for the accounts service.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: tokens/v1/tokens_v1.proto
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
TokensService_CreateToken_FullMethodName = "/tokens.v1.TokensService/CreateToken"
|
||||
TokensService_UpdateToken_FullMethodName = "/tokens.v1.TokensService/UpdateToken"
|
||||
TokensService_ForceTokenExpiration_FullMethodName = "/tokens.v1.TokensService/ForceTokenExpiration"
|
||||
TokensService_RegenerateToken_FullMethodName = "/tokens.v1.TokensService/RegenerateToken"
|
||||
TokensService_GetToken_FullMethodName = "/tokens.v1.TokensService/GetToken"
|
||||
TokensService_ListTokens_FullMethodName = "/tokens.v1.TokensService/ListTokens"
|
||||
)
|
||||
|
||||
// TokensServiceClient is the client API for TokensService 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.
|
||||
//
|
||||
// Tokens should be used for programmatic access
|
||||
// For example CLI or terraform modules
|
||||
type TokensServiceClient interface {
|
||||
// Create a new token
|
||||
CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error)
|
||||
// Update an existing token
|
||||
UpdateToken(ctx context.Context, in *UpdateTokenRequest, opts ...grpc.CallOption) (*UpdateTokenResponse, error)
|
||||
// Expire an existing token
|
||||
ForceTokenExpiration(ctx context.Context, in *ForceTokenExpirationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Create a new token with the same UUID
|
||||
RegenerateToken(ctx context.Context, in *RegenerateTokenRequest, opts ...grpc.CallOption) (*RegenerateTokenResponse, error)
|
||||
// Get an existing token
|
||||
GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, error)
|
||||
// List all existing tokens
|
||||
ListTokens(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListTokensResponse], error)
|
||||
}
|
||||
|
||||
type tokensServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewTokensServiceClient(cc grpc.ClientConnInterface) TokensServiceClient {
|
||||
return &tokensServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *tokensServiceClient) CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CreateTokenResponse)
|
||||
err := c.cc.Invoke(ctx, TokensService_CreateToken_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tokensServiceClient) UpdateToken(ctx context.Context, in *UpdateTokenRequest, opts ...grpc.CallOption) (*UpdateTokenResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateTokenResponse)
|
||||
err := c.cc.Invoke(ctx, TokensService_UpdateToken_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tokensServiceClient) ForceTokenExpiration(ctx context.Context, in *ForceTokenExpirationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, TokensService_ForceTokenExpiration_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tokensServiceClient) RegenerateToken(ctx context.Context, in *RegenerateTokenRequest, opts ...grpc.CallOption) (*RegenerateTokenResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(RegenerateTokenResponse)
|
||||
err := c.cc.Invoke(ctx, TokensService_RegenerateToken_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tokensServiceClient) GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetTokenResponse)
|
||||
err := c.cc.Invoke(ctx, TokensService_GetToken_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tokensServiceClient) ListTokens(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListTokensResponse], error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
stream, err := c.cc.NewStream(ctx, &TokensService_ServiceDesc.Streams[0], TokensService_ListTokens_FullMethodName, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &grpc.GenericClientStream[emptypb.Empty, ListTokensResponse]{ClientStream: stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type TokensService_ListTokensClient = grpc.ServerStreamingClient[ListTokensResponse]
|
||||
|
||||
// TokensServiceServer is the server API for TokensService service.
|
||||
// All implementations should embed UnimplementedTokensServiceServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// Tokens should be used for programmatic access
|
||||
// For example CLI or terraform modules
|
||||
type TokensServiceServer interface {
|
||||
// Create a new token
|
||||
CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
|
||||
// Update an existing token
|
||||
UpdateToken(context.Context, *UpdateTokenRequest) (*UpdateTokenResponse, error)
|
||||
// Expire an existing token
|
||||
ForceTokenExpiration(context.Context, *ForceTokenExpirationRequest) (*emptypb.Empty, error)
|
||||
// Create a new token with the same UUID
|
||||
RegenerateToken(context.Context, *RegenerateTokenRequest) (*RegenerateTokenResponse, error)
|
||||
// Get an existing token
|
||||
GetToken(context.Context, *GetTokenRequest) (*GetTokenResponse, error)
|
||||
// List all existing tokens
|
||||
ListTokens(*emptypb.Empty, grpc.ServerStreamingServer[ListTokensResponse]) error
|
||||
}
|
||||
|
||||
// UnimplementedTokensServiceServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedTokensServiceServer struct{}
|
||||
|
||||
func (UnimplementedTokensServiceServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreateToken not implemented")
|
||||
}
|
||||
func (UnimplementedTokensServiceServer) UpdateToken(context.Context, *UpdateTokenRequest) (*UpdateTokenResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateToken not implemented")
|
||||
}
|
||||
func (UnimplementedTokensServiceServer) ForceTokenExpiration(context.Context, *ForceTokenExpirationRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ForceTokenExpiration not implemented")
|
||||
}
|
||||
func (UnimplementedTokensServiceServer) RegenerateToken(context.Context, *RegenerateTokenRequest) (*RegenerateTokenResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RegenerateToken not implemented")
|
||||
}
|
||||
func (UnimplementedTokensServiceServer) GetToken(context.Context, *GetTokenRequest) (*GetTokenResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetToken not implemented")
|
||||
}
|
||||
func (UnimplementedTokensServiceServer) ListTokens(*emptypb.Empty, grpc.ServerStreamingServer[ListTokensResponse]) error {
|
||||
return status.Error(codes.Unimplemented, "method ListTokens not implemented")
|
||||
}
|
||||
func (UnimplementedTokensServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeTokensServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to TokensServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeTokensServiceServer interface {
|
||||
mustEmbedUnimplementedTokensServiceServer()
|
||||
}
|
||||
|
||||
func RegisterTokensServiceServer(s grpc.ServiceRegistrar, srv TokensServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedTokensServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&TokensService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _TokensService_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateTokenRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TokensServiceServer).CreateToken(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: TokensService_CreateToken_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TokensServiceServer).CreateToken(ctx, req.(*CreateTokenRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TokensService_UpdateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateTokenRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TokensServiceServer).UpdateToken(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: TokensService_UpdateToken_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TokensServiceServer).UpdateToken(ctx, req.(*UpdateTokenRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TokensService_ForceTokenExpiration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ForceTokenExpirationRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TokensServiceServer).ForceTokenExpiration(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: TokensService_ForceTokenExpiration_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TokensServiceServer).ForceTokenExpiration(ctx, req.(*ForceTokenExpirationRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TokensService_RegenerateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RegenerateTokenRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TokensServiceServer).RegenerateToken(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: TokensService_RegenerateToken_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TokensServiceServer).RegenerateToken(ctx, req.(*RegenerateTokenRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TokensService_GetToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTokenRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TokensServiceServer).GetToken(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: TokensService_GetToken_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TokensServiceServer).GetToken(ctx, req.(*GetTokenRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TokensService_ListTokens_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(emptypb.Empty)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(TokensServiceServer).ListTokens(m, &grpc.GenericServerStream[emptypb.Empty, ListTokensResponse]{ServerStream: stream})
|
||||
}
|
||||
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type TokensService_ListTokensServer = grpc.ServerStreamingServer[ListTokensResponse]
|
||||
|
||||
// TokensService_ServiceDesc is the grpc.ServiceDesc for TokensService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var TokensService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "tokens.v1.TokensService",
|
||||
HandlerType: (*TokensServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "CreateToken",
|
||||
Handler: _TokensService_CreateToken_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateToken",
|
||||
Handler: _TokensService_UpdateToken_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ForceTokenExpiration",
|
||||
Handler: _TokensService_ForceTokenExpiration_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RegenerateToken",
|
||||
Handler: _TokensService_RegenerateToken_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetToken",
|
||||
Handler: _TokensService_GetToken_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "ListTokens",
|
||||
Handler: _TokensService_ListTokens_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: "tokens/v1/tokens_v1.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user