Documentation ¶
Overview ¶
Package accountspb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterUsersServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUsersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersServiceClient) error
- func RegisterUsersServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUsersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersServiceServer) error
- func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)
- type AddUserRequest
- func (*AddUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserRequest) GetCapabilities() GroupAbilities
- func (x *AddUserRequest) GetUser() *User
- func (*AddUserRequest) ProtoMessage()
- func (x *AddUserRequest) ProtoReflect() protoreflect.Message
- func (x *AddUserRequest) Reset()
- func (x *AddUserRequest) String() string
- type AddUserResponse
- type CreateGroupRequest
- func (*CreateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupRequest) GetGroup() *Group
- func (*CreateGroupRequest) ProtoMessage()
- func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGroupRequest) Reset()
- func (x *CreateGroupRequest) String() string
- type CreateGroupResponse
- type DeleteGroupRequest
- func (*DeleteGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGroupRequest) GetGroupPath() string
- func (*DeleteGroupRequest) ProtoMessage()
- func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGroupRequest) Reset()
- func (x *DeleteGroupRequest) String() string
- type DeleteGroupResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type GetGroupRequest
- type GetGroupResponse
- type GetUserResourcesAccessPolicyRequest
- func (*GetUserResourcesAccessPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResourcesAccessPolicyRequest) GetOwner() string
- func (*GetUserResourcesAccessPolicyRequest) ProtoMessage()
- func (x *GetUserResourcesAccessPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserResourcesAccessPolicyRequest) Reset()
- func (x *GetUserResourcesAccessPolicyRequest) String() string
- type GetUserResourcesAccessPolicyResponse
- func (*GetUserResourcesAccessPolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResourcesAccessPolicyResponse) GetAccess() int32
- func (*GetUserResourcesAccessPolicyResponse) ProtoMessage()
- func (x *GetUserResourcesAccessPolicyResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResourcesAccessPolicyResponse) Reset()
- func (x *GetUserResourcesAccessPolicyResponse) String() string
- type GetUserStreamRequest
- func (*GetUserStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserStreamRequest) GetGroupPath() string
- func (*GetUserStreamRequest) ProtoMessage()
- func (x *GetUserStreamRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserStreamRequest) Reset()
- func (x *GetUserStreamRequest) String() string
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreatedAt() int64
- func (x *Group) GetCreatedBy() string
- func (x *Group) GetDescription() string
- func (x *Group) GetLabel() string
- func (x *Group) GetPath() string
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupAbilities
- func (GroupAbilities) Descriptor() protoreflect.EnumDescriptor
- func (x GroupAbilities) Enum() *GroupAbilities
- func (GroupAbilities) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupAbilities) Number() protoreflect.EnumNumber
- func (x GroupAbilities) String() string
- func (GroupAbilities) Type() protoreflect.EnumType
- type ListSubGroupRequest
- func (*ListSubGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSubGroupRequest) GetGroupPath() string
- func (x *ListSubGroupRequest) GetOffset() uint32
- func (*ListSubGroupRequest) ProtoMessage()
- func (x *ListSubGroupRequest) ProtoReflect() protoreflect.Message
- func (x *ListSubGroupRequest) Reset()
- func (x *ListSubGroupRequest) String() string
- type ListSubGroupResponse
- func (*ListSubGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSubGroupResponse) GetGroups() []*Group
- func (x *ListSubGroupResponse) GetOffset() uint32
- func (x *ListSubGroupResponse) GetTotal() uint32
- func (*ListSubGroupResponse) ProtoMessage()
- func (x *ListSubGroupResponse) ProtoReflect() protoreflect.Message
- func (x *ListSubGroupResponse) Reset()
- func (x *ListSubGroupResponse) String() string
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetGroupPath() string
- func (x *ListUsersRequest) GetOffset() uint32
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetOffset() uint32
- func (x *ListUsersResponse) GetTotal() uint32
- func (x *ListUsersResponse) GetUsers() []*User
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- type MoveUserRequest
- func (*MoveUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoveUserRequest) GetGroupPath() string
- func (x *MoveUserRequest) GetUser() *User
- func (*MoveUserRequest) ProtoMessage()
- func (x *MoveUserRequest) ProtoReflect() protoreflect.Message
- func (x *MoveUserRequest) Reset()
- func (x *MoveUserRequest) String() string
- type MoveUserResponse
- type ResourceAccess
- func (ResourceAccess) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceAccess) Enum() *ResourceAccess
- func (ResourceAccess) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceAccess) Number() protoreflect.EnumNumber
- func (x ResourceAccess) String() string
- func (ResourceAccess) Type() protoreflect.EnumType
- type StreamSubGroupsRequest
- func (*StreamSubGroupsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamSubGroupsRequest) GetGroupPath() string
- func (*StreamSubGroupsRequest) ProtoMessage()
- func (x *StreamSubGroupsRequest) ProtoReflect() protoreflect.Message
- func (x *StreamSubGroupsRequest) Reset()
- func (x *StreamSubGroupsRequest) String() string
- type UnimplementedUsersServiceServer
- func (UnimplementedUsersServiceServer) AddUser(context.Context, *AddUserRequest) (*AddUserResponse, error)
- func (UnimplementedUsersServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error)
- func (UnimplementedUsersServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error)
- func (UnimplementedUsersServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUsersServiceServer) DeleteUserSession(UsersService_DeleteUserSessionServer) error
- func (UnimplementedUsersServiceServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
- func (UnimplementedUsersServiceServer) GetUserResourcesAccessPolicyInfo(context.Context, *GetUserResourcesAccessPolicyRequest) (*GetUserResourcesAccessPolicyResponse, error)
- func (UnimplementedUsersServiceServer) GetUserStream(*GetUserStreamRequest, UsersService_GetUserStreamServer) error
- func (UnimplementedUsersServiceServer) ListSubGroup(context.Context, *ListSubGroupRequest) (*ListSubGroupResponse, error)
- func (UnimplementedUsersServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
- func (UnimplementedUsersServiceServer) MoveUser(context.Context, *MoveUserRequest) (*MoveUserResponse, error)
- func (UnimplementedUsersServiceServer) StreamSubGroups(*StreamSubGroupsRequest, UsersService_StreamSubGroupsServer) error
- type UnsafeUsersServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCapabilities() GroupAbilities
- func (x *User) GetGroupPath() string
- func (x *User) GetName() string
- func (x *User) GetResourcesAccess() ResourceAccess
- func (x *User) GetRole() uint32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UsersServiceClient
- type UsersServiceServer
- type UsersService_DeleteUserSessionClient
- type UsersService_DeleteUserSessionServer
- type UsersService_GetUserStreamClient
- type UsersService_GetUserStreamServer
- type UsersService_StreamSubGroupsClient
- type UsersService_StreamSubGroupsServer
Constants ¶
This section is empty.
Variables ¶
var ( GroupAbilities_name = map[int32]string{ 0: "None", 1: "CanManageResourcesAccess", 2: "CanCreateGroup", } GroupAbilities_value = map[string]int32{ "None": 0, "CanManageResourcesAccess": 1, "CanCreateGroup": 2, } )
Enum value maps for GroupAbilities.
var ( ResourceAccess_name = map[int32]string{ 0: "Denied", 1: "Read", 2: "Update", 4: "Delete", 8: "Share", 7: "Default", 15: "Admin", } ResourceAccess_value = map[string]int32{ "Denied": 0, "Read": 1, "Update": 2, "Delete": 4, "Share": 8, "Default": 7, "Admin": 15, } )
Enum value maps for ResourceAccess.
var File_users_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUsersServiceHandler ¶
func RegisterUsersServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUsersServiceHandler registers the http handlers for service UsersService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUsersServiceHandlerClient ¶
func RegisterUsersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersServiceClient) error
RegisterUsersServiceHandlerClient registers the http handlers for service UsersService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UsersServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UsersServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UsersServiceClient" to call the correct interceptors.
func RegisterUsersServiceHandlerFromEndpoint ¶
func RegisterUsersServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUsersServiceHandlerFromEndpoint is same as RegisterUsersServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUsersServiceHandlerServer ¶
func RegisterUsersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersServiceServer) error
RegisterUsersServiceHandlerServer registers the http handlers for service UsersService to "mux". UnaryRPC :call UsersServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUsersServiceHandlerFromEndpoint instead.
func RegisterUsersServiceServer ¶
func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)
Types ¶
type AddUserRequest ¶
type AddUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Capabilities GroupAbilities `protobuf:"varint,2,opt,name=capabilities,proto3,enum=GroupAbilities" json:"capabilities,omitempty"` // contains filtered or unexported fields }
func (*AddUserRequest) Descriptor
deprecated
func (*AddUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddUserRequest.ProtoReflect.Descriptor instead.
func (*AddUserRequest) GetCapabilities ¶
func (x *AddUserRequest) GetCapabilities() GroupAbilities
func (*AddUserRequest) GetUser ¶
func (x *AddUserRequest) GetUser() *User
func (*AddUserRequest) ProtoMessage ¶
func (*AddUserRequest) ProtoMessage()
func (*AddUserRequest) ProtoReflect ¶
func (x *AddUserRequest) ProtoReflect() protoreflect.Message
func (*AddUserRequest) Reset ¶
func (x *AddUserRequest) Reset()
func (*AddUserRequest) String ¶
func (x *AddUserRequest) String() string
type AddUserResponse ¶
type AddUserResponse struct {
// contains filtered or unexported fields
}
func (*AddUserResponse) Descriptor
deprecated
func (*AddUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddUserResponse.ProtoReflect.Descriptor instead.
func (*AddUserResponse) ProtoMessage ¶
func (*AddUserResponse) ProtoMessage()
func (*AddUserResponse) ProtoReflect ¶
func (x *AddUserResponse) ProtoReflect() protoreflect.Message
func (*AddUserResponse) Reset ¶
func (x *AddUserResponse) Reset()
func (*AddUserResponse) String ¶
func (x *AddUserResponse) String() string
type CreateGroupRequest ¶
type CreateGroupRequest struct { Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupRequest) Descriptor
deprecated
func (*CreateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateGroupRequest) GetGroup ¶
func (x *CreateGroupRequest) GetGroup() *Group
func (*CreateGroupRequest) ProtoMessage ¶
func (*CreateGroupRequest) ProtoMessage()
func (*CreateGroupRequest) ProtoReflect ¶
func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateGroupRequest) Reset ¶
func (x *CreateGroupRequest) Reset()
func (*CreateGroupRequest) String ¶
func (x *CreateGroupRequest) String() string
type CreateGroupResponse ¶
type CreateGroupResponse struct {
// contains filtered or unexported fields
}
func (*CreateGroupResponse) Descriptor
deprecated
func (*CreateGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupResponse.ProtoReflect.Descriptor instead.
func (*CreateGroupResponse) ProtoMessage ¶
func (*CreateGroupResponse) ProtoMessage()
func (*CreateGroupResponse) ProtoReflect ¶
func (x *CreateGroupResponse) ProtoReflect() protoreflect.Message
func (*CreateGroupResponse) Reset ¶
func (x *CreateGroupResponse) Reset()
func (*CreateGroupResponse) String ¶
func (x *CreateGroupResponse) String() string
type DeleteGroupRequest ¶
type DeleteGroupRequest struct { GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` // contains filtered or unexported fields }
func (*DeleteGroupRequest) Descriptor
deprecated
func (*DeleteGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupRequest) GetGroupPath ¶
func (x *DeleteGroupRequest) GetGroupPath() string
func (*DeleteGroupRequest) ProtoMessage ¶
func (*DeleteGroupRequest) ProtoMessage()
func (*DeleteGroupRequest) ProtoReflect ¶
func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
func (*DeleteGroupRequest) Reset ¶
func (x *DeleteGroupRequest) Reset()
func (*DeleteGroupRequest) String ¶
func (x *DeleteGroupRequest) String() string
type DeleteGroupResponse ¶
type DeleteGroupResponse struct {
// contains filtered or unexported fields
}
func (*DeleteGroupResponse) Descriptor
deprecated
func (*DeleteGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupResponse.ProtoReflect.Descriptor instead.
func (*DeleteGroupResponse) ProtoMessage ¶
func (*DeleteGroupResponse) ProtoMessage()
func (*DeleteGroupResponse) ProtoReflect ¶
func (x *DeleteGroupResponse) ProtoReflect() protoreflect.Message
func (*DeleteGroupResponse) Reset ¶
func (x *DeleteGroupResponse) Reset()
func (*DeleteGroupResponse) String ¶
func (x *DeleteGroupResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetUser ¶
func (x *DeleteUserRequest) GetUser() *User
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 GetGroupRequest ¶
type GetGroupRequest struct { GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` // contains filtered or unexported fields }
func (*GetGroupRequest) Descriptor
deprecated
func (*GetGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.
func (*GetGroupRequest) GetGroupPath ¶
func (x *GetGroupRequest) GetGroupPath() string
func (*GetGroupRequest) ProtoMessage ¶
func (*GetGroupRequest) ProtoMessage()
func (*GetGroupRequest) ProtoReflect ¶
func (x *GetGroupRequest) ProtoReflect() protoreflect.Message
func (*GetGroupRequest) Reset ¶
func (x *GetGroupRequest) Reset()
func (*GetGroupRequest) String ¶
func (x *GetGroupRequest) String() string
type GetGroupResponse ¶
type GetGroupResponse struct { Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*GetGroupResponse) Descriptor
deprecated
func (*GetGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupResponse.ProtoReflect.Descriptor instead.
func (*GetGroupResponse) GetGroup ¶
func (x *GetGroupResponse) GetGroup() *Group
func (*GetGroupResponse) ProtoMessage ¶
func (*GetGroupResponse) ProtoMessage()
func (*GetGroupResponse) ProtoReflect ¶
func (x *GetGroupResponse) ProtoReflect() protoreflect.Message
func (*GetGroupResponse) Reset ¶
func (x *GetGroupResponse) Reset()
func (*GetGroupResponse) String ¶
func (x *GetGroupResponse) String() string
type GetUserResourcesAccessPolicyRequest ¶
type GetUserResourcesAccessPolicyRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*GetUserResourcesAccessPolicyRequest) Descriptor
deprecated
func (*GetUserResourcesAccessPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResourcesAccessPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetUserResourcesAccessPolicyRequest) GetOwner ¶
func (x *GetUserResourcesAccessPolicyRequest) GetOwner() string
func (*GetUserResourcesAccessPolicyRequest) ProtoMessage ¶
func (*GetUserResourcesAccessPolicyRequest) ProtoMessage()
func (*GetUserResourcesAccessPolicyRequest) ProtoReflect ¶
func (x *GetUserResourcesAccessPolicyRequest) ProtoReflect() protoreflect.Message
func (*GetUserResourcesAccessPolicyRequest) Reset ¶
func (x *GetUserResourcesAccessPolicyRequest) Reset()
func (*GetUserResourcesAccessPolicyRequest) String ¶
func (x *GetUserResourcesAccessPolicyRequest) String() string
type GetUserResourcesAccessPolicyResponse ¶
type GetUserResourcesAccessPolicyResponse struct { Access int32 `protobuf:"varint,1,opt,name=access,proto3" json:"access,omitempty"` // contains filtered or unexported fields }
func (*GetUserResourcesAccessPolicyResponse) Descriptor
deprecated
func (*GetUserResourcesAccessPolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResourcesAccessPolicyResponse.ProtoReflect.Descriptor instead.
func (*GetUserResourcesAccessPolicyResponse) GetAccess ¶
func (x *GetUserResourcesAccessPolicyResponse) GetAccess() int32
func (*GetUserResourcesAccessPolicyResponse) ProtoMessage ¶
func (*GetUserResourcesAccessPolicyResponse) ProtoMessage()
func (*GetUserResourcesAccessPolicyResponse) ProtoReflect ¶
func (x *GetUserResourcesAccessPolicyResponse) ProtoReflect() protoreflect.Message
func (*GetUserResourcesAccessPolicyResponse) Reset ¶
func (x *GetUserResourcesAccessPolicyResponse) Reset()
func (*GetUserResourcesAccessPolicyResponse) String ¶
func (x *GetUserResourcesAccessPolicyResponse) String() string
type GetUserStreamRequest ¶
type GetUserStreamRequest struct { GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` // contains filtered or unexported fields }
func (*GetUserStreamRequest) Descriptor
deprecated
func (*GetUserStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserStreamRequest.ProtoReflect.Descriptor instead.
func (*GetUserStreamRequest) GetGroupPath ¶
func (x *GetUserStreamRequest) GetGroupPath() string
func (*GetUserStreamRequest) ProtoMessage ¶
func (*GetUserStreamRequest) ProtoMessage()
func (*GetUserStreamRequest) ProtoReflect ¶
func (x *GetUserStreamRequest) ProtoReflect() protoreflect.Message
func (*GetUserStreamRequest) Reset ¶
func (x *GetUserStreamRequest) Reset()
func (*GetUserStreamRequest) String ¶
func (x *GetUserStreamRequest) String() string
type Group ¶
type Group struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` CreatedBy string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetCreatedAt ¶
func (*Group) GetCreatedBy ¶
func (*Group) GetDescription ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupAbilities ¶
type GroupAbilities int32
const ( GroupAbilities_None GroupAbilities = 0 GroupAbilities_CanManageResourcesAccess GroupAbilities = 1 GroupAbilities_CanCreateGroup GroupAbilities = 2 )
func (GroupAbilities) Descriptor ¶
func (GroupAbilities) Descriptor() protoreflect.EnumDescriptor
func (GroupAbilities) Enum ¶
func (x GroupAbilities) Enum() *GroupAbilities
func (GroupAbilities) EnumDescriptor
deprecated
func (GroupAbilities) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupAbilities.Descriptor instead.
func (GroupAbilities) Number ¶
func (x GroupAbilities) Number() protoreflect.EnumNumber
func (GroupAbilities) String ¶
func (x GroupAbilities) String() string
func (GroupAbilities) Type ¶
func (GroupAbilities) Type() protoreflect.EnumType
type ListSubGroupRequest ¶
type ListSubGroupRequest struct { GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListSubGroupRequest) Descriptor
deprecated
func (*ListSubGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSubGroupRequest.ProtoReflect.Descriptor instead.
func (*ListSubGroupRequest) GetGroupPath ¶
func (x *ListSubGroupRequest) GetGroupPath() string
func (*ListSubGroupRequest) GetOffset ¶
func (x *ListSubGroupRequest) GetOffset() uint32
func (*ListSubGroupRequest) ProtoMessage ¶
func (*ListSubGroupRequest) ProtoMessage()
func (*ListSubGroupRequest) ProtoReflect ¶
func (x *ListSubGroupRequest) ProtoReflect() protoreflect.Message
func (*ListSubGroupRequest) Reset ¶
func (x *ListSubGroupRequest) Reset()
func (*ListSubGroupRequest) String ¶
func (x *ListSubGroupRequest) String() string
type ListSubGroupResponse ¶
type ListSubGroupResponse struct { Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Total uint32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListSubGroupResponse) Descriptor
deprecated
func (*ListSubGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSubGroupResponse.ProtoReflect.Descriptor instead.
func (*ListSubGroupResponse) GetGroups ¶
func (x *ListSubGroupResponse) GetGroups() []*Group
func (*ListSubGroupResponse) GetOffset ¶
func (x *ListSubGroupResponse) GetOffset() uint32
func (*ListSubGroupResponse) GetTotal ¶
func (x *ListSubGroupResponse) GetTotal() uint32
func (*ListSubGroupResponse) ProtoMessage ¶
func (*ListSubGroupResponse) ProtoMessage()
func (*ListSubGroupResponse) ProtoReflect ¶
func (x *ListSubGroupResponse) ProtoReflect() protoreflect.Message
func (*ListSubGroupResponse) Reset ¶
func (x *ListSubGroupResponse) Reset()
func (*ListSubGroupResponse) String ¶
func (x *ListSubGroupResponse) String() string
type ListUsersRequest ¶
type ListUsersRequest struct { GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetGroupPath ¶
func (x *ListUsersRequest) GetGroupPath() string
func (*ListUsersRequest) GetOffset ¶
func (x *ListUsersRequest) GetOffset() uint32
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
type ListUsersResponse ¶
type ListUsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Total uint32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetOffset ¶
func (x *ListUsersResponse) GetOffset() uint32
func (*ListUsersResponse) GetTotal ¶
func (x *ListUsersResponse) GetTotal() uint32
func (*ListUsersResponse) GetUsers ¶
func (x *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
type MoveUserRequest ¶
type MoveUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` GroupPath string `protobuf:"bytes,2,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` // contains filtered or unexported fields }
func (*MoveUserRequest) Descriptor
deprecated
func (*MoveUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveUserRequest.ProtoReflect.Descriptor instead.
func (*MoveUserRequest) GetGroupPath ¶
func (x *MoveUserRequest) GetGroupPath() string
func (*MoveUserRequest) GetUser ¶
func (x *MoveUserRequest) GetUser() *User
func (*MoveUserRequest) ProtoMessage ¶
func (*MoveUserRequest) ProtoMessage()
func (*MoveUserRequest) ProtoReflect ¶
func (x *MoveUserRequest) ProtoReflect() protoreflect.Message
func (*MoveUserRequest) Reset ¶
func (x *MoveUserRequest) Reset()
func (*MoveUserRequest) String ¶
func (x *MoveUserRequest) String() string
type MoveUserResponse ¶
type MoveUserResponse struct {
// contains filtered or unexported fields
}
func (*MoveUserResponse) Descriptor
deprecated
func (*MoveUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoveUserResponse.ProtoReflect.Descriptor instead.
func (*MoveUserResponse) ProtoMessage ¶
func (*MoveUserResponse) ProtoMessage()
func (*MoveUserResponse) ProtoReflect ¶
func (x *MoveUserResponse) ProtoReflect() protoreflect.Message
func (*MoveUserResponse) Reset ¶
func (x *MoveUserResponse) Reset()
func (*MoveUserResponse) String ¶
func (x *MoveUserResponse) String() string
type ResourceAccess ¶
type ResourceAccess int32
const ( ResourceAccess_Denied ResourceAccess = 0 ResourceAccess_Read ResourceAccess = 1 ResourceAccess_Update ResourceAccess = 2 ResourceAccess_Delete ResourceAccess = 4 ResourceAccess_Default ResourceAccess = 7 ResourceAccess_Admin ResourceAccess = 15 )
func (ResourceAccess) Descriptor ¶
func (ResourceAccess) Descriptor() protoreflect.EnumDescriptor
func (ResourceAccess) Enum ¶
func (x ResourceAccess) Enum() *ResourceAccess
func (ResourceAccess) EnumDescriptor
deprecated
func (ResourceAccess) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceAccess.Descriptor instead.
func (ResourceAccess) Number ¶
func (x ResourceAccess) Number() protoreflect.EnumNumber
func (ResourceAccess) String ¶
func (x ResourceAccess) String() string
func (ResourceAccess) Type ¶
func (ResourceAccess) Type() protoreflect.EnumType
type StreamSubGroupsRequest ¶
type StreamSubGroupsRequest struct { GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` // contains filtered or unexported fields }
func (*StreamSubGroupsRequest) Descriptor
deprecated
func (*StreamSubGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamSubGroupsRequest.ProtoReflect.Descriptor instead.
func (*StreamSubGroupsRequest) GetGroupPath ¶
func (x *StreamSubGroupsRequest) GetGroupPath() string
func (*StreamSubGroupsRequest) ProtoMessage ¶
func (*StreamSubGroupsRequest) ProtoMessage()
func (*StreamSubGroupsRequest) ProtoReflect ¶
func (x *StreamSubGroupsRequest) ProtoReflect() protoreflect.Message
func (*StreamSubGroupsRequest) Reset ¶
func (x *StreamSubGroupsRequest) Reset()
func (*StreamSubGroupsRequest) String ¶
func (x *StreamSubGroupsRequest) String() string
type UnimplementedUsersServiceServer ¶
type UnimplementedUsersServiceServer struct { }
UnimplementedUsersServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersServiceServer) AddUser ¶
func (UnimplementedUsersServiceServer) AddUser(context.Context, *AddUserRequest) (*AddUserResponse, error)
func (UnimplementedUsersServiceServer) CreateGroup ¶
func (UnimplementedUsersServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error)
func (UnimplementedUsersServiceServer) DeleteGroup ¶
func (UnimplementedUsersServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error)
func (UnimplementedUsersServiceServer) DeleteUser ¶
func (UnimplementedUsersServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUsersServiceServer) DeleteUserSession ¶
func (UnimplementedUsersServiceServer) DeleteUserSession(UsersService_DeleteUserSessionServer) error
func (UnimplementedUsersServiceServer) GetGroup ¶
func (UnimplementedUsersServiceServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
func (UnimplementedUsersServiceServer) GetUserResourcesAccessPolicyInfo ¶
func (UnimplementedUsersServiceServer) GetUserResourcesAccessPolicyInfo(context.Context, *GetUserResourcesAccessPolicyRequest) (*GetUserResourcesAccessPolicyResponse, error)
func (UnimplementedUsersServiceServer) GetUserStream ¶
func (UnimplementedUsersServiceServer) GetUserStream(*GetUserStreamRequest, UsersService_GetUserStreamServer) error
func (UnimplementedUsersServiceServer) ListSubGroup ¶
func (UnimplementedUsersServiceServer) ListSubGroup(context.Context, *ListSubGroupRequest) (*ListSubGroupResponse, error)
func (UnimplementedUsersServiceServer) ListUsers ¶
func (UnimplementedUsersServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
func (UnimplementedUsersServiceServer) MoveUser ¶
func (UnimplementedUsersServiceServer) MoveUser(context.Context, *MoveUserRequest) (*MoveUserResponse, error)
func (UnimplementedUsersServiceServer) StreamSubGroups ¶
func (UnimplementedUsersServiceServer) StreamSubGroups(*StreamSubGroupsRequest, UsersService_StreamSubGroupsServer) error
type UnsafeUsersServiceServer ¶
type UnsafeUsersServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUsersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersServiceServer will result in compilation errors.
type User ¶
type User struct { GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Role uint32 `protobuf:"varint,3,opt,name=role,proto3" json:"role,omitempty"` Capabilities GroupAbilities `protobuf:"varint,4,opt,name=capabilities,proto3,enum=GroupAbilities" json:"capabilities,omitempty"` ResourcesAccess ResourceAccess `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCapabilities ¶
func (x *User) GetCapabilities() GroupAbilities
func (*User) GetGroupPath ¶
func (*User) GetResourcesAccess ¶
func (x *User) GetResourcesAccess() ResourceAccess
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UsersServiceClient ¶
type UsersServiceClient interface { CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*CreateGroupResponse, error) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error) StreamSubGroups(ctx context.Context, in *StreamSubGroupsRequest, opts ...grpc.CallOption) (UsersService_StreamSubGroupsClient, error) ListSubGroup(ctx context.Context, in *ListSubGroupRequest, opts ...grpc.CallOption) (*ListSubGroupResponse, error) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupResponse, error) AddUser(ctx context.Context, in *AddUserRequest, opts ...grpc.CallOption) (*AddUserResponse, error) MoveUser(ctx context.Context, in *MoveUserRequest, opts ...grpc.CallOption) (*MoveUserResponse, error) GetUserStream(ctx context.Context, in *GetUserStreamRequest, opts ...grpc.CallOption) (UsersService_GetUserStreamClient, error) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) DeleteUserSession(ctx context.Context, opts ...grpc.CallOption) (UsersService_DeleteUserSessionClient, error) GetUserResourcesAccessPolicyInfo(ctx context.Context, in *GetUserResourcesAccessPolicyRequest, opts ...grpc.CallOption) (*GetUserResourcesAccessPolicyResponse, error) }
UsersServiceClient is the client API for UsersService 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 NewUsersServiceClient ¶
func NewUsersServiceClient(cc grpc.ClientConnInterface) UsersServiceClient
type UsersServiceServer ¶
type UsersServiceServer interface { CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error) StreamSubGroups(*StreamSubGroupsRequest, UsersService_StreamSubGroupsServer) error ListSubGroup(context.Context, *ListSubGroupRequest) (*ListSubGroupResponse, error) DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error) AddUser(context.Context, *AddUserRequest) (*AddUserResponse, error) MoveUser(context.Context, *MoveUserRequest) (*MoveUserResponse, error) GetUserStream(*GetUserStreamRequest, UsersService_GetUserStreamServer) error ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) DeleteUserSession(UsersService_DeleteUserSessionServer) error GetUserResourcesAccessPolicyInfo(context.Context, *GetUserResourcesAccessPolicyRequest) (*GetUserResourcesAccessPolicyResponse, error) // contains filtered or unexported methods }
UsersServiceServer is the server API for UsersService service. All implementations must embed UnimplementedUsersServiceServer for forward compatibility
type UsersService_GetUserStreamClient ¶
type UsersService_GetUserStreamClient interface { Recv() (*User, error) grpc.ClientStream }
type UsersService_GetUserStreamServer ¶
type UsersService_GetUserStreamServer interface { Send(*User) error grpc.ServerStream }
type UsersService_StreamSubGroupsClient ¶
type UsersService_StreamSubGroupsClient interface { Recv() (*Group, error) grpc.ClientStream }
type UsersService_StreamSubGroupsServer ¶
type UsersService_StreamSubGroupsServer interface { Send(*Group) error grpc.ServerStream }