Documentation
¶
Overview ¶
Package authd holds the authd protocol implementation.
Index ¶
- Constants
- Variables
- func RegisterPAMServer(s grpc.ServiceRegistrar, srv PAMServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type ABResponse
- type ABResponse_BrokerInfo
- func (*ABResponse_BrokerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ABResponse_BrokerInfo) GetBrandIcon() string
- func (x *ABResponse_BrokerInfo) GetId() string
- func (x *ABResponse_BrokerInfo) GetName() string
- func (*ABResponse_BrokerInfo) ProtoMessage()
- func (x *ABResponse_BrokerInfo) ProtoReflect() protoreflect.Message
- func (x *ABResponse_BrokerInfo) Reset()
- func (x *ABResponse_BrokerInfo) String() string
- type ESRequest
- type Empty
- type GAMRequest
- func (*GAMRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GAMRequest) GetSessionId() string
- func (x *GAMRequest) GetSupportedUiLayouts() []*UILayout
- func (*GAMRequest) ProtoMessage()
- func (x *GAMRequest) ProtoReflect() protoreflect.Message
- func (x *GAMRequest) Reset()
- func (x *GAMRequest) String() string
- type GAMResponse
- func (*GAMResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GAMResponse) GetAuthenticationModes() []*GAMResponse_AuthenticationMode
- func (*GAMResponse) ProtoMessage()
- func (x *GAMResponse) ProtoReflect() protoreflect.Message
- func (x *GAMResponse) Reset()
- func (x *GAMResponse) String() string
- type GAMResponse_AuthenticationMode
- func (*GAMResponse_AuthenticationMode) Descriptor() ([]byte, []int)deprecated
- func (x *GAMResponse_AuthenticationMode) GetId() string
- func (x *GAMResponse_AuthenticationMode) GetLabel() string
- func (*GAMResponse_AuthenticationMode) ProtoMessage()
- func (x *GAMResponse_AuthenticationMode) ProtoReflect() protoreflect.Message
- func (x *GAMResponse_AuthenticationMode) Reset()
- func (x *GAMResponse_AuthenticationMode) String() string
- type GPBRequest
- type GPBResponse
- type GetGroupByIDRequest
- func (*GetGroupByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGroupByIDRequest) GetId() uint32
- func (*GetGroupByIDRequest) ProtoMessage()
- func (x *GetGroupByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetGroupByIDRequest) Reset()
- func (x *GetGroupByIDRequest) String() string
- type GetGroupByNameRequest
- func (*GetGroupByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGroupByNameRequest) GetName() string
- func (*GetGroupByNameRequest) ProtoMessage()
- func (x *GetGroupByNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetGroupByNameRequest) Reset()
- func (x *GetGroupByNameRequest) String() string
- type GetUserByIDRequest
- type GetUserByNameRequest
- func (*GetUserByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByNameRequest) GetName() string
- func (x *GetUserByNameRequest) GetShouldPreCheck() bool
- func (*GetUserByNameRequest) ProtoMessage()
- func (x *GetUserByNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserByNameRequest) Reset()
- func (x *GetUserByNameRequest) String() string
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetGid() uint32
- func (x *Group) GetMembers() []string
- func (x *Group) GetName() string
- func (x *Group) GetPasswd() string
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type Groups
- type IARequest
- func (*IARequest) Descriptor() ([]byte, []int)deprecated
- func (x *IARequest) GetAuthenticationData() *IARequest_AuthenticationData
- func (x *IARequest) GetSessionId() string
- func (*IARequest) ProtoMessage()
- func (x *IARequest) ProtoReflect() protoreflect.Message
- func (x *IARequest) Reset()
- func (x *IARequest) String() string
- type IARequestAuthenticationDataItem
- type IARequest_AuthenticationData
- func (*IARequest_AuthenticationData) Descriptor() ([]byte, []int)deprecated
- func (x *IARequest_AuthenticationData) GetChallenge() string
- func (x *IARequest_AuthenticationData) GetItem() isIARequest_AuthenticationData_Item
- func (x *IARequest_AuthenticationData) GetSecret() string
- func (x *IARequest_AuthenticationData) GetSkip() string
- func (x *IARequest_AuthenticationData) GetWait() string
- func (*IARequest_AuthenticationData) ProtoMessage()
- func (x *IARequest_AuthenticationData) ProtoReflect() protoreflect.Message
- func (x *IARequest_AuthenticationData) Reset()
- func (x *IARequest_AuthenticationData) String() string
- type IARequest_AuthenticationData_Challenge
- type IARequest_AuthenticationData_Secret
- type IARequest_AuthenticationData_Skip
- type IARequest_AuthenticationData_Wait
- type IAResponse
- type PAMClient
- type PAMServer
- type SAMRequest
- func (*SAMRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SAMRequest) GetAuthenticationModeId() string
- func (x *SAMRequest) GetSessionId() string
- func (*SAMRequest) ProtoMessage()
- func (x *SAMRequest) ProtoReflect() protoreflect.Message
- func (x *SAMRequest) Reset()
- func (x *SAMRequest) String() string
- type SAMResponse
- type SBRequest
- func (*SBRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SBRequest) GetBrokerId() string
- func (x *SBRequest) GetLang() string
- func (x *SBRequest) GetMode() SessionMode
- func (x *SBRequest) GetUsername() string
- func (*SBRequest) ProtoMessage()
- func (x *SBRequest) ProtoReflect() protoreflect.Message
- func (x *SBRequest) Reset()
- func (x *SBRequest) String() string
- type SBResponse
- func (*SBResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SBResponse) GetEncryptionKey() string
- func (x *SBResponse) GetSessionId() string
- func (*SBResponse) ProtoMessage()
- func (x *SBResponse) ProtoReflect() protoreflect.Message
- func (x *SBResponse) Reset()
- func (x *SBResponse) String() string
- type SDBFURequest
- func (*SDBFURequest) Descriptor() ([]byte, []int)deprecated
- func (x *SDBFURequest) GetBrokerId() string
- func (x *SDBFURequest) GetUsername() string
- func (*SDBFURequest) ProtoMessage()
- func (x *SDBFURequest) ProtoReflect() protoreflect.Message
- func (x *SDBFURequest) Reset()
- func (x *SDBFURequest) String() string
- type SessionMode
- func (SessionMode) Descriptor() protoreflect.EnumDescriptor
- func (x SessionMode) Enum() *SessionMode
- func (SessionMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SessionMode) Number() protoreflect.EnumNumber
- func (x SessionMode) String() string
- func (SessionMode) Type() protoreflect.EnumType
- type StringResponse
- type UILayout
- func (*UILayout) Descriptor() ([]byte, []int)deprecated
- func (x *UILayout) GetButton() string
- func (x *UILayout) GetCode() string
- func (x *UILayout) GetContent() string
- func (x *UILayout) GetEntry() string
- func (x *UILayout) GetLabel() string
- func (x *UILayout) GetRendersQrcode() bool
- func (x *UILayout) GetType() string
- func (x *UILayout) GetWait() string
- func (*UILayout) ProtoMessage()
- func (x *UILayout) ProtoReflect() protoreflect.Message
- func (x *UILayout) Reset()
- func (x *UILayout) String() string
- type UnimplementedPAMServer
- func (UnimplementedPAMServer) AvailableBrokers(context.Context, *Empty) (*ABResponse, error)
- func (UnimplementedPAMServer) EndSession(context.Context, *ESRequest) (*Empty, error)
- func (UnimplementedPAMServer) GetAuthenticationModes(context.Context, *GAMRequest) (*GAMResponse, error)
- func (UnimplementedPAMServer) GetPreviousBroker(context.Context, *GPBRequest) (*GPBResponse, error)
- func (UnimplementedPAMServer) IsAuthenticated(context.Context, *IARequest) (*IAResponse, error)
- func (UnimplementedPAMServer) SelectAuthenticationMode(context.Context, *SAMRequest) (*SAMResponse, error)
- func (UnimplementedPAMServer) SelectBroker(context.Context, *SBRequest) (*SBResponse, error)
- func (UnimplementedPAMServer) SetDefaultBrokerForUser(context.Context, *SDBFURequest) (*Empty, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) GetGroupByID(context.Context, *GetGroupByIDRequest) (*Group, error)
- func (UnimplementedUserServiceServer) GetGroupByName(context.Context, *GetGroupByNameRequest) (*Group, error)
- func (UnimplementedUserServiceServer) GetUserByID(context.Context, *GetUserByIDRequest) (*User, error)
- func (UnimplementedUserServiceServer) GetUserByName(context.Context, *GetUserByNameRequest) (*User, error)
- func (UnimplementedUserServiceServer) ListGroups(context.Context, *Empty) (*Groups, error)
- func (UnimplementedUserServiceServer) ListUsers(context.Context, *Empty) (*Users, error)
- type UnsafePAMServer
- type UnsafeUserServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetGecos() string
- func (x *User) GetGid() uint32
- func (x *User) GetHomedir() string
- func (x *User) GetName() string
- func (x *User) GetShell() string
- func (x *User) GetUid() uint32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
- type Users
Constants ¶
const ( PAM_AvailableBrokers_FullMethodName = "/authd.PAM/AvailableBrokers" PAM_GetPreviousBroker_FullMethodName = "/authd.PAM/GetPreviousBroker" PAM_SelectBroker_FullMethodName = "/authd.PAM/SelectBroker" PAM_GetAuthenticationModes_FullMethodName = "/authd.PAM/GetAuthenticationModes" PAM_SelectAuthenticationMode_FullMethodName = "/authd.PAM/SelectAuthenticationMode" PAM_IsAuthenticated_FullMethodName = "/authd.PAM/IsAuthenticated" PAM_EndSession_FullMethodName = "/authd.PAM/EndSession" PAM_SetDefaultBrokerForUser_FullMethodName = "/authd.PAM/SetDefaultBrokerForUser" )
const ( UserService_GetUserByName_FullMethodName = "/authd.UserService/GetUserByName" UserService_GetUserByID_FullMethodName = "/authd.UserService/GetUserByID" UserService_ListUsers_FullMethodName = "/authd.UserService/ListUsers" UserService_GetGroupByName_FullMethodName = "/authd.UserService/GetGroupByName" UserService_GetGroupByID_FullMethodName = "/authd.UserService/GetGroupByID" UserService_ListGroups_FullMethodName = "/authd.UserService/ListGroups" )
Variables ¶
var ( SessionMode_name = map[int32]string{ 0: "UNDEFINED", 1: "LOGIN", 2: "CHANGE_PASSWORD", } SessionMode_value = map[string]int32{ "UNDEFINED": 0, "LOGIN": 1, "CHANGE_PASSWORD": 2, } )
Enum value maps for SessionMode.
var File_authd_proto protoreflect.FileDescriptor
var PAM_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authd.PAM", HandlerType: (*PAMServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AvailableBrokers", Handler: _PAM_AvailableBrokers_Handler, }, { MethodName: "GetPreviousBroker", Handler: _PAM_GetPreviousBroker_Handler, }, { MethodName: "SelectBroker", Handler: _PAM_SelectBroker_Handler, }, { MethodName: "GetAuthenticationModes", Handler: _PAM_GetAuthenticationModes_Handler, }, { MethodName: "SelectAuthenticationMode", Handler: _PAM_SelectAuthenticationMode_Handler, }, { MethodName: "IsAuthenticated", Handler: _PAM_IsAuthenticated_Handler, }, { MethodName: "EndSession", Handler: _PAM_EndSession_Handler, }, { MethodName: "SetDefaultBrokerForUser", Handler: _PAM_SetDefaultBrokerForUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authd.proto", }
PAM_ServiceDesc is the grpc.ServiceDesc for PAM service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authd.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserByName", Handler: _UserService_GetUserByName_Handler, }, { MethodName: "GetUserByID", Handler: _UserService_GetUserByID_Handler, }, { MethodName: "ListUsers", Handler: _UserService_ListUsers_Handler, }, { MethodName: "GetGroupByName", Handler: _UserService_GetGroupByName_Handler, }, { MethodName: "GetGroupByID", Handler: _UserService_GetGroupByID_Handler, }, { MethodName: "ListGroups", Handler: _UserService_ListGroups_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authd.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPAMServer ¶
func RegisterPAMServer(s grpc.ServiceRegistrar, srv PAMServer)
func RegisterUserServiceServer ¶ added in v0.5.0
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type ABResponse ¶
type ABResponse struct {
BrokersInfos []*ABResponse_BrokerInfo `protobuf:"bytes,1,rep,name=brokers_infos,json=brokersInfos,proto3" json:"brokers_infos,omitempty"`
// contains filtered or unexported fields
}
func (*ABResponse) Descriptor
deprecated
func (*ABResponse) Descriptor() ([]byte, []int)
Deprecated: Use ABResponse.ProtoReflect.Descriptor instead.
func (*ABResponse) GetBrokersInfos ¶
func (x *ABResponse) GetBrokersInfos() []*ABResponse_BrokerInfo
func (*ABResponse) ProtoMessage ¶
func (*ABResponse) ProtoMessage()
func (*ABResponse) ProtoReflect ¶
func (x *ABResponse) ProtoReflect() protoreflect.Message
func (*ABResponse) Reset ¶
func (x *ABResponse) Reset()
func (*ABResponse) String ¶
func (x *ABResponse) String() string
type ABResponse_BrokerInfo ¶
type ABResponse_BrokerInfo 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"`
BrandIcon *string `protobuf:"bytes,3,opt,name=brand_icon,json=brandIcon,proto3,oneof" json:"brand_icon,omitempty"`
// contains filtered or unexported fields
}
func (*ABResponse_BrokerInfo) Descriptor
deprecated
func (*ABResponse_BrokerInfo) Descriptor() ([]byte, []int)
Deprecated: Use ABResponse_BrokerInfo.ProtoReflect.Descriptor instead.
func (*ABResponse_BrokerInfo) GetBrandIcon ¶
func (x *ABResponse_BrokerInfo) GetBrandIcon() string
func (*ABResponse_BrokerInfo) GetId ¶
func (x *ABResponse_BrokerInfo) GetId() string
func (*ABResponse_BrokerInfo) GetName ¶
func (x *ABResponse_BrokerInfo) GetName() string
func (*ABResponse_BrokerInfo) ProtoMessage ¶
func (*ABResponse_BrokerInfo) ProtoMessage()
func (*ABResponse_BrokerInfo) ProtoReflect ¶
func (x *ABResponse_BrokerInfo) ProtoReflect() protoreflect.Message
func (*ABResponse_BrokerInfo) Reset ¶
func (x *ABResponse_BrokerInfo) Reset()
func (*ABResponse_BrokerInfo) String ¶
func (x *ABResponse_BrokerInfo) String() string
type ESRequest ¶
type ESRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// contains filtered or unexported fields
}
func (*ESRequest) Descriptor
deprecated
func (*ESRequest) GetSessionId ¶
func (*ESRequest) ProtoMessage ¶
func (*ESRequest) ProtoMessage()
func (*ESRequest) ProtoReflect ¶
func (x *ESRequest) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GAMRequest ¶
type GAMRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
SupportedUiLayouts []*UILayout `protobuf:"bytes,2,rep,name=supported_ui_layouts,json=supportedUiLayouts,proto3" json:"supported_ui_layouts,omitempty"`
// contains filtered or unexported fields
}
func (*GAMRequest) Descriptor
deprecated
func (*GAMRequest) Descriptor() ([]byte, []int)
Deprecated: Use GAMRequest.ProtoReflect.Descriptor instead.
func (*GAMRequest) GetSessionId ¶
func (x *GAMRequest) GetSessionId() string
func (*GAMRequest) GetSupportedUiLayouts ¶
func (x *GAMRequest) GetSupportedUiLayouts() []*UILayout
func (*GAMRequest) ProtoMessage ¶
func (*GAMRequest) ProtoMessage()
func (*GAMRequest) ProtoReflect ¶
func (x *GAMRequest) ProtoReflect() protoreflect.Message
func (*GAMRequest) Reset ¶
func (x *GAMRequest) Reset()
func (*GAMRequest) String ¶
func (x *GAMRequest) String() string
type GAMResponse ¶
type GAMResponse struct {
AuthenticationModes []*GAMResponse_AuthenticationMode `protobuf:"bytes,1,rep,name=authentication_modes,json=authenticationModes,proto3" json:"authentication_modes,omitempty"`
// contains filtered or unexported fields
}
func (*GAMResponse) Descriptor
deprecated
func (*GAMResponse) Descriptor() ([]byte, []int)
Deprecated: Use GAMResponse.ProtoReflect.Descriptor instead.
func (*GAMResponse) GetAuthenticationModes ¶
func (x *GAMResponse) GetAuthenticationModes() []*GAMResponse_AuthenticationMode
func (*GAMResponse) ProtoMessage ¶
func (*GAMResponse) ProtoMessage()
func (*GAMResponse) ProtoReflect ¶
func (x *GAMResponse) ProtoReflect() protoreflect.Message
func (*GAMResponse) Reset ¶
func (x *GAMResponse) Reset()
func (*GAMResponse) String ¶
func (x *GAMResponse) String() string
type GAMResponse_AuthenticationMode ¶
type GAMResponse_AuthenticationMode struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*GAMResponse_AuthenticationMode) Descriptor
deprecated
func (*GAMResponse_AuthenticationMode) Descriptor() ([]byte, []int)
Deprecated: Use GAMResponse_AuthenticationMode.ProtoReflect.Descriptor instead.
func (*GAMResponse_AuthenticationMode) GetId ¶
func (x *GAMResponse_AuthenticationMode) GetId() string
func (*GAMResponse_AuthenticationMode) GetLabel ¶
func (x *GAMResponse_AuthenticationMode) GetLabel() string
func (*GAMResponse_AuthenticationMode) ProtoMessage ¶
func (*GAMResponse_AuthenticationMode) ProtoMessage()
func (*GAMResponse_AuthenticationMode) ProtoReflect ¶
func (x *GAMResponse_AuthenticationMode) ProtoReflect() protoreflect.Message
func (*GAMResponse_AuthenticationMode) Reset ¶
func (x *GAMResponse_AuthenticationMode) Reset()
func (*GAMResponse_AuthenticationMode) String ¶
func (x *GAMResponse_AuthenticationMode) String() string
type GPBRequest ¶
type GPBRequest struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}
func (*GPBRequest) Descriptor
deprecated
func (*GPBRequest) Descriptor() ([]byte, []int)
Deprecated: Use GPBRequest.ProtoReflect.Descriptor instead.
func (*GPBRequest) GetUsername ¶
func (x *GPBRequest) GetUsername() string
func (*GPBRequest) ProtoMessage ¶
func (*GPBRequest) ProtoMessage()
func (*GPBRequest) ProtoReflect ¶
func (x *GPBRequest) ProtoReflect() protoreflect.Message
func (*GPBRequest) Reset ¶
func (x *GPBRequest) Reset()
func (*GPBRequest) String ¶
func (x *GPBRequest) String() string
type GPBResponse ¶
type GPBResponse struct {
PreviousBroker string `protobuf:"bytes,1,opt,name=previous_broker,json=previousBroker,proto3" json:"previous_broker,omitempty"`
// contains filtered or unexported fields
}
func (*GPBResponse) Descriptor
deprecated
func (*GPBResponse) Descriptor() ([]byte, []int)
Deprecated: Use GPBResponse.ProtoReflect.Descriptor instead.
func (*GPBResponse) GetPreviousBroker ¶
func (x *GPBResponse) GetPreviousBroker() string
func (*GPBResponse) ProtoMessage ¶
func (*GPBResponse) ProtoMessage()
func (*GPBResponse) ProtoReflect ¶
func (x *GPBResponse) ProtoReflect() protoreflect.Message
func (*GPBResponse) Reset ¶
func (x *GPBResponse) Reset()
func (*GPBResponse) String ¶
func (x *GPBResponse) String() string
type GetGroupByIDRequest ¶ added in v0.5.0
type GetGroupByIDRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetGroupByIDRequest) Descriptor
deprecated
added in
v0.5.0
func (*GetGroupByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupByIDRequest.ProtoReflect.Descriptor instead.
func (*GetGroupByIDRequest) GetId ¶ added in v0.5.0
func (x *GetGroupByIDRequest) GetId() uint32
func (*GetGroupByIDRequest) ProtoMessage ¶ added in v0.5.0
func (*GetGroupByIDRequest) ProtoMessage()
func (*GetGroupByIDRequest) ProtoReflect ¶ added in v0.5.0
func (x *GetGroupByIDRequest) ProtoReflect() protoreflect.Message
func (*GetGroupByIDRequest) Reset ¶ added in v0.5.0
func (x *GetGroupByIDRequest) Reset()
func (*GetGroupByIDRequest) String ¶ added in v0.5.0
func (x *GetGroupByIDRequest) String() string
type GetGroupByNameRequest ¶
type GetGroupByNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*GetGroupByNameRequest) Descriptor
deprecated
func (*GetGroupByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupByNameRequest.ProtoReflect.Descriptor instead.
func (*GetGroupByNameRequest) GetName ¶
func (x *GetGroupByNameRequest) GetName() string
func (*GetGroupByNameRequest) ProtoMessage ¶
func (*GetGroupByNameRequest) ProtoMessage()
func (*GetGroupByNameRequest) ProtoReflect ¶
func (x *GetGroupByNameRequest) ProtoReflect() protoreflect.Message
func (*GetGroupByNameRequest) Reset ¶
func (x *GetGroupByNameRequest) Reset()
func (*GetGroupByNameRequest) String ¶
func (x *GetGroupByNameRequest) String() string
type GetUserByIDRequest ¶ added in v0.5.0
type GetUserByIDRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserByIDRequest) Descriptor
deprecated
added in
v0.5.0
func (*GetUserByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByIDRequest.ProtoReflect.Descriptor instead.
func (*GetUserByIDRequest) GetId ¶ added in v0.5.0
func (x *GetUserByIDRequest) GetId() uint32
func (*GetUserByIDRequest) ProtoMessage ¶ added in v0.5.0
func (*GetUserByIDRequest) ProtoMessage()
func (*GetUserByIDRequest) ProtoReflect ¶ added in v0.5.0
func (x *GetUserByIDRequest) ProtoReflect() protoreflect.Message
func (*GetUserByIDRequest) Reset ¶ added in v0.5.0
func (x *GetUserByIDRequest) Reset()
func (*GetUserByIDRequest) String ¶ added in v0.5.0
func (x *GetUserByIDRequest) String() string
type GetUserByNameRequest ¶ added in v0.5.0
type GetUserByNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ShouldPreCheck bool `protobuf:"varint,2,opt,name=shouldPreCheck,proto3" json:"shouldPreCheck,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserByNameRequest) Descriptor
deprecated
added in
v0.5.0
func (*GetUserByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByNameRequest.ProtoReflect.Descriptor instead.
func (*GetUserByNameRequest) GetName ¶ added in v0.5.0
func (x *GetUserByNameRequest) GetName() string
func (*GetUserByNameRequest) GetShouldPreCheck ¶ added in v0.5.0
func (x *GetUserByNameRequest) GetShouldPreCheck() bool
func (*GetUserByNameRequest) ProtoMessage ¶ added in v0.5.0
func (*GetUserByNameRequest) ProtoMessage()
func (*GetUserByNameRequest) ProtoReflect ¶ added in v0.5.0
func (x *GetUserByNameRequest) ProtoReflect() protoreflect.Message
func (*GetUserByNameRequest) Reset ¶ added in v0.5.0
func (x *GetUserByNameRequest) Reset()
func (*GetUserByNameRequest) String ¶ added in v0.5.0
func (x *GetUserByNameRequest) String() string
type Group ¶ added in v0.5.0
type Group struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Gid uint32 `protobuf:"varint,2,opt,name=gid,proto3" json:"gid,omitempty"`
Members []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
// TODO: Rename this to tmpID
Passwd string `protobuf:"bytes,4,opt,name=passwd,proto3" json:"passwd,omitempty"`
// contains filtered or unexported fields
}
func (*Group) Descriptor
deprecated
added in
v0.5.0
func (*Group) GetMembers ¶ added in v0.5.0
func (*Group) ProtoMessage ¶ added in v0.5.0
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶ added in v0.5.0
func (x *Group) ProtoReflect() protoreflect.Message
type Groups ¶ added in v0.5.0
type Groups struct {
Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
// contains filtered or unexported fields
}
func (*Groups) Descriptor
deprecated
added in
v0.5.0
func (*Groups) ProtoMessage ¶ added in v0.5.0
func (*Groups) ProtoMessage()
func (*Groups) ProtoReflect ¶ added in v0.5.0
func (x *Groups) ProtoReflect() protoreflect.Message
type IARequest ¶
type IARequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
AuthenticationData *IARequest_AuthenticationData `protobuf:"bytes,2,opt,name=authentication_data,json=authenticationData,proto3" json:"authentication_data,omitempty"`
// contains filtered or unexported fields
}
func (*IARequest) Descriptor
deprecated
func (*IARequest) GetAuthenticationData ¶
func (x *IARequest) GetAuthenticationData() *IARequest_AuthenticationData
func (*IARequest) GetSessionId ¶
func (*IARequest) ProtoMessage ¶
func (*IARequest) ProtoMessage()
func (*IARequest) ProtoReflect ¶
func (x *IARequest) ProtoReflect() protoreflect.Message
type IARequestAuthenticationDataItem ¶
type IARequestAuthenticationDataItem = isIARequest_AuthenticationData_Item
IARequestAuthenticationDataItem is an interface for the valid authentication data values.
type IARequest_AuthenticationData ¶
type IARequest_AuthenticationData struct {
// Types that are valid to be assigned to Item:
//
// *IARequest_AuthenticationData_Secret
// *IARequest_AuthenticationData_Wait
// *IARequest_AuthenticationData_Skip
// *IARequest_AuthenticationData_Challenge
Item isIARequest_AuthenticationData_Item `protobuf_oneof:"item"`
// contains filtered or unexported fields
}
func (*IARequest_AuthenticationData) Descriptor
deprecated
func (*IARequest_AuthenticationData) Descriptor() ([]byte, []int)
Deprecated: Use IARequest_AuthenticationData.ProtoReflect.Descriptor instead.
func (*IARequest_AuthenticationData) GetChallenge ¶
func (x *IARequest_AuthenticationData) GetChallenge() string
func (*IARequest_AuthenticationData) GetItem ¶
func (x *IARequest_AuthenticationData) GetItem() isIARequest_AuthenticationData_Item
func (*IARequest_AuthenticationData) GetSecret ¶ added in v0.5.0
func (x *IARequest_AuthenticationData) GetSecret() string
func (*IARequest_AuthenticationData) GetSkip ¶
func (x *IARequest_AuthenticationData) GetSkip() string
func (*IARequest_AuthenticationData) GetWait ¶
func (x *IARequest_AuthenticationData) GetWait() string
func (*IARequest_AuthenticationData) ProtoMessage ¶
func (*IARequest_AuthenticationData) ProtoMessage()
func (*IARequest_AuthenticationData) ProtoReflect ¶
func (x *IARequest_AuthenticationData) ProtoReflect() protoreflect.Message
func (*IARequest_AuthenticationData) Reset ¶
func (x *IARequest_AuthenticationData) Reset()
func (*IARequest_AuthenticationData) String ¶
func (x *IARequest_AuthenticationData) String() string
type IARequest_AuthenticationData_Challenge ¶
type IARequest_AuthenticationData_Challenge struct {
// FIXME: Drop this when gdm side is ready to update.
Challenge string `protobuf:"bytes,999,opt,name=challenge,proto3,oneof"`
}
type IARequest_AuthenticationData_Secret ¶ added in v0.5.0
type IARequest_AuthenticationData_Secret struct {
Secret string `protobuf:"bytes,1,opt,name=secret,proto3,oneof"`
}
type IARequest_AuthenticationData_Skip ¶
type IARequest_AuthenticationData_Skip struct {
Skip string `protobuf:"bytes,3,opt,name=skip,proto3,oneof"`
}
type IARequest_AuthenticationData_Wait ¶
type IARequest_AuthenticationData_Wait struct {
Wait string `protobuf:"bytes,2,opt,name=wait,proto3,oneof"`
}
type IAResponse ¶
type IAResponse struct {
Access string `protobuf:"bytes,1,opt,name=access,proto3" json:"access,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*IAResponse) Descriptor
deprecated
func (*IAResponse) Descriptor() ([]byte, []int)
Deprecated: Use IAResponse.ProtoReflect.Descriptor instead.
func (*IAResponse) GetAccess ¶
func (x *IAResponse) GetAccess() string
func (*IAResponse) GetMsg ¶
func (x *IAResponse) GetMsg() string
func (*IAResponse) ProtoMessage ¶
func (*IAResponse) ProtoMessage()
func (*IAResponse) ProtoReflect ¶
func (x *IAResponse) ProtoReflect() protoreflect.Message
func (*IAResponse) Reset ¶
func (x *IAResponse) Reset()
func (*IAResponse) String ¶
func (x *IAResponse) String() string
type PAMClient ¶
type PAMClient interface {
AvailableBrokers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ABResponse, error)
GetPreviousBroker(ctx context.Context, in *GPBRequest, opts ...grpc.CallOption) (*GPBResponse, error)
SelectBroker(ctx context.Context, in *SBRequest, opts ...grpc.CallOption) (*SBResponse, error)
GetAuthenticationModes(ctx context.Context, in *GAMRequest, opts ...grpc.CallOption) (*GAMResponse, error)
SelectAuthenticationMode(ctx context.Context, in *SAMRequest, opts ...grpc.CallOption) (*SAMResponse, error)
IsAuthenticated(ctx context.Context, in *IARequest, opts ...grpc.CallOption) (*IAResponse, error)
EndSession(ctx context.Context, in *ESRequest, opts ...grpc.CallOption) (*Empty, error)
SetDefaultBrokerForUser(ctx context.Context, in *SDBFURequest, opts ...grpc.CallOption) (*Empty, error)
}
PAMClient is the client API for PAM 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 NewPAMClient ¶
func NewPAMClient(cc grpc.ClientConnInterface) PAMClient
type PAMServer ¶
type PAMServer interface {
AvailableBrokers(context.Context, *Empty) (*ABResponse, error)
GetPreviousBroker(context.Context, *GPBRequest) (*GPBResponse, error)
SelectBroker(context.Context, *SBRequest) (*SBResponse, error)
GetAuthenticationModes(context.Context, *GAMRequest) (*GAMResponse, error)
SelectAuthenticationMode(context.Context, *SAMRequest) (*SAMResponse, error)
IsAuthenticated(context.Context, *IARequest) (*IAResponse, error)
EndSession(context.Context, *ESRequest) (*Empty, error)
SetDefaultBrokerForUser(context.Context, *SDBFURequest) (*Empty, error)
// contains filtered or unexported methods
}
PAMServer is the server API for PAM service. All implementations must embed UnimplementedPAMServer for forward compatibility.
type SAMRequest ¶
type SAMRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
AuthenticationModeId string `protobuf:"bytes,2,opt,name=authentication_mode_id,json=authenticationModeId,proto3" json:"authentication_mode_id,omitempty"`
// contains filtered or unexported fields
}
func (*SAMRequest) Descriptor
deprecated
func (*SAMRequest) Descriptor() ([]byte, []int)
Deprecated: Use SAMRequest.ProtoReflect.Descriptor instead.
func (*SAMRequest) GetAuthenticationModeId ¶
func (x *SAMRequest) GetAuthenticationModeId() string
func (*SAMRequest) GetSessionId ¶
func (x *SAMRequest) GetSessionId() string
func (*SAMRequest) ProtoMessage ¶
func (*SAMRequest) ProtoMessage()
func (*SAMRequest) ProtoReflect ¶
func (x *SAMRequest) ProtoReflect() protoreflect.Message
func (*SAMRequest) Reset ¶
func (x *SAMRequest) Reset()
func (*SAMRequest) String ¶
func (x *SAMRequest) String() string
type SAMResponse ¶
type SAMResponse struct {
UiLayoutInfo *UILayout `protobuf:"bytes,1,opt,name=ui_layout_info,json=uiLayoutInfo,proto3" json:"ui_layout_info,omitempty"`
// contains filtered or unexported fields
}
func (*SAMResponse) Descriptor
deprecated
func (*SAMResponse) Descriptor() ([]byte, []int)
Deprecated: Use SAMResponse.ProtoReflect.Descriptor instead.
func (*SAMResponse) GetUiLayoutInfo ¶
func (x *SAMResponse) GetUiLayoutInfo() *UILayout
func (*SAMResponse) ProtoMessage ¶
func (*SAMResponse) ProtoMessage()
func (*SAMResponse) ProtoReflect ¶
func (x *SAMResponse) ProtoReflect() protoreflect.Message
func (*SAMResponse) Reset ¶
func (x *SAMResponse) Reset()
func (*SAMResponse) String ¶
func (x *SAMResponse) String() string
type SBRequest ¶
type SBRequest struct {
BrokerId string `protobuf:"bytes,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Lang string `protobuf:"bytes,3,opt,name=lang,proto3" json:"lang,omitempty"`
Mode SessionMode `protobuf:"varint,4,opt,name=mode,proto3,enum=authd.SessionMode" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*SBRequest) Descriptor
deprecated
func (*SBRequest) GetBrokerId ¶
func (*SBRequest) GetMode ¶
func (x *SBRequest) GetMode() SessionMode
func (*SBRequest) GetUsername ¶
func (*SBRequest) ProtoMessage ¶
func (*SBRequest) ProtoMessage()
func (*SBRequest) ProtoReflect ¶
func (x *SBRequest) ProtoReflect() protoreflect.Message
type SBResponse ¶
type SBResponse struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
EncryptionKey string `protobuf:"bytes,2,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"`
// contains filtered or unexported fields
}
func (*SBResponse) Descriptor
deprecated
func (*SBResponse) Descriptor() ([]byte, []int)
Deprecated: Use SBResponse.ProtoReflect.Descriptor instead.
func (*SBResponse) GetEncryptionKey ¶
func (x *SBResponse) GetEncryptionKey() string
func (*SBResponse) GetSessionId ¶
func (x *SBResponse) GetSessionId() string
func (*SBResponse) ProtoMessage ¶
func (*SBResponse) ProtoMessage()
func (*SBResponse) ProtoReflect ¶
func (x *SBResponse) ProtoReflect() protoreflect.Message
func (*SBResponse) Reset ¶
func (x *SBResponse) Reset()
func (*SBResponse) String ¶
func (x *SBResponse) String() string
type SDBFURequest ¶
type SDBFURequest struct {
BrokerId string `protobuf:"bytes,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}
func (*SDBFURequest) Descriptor
deprecated
func (*SDBFURequest) Descriptor() ([]byte, []int)
Deprecated: Use SDBFURequest.ProtoReflect.Descriptor instead.
func (*SDBFURequest) GetBrokerId ¶
func (x *SDBFURequest) GetBrokerId() string
func (*SDBFURequest) GetUsername ¶
func (x *SDBFURequest) GetUsername() string
func (*SDBFURequest) ProtoMessage ¶
func (*SDBFURequest) ProtoMessage()
func (*SDBFURequest) ProtoReflect ¶
func (x *SDBFURequest) ProtoReflect() protoreflect.Message
func (*SDBFURequest) Reset ¶
func (x *SDBFURequest) Reset()
func (*SDBFURequest) String ¶
func (x *SDBFURequest) String() string
type SessionMode ¶
type SessionMode int32
const ( SessionMode_UNDEFINED SessionMode = 0 SessionMode_LOGIN SessionMode = 1 SessionMode_CHANGE_PASSWORD SessionMode = 2 )
func (SessionMode) Descriptor ¶
func (SessionMode) Descriptor() protoreflect.EnumDescriptor
func (SessionMode) Enum ¶
func (x SessionMode) Enum() *SessionMode
func (SessionMode) EnumDescriptor
deprecated
func (SessionMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SessionMode.Descriptor instead.
func (SessionMode) Number ¶
func (x SessionMode) Number() protoreflect.EnumNumber
func (SessionMode) String ¶
func (x SessionMode) String() string
func (SessionMode) Type ¶
func (SessionMode) Type() protoreflect.EnumType
type StringResponse ¶
type StringResponse struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*StringResponse) Descriptor
deprecated
func (*StringResponse) Descriptor() ([]byte, []int)
Deprecated: Use StringResponse.ProtoReflect.Descriptor instead.
func (*StringResponse) GetMsg ¶
func (x *StringResponse) GetMsg() string
func (*StringResponse) ProtoMessage ¶
func (*StringResponse) ProtoMessage()
func (*StringResponse) ProtoReflect ¶
func (x *StringResponse) ProtoReflect() protoreflect.Message
func (*StringResponse) Reset ¶
func (x *StringResponse) Reset()
func (*StringResponse) String ¶
func (x *StringResponse) String() string
type UILayout ¶
type UILayout struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// common components.
Label *string `protobuf:"bytes,2,opt,name=label,proto3,oneof" json:"label,omitempty"`
Button *string `protobuf:"bytes,3,opt,name=button,proto3,oneof" json:"button,omitempty"`
Wait *string `protobuf:"bytes,4,opt,name=wait,proto3,oneof" json:"wait,omitempty"`
// form only.
Entry *string `protobuf:"bytes,5,opt,name=entry,proto3,oneof" json:"entry,omitempty"`
// qr code only.
Content *string `protobuf:"bytes,6,opt,name=content,proto3,oneof" json:"content,omitempty"`
Code *string `protobuf:"bytes,7,opt,name=code,proto3,oneof" json:"code,omitempty"`
RendersQrcode *bool `protobuf:"varint,8,opt,name=renders_qrcode,json=rendersQrcode,proto3,oneof" json:"renders_qrcode,omitempty"`
// contains filtered or unexported fields
}
func (*UILayout) Descriptor
deprecated
func (*UILayout) GetContent ¶
func (*UILayout) GetRendersQrcode ¶
func (*UILayout) ProtoMessage ¶
func (*UILayout) ProtoMessage()
func (*UILayout) ProtoReflect ¶
func (x *UILayout) ProtoReflect() protoreflect.Message
type UnimplementedPAMServer ¶
type UnimplementedPAMServer struct{}
UnimplementedPAMServer 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 (UnimplementedPAMServer) AvailableBrokers ¶
func (UnimplementedPAMServer) AvailableBrokers(context.Context, *Empty) (*ABResponse, error)
func (UnimplementedPAMServer) EndSession ¶
func (UnimplementedPAMServer) GetAuthenticationModes ¶
func (UnimplementedPAMServer) GetAuthenticationModes(context.Context, *GAMRequest) (*GAMResponse, error)
func (UnimplementedPAMServer) GetPreviousBroker ¶
func (UnimplementedPAMServer) GetPreviousBroker(context.Context, *GPBRequest) (*GPBResponse, error)
func (UnimplementedPAMServer) IsAuthenticated ¶
func (UnimplementedPAMServer) IsAuthenticated(context.Context, *IARequest) (*IAResponse, error)
func (UnimplementedPAMServer) SelectAuthenticationMode ¶
func (UnimplementedPAMServer) SelectAuthenticationMode(context.Context, *SAMRequest) (*SAMResponse, error)
func (UnimplementedPAMServer) SelectBroker ¶
func (UnimplementedPAMServer) SelectBroker(context.Context, *SBRequest) (*SBResponse, error)
func (UnimplementedPAMServer) SetDefaultBrokerForUser ¶
func (UnimplementedPAMServer) SetDefaultBrokerForUser(context.Context, *SDBFURequest) (*Empty, error)
type UnimplementedUserServiceServer ¶ added in v0.5.0
type UnimplementedUserServiceServer struct{}
UnimplementedUserServiceServer 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 (UnimplementedUserServiceServer) GetGroupByID ¶ added in v0.5.0
func (UnimplementedUserServiceServer) GetGroupByID(context.Context, *GetGroupByIDRequest) (*Group, error)
func (UnimplementedUserServiceServer) GetGroupByName ¶ added in v0.5.0
func (UnimplementedUserServiceServer) GetGroupByName(context.Context, *GetGroupByNameRequest) (*Group, error)
func (UnimplementedUserServiceServer) GetUserByID ¶ added in v0.5.0
func (UnimplementedUserServiceServer) GetUserByID(context.Context, *GetUserByIDRequest) (*User, error)
func (UnimplementedUserServiceServer) GetUserByName ¶ added in v0.5.0
func (UnimplementedUserServiceServer) GetUserByName(context.Context, *GetUserByNameRequest) (*User, error)
func (UnimplementedUserServiceServer) ListGroups ¶ added in v0.5.0
type UnsafePAMServer ¶
type UnsafePAMServer interface {
// contains filtered or unexported methods
}
UnsafePAMServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PAMServer will result in compilation errors.
type UnsafeUserServiceServer ¶ added in v0.5.0
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type User ¶ added in v0.5.0
type User struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
Gid uint32 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"`
Gecos string `protobuf:"bytes,4,opt,name=gecos,proto3" json:"gecos,omitempty"`
Homedir string `protobuf:"bytes,5,opt,name=homedir,proto3" json:"homedir,omitempty"`
Shell string `protobuf:"bytes,6,opt,name=shell,proto3" json:"shell,omitempty"`
// contains filtered or unexported fields
}
func (*User) Descriptor
deprecated
added in
v0.5.0
func (*User) GetHomedir ¶ added in v0.5.0
func (*User) ProtoMessage ¶ added in v0.5.0
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v0.5.0
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶ added in v0.5.0
type UserServiceClient interface {
GetUserByName(ctx context.Context, in *GetUserByNameRequest, opts ...grpc.CallOption) (*User, error)
GetUserByID(ctx context.Context, in *GetUserByIDRequest, opts ...grpc.CallOption) (*User, error)
ListUsers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Users, error)
GetGroupByName(ctx context.Context, in *GetGroupByNameRequest, opts ...grpc.CallOption) (*Group, error)
GetGroupByID(ctx context.Context, in *GetGroupByIDRequest, opts ...grpc.CallOption) (*Group, error)
ListGroups(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Groups, error)
}
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶ added in v0.5.0
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶ added in v0.5.0
type UserServiceServer interface {
GetUserByName(context.Context, *GetUserByNameRequest) (*User, error)
GetUserByID(context.Context, *GetUserByIDRequest) (*User, error)
ListUsers(context.Context, *Empty) (*Users, error)
GetGroupByName(context.Context, *GetGroupByNameRequest) (*Group, error)
GetGroupByID(context.Context, *GetGroupByIDRequest) (*Group, error)
ListGroups(context.Context, *Empty) (*Groups, error)
// contains filtered or unexported methods
}
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility.
type Users ¶ added in v0.5.0
type Users struct {
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*Users) Descriptor
deprecated
added in
v0.5.0
func (*Users) ProtoMessage ¶ added in v0.5.0
func (*Users) ProtoMessage()
func (*Users) ProtoReflect ¶ added in v0.5.0
func (x *Users) ProtoReflect() protoreflect.Message