Socket
Book a DemoInstallSign in
Socket

dkron-rb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dkron-rb

1.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

dkron-rb

Dkron - the Ruby gem for the Dkron REST API

You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port 8080 for API requests. All examples in this section assume that you've found a running leader at localhost:8080. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port 8080 by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the pretty=true param to format the response.

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build dkron-rb.gemspec

Then either install the gem locally:

gem install ./dkron-rb-1.0.0.gem

(for development, run gem install --dev ./dkron-rb-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'dkron-rb', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:

gem 'dkron-rb', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'dkron-rb'

api_instance = Dkron::DefaultApi.new

begin
  result = api_instance.busy
  p result
rescue Dkron::ApiError => e
  puts "Exception when calling DefaultApi->busy: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost:8080/v1

ClassMethodHTTP requestDescription
Dkron::DefaultApibusyGET /busy
Dkron::DefaultApiget_is_leaderGET /isleader
Dkron::DefaultApiget_leaderGET /leader
Dkron::DefaultApileavePOST /leave
Dkron::DefaultApistatusGET /
Dkron::ExecutionsApilist_executions_by_jobGET /jobs/{job_name}/executions
Dkron::JobsApicreate_or_update_jobPOST /jobs
Dkron::JobsApidelete_jobDELETE /jobs/{job_name}
Dkron::JobsApiget_jobsGET /jobs
Dkron::JobsApirestorePOST /restore
Dkron::JobsApirun_jobPOST /jobs/{job_name}
Dkron::JobsApishow_job_by_nameGET /jobs/{job_name}
Dkron::JobsApitoggle_jobPOST /jobs/{job_name}/toggle
Dkron::MembersApiget_memberGET /members

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

FAQs

Package last updated on 28 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.