Documentation ¶
Overview ¶
Package grpc provides the gRPC service to communicate with the Pydio's user persistence layer.
Index ¶
- Constants
- func CreateIfNotExists(ctx context.Context, dao user.DAO, user *idm.User) (*idm.User, error)
- func InitDefaults(ctx context.Context) error
- type Handler
- func (h *Handler) BindUser(ctx context.Context, req *idm.BindUserRequest, resp *idm.BindUserResponse) error
- func (h *Handler) CountUser(ctx context.Context, request *idm.SearchUserRequest, ...) error
- func (h *Handler) CreateUser(ctx context.Context, req *idm.CreateUserRequest, resp *idm.CreateUserResponse) error
- func (h *Handler) DeleteUser(ctx context.Context, req *idm.DeleteUserRequest, ...) error
- func (h *Handler) SearchUser(ctx context.Context, request *idm.SearchUserRequest, ...) error
- func (h *Handler) StreamUser(ctx context.Context, streamer idm.UserService_StreamUserStream) error
Constants ¶
View Source
const ( ENV_PYDIO_ADMIN_USER_LOGIN = "PYDIO_ADMIN_USER_LOGIN" ENV_PYDIO_ADMIN_USER_PASSWORD = "PYDIO_ADMIN_USER_PASSWORD" )
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExists ¶
CreateIfNotExists creates a user if DAO.Bind() call returns a 404 error.
func InitDefaults ¶
Types ¶
type Handler ¶
type Handler struct{}
Handler definition
func (*Handler) BindUser ¶
func (h *Handler) BindUser(ctx context.Context, req *idm.BindUserRequest, resp *idm.BindUserResponse) error
BindUser binds a user with login/password
func (*Handler) CountUser ¶
func (h *Handler) CountUser(ctx context.Context, request *idm.SearchUserRequest, response *idm.CountUserResponse) error
CountUser in database
func (*Handler) CreateUser ¶
func (h *Handler) CreateUser(ctx context.Context, req *idm.CreateUserRequest, resp *idm.CreateUserResponse) error
CreateUser adds or creates a user or a group in the underlying database.
func (*Handler) DeleteUser ¶
func (h *Handler) DeleteUser(ctx context.Context, req *idm.DeleteUserRequest, response *idm.DeleteUserResponse) error
DeleteUser from database
func (*Handler) SearchUser ¶
func (h *Handler) SearchUser(ctx context.Context, request *idm.SearchUserRequest, response idm.UserService_SearchUserStream) error
SearchUser in database
func (*Handler) StreamUser ¶
StreamUser from database
Click to show internal directories.
Click to hide internal directories.