PHP Интерфейс Imbo\Auth\AccessControl\Adapter\MutableAdapterInterface

Автор: Espen Hovlandsdal ([email protected])
Наследование: extends Imbo\Auth\AccessControl\Adapter\AdapterInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
addAccessRule ( string $publicKey, array $accessRule ) : string Add a new access rule to the given public key
addKeyPair ( string $publicKey, string $privateKey ) : boolean Add a new public/private key pair
addResourceGroup ( string $groupName, array $resources = [] ) : boolean Add a new group containing the given resources
deleteAccessRule ( string $publicKey, string $accessId ) : boolean Delete an access rule
deletePublicKey ( string $publicKey ) : boolean Delete a public key
deleteResourceGroup ( string $groupName ) : boolean Delete a resource group
updatePrivateKey ( string $publicKey, string $privateKey ) : boolean Update the private key for a public key
updateResourceGroup ( string $groupName, array $resources ) Update resources for an existing resource group

Описание методов

addAccessRule() публичный Метод

Add a new access rule to the given public key
public addAccessRule ( string $publicKey, array $accessRule ) : string
$publicKey string Public key to add access rule to
$accessRule array Access rule definition
Результат string Returns a generated access ID

addKeyPair() публичный Метод

Add a new public/private key pair
public addKeyPair ( string $publicKey, string $privateKey ) : boolean
$publicKey string Public key to add
$privateKey string Corresponding private key
Результат boolean

addResourceGroup() публичный Метод

Add a new group containing the given resources
public addResourceGroup ( string $groupName, array $resources = [] ) : boolean
$groupName string Group name
$resources array Array of resources (eg. 'image.get', 'user.head' etc)
Результат boolean

deleteAccessRule() публичный Метод

Delete an access rule
public deleteAccessRule ( string $publicKey, string $accessId ) : boolean
$publicKey string Public key the access rule belongs to
$accessId string Access ID of the rule
Результат boolean

deletePublicKey() публичный Метод

Delete a public key
public deletePublicKey ( string $publicKey ) : boolean
$publicKey string Public key to delete
Результат boolean

deleteResourceGroup() публичный Метод

Delete a resource group
public deleteResourceGroup ( string $groupName ) : boolean
$groupName string Group name of the group to delete
Результат boolean

updatePrivateKey() публичный Метод

Update the private key for a public key
public updatePrivateKey ( string $publicKey, string $privateKey ) : boolean
$publicKey string Public key to update
$privateKey string Private key to set
Результат boolean

updateResourceGroup() публичный Метод

Update resources for an existing resource group
public updateResourceGroup ( string $groupName, array $resources )
$groupName string Group to add resources to
$resources array Array of resources (eg. 'image.get', 'user.head' etc)