larsw / accumulo-access-go

Accumulo Access Expressions for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 99.9%Language:Makefile 0.1%