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