Tapper::Cmd::User
This project offers backend functions for all projects that manipulate users in the database.
use Tapper::Cmd::User; my $user = Tapper::Cmd::User->new(); my $details = {login => "anton", name => 'Anton Gorodetzky', contacts => [{ protocol => 'Mail', address => 'anton@nightwatch.ru', }] }; my $id = $user->add($details); $details->{name} = "Anton Gorodetsky"; my $error = $user->update($id, $details); $error = $user->delete($id); $details = {login => "anton", name => 'Anton Gorodetzky'}; $id = $user->add_in_testrun($details); $details->{name} = "Anton Gorodetsky"; my $error = $user->update_in_testrun($id, $details); $error = $user->delete_in_testrun($id);
Tapper::Cmd::User - Backend functions for manipluation of user subscriptions in the database
Add a new user to testrundb. Expects all details as a hash reference.
@param hash ref - user data
@return success - user id @return error - undef
@throws Perl die
Get a list of users with all information we have about them.
@param hash ref - search as understand by DBIx::Class
@return list of user information (hash refs)
@throws die
Delete a user subscription with given id. Its named del instead of delete to prevent confusion with the buildin delete function. The first parameter can be either the users database id (not the UNIX id!) or the login name.
@param int|string - user id|user login name
@return success - 0
Add a contact to an existing owner in testrundb. Expects all details as a hash reference.
@param int|string - owner as id or login @param hash ref - contact data
@return success - owner id @return error - undef
AMD OSRC Tapper Team, <tapper at amd64.org>
<tapper at amd64.org>
Copyright 2012 AMD OSRC Tapper Team, all rights reserved.
This program is released under the following license: freebsd
AMD OSRC Tapper Team <tapper@amd64.org>
Tapper Team <tapper-ops@amazon.com>
This software is Copyright (c) 2020 by Advanced Micro Devices, Inc.
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::Cmd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::Cmd
CPAN shell
perl -MCPAN -e shell install Tapper::Cmd
For more information on module installation, please visit the detailed CPAN module installation guide.