Skip to content

liangxin1300/CibToGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CibToGo

Prepare

In hawk-apiserver build environment, make sure "pacemaker-cli" be installed firstly

Install

pip3 install cibToGoStruct

Run

cibToGoStruct

Then go file api_structs.go will be created

Some points for this project

  • Read link file pacemaker.rng, which from package pacemaker-cli
  • To fetch each extend ref rng file for specific version recursively
  • Using lxml to parse rng file, and using jinja2 to prepare structs template
  • Key tags are only "element" and "attribute", which are useful for hawk-apiserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages