\DNRoot
God controller for the deploynaut interface
Synopsis
class DNRoot
extends Controller
implements
PermissionProvider,TemplateGlobalProvider
{
- // constants
- const DEPLOYNAUT_ACCESS = 'DEPLOYNAUT_ACCESS';
- const DEPLOYNAUT_BYPASS_PIPELINE = 'DEPLOYNAUT_BYPASS_PIPELINE';
- const DEPLOYNAUT_DRYRUN_PIPELINE = 'DEPLOYNAUT_DRYRUN_PIPELINE';
- // members
- public static array $allowed_actions = ;
- public static array $url_handlers = ;
- protected DNData $data;
- // methods
- public static boolean FlagSnapshotsEnabled()
- public void init()
- public string Link()
- public SS_HTTPResponse index()
- public string projects()
- public string snapshots()
- public string createsnapshot()
- public string uploadsnapshot()
- public Form getUploadSnapshotForm()
- public void doUploadSnapshot()
- public Form getPostSnapshotForm()
- public void doPostSnapshot()
- public string snapshotslog()
- public void postsnapshotsuccess()
- public SS_HTTPResponse project()
- public SS_HTTPResponse branch()
- public SS_HTTPResponse environment()
- public void doDryRun()
- public SS_HTTPResponse startPipeline()
- protected SS_HTTPResponse beginPipeline()
- public void pipeline()
- public SS_HTTPResponse metrics()
- public DNData DNData()
- public ArrayList DNProjectList()
- public Form getDeployForm()
- public SS_HTTPResponse doDeploy()
- public void deploy()
- public string deploylog()
- public Form getDataTransferForm()
- public void doDataTransfer()
- public void transfer()
- public string transferlog()
- public Form getDataTransferRestoreForm()
- public void restoresnapshot()
- public void deletesnapshot()
- public Form getDeleteForm()
- public void doDelete()
- public void movesnapshot()
- public void getMoveForm()
- public void doMove()
- public static array get_template_global_variables()
- public static string RedisUnavailable()
- public static int RedisWorkersCount()
- public array providePermissions()
- protected DNProject getCurrentProject()
- protected DNEnvironment getCurrentEnvironment()
- public boolean CanViewArchives()
- public ArrayList CompleteDataArchives()
- public ArrayList PendingDataArchives()
- public void DataTransferLogs()
Hierarchy
Extends
- Controller
Implements
- PermissionProvider
- TemplateGlobalProvider
Constants
Name | Value |
---|---|
DEPLOYNAUT_ACCESS | 'DEPLOYNAUT_ACCESS' |
DEPLOYNAUT_BYPASS_PIPELINE | 'DEPLOYNAUT_BYPASS_PIPELINE' |
DEPLOYNAUT_DRYRUN_PIPELINE | 'DEPLOYNAUT_DRYRUN_PIPELINE' |
Members
protected
- $data — DNData
public
- $allowed_actions — array
-
$url_handlers
URL handlers pretending that we have a deep URL structure.
Methods
protected
- beginPipeline() — Start a pipeline
- getCurrentEnvironment()
- getCurrentProject()
public
- CanViewArchives() — Helper method to allow templates to know whether they should show the 'Archive List' include or not.
- CompleteDataArchives()
- DNData() — Get the DNData object.
- DNProjectList() — Provide a list of all projects.
- DataTransferLogs()
- FlagSnapshotsEnabled() — Check for feature flags: - FLAG_SNAPSHOTS_ENABLED: set to true to enable globally - FLAG_SNAPSHOTS_ENABLED_FOR_MEMBERS: set to semicolon-separated list of email addresses of allowed users.
- Link()
- PendingDataArchives()
- RedisWorkersCount() — Returns the number of connected Redis workers
- branch()
- createsnapshot() — Action
- deletesnapshot() — View a form to delete a specific {@link DataArchive}.
- deploy() — Action - Do the actual deploy
- deploylog() — Action - Get the latest deploy log
- doDataTransfer()
- doDelete()
- doDeploy() — Deployment form submission handler.
- doDryRun() — Initiate a pipeline dry run
- doMove()
- doPostSnapshot()
- doUploadSnapshot()
- environment()
- getDataTransferForm()
- getDataTransferRestoreForm() — Note: Submits to the same action as {@link getDataTransferForm()}, but with a Direction=push and an archive reference.
- getDeleteForm()
- getDeployForm() — Construct the deployment form
- getMoveForm() — Build snapshot move form.
- getPostSnapshotForm()
- getUploadSnapshotForm() — Construct the upload form.
- get_template_global_variables()
- index() — Actions
- init()
- metrics()
- movesnapshot() — View a form to move a specific {@link DataArchive}.
- pipeline()
- postsnapshotsuccess()
- project()
- projects() — Action
- providePermissions()
- restoresnapshot() — View a form to restore a specific {@link DataArchive}.
- snapshots() — Action
- snapshotslog() — Action
- startPipeline() — Initiate a pipeline
- transfer() — View into the log for a {@link DNDataTransfer}.
- transferlog() — Action - Get the latest deploy log
- uploadsnapshot() — Action