class Client extends Client

Traits

Properties

protected $curl from CICommon
protected $api_url from CICommon

Methods

__construct(Curl $curl, string $api_url)

CICommon constructor.

from CICommon
mixed
getBasicInfo(string $org_name)

获取组织的基本信息.

from Client
mixed
edit(string $org_name)

Edit an organization.

from Client
mixed
listRepo(string $org_name, int $page = 1, string $type = null, int $per_page = null, string $sort = null)

获取组织的仓库列表.

from Client
void
listBlockedUsers(string $org_name)

List blocked users.

from Client
bool
isBlockedUser(string $org_name, string $username)

Check whether a user is blocked from an organization.

from Client
mixed
blockUser(string $org_name, string $username)

Block a user.

from Client
mixed
unblockUser(string $org_name, string $username)

Unblock a user.

from Client
bool
exists(string $org_name)

No description

from Client

Details

in CICommon at line 18
__construct(Curl $curl, string $api_url)

CICommon constructor.

Parameters

Curl $curl
string $api_url

in Client at line 21
mixed getBasicInfo(string $org_name)

获取组织的基本信息.

Parameters

string $org_name

Return Value

mixed

Exceptions

Exception

in Client at line 35
mixed edit(string $org_name)

Edit an organization.

Parameters

string $org_name

Return Value

mixed

Exceptions

Exception

in Client at line 58
mixed listRepo(string $org_name, int $page = 1, string $type = null, int $per_page = null, string $sort = null)

获取组织的仓库列表.

Parameters

string $org_name
int $page
string $type
int $per_page
string $sort

Return Value

mixed

Exceptions

Exception

in Client at line 68
void listBlockedUsers(string $org_name)

List blocked users.

Parameters

string $org_name

Return Value

void

in Client at line 80
bool isBlockedUser(string $org_name, string $username)

Check whether a user is blocked from an organization.

Parameters

string $org_name
string $username

Return Value

bool

Exceptions

Exception

in Client at line 108
mixed blockUser(string $org_name, string $username)

Block a user.

204

Parameters

string $org_name
string $username

Return Value

mixed

Exceptions

Exception

in Client at line 124
mixed unblockUser(string $org_name, string $username)

Unblock a user.

204

Parameters

string $org_name
string $username

Return Value

mixed

Exceptions

Exception

in Client at line 136
bool exists(string $org_name)

Parameters

string $org_name

Return Value

bool

Exceptions

Exception