Skip to content

larsw/accumulo-access-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accumulo Access Expressions for Go

Introduction

This package provides a simple way to parse and evaluate Accumulo access expressions in Go, based on the AccessExpression specification.

Usage

package main

import (
	"fmt"
	accumulo "github.com/larsw/accumulo-access-go/pkg"
)

func main() {
	res, err := accumulo.CheckAuthorization("A & B & (C | D)", "A,B,C")
	if err != nil {
		fmt.Printf("err: %v\n", err)
		return
	}
	// Print the result
	fmt.Printf("%v\n", res)
}

License

Licensed under the MIT License LICENSE.

About

Accumulo Access Expressions for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published