Skip to content

cloudforet-io/plugin-nhncloud-inven-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NHN Cloud Plugin - Inventory


plugin-nhncloud-inven-collector is an NHN Cloud inventory collector plugin for Cloudforet.

Development Guide

To develop the plugin, follow these steps:

  1. Fork the repository (https://github.com/cloudforet-io/plugin-nhncloud-inven-collector.git)
  2. Clone the repository.
git clone https://github.com/{Your repository}/plugin-nhncloud-inven-collector.git
cd plugin-nhncloud-inven-collector

Development Environment

  1. Python Virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies
pip3 install -e .

Run Plugin Server

spaceone run plugin-server plugin -m src

Local Test

pip3 install spacectl
spacectl config init -f test/local.yml


List API spec

spacectl api-resources

  1. Collector.init
spacectl exec init inventory.Collector -f test/init.yml

  1. Collector.verify
spacectl exec verify inventory.Collector -f test/verify.yml

  1. Collector.collect
spacectl exec collect inventory.Collector -f test/collect.yml