This package give you ability to integrate with Drone API easily in any platform using Dart

Related tags

Templates drone-dart
Overview

Drone Dart

image

Dart is a multi client programming language which allow you to compile and run your code on multiple platforms. Because of that we decided to create a Package for Drone Ci which is self-service Continuous Integration platform. This package give you ability to integrate with Drone API easily in any platform using Dart language and build your own interface and a lot more.

Example

For first step you need to initialize your DroneClient instance which need Server(Drone interface host, for example https://drone.example.com) and Token(Access token). You can retrieve an token in the Drone user interface by navigating to your user profile.

  final instance = DroneClient.init(
    server: '',
    token: '',
  );

Note: Full code example is available in example folder.

All Methods

Methods below are available in DroneClient. Appellation and type of arguments is same as Drone API request data.

Builds

Doc: https://docs.drone.io/api/builds/

  instance.buildApprove(owner,repo,build);
  instance.buildCreate(namespace,name,commit,branch,parameters);
  instance.buildDecline(owner,repo,build);
  instance.buildInfo(owner,build,repo);
  instance.buildList(owner,repo);
  instance.buildLog(owner,repo,build,stage,step);
  instance.buildPromote(owner,repo,build,target,parameters);
  instance.buildRestart(owner,repo,build);
  instance.buildStop(owner,repo,build);

Cron

Doc: https://docs.drone.io/api/cron/

  instance.cronCreate(owner,repo,cronRequestBody);
  instance.cronDelete(owner,repo,name);
  instance.cronInfo(owner,repo,name);
  instance.cronList(owner,repo);
  instance.cronTrigger(owner,repo,name);
  instance.cronUpdate(owner,repo,name,requestBody);

Repos

Doc: https://docs.drone.io/api/repos/

  instance.repoChown(owner,repo);
  instance.repoDisable(owner,repo);
  instance.repoEnable(owner,name);
  instance.repoInfo(owner,repo);
  instance.repoList();
  instance.repoRepair(owner,repo);
  instance.repoUpdate(owner,repo,requestBody);

Secrets

Doc: https://docs.drone.io/api/secrets/

  instance.secretCreate(owner,repo,requestBody);
  instance.secretDelete(owner,repo,secret);
  instance.secretInfo(owner,repo,secret);
  instance.secretList(owner,repo);
  instance.secretUpdate(owner,repo,secret,requestBody);

Templates

Doc: https://docs.drone.io/api/templates/

  instance.templateCreate(requestBody);
  instance.templateDelete(namespace,name);
  instance.templateInfo(namespace,name);
  instance.templateList(namespace);
  instance.templateUpdate(namespace,name);

User

Doc: https://docs.drone.io/api/user/

  instance.userFeed();
  instance.userRepos(latest);
  instance.userInfo();
  instance.userSync();

Users

Doc: https://docs.drone.io/api/users/

  instance.usersCreate(requestBody);
  instance.usersDelete(login);
  instance.usersInfo(login);
  instance.usersList();
  instance.usersUpdate(login,requestBody);
You might also like...

A most easily usable cache management library in Dart. With CacheStorage, you can easily manage cache on your application.

A most easily usable cache management library in Dart! 1. About 1.1. Introduction 1.1.1. Install Library 1.1.2. Import It 1.1.3. Use CacheStorage 1.2.

Dec 13, 2021

Flutter project to Integrate API resources from JSON Place Holder API

Flutter project to Integrate API resources from JSON Place Holder API

rest_api_jsonplaceholder About This flutter project helps to Integrate API resources from JSON Place Holder API API Source: https://jsonplaceholder.ty

Apr 28, 2022

A dart timer that can be configured to fire once or repeatedly with ability start, stop, resume and cancel.

A timer that can be configured to fire once or repeatedly with ability start, stop, resume and cancel. Getting started Add CompleteTimer to your pubsp

Jul 20, 2022

Easily integrate GitHub's Octicons in your own Flutter project

flutter_octicons Use the Octicon icons developed by GitHub and released under the MIT license in Flutter. flutter_octicons automatically updates itsel

Nov 21, 2022

Full screen menu for Flutter apps to give a user a broad variety of variants in beautiful way

Full screen menu for Flutter apps to give a user a broad variety of variants in beautiful way

Full screen menu for Flutter apps to give a user a broad variety of variants in beautiful way

Dec 14, 2022

Buy me crypto coffee - A Flutter package that helps you to integrate Buy me a crypto coffee widget in flutter

Buy me crypto coffee - A Flutter package that helps you to integrate Buy me a crypto coffee widget in flutter

Buy me a crypto coffee Features A Flutter package that helps you to integrate Bu

Nov 25, 2022

Socket library for creating real-time multiplayer games. Based on TCP, with the ability to send messages over UDP (planned).

Game socket The library was published in early access and is not stable, as it is being developed in parallel with other solutions. English is not a n

Aug 10, 2022

User auth form - Signup and signin user auth form with ability to stay signed in and have an option to signout.

user_auth_form SIgnup and signin user authentification form Getting Started This project is a starting point for a Flutter application. A few resource

Jan 6, 2022

A powerful plugin that fully uses the native image library's ability to display images on the flutter side.

PowerImage A powerful plugin that fully uses the native image library's ability to display images on the flutter side. 中文文档 Features: Supports the abi

Dec 23, 2022
Owner
Amirhossein
22 y.o, B.S student ,In love with @dart-lang and @flutter.
Amirhossein
Tello-Dart - A testing ground for the Tello drone's socket API in dart

This packages provides a Dart interface to Ryze Tello drones. Getting started Ma

null 2 Jul 27, 2022
Iridium-reader-widget - Plug and play reader widget allowing to easily integrate an Iridium viewer inside any app

Plug and play reader widget allowing to easily integrate an Iridium viewer insid

Mantano 15 Dec 31, 2022
A Flutter package with an advanced dropdown Button which let you give different design on DropdownButton

Use decorated_dropdown button to add DropdownButton with decoration properties l

Hari Prasad Chaudhary 1 Dec 17, 2021
null 1 Jan 20, 2022
Integrate any icons you like to your flutter app

Flutter Tutorial - Icons - Custom & Plugin Icons Integrate any icons you like to your flutter app - Material Icons, Beautiful Icons & Custom Icons. ⚡

Behruz Hurramov 1 Dec 28, 2021
Magical 8 ball app will give you the answers to all the tricky questions in life

Magical 8 ball app will give you the answers to all the tricky questions in life. You can make the ball change at the press of a button.

null 0 Jan 6, 2022
Rolify is an app that allows you to play multiple sounds simultaneously, with the ability to manage audio individually

Rolify is an app that allows you to play multiple sounds simultaneously, with the ability to manage audio individually. You can also add the music you have on your phone, all completely offline and free.

Luca Oropallo 4 Sep 30, 2022
The LoginRadius Flutter SDK will let you integrate LoginRadius' customer identity platform with your Flutter application(s).

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them. Features TODO: List w

Ahmed Yusuf 4 Feb 3, 2022
Written using flutter,Give animals a new home

flutter_rehoming A new Flutter application. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Taxze 9 Aug 16, 2022
A most easily usable cookie management library in Dart. With SweetCookieJar, you can easily manage cookie on your application.

A most easily usable cookie management library in Dart! 1. About 1.1. Introduction 1.1.1. Install Library 1.1.2. Import It 1.1.3. Use SweetCookieJar 1

Kato Shinya 9 Oct 27, 2022