UserDiskController
class UserDiskController extends Controller
Traits
Methods
Determines if the request was done by an automated script (with API token or ajax).
Redirects to the _redirect URL, to a route or else back.
Lists all storage disks of the authenticated user
Handle the dCache authentication response.
Check if a new storage disk has valid options/credentials and create it
Delete a storage disk
Checks whether the endpoint URL is valid and the disk is accessible
Start the authentication flow for dCache.
Details
in
Controller at line 21
bool
isAutomatedRequest(Request $request = null)
Determines if the request was done by an automated script (with API token or ajax).
in
Controller at line 15
protected RedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
at line 33
UserDisk>
index(Request $request)
Lists all storage disks of the authenticated user
at line 79
Response
store(StoreUserDisk $request)
Initialize a new user storage disk
at line 105
dCacheCallback(Request $request)
Handle the dCache authentication response.
at line 213
protected
validateAndCreateDisk(string $name, string $type, int $userId, array $options = [])
Check if a new storage disk has valid options/credentials and create it
at line 279
Response
update(UpdateUserDisk $request)
Update a user storage disk
at line 323
Response
extend(ExtendUserDisk $request)
Extend a storage disk
at line 348
Response
destroy(int $id)
Delete a storage disk
at line 369
protected void
validateS3Config(UserDisk $disk)
Validates the given user s3 disk configuration
at line 406
protected void
validateGenericConfig(UserDisk $disk)
Validates the given user disk configuration
at line 422
protected void
validateDiskAccess(mixed $disk)
Checks whether the endpoint URL is valid and the disk is accessible
at line 433
protected
dCacheAuthFlow()
Start the authentication flow for dCache.