API Docs for: 0.0.4
Show:

GITLabConnection Class

GITLab Connection constructor

Constructor

GITLabConnection

(
  • name
  • fqdn
  • authentication
  • configuration
)

Parameters:

  • name String
  • fqdn String
  • authentication Authentication
  • configuration Object

Methods

addDeployKey

(
  • id
)
Array | > | Number

Parameters:

  • id Number

Returns:

Array | > | Number:

Current deployment key array.

addProjectWebhook

(
  • project
  • url
  • [conditions]
)
Promise | > | Project

Parameters:

  • project Project
  • url String

    Webhook URL

  • [conditions] Object optional

Returns:

Promise | > | Project:

addWebhook

(
  • url
  • [conditions]
)
Promise | > | Project private

Written to be added to a Promise chain for a project.

Parameters:

  • url String
  • [conditions] Object optional

Returns:

Promise | > | Project:

cleanHook

(
  • url
)
Promise | > | Project private

Written to be added to a Promise chain for a project.

Deletes any webhook matching the passed URL and finishes when complete.

Parameters:

  • url String

Returns:

Promise | > | Project:

commitChain

(
  • url
  • commits
  • finish
  • failure
)
private

Internal method for resolving a request for commits

Parameters:

  • url String
  • commits Array
  • finish Function
  • failure Function

deleteWebhook

(
  • project
  • [branch]
)

Parameters:

  • project Project
  • [branch] String optional

(
  • identifier
  • failable
)
Function | > | Promise | > | Project

Parameters:

  • identifier String | Number

    Name or ID for the key to enable

  • failable Boolean

    When true, requesting a key that isn't available in the Project will fail the Promise. Otherwise the requested key is simply ignored.

Returns:

Function | > | Promise | > | Project:

(
  • identifier
  • failable
)
Function | > | Promise | > | Project

Parameters:

  • identifier Number

    ID for the key to delete

  • failable Boolean

    When true, requesting a key that isn't available in the Project will fail the Promise. Otherwise the requested key is simply ignored.

Returns:

Function | > | Promise | > | Project:

enableSystemProjectDeployKeys

(
  • project
)
Promise | > | Project

Parameters:

Returns:

Promise | > | Project:

getCommits

(
  • project
  • [branch]
)

Parameters:

  • project Project
  • [branch] String optional

getProject

(
  • identifier
)
Promise

Parameters:

  • identifier Object

Returns:

Promise:

getProjectDeployKeys

(
  • project
)
Promise

Parameters:

Returns:

Promise:

getProjectWebhooks

(
  • project
)
Promise | > | Project

Parameters:

Returns:

Promise | > | Project:

removeDeployKey

(
  • id
)
Array | > | Number

Parameters:

  • id Number

Returns:

Array | > | Number:

Current deployment key array.

retrieveURL

(
  • url
)
Promise

Manages resolution of all pages for a request an returning all results as one array.

Parameters:

  • url String

Returns:

Promise:

retrieveURL

(
  • url
  • [options]
  • [page]
)
Promise private

Handles pushing a request to the Gitlab host.

Parameters:

  • url String
  • [options] Object optional
  • [page] Number optional

Returns:

Promise: