You are here

interface CircleCiManagerInterface in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x modules/build_hooks_circleci/src/CircleCiManagerInterface.php \Drupal\build_hooks_circleci\CircleCiManagerInterface

CircleCiManager interface.

Hierarchy

Expanded class hierarchy of CircleCiManagerInterface

All classes that implement CircleCiManagerInterface

File

modules/build_hooks_circleci/src/CircleCiManagerInterface.php, line 8

Namespace

Drupal\build_hooks_circleci
View source
interface CircleCiManagerInterface {

  /**
   * Returns the build hooks details based on plugin configuration.
   *
   * @param array $config
   *   The plugin configuration array.
   *
   * @return \Drupal\build_hooks\BuildHookDetails
   *   Build hooks detail object with info about the request to make.
   */
  public function getBuildHookDetailsForPluginConfiguration(array $config);

  /**
   * Get the latest builds from Circle CI for and environment.
   *
   * @param array $settings
   *   The plugin settings array.
   * @param int $limit
   *   Number of desired builds to retrieve.
   *
   * @return array
   *   An array with info about the builds.
   *
   * @throws \GuzzleHttp\Exception\GuzzleException
   */
  public function retrieveLatestBuildsFromCircleciForEnvironment(array $settings, $limit = 1);

  /**
   * Converts the datetime format into a drupal formatted date.
   *
   * @param string $datetime
   *   Date in the format returned by the CircleCi api.
   *
   * @return string
   *   Drupal formatted date.
   */
  public function formatCircleCiDateTime($datetime);

}

Members

Namesort descending Modifiers Type Description Overrides
CircleCiManagerInterface::formatCircleCiDateTime public function Converts the datetime format into a drupal formatted date. 1
CircleCiManagerInterface::getBuildHookDetailsForPluginConfiguration public function Returns the build hooks details based on plugin configuration. 1
CircleCiManagerInterface::retrieveLatestBuildsFromCircleciForEnvironment public function Get the latest builds from Circle CI for and environment. 1