generated from VeeamHub/veeamhub-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added initial VBR SDK files Signed-off-by: Chris Arceneaux <[email protected]>
- Loading branch information
1 parent
d6f5726
commit eb34aae
Showing
982 changed files
with
265,079 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
all: generate dependency | ||
|
||
# Removes currently generated client files | ||
cleanup: | ||
@echo "Removing current client files" | ||
rm -rf models client | ||
|
||
# Validating Swagger spec | ||
# | ||
# https://goswagger.io/usage/validate.html | ||
validate: | ||
@echo "Validating Swagger spec" | ||
swagger validate ./swagger.yml | ||
|
||
# Generating API client | ||
# | ||
# https://goswagger.io/generate/server.html | ||
# https://goswagger.io/generate/client.html | ||
generate: cleanup validate | ||
@echo "Generating API client" | ||
# swagger generate server \ | ||
--skip-validation \ | ||
--exclude-main \ | ||
--target=./ \ | ||
--spec=./swagger.yml \ | ||
--name=veeam_vbr | ||
swagger generate client \ | ||
--skip-validation \ | ||
--spec=./swagger.yml \ | ||
--name=veeam_vbr | ||
|
||
# Adding new dependencies | ||
dependency: | ||
@echo "Adding new dependencies" | ||
go mod tidy | ||
go mod vendor | ||
|
||
build: | ||
@echo "Building Go module" | ||
go build ./... | ||
|
||
test: | ||
@echo "Testing Go module" | ||
go test ./... | ||
|
||
.PHONY: all cleanup validate generate dependency build test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
# VeeamHub Repository Template | ||
# Unofficial Veeam Backup & Replication SDK for Go | ||
|
||
Here are instructions on how to use this template: | ||
This repository contains a Golang SDK for the new Veeam Backup & Replication v11 RESTful API. This SDK was generated using [go-swagger](https://github.com/go-swagger/go-swagger). | ||
|
||
* Navigate to the [main page of this repository](https://github.com/VeeamHub/veeamhub-template) | ||
* Follow instructions for [creating a repository from a template](https://help.github.com/en/articles/creating-a-repository-from-a-template) | ||
* _Repository names **must** have the prefix:_ **veeam-** | ||
* Example: _veeam-repo-name_ | ||
* Replace **all** repository-specific links | ||
* `issues` link in _README.md_ | ||
* `create an issue` link in _README.md_ | ||
* `opening a new issue` link in _CONTRIBUTING.md_ | ||
* Remove the instructions from this section and replace it with information describing this repository. | ||
As such, any API call in the [Veeam Backup & Replication v11 REST API](https://helpcenter.veeam.com/docs/backup/vbr_rest/overview.html?ver=110) is present in this SDK. | ||
|
||
## 📗 Documentation | ||
|
||
_Place documentation or links to documentation here._ | ||
|
||
## ✍ Contributions | ||
|
||
We welcome contributions from the community! We encourage you to create [issues](https://github.com/VeeamHub/{repo-name}/issues/new/choose) for Bugs & Feature Requests and submit Pull Requests. For more detailed information, refer to our [Contributing Guide](CONTRIBUTING.md). | ||
We welcome contributions from the community! We encourage you to create [issues](https://github.com/VeeamHub/veeam-vbr-sdk-go/issues/new/choose) for Bugs & Feature Requests and submit Pull Requests. For more detailed information, refer to our [Contributing Guide](CONTRIBUTING.md). | ||
|
||
## 🤝🏾 License | ||
|
||
* [MIT License](LICENSE) | ||
|
||
## 🤔 Questions | ||
|
||
If you have any questions or something is unclear, please don't hesitate to [create an issue](https://github.com/VeeamHub/{repo-name}/issues/new/choose) and let us know! | ||
If you have any questions or something is unclear, please don't hesitate to [create an issue](https://github.com/VeeamHub/veeam-vbr-sdk-go/issues/new/choose) and let us know! |
Oops, something went wrong.