permission_api

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Resource string         `json:"resource,omitempty"`
	CheckIds CheckIdsObject `json:"check_ids,omitempty"`
}

type CheckIdsObject

type CheckIdsObject struct {
	Ids    []string `json:"ids,omitempty"`
	Rights string   `json:"rights,omitempty"`
}

type PermissionApi

type PermissionApi struct {
	// contains filtered or unexported fields
}

func NewPermissionApi

func NewPermissionApi(url string) *PermissionApi

func (PermissionApi) UserHasDevicesReadAccess

func (a PermissionApi) UserHasDevicesReadAccess(ids []string, authorization string) (result bool, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL