|
|
|
|
|
|
|
|
|
|
|
|
|
package sysapi |
|
|
|
import ( |
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
|
reflect "reflect" |
|
sync "sync" |
|
unsafe "unsafe" |
|
) |
|
|
|
const ( |
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
|
) |
|
|
|
type UsersWithoutAuthProviderRequest struct { |
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` |
|
unknownFields protoimpl.UnknownFields |
|
sizeCache protoimpl.SizeCache |
|
} |
|
|
|
func (x *UsersWithoutAuthProviderRequest) Reset() { |
|
*x = UsersWithoutAuthProviderRequest{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[0] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *UsersWithoutAuthProviderRequest) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*UsersWithoutAuthProviderRequest) ProtoMessage() {} |
|
|
|
func (x *UsersWithoutAuthProviderRequest) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*UsersWithoutAuthProviderRequest) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{0} |
|
} |
|
|
|
func (x *UsersWithoutAuthProviderRequest) GetProviderId() string { |
|
if x != nil { |
|
return x.ProviderId |
|
} |
|
return "" |
|
} |
|
|
|
type SetAuthSubjectRequest struct { |
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
Subject *AuthSubject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` |
|
unknownFields protoimpl.UnknownFields |
|
sizeCache protoimpl.SizeCache |
|
} |
|
|
|
func (x *SetAuthSubjectRequest) Reset() { |
|
*x = SetAuthSubjectRequest{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[1] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *SetAuthSubjectRequest) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*SetAuthSubjectRequest) ProtoMessage() {} |
|
|
|
func (x *SetAuthSubjectRequest) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*SetAuthSubjectRequest) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{1} |
|
} |
|
|
|
func (x *SetAuthSubjectRequest) GetSubject() *AuthSubject { |
|
if x != nil { |
|
return x.Subject |
|
} |
|
return nil |
|
} |
|
|
|
type UserInfo struct { |
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` |
|
unknownFields protoimpl.UnknownFields |
|
sizeCache protoimpl.SizeCache |
|
} |
|
|
|
func (x *UserInfo) Reset() { |
|
*x = UserInfo{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[2] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *UserInfo) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*UserInfo) ProtoMessage() {} |
|
|
|
func (x *UserInfo) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*UserInfo) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{2} |
|
} |
|
|
|
func (x *UserInfo) GetId() string { |
|
if x != nil { |
|
return x.Id |
|
} |
|
return "" |
|
} |
|
|
|
func (x *UserInfo) GetName() string { |
|
if x != nil { |
|
return x.Name |
|
} |
|
return "" |
|
} |
|
|
|
func (x *UserInfo) GetEmail() string { |
|
if x != nil { |
|
return x.Email |
|
} |
|
return "" |
|
} |
|
|
|
type SetAuthSubjectResponse struct { |
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
unknownFields protoimpl.UnknownFields |
|
sizeCache protoimpl.SizeCache |
|
} |
|
|
|
func (x *SetAuthSubjectResponse) Reset() { |
|
*x = SetAuthSubjectResponse{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[3] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *SetAuthSubjectResponse) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*SetAuthSubjectResponse) ProtoMessage() {} |
|
|
|
func (x *SetAuthSubjectResponse) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*SetAuthSubjectResponse) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{3} |
|
} |
|
|
|
type DeleteUserRequest 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 *DeleteUserRequest) Reset() { |
|
*x = DeleteUserRequest{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[4] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *DeleteUserRequest) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*DeleteUserRequest) ProtoMessage() {} |
|
|
|
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*DeleteUserRequest) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{4} |
|
} |
|
|
|
func (x *DeleteUserRequest) GetUserId() string { |
|
if x != nil { |
|
return x.UserId |
|
} |
|
return "" |
|
} |
|
|
|
type DeleteUserResponse struct { |
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
unknownFields protoimpl.UnknownFields |
|
sizeCache protoimpl.SizeCache |
|
} |
|
|
|
func (x *DeleteUserResponse) Reset() { |
|
*x = DeleteUserResponse{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[5] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *DeleteUserResponse) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*DeleteUserResponse) ProtoMessage() {} |
|
|
|
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*DeleteUserResponse) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{5} |
|
} |
|
|
|
type AuthSubjectsRequest struct { |
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` |
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` |
|
unknownFields protoimpl.UnknownFields |
|
sizeCache protoimpl.SizeCache |
|
} |
|
|
|
func (x *AuthSubjectsRequest) Reset() { |
|
*x = AuthSubjectsRequest{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[6] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *AuthSubjectsRequest) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*AuthSubjectsRequest) ProtoMessage() {} |
|
|
|
func (x *AuthSubjectsRequest) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*AuthSubjectsRequest) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{6} |
|
} |
|
|
|
func (x *AuthSubjectsRequest) GetProviderId() string { |
|
if x != nil { |
|
return x.ProviderId |
|
} |
|
return "" |
|
} |
|
|
|
func (x *AuthSubjectsRequest) GetUserId() string { |
|
if x != nil { |
|
return x.UserId |
|
} |
|
return "" |
|
} |
|
|
|
type AuthSubject struct { |
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` |
|
ProviderId string `protobuf:"bytes,2,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` |
|
SubjectId string `protobuf:"bytes,3,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"` |
|
unknownFields protoimpl.UnknownFields |
|
sizeCache protoimpl.SizeCache |
|
} |
|
|
|
func (x *AuthSubject) Reset() { |
|
*x = AuthSubject{} |
|
mi := &file_pkg_sysapi_sysapi_proto_msgTypes[7] |
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
ms.StoreMessageInfo(mi) |
|
} |
|
|
|
func (x *AuthSubject) String() string { |
|
return protoimpl.X.MessageStringOf(x) |
|
} |
|
|
|
func (*AuthSubject) ProtoMessage() {} |
|
|
|
func (x *AuthSubject) ProtoReflect() protoreflect.Message { |
|
mi := &file_pkg_sysapi_sysapi_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) |
|
} |
|
|
|
|
|
func (*AuthSubject) Descriptor() ([]byte, []int) { |
|
return file_pkg_sysapi_sysapi_proto_rawDescGZIP(), []int{7} |
|
} |
|
|
|
func (x *AuthSubject) GetUserId() string { |
|
if x != nil { |
|
return x.UserId |
|
} |
|
return "" |
|
} |
|
|
|
func (x *AuthSubject) GetProviderId() string { |
|
if x != nil { |
|
return x.ProviderId |
|
} |
|
return "" |
|
} |
|
|
|
func (x *AuthSubject) GetSubjectId() string { |
|
if x != nil { |
|
return x.SubjectId |
|
} |
|
return "" |
|
} |
|
|
|
var File_pkg_sysapi_sysapi_proto protoreflect.FileDescriptor |
|
|
|
const file_pkg_sysapi_sysapi_proto_rawDesc = "" + |
|
"\n" + |
|
"\x17pkg/sysapi/sysapi.proto\x12\n" + |
|
"goalert.v1\"B\n" + |
|
"\x1fUsersWithoutAuthProviderRequest\x12\x1f\n" + |
|
"\vprovider_id\x18\x01 \x01(\tR\n" + |
|
"providerId\"J\n" + |
|
"\x15SetAuthSubjectRequest\x121\n" + |
|
"\asubject\x18\x01 \x01(\v2\x17.goalert.v1.AuthSubjectR\asubject\"D\n" + |
|
"\bUserInfo\x12\x0e\n" + |
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + |
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" + |
|
"\x05email\x18\x03 \x01(\tR\x05email\"\x18\n" + |
|
"\x16SetAuthSubjectResponse\",\n" + |
|
"\x11DeleteUserRequest\x12\x17\n" + |
|
"\auser_id\x18\x01 \x01(\tR\x06userId\"\x14\n" + |
|
"\x12DeleteUserResponse\"O\n" + |
|
"\x13AuthSubjectsRequest\x12\x1f\n" + |
|
"\vprovider_id\x18\x01 \x01(\tR\n" + |
|
"providerId\x12\x17\n" + |
|
"\auser_id\x18\x02 \x01(\tR\x06userId\"f\n" + |
|
"\vAuthSubject\x12\x17\n" + |
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1f\n" + |
|
"\vprovider_id\x18\x02 \x01(\tR\n" + |
|
"providerId\x12\x1d\n" + |
|
"\n" + |
|
"subject_id\x18\x03 \x01(\tR\tsubjectId2\xe3\x02\n" + |
|
"\x06SysAPI\x12L\n" + |
|
"\fAuthSubjects\x12\x1f.goalert.v1.AuthSubjectsRequest\x1a\x17.goalert.v1.AuthSubject\"\x000\x01\x12M\n" + |
|
"\n" + |
|
"DeleteUser\x12\x1d.goalert.v1.DeleteUserRequest\x1a\x1e.goalert.v1.DeleteUserResponse\"\x00\x12a\n" + |
|
"\x18UsersWithoutAuthProvider\x12+.goalert.v1.UsersWithoutAuthProviderRequest\x1a\x14.goalert.v1.UserInfo\"\x000\x01\x12Y\n" + |
|
"\x0eSetAuthSubject\x12!.goalert.v1.SetAuthSubjectRequest\x1a\".goalert.v1.SetAuthSubjectResponse\"\x00B&Z$github.com/target/goalert/pkg/sysapib\x06proto3" |
|
|
|
var ( |
|
file_pkg_sysapi_sysapi_proto_rawDescOnce sync.Once |
|
file_pkg_sysapi_sysapi_proto_rawDescData []byte |
|
) |
|
|
|
func file_pkg_sysapi_sysapi_proto_rawDescGZIP() []byte { |
|
file_pkg_sysapi_sysapi_proto_rawDescOnce.Do(func() { |
|
file_pkg_sysapi_sysapi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_sysapi_sysapi_proto_rawDesc), len(file_pkg_sysapi_sysapi_proto_rawDesc))) |
|
}) |
|
return file_pkg_sysapi_sysapi_proto_rawDescData |
|
} |
|
|
|
var file_pkg_sysapi_sysapi_proto_msgTypes = make([]protoimpl.MessageInfo, 8) |
|
var file_pkg_sysapi_sysapi_proto_goTypes = []any{ |
|
(*UsersWithoutAuthProviderRequest)(nil), |
|
(*SetAuthSubjectRequest)(nil), |
|
(*UserInfo)(nil), |
|
(*SetAuthSubjectResponse)(nil), |
|
(*DeleteUserRequest)(nil), |
|
(*DeleteUserResponse)(nil), |
|
(*AuthSubjectsRequest)(nil), |
|
(*AuthSubject)(nil), |
|
} |
|
var file_pkg_sysapi_sysapi_proto_depIdxs = []int32{ |
|
7, |
|
6, |
|
4, |
|
0, |
|
1, |
|
7, |
|
5, |
|
2, |
|
3, |
|
5, |
|
1, |
|
1, |
|
1, |
|
0, |
|
} |
|
|
|
func init() { file_pkg_sysapi_sysapi_proto_init() } |
|
func file_pkg_sysapi_sysapi_proto_init() { |
|
if File_pkg_sysapi_sysapi_proto != nil { |
|
return |
|
} |
|
type x struct{} |
|
out := protoimpl.TypeBuilder{ |
|
File: protoimpl.DescBuilder{ |
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_sysapi_sysapi_proto_rawDesc), len(file_pkg_sysapi_sysapi_proto_rawDesc)), |
|
NumEnums: 0, |
|
NumMessages: 8, |
|
NumExtensions: 0, |
|
NumServices: 1, |
|
}, |
|
GoTypes: file_pkg_sysapi_sysapi_proto_goTypes, |
|
DependencyIndexes: file_pkg_sysapi_sysapi_proto_depIdxs, |
|
MessageInfos: file_pkg_sysapi_sysapi_proto_msgTypes, |
|
}.Build() |
|
File_pkg_sysapi_sysapi_proto = out.File |
|
file_pkg_sysapi_sysapi_proto_goTypes = nil |
|
file_pkg_sysapi_sysapi_proto_depIdxs = nil |
|
} |
|
|