Skip to content

Latest commit

 

History

66 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go client for Devolutions Server

Go Reference testing

⚠️ This client is a work in progress, expect breaking changes between releases ⚠️

Compatibility

go-dvls version DVLS version
0.16.0+ 2026.x
0.15.0 2024.x, 2025.x

Administrative roles and role assignments (client.AdministrativeRoles, client.AdministrativeRoleAssignments) require DVLS 2026.3 or later.

Users, applications and user groups (client.Users, client.UserGroups) expose the principal IDs used as assignees in role assignments and as roles in entry permissions.

Usage

  • Run go get go get github.com/Devolutions/go-dvls
  • Add the import import "github.com/Devolutions/go-dvls"
  • Setup the client using either an Application ID (App Key + App Secret) or an API key

Using an Application ID:

package main

import (
	"log"

	"github.com/Devolutions/go-dvls"
)

func main() {
	c, err := dvls.NewClient("appKey", "appSecret", "https://your-dvls-instance.com")
	if err != nil {
		log.Fatal(err)
	}
	_ = c
}

Using an API key:

package main

import (
	"log"

	"github.com/Devolutions/go-dvls"
)

func main() {
	c, err := dvls.NewClientWithApiKey("apiKey", "https://your-dvls-instance.com")
	if err != nil {
		log.Fatal(err)
	}
	_ = c
}

Documentation

All our documentation is available on Go Reference

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 at

http://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.

About

Go client for DVLS

Topics

Resources

Security policy

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages