permissionprovider

package
v0.0.0-...-b21f824 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionProvider

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

PermissionProvider vis permission provider.

func New

func New(config *config.Config, insecure bool) (provider *PermissionProvider, err error)

New creates new permission provider.

func (*PermissionProvider) Close

func (provider *PermissionProvider) Close()

Close close connection with permission provider grpc server.

func (*PermissionProvider) GetVisPermissionByToken

func (provider *PermissionProvider) GetVisPermissionByToken(token string) (permissions map[string]string, err error)

GetVisPermissionByToken get vis permission by token.

Jump to

Keyboard shortcuts

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