Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/ApiKeyRepositoryInterface.php
10262 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
use Pterodactyl\Models\User;
6
use Illuminate\Support\Collection;
7
8
interface ApiKeyRepositoryInterface extends RepositoryInterface
9
{
10
/**
11
* Get all the account API keys that exist for a specific user.
12
*/
13
public function getAccountKeys(User $user): Collection;
14
15
/**
16
* Get all the application API keys that exist for a specific user.
17
*/
18
public function getApplicationKeys(User $user): Collection;
19
20
/**
21
* Delete an account API key from the panel for a specific user.
22
*/
23
public function deleteAccountKey(User $user, string $identifier): int;
24
25
/**
26
* Delete an application API key from the panel for a specific user.
27
*/
28
public function deleteApplicationKey(User $user, string $identifier): int;
29
}
30
31