Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
adb605ca
Commit
adb605ca
authored
9 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
rolout interface: php8 only; added variable types
parent
fd6d6eea
No related branches found
No related tags found
1 merge request
!66
php8 only; added variable types; short array syntax; remove glyphicons
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public_html/deployment/classes/rollout.interface.php
+52
-23
52 additions, 23 deletions
public_html/deployment/classes/rollout.interface.php
with
52 additions
and
23 deletions
public_html/deployment/classes/rollout.interface.php
+
52
−
23
View file @
adb605ca
...
...
@@ -3,72 +3,101 @@
* INTERFACE for rollout plugins
*
* @author hahn
*
* Axel <axel.hahn@unibe.ch>
* 2024-08-29 Axel php8 only; added variable types
*/
interface
iRolloutplugin
{
interface
iRolloutplugin
{
// ----------------------------------------------------------------------
// VERIFY
// ----------------------------------------------------------------------
/**
* check requirements if the plugin could work
* Get an array with shell commands to check requirements if the plugin
* can work
*
* @return array
*/
public
function
checkRequirements
():
array
;
/**
* check access to a deploy target
* Get an array with shell commands to check access to a deploy target
*
* @return array
*/
public
function
checkConnectionToTarget
();
public
function
checkConnectionToTarget
()
:
array
;
// ----------------------------------------------------------------------
// SETTER
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
// GETTER
// ----------------------------------------------------------------------
/**
* get configuration for the project .. or more specifi for a given phase
* Get configuration array for the project .. or more specific for a given phase
*
* @param string $sPhase
* @param boolean $bMask Flag for public output; if true then mask your secrets
* @return array
*/
public
function
getConfig
(
$sPhase
=
false
,
$bMask
=
false
);
public
function
getConfig
(
string
$sPhase
=
''
,
bool
$bMask
=
false
)
:
array
;
/**
* get an array with shell commands to execute
* Get an array with shell commands to execute for deployment of built file
*
* @param string $sPhase
* @param boolean $bMask Flag for public output; if true then mask your secrets
* @return array
*/
public
function
getDeployCommands
(
$sPhase
,
$bMask
=
false
);
public
function
getDeployCommands
(
string
$sPhase
,
bool
$bMask
=
false
)
:
array
;
/**
* get name of plugin as string ... language specific
* Get name of plugin as string ... language specific
* @return string
*/
public
function
getName
();
public
function
getName
()
:
string
;
/**
* get description of plugin as string ... language specific
* Get description of plugin as string ... language specific
* @return string
*/
public
function
getDescription
();
public
function
getDescription
()
:
string
;
/**
* get array of data in info.js
* Get array of data in info.js
* @return array
*/
public
function
getPluginInfos
();
public
function
getPluginInfos
():
array
;
// ----------------------------------------------------------------------
// RENDERER
// ----------------------------------------------------------------------
public
function
renderFormdata4Project
();
public
function
renderFormdata4Phase
(
$sPhase
);
/**
* form renderer: show
* - formvars for project OR
* - a single message that no configuration items exists
*
* @return string
*/
public
function
renderFormdata4Project
():
string
;
/**
* form renderer: show configuration for a given phase
* @param string $sPhase phaese; one of preview|stage|live
* @return string
*/
public
function
renderFormdata4Phase
(
string
$sPhase
):
string
;
// ----------------------------------------------------------------------
// ACTIONS
// ----------------------------------------------------------------------
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment