GITLabConnection Class
GITLab Connection constructor
Constructor
GITLabConnection
-
name -
fqdn -
authentication -
configuration
Parameters:
-
nameString -
fqdnString -
authenticationAuthentication -
configurationObject
Item Index
Methods
addDeployKey
-
id
Parameters:
-
idNumber
Returns:
Current deployment key array.
addProjectWebhook
-
project -
url -
[conditions]
Parameters:
-
projectProject -
urlStringWebhook URL
-
[conditions]Object optional
Returns:
addWebhook
-
url -
[conditions]
Written to be added to a Promise chain for a project.
Parameters:
-
urlString -
[conditions]Object optional
Returns:
cleanHook
-
url
Written to be added to a Promise chain for a project.
Deletes any webhook matching the passed URL and finishes when complete.
Parameters:
-
urlString
Returns:
commitChain
-
url -
commits -
finish -
failure
Internal method for resolving a request for commits
Parameters:
-
urlString -
commitsArray -
finishFunction -
failureFunction
-
identifier -
failable
Parameters:
-
identifierString | NumberName or ID for the key to enable
-
failableBooleanWhen true, requesting a key that isn't available in the Project will fail the Promise. Otherwise the requested key is simply ignored.
Returns:
-
identifier -
failable
Parameters:
-
identifierNumberID for the key to delete
-
failableBooleanWhen true, requesting a key that isn't available in the Project will fail the Promise. Otherwise the requested key is simply ignored.
Returns:
enableSystemProjectDeployKeys
-
project
Parameters:
-
projectProject
Returns:
getProject
-
identifier
Parameters:
-
identifierObject
Returns:
getProjectWebhooks
-
project
Parameters:
-
projectProject
Returns:
removeDeployKey
-
id
Parameters:
-
idNumber
Returns:
Current deployment key array.
retrieveURL
-
url
Manages resolution of all pages for a request an returning all results as one array.
Parameters:
-
urlString
Returns:
retrieveURL
-
url -
[options] -
[page]
Handles pushing a request to the Gitlab host.
Parameters:
-
urlString -
[options]Object optional -
[page]Number optional
