Client
class Client
Traits
Properties
protected | $curl | from CICommon | |
protected | $api_url | from CICommon |
Methods
mixed
getBasicInfo(string $org_name)
获取组织的基本信息.
mixed
edit(string $org_name)
Edit an organization.
mixed
listRepo(string $org_name, int $page = 1, string $type = null, int $per_page = null, string $sort = null)
获取组织的仓库列表.
void
listBlockedUsers(string $org_name)
List blocked users.
bool
isBlockedUser(string $org_name, string $username)
Check whether a user is blocked from an organization.
mixed
blockUser(string $org_name, string $username)
Block a user.
mixed
unblockUser(string $org_name, string $username)
Unblock a user.
bool
exists(string $org_name)
No description
Details
in CICommon at line 18
__construct(Curl $curl, string $api_url)
CICommon constructor.
at line 21
mixed
getBasicInfo(string $org_name)
获取组织的基本信息.
at line 35
mixed
edit(string $org_name)
Edit an organization.
at line 58
mixed
listRepo(string $org_name, int $page = 1, string $type = null, int $per_page = null, string $sort = null)
获取组织的仓库列表.
at line 68
void
listBlockedUsers(string $org_name)
List blocked users.
at line 80
bool
isBlockedUser(string $org_name, string $username)
Check whether a user is blocked from an organization.
at line 108
mixed
blockUser(string $org_name, string $username)
Block a user.
204
at line 124
mixed
unblockUser(string $org_name, string $username)
Unblock a user.
204