No commit activity in last 3 years
No release in over 3 years
A ruby wrapper for the Harbor swagger APIs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 4.4, >= 4.4.6
~> 0.2, >= 0.2.12
~> 0.2, >= 0.2.16
~> 4.1, >= 4.1.2
>= 3.6.0, ~> 3.6
~> 3.0, >= 3.0.1
~> 1.24, >= 1.24.3

Runtime

>= 2.3.0, ~> 2.3
>= 2.1.0, ~> 2.1
~> 1.0, >= 1.0.1
 Project Readme

harbor2_legacy_client

Harbor2LegacyClient - the Ruby gem for the Harbor API

These APIs provide services for manipulating Harbor project.

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.0
  • Package version: 2.3.3.1
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build harbor2_legacy_client.gemspec

Then either install the gem locally:

gem install ./harbor2_legacy_client-2.3.3.1.gem

(for development, run gem install --dev ./harbor2_legacy_client-2.3.3.1.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 'harbor2_legacy_client', '~> 2.3.3.1'

Install from Git

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

gem 'harbor2_legacy_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.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 'harbor2_legacy_client'

# Setup authorization
Harbor2LegacyClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = Harbor2LegacyClient::ChartRepositoryApi.new

repo = 'repo_example' # String | The project name

name = 'name_example' # String | The chart name

version = 'version_example' # String | The chart version


begin
  #Return the attahced labels of chart.
  api_instance.chartrepo_repo_charts_name_version_labels_get(repo, name, version)
rescue Harbor2LegacyClient::ApiError => e
  puts "Exception when calling ChartRepositoryApi->chartrepo_repo_charts_name_version_labels_get: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost/api/v2.0

Class Method HTTP request Description
Harbor2LegacyClient::ChartRepositoryApi chartrepo_repo_charts_name_version_labels_get GET /chartrepo/{repo}/charts/{name}/{version}/labels Return the attahced labels of chart.
Harbor2LegacyClient::ChartRepositoryApi chartrepo_repo_charts_name_version_labels_id_delete DELETE /chartrepo/{repo}/charts/{name}/{version}/labels/{id} Remove label from chart.
Harbor2LegacyClient::ChartRepositoryApi chartrepo_repo_charts_name_version_labels_post POST /chartrepo/{repo}/charts/{name}/{version}/labels Mark label to chart.
Harbor2LegacyClient::LabelApi chartrepo_repo_charts_name_version_labels_get GET /chartrepo/{repo}/charts/{name}/{version}/labels Return the attahced labels of chart.
Harbor2LegacyClient::LabelApi chartrepo_repo_charts_name_version_labels_id_delete DELETE /chartrepo/{repo}/charts/{name}/{version}/labels/{id} Remove label from chart.
Harbor2LegacyClient::LabelApi chartrepo_repo_charts_name_version_labels_post POST /chartrepo/{repo}/charts/{name}/{version}/labels Mark label to chart.
Harbor2LegacyClient::ProductsApi chartrepo_repo_charts_name_version_labels_get GET /chartrepo/{repo}/charts/{name}/{version}/labels Return the attahced labels of chart.
Harbor2LegacyClient::ProductsApi chartrepo_repo_charts_name_version_labels_id_delete DELETE /chartrepo/{repo}/charts/{name}/{version}/labels/{id} Remove label from chart.
Harbor2LegacyClient::ProductsApi chartrepo_repo_charts_name_version_labels_post POST /chartrepo/{repo}/charts/{name}/{version}/labels Mark label to chart.
Harbor2LegacyClient::ProductsApi email_ping_post POST /email/ping Test connection and authentication with email server.

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication