Skip to content

Latest commit

 

History

History

client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Longhorn API Client

The code in this package are generated by rancher/go-rancher. But in order to fix some compatibility issues, you need to use this repo, and you should checkout the longhorn-v1 branch.

Generate code in go-rancher

If you have a longhorn api URL, you can use this script:

./scripts/generate-longhorn-schemas.sh http://manager-api-ip:port

Copy code to longhorn-manager

Just use cp to copy these code is fine, but you should update package name in longhorn-manager:

cd longhorn-manager/client
sed -i -e 's/package longhorn/package client/g' *.go