Implement application API Keys
This commit is contained in:
parent
f9fc3f4370
commit
c3b9738364
13 changed files with 454 additions and 3 deletions
|
@ -15,6 +15,14 @@ interface ApiKeyRepositoryInterface extends RepositoryInterface
|
|||
*/
|
||||
public function getAccountKeys(User $user): Collection;
|
||||
|
||||
/**
|
||||
* Get all of the application API keys that exist for a specific user.
|
||||
*
|
||||
* @param \Pterodactyl\Models\User $user
|
||||
* @return \Illuminate\Support\Collection
|
||||
*/
|
||||
public function getApplicationKeys(User $user): Collection;
|
||||
|
||||
/**
|
||||
* Delete an account API key from the panel for a specific user.
|
||||
*
|
||||
|
@ -23,4 +31,13 @@ interface ApiKeyRepositoryInterface extends RepositoryInterface
|
|||
* @return int
|
||||
*/
|
||||
public function deleteAccountKey(User $user, string $identifier): int;
|
||||
|
||||
/**
|
||||
* Delete an application API key from the panel for a specific user.
|
||||
*
|
||||
* @param \Pterodactyl\Models\User $user
|
||||
* @param string $identifier
|
||||
* @return int
|
||||
*/
|
||||
public function deleteApplicationKey(User $user, string $identifier): int;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue