-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for icingadb as only icingaweb2 data backend (#2635)
- Loading branch information
Showing
18 changed files
with
526 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace Icinga\Module\Director\Integration; | ||
|
||
use Icinga\Web\Url; | ||
|
||
interface BackendInterface | ||
{ | ||
/** | ||
* Whether the backend has the given host | ||
* | ||
* @param ?string $hostName | ||
* | ||
* @return bool | ||
*/ | ||
public function hasHost(?string $hostName): bool; | ||
|
||
/** | ||
* Whether the backend has the given service of the specified host | ||
* | ||
* @param ?string $hostName | ||
* @param ?string $serviceName | ||
* | ||
* @return bool | ||
*/ | ||
public function hasService(?string $hostName, ?string $serviceName): bool; | ||
|
||
/** | ||
* Whether an authenticated user has the permission (is not restricted) to modify given host | ||
* | ||
* @param ?string $hostName | ||
* | ||
* @return bool | ||
*/ | ||
public function canModifyHost(?string $hostName): bool; | ||
|
||
/** | ||
* Whether an authenticated user has the permission (is not restricted) to modify given service of specified host | ||
* | ||
* @param ?string $hostName | ||
* @param ?string $serviceName | ||
* | ||
* @return bool | ||
*/ | ||
public function canModifyService(?string $hostName, ?string $serviceName): bool; | ||
|
||
/** | ||
* Get the url of given host | ||
* | ||
* @param ?string $hostName | ||
* | ||
* @return Url | ||
*/ | ||
public function getHostUrl(?string $hostName): ?Url; | ||
} |
Oops, something went wrong.