Documentation ¶
Index ¶
- Constants
- Variables
- func NewTLS(caFile, certFile, keyFile string) (*tls.Config, error)
- func RegisterSysAPIServer(s grpc.ServiceRegistrar, srv SysAPIServer)
- type AuthSubject
- func (*AuthSubject) Descriptor() ([]byte, []int)deprecated
- func (x *AuthSubject) GetProviderId() string
- func (x *AuthSubject) GetSubjectId() string
- func (x *AuthSubject) GetUserId() string
- func (*AuthSubject) ProtoMessage()
- func (x *AuthSubject) ProtoReflect() protoreflect.Message
- func (x *AuthSubject) Reset()
- func (x *AuthSubject) String() string
- type AuthSubjectsRequest
- func (*AuthSubjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthSubjectsRequest) GetProviderId() string
- func (x *AuthSubjectsRequest) GetUserId() string
- func (*AuthSubjectsRequest) ProtoMessage()
- func (x *AuthSubjectsRequest) ProtoReflect() protoreflect.Message
- func (x *AuthSubjectsRequest) Reset()
- func (x *AuthSubjectsRequest) String() string
- type DeleteUserRequest
- type DeleteUserResponse
- type SetAuthSubjectRequest
- func (*SetAuthSubjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetAuthSubjectRequest) GetSubject() *AuthSubject
- func (*SetAuthSubjectRequest) ProtoMessage()
- func (x *SetAuthSubjectRequest) ProtoReflect() protoreflect.Message
- func (x *SetAuthSubjectRequest) Reset()
- func (x *SetAuthSubjectRequest) String() string
- type SetAuthSubjectResponse
- type SysAPIClient
- type SysAPIServer
- type SysAPI_AuthSubjectsClient
- type SysAPI_AuthSubjectsServer
- type SysAPI_UsersWithoutAuthProviderClient
- type SysAPI_UsersWithoutAuthProviderServer
- type UnimplementedSysAPIServer
- func (UnimplementedSysAPIServer) AuthSubjects(*AuthSubjectsRequest, grpc.ServerStreamingServer[AuthSubject]) error
- func (UnimplementedSysAPIServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedSysAPIServer) SetAuthSubject(context.Context, *SetAuthSubjectRequest) (*SetAuthSubjectResponse, error)
- func (UnimplementedSysAPIServer) UsersWithoutAuthProvider(*UsersWithoutAuthProviderRequest, grpc.ServerStreamingServer[UserInfo]) error
- type UnsafeSysAPIServer
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetId() string
- func (x *UserInfo) GetName() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UsersWithoutAuthProviderRequest
- func (*UsersWithoutAuthProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UsersWithoutAuthProviderRequest) GetProviderId() string
- func (*UsersWithoutAuthProviderRequest) ProtoMessage()
- func (x *UsersWithoutAuthProviderRequest) ProtoReflect() protoreflect.Message
- func (x *UsersWithoutAuthProviderRequest) Reset()
- func (x *UsersWithoutAuthProviderRequest) String() string
Constants ¶
const ( SysAPI_AuthSubjects_FullMethodName = "/goalert.v1.SysAPI/AuthSubjects" SysAPI_DeleteUser_FullMethodName = "/goalert.v1.SysAPI/DeleteUser" SysAPI_UsersWithoutAuthProvider_FullMethodName = "/goalert.v1.SysAPI/UsersWithoutAuthProvider" SysAPI_SetAuthSubject_FullMethodName = "/goalert.v1.SysAPI/SetAuthSubject" )
Variables ¶
var File_pkg_sysapi_sysapi_proto protoreflect.FileDescriptor
var SysAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "goalert.v1.SysAPI", HandlerType: (*SysAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DeleteUser", Handler: _SysAPI_DeleteUser_Handler, }, { MethodName: "SetAuthSubject", Handler: _SysAPI_SetAuthSubject_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "AuthSubjects", Handler: _SysAPI_AuthSubjects_Handler, ServerStreams: true, }, { StreamName: "UsersWithoutAuthProvider", Handler: _SysAPI_UsersWithoutAuthProvider_Handler, ServerStreams: true, }, }, Metadata: "pkg/sysapi/sysapi.proto", }
SysAPI_ServiceDesc is the grpc.ServiceDesc for SysAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSysAPIServer ¶
func RegisterSysAPIServer(s grpc.ServiceRegistrar, srv SysAPIServer)
Types ¶
type AuthSubject ¶
type AuthSubject struct { 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"` // contains filtered or unexported fields }
func (*AuthSubject) Descriptor
deprecated
func (*AuthSubject) Descriptor() ([]byte, []int)
Deprecated: Use AuthSubject.ProtoReflect.Descriptor instead.
func (*AuthSubject) GetProviderId ¶
func (x *AuthSubject) GetProviderId() string
func (*AuthSubject) GetSubjectId ¶
func (x *AuthSubject) GetSubjectId() string
func (*AuthSubject) GetUserId ¶
func (x *AuthSubject) GetUserId() string
func (*AuthSubject) ProtoMessage ¶
func (*AuthSubject) ProtoMessage()
func (*AuthSubject) ProtoReflect ¶
func (x *AuthSubject) ProtoReflect() protoreflect.Message
func (*AuthSubject) Reset ¶
func (x *AuthSubject) Reset()
func (*AuthSubject) String ¶
func (x *AuthSubject) String() string
type AuthSubjectsRequest ¶
type AuthSubjectsRequest struct { 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"` // contains filtered or unexported fields }
func (*AuthSubjectsRequest) Descriptor
deprecated
func (*AuthSubjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthSubjectsRequest.ProtoReflect.Descriptor instead.
func (*AuthSubjectsRequest) GetProviderId ¶
func (x *AuthSubjectsRequest) GetProviderId() string
func (*AuthSubjectsRequest) GetUserId ¶
func (x *AuthSubjectsRequest) GetUserId() string
func (*AuthSubjectsRequest) ProtoMessage ¶
func (*AuthSubjectsRequest) ProtoMessage()
func (*AuthSubjectsRequest) ProtoReflect ¶
func (x *AuthSubjectsRequest) ProtoReflect() protoreflect.Message
func (*AuthSubjectsRequest) Reset ¶
func (x *AuthSubjectsRequest) Reset()
func (*AuthSubjectsRequest) String ¶
func (x *AuthSubjectsRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetUserId ¶
func (x *DeleteUserRequest) GetUserId() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type SetAuthSubjectRequest ¶ added in v0.29.0
type SetAuthSubjectRequest struct { Subject *AuthSubject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*SetAuthSubjectRequest) Descriptor
deprecated
added in
v0.29.0
func (*SetAuthSubjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetAuthSubjectRequest.ProtoReflect.Descriptor instead.
func (*SetAuthSubjectRequest) GetSubject ¶ added in v0.29.0
func (x *SetAuthSubjectRequest) GetSubject() *AuthSubject
func (*SetAuthSubjectRequest) ProtoMessage ¶ added in v0.29.0
func (*SetAuthSubjectRequest) ProtoMessage()
func (*SetAuthSubjectRequest) ProtoReflect ¶ added in v0.29.0
func (x *SetAuthSubjectRequest) ProtoReflect() protoreflect.Message
func (*SetAuthSubjectRequest) Reset ¶ added in v0.29.0
func (x *SetAuthSubjectRequest) Reset()
func (*SetAuthSubjectRequest) String ¶ added in v0.29.0
func (x *SetAuthSubjectRequest) String() string
type SetAuthSubjectResponse ¶ added in v0.29.0
type SetAuthSubjectResponse struct {
// contains filtered or unexported fields
}
func (*SetAuthSubjectResponse) Descriptor
deprecated
added in
v0.29.0
func (*SetAuthSubjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetAuthSubjectResponse.ProtoReflect.Descriptor instead.
func (*SetAuthSubjectResponse) ProtoMessage ¶ added in v0.29.0
func (*SetAuthSubjectResponse) ProtoMessage()
func (*SetAuthSubjectResponse) ProtoReflect ¶ added in v0.29.0
func (x *SetAuthSubjectResponse) ProtoReflect() protoreflect.Message
func (*SetAuthSubjectResponse) Reset ¶ added in v0.29.0
func (x *SetAuthSubjectResponse) Reset()
func (*SetAuthSubjectResponse) String ¶ added in v0.29.0
func (x *SetAuthSubjectResponse) String() string
type SysAPIClient ¶
type SysAPIClient interface { AuthSubjects(ctx context.Context, in *AuthSubjectsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[AuthSubject], error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) UsersWithoutAuthProvider(ctx context.Context, in *UsersWithoutAuthProviderRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[UserInfo], error) SetAuthSubject(ctx context.Context, in *SetAuthSubjectRequest, opts ...grpc.CallOption) (*SetAuthSubjectResponse, error) }
SysAPIClient is the client API for SysAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSysAPIClient ¶
func NewSysAPIClient(cc grpc.ClientConnInterface) SysAPIClient
type SysAPIServer ¶
type SysAPIServer interface { AuthSubjects(*AuthSubjectsRequest, grpc.ServerStreamingServer[AuthSubject]) error DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) UsersWithoutAuthProvider(*UsersWithoutAuthProviderRequest, grpc.ServerStreamingServer[UserInfo]) error SetAuthSubject(context.Context, *SetAuthSubjectRequest) (*SetAuthSubjectResponse, error) // contains filtered or unexported methods }
SysAPIServer is the server API for SysAPI service. All implementations must embed UnimplementedSysAPIServer for forward compatibility.
type SysAPI_AuthSubjectsClient ¶
type SysAPI_AuthSubjectsClient = grpc.ServerStreamingClient[AuthSubject]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SysAPI_AuthSubjectsServer ¶
type SysAPI_AuthSubjectsServer = grpc.ServerStreamingServer[AuthSubject]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SysAPI_UsersWithoutAuthProviderClient ¶ added in v0.29.0
type SysAPI_UsersWithoutAuthProviderClient = grpc.ServerStreamingClient[UserInfo]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SysAPI_UsersWithoutAuthProviderServer ¶ added in v0.29.0
type SysAPI_UsersWithoutAuthProviderServer = grpc.ServerStreamingServer[UserInfo]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedSysAPIServer ¶
type UnimplementedSysAPIServer struct{}
UnimplementedSysAPIServer must 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.
func (UnimplementedSysAPIServer) AuthSubjects ¶
func (UnimplementedSysAPIServer) AuthSubjects(*AuthSubjectsRequest, grpc.ServerStreamingServer[AuthSubject]) error
func (UnimplementedSysAPIServer) DeleteUser ¶
func (UnimplementedSysAPIServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedSysAPIServer) SetAuthSubject ¶ added in v0.29.0
func (UnimplementedSysAPIServer) SetAuthSubject(context.Context, *SetAuthSubjectRequest) (*SetAuthSubjectResponse, error)
func (UnimplementedSysAPIServer) UsersWithoutAuthProvider ¶ added in v0.29.0
func (UnimplementedSysAPIServer) UsersWithoutAuthProvider(*UsersWithoutAuthProviderRequest, grpc.ServerStreamingServer[UserInfo]) error
type UnsafeSysAPIServer ¶
type UnsafeSysAPIServer interface {
// contains filtered or unexported methods
}
UnsafeSysAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SysAPIServer will result in compilation errors.
type UserInfo ¶ added in v0.29.0
type UserInfo struct { 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"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
added in
v0.29.0
func (*UserInfo) ProtoMessage ¶ added in v0.29.0
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶ added in v0.29.0
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UsersWithoutAuthProviderRequest ¶ added in v0.29.0
type UsersWithoutAuthProviderRequest struct { ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` // contains filtered or unexported fields }
func (*UsersWithoutAuthProviderRequest) Descriptor
deprecated
added in
v0.29.0
func (*UsersWithoutAuthProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use UsersWithoutAuthProviderRequest.ProtoReflect.Descriptor instead.
func (*UsersWithoutAuthProviderRequest) GetProviderId ¶ added in v0.29.0
func (x *UsersWithoutAuthProviderRequest) GetProviderId() string
func (*UsersWithoutAuthProviderRequest) ProtoMessage ¶ added in v0.29.0
func (*UsersWithoutAuthProviderRequest) ProtoMessage()
func (*UsersWithoutAuthProviderRequest) ProtoReflect ¶ added in v0.29.0
func (x *UsersWithoutAuthProviderRequest) ProtoReflect() protoreflect.Message
func (*UsersWithoutAuthProviderRequest) Reset ¶ added in v0.29.0
func (x *UsersWithoutAuthProviderRequest) Reset()
func (*UsersWithoutAuthProviderRequest) String ¶ added in v0.29.0
func (x *UsersWithoutAuthProviderRequest) String() string