https://github.com/devolutions/go-dvls
Go client for DVLS
https://github.com/devolutions/go-dvls
devops dvls golang
Last synced: 7 months ago
JSON representation
Go client for DVLS
- Host: GitHub
- URL: https://github.com/devolutions/go-dvls
- Owner: Devolutions
- License: apache-2.0
- Created: 2023-01-23T14:03:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-19T18:26:21.000Z (8 months ago)
- Last Synced: 2024-11-19T19:40:48.131Z (8 months ago)
- Topics: devops, dvls, golang
- Language: Go
- Homepage: https://devolutions.net/server
- Size: 67.4 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# go-dvls
[](https://pkg.go.dev/github.com/Devolutions/go-dvls)
[](https://github.com/Devolutions/go-dvls/actions/workflows/test.yml):warning: **This client is a work in progress, expect breaking changes between releases** :warning:
Go client for DVLS
Heavily based on the information found on the [Devolutions.Server](https://github.com/Devolutions/devolutions-server/tree/main/Powershell%20Module/Devolutions.Server) powershell module.
## Usage
- Run go get `go get github.com/Devolutions/go-dvls`
- Add the import `import "github.com/Devolutions/go-dvls"`
- Setup the client (we recommend using an [Application ID](https://docs.devolutions.net/server/web-interface/administration/security-management/applications/))
``` go
package mainimport (
"log""github.com/Devolutions/go-dvls"
)func main() {
// We strongly recommend using an Application ID with your client
c, err := dvls.NewClient("username", "password", "https://your-dvls-instance.com")
if err != nil {
log.Fatal(err)
}
log.Print(c.ClientUser.Username)
}
```## Documentation
All our documentation is available on [](https://pkg.go.dev/github.com/Devolutions/go-dvls)## License
Copyright 2023.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.