adapter

package
v0.0.0-...-d892afd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(db *bolt.DB, bucket string, builtinPolicy string) (*adapter, error)

NewAdapter creates a new adapter. It assumes that the Bolt DB is already open. A bucket name is required and represents the Bolt bucket to save the data into. like to save to. The builtinPolicy is a string representation of a Bhojpur Policy csv policy definition. If left builtinPolicy will not be used.

Types

type BhojpurRule

type BhojpurRule struct {
	Key   string `json:"key"`
	PType string `json:"p_type"`
	V0    string `json:"v0"`
	V1    string `json:"v1"`
	V2    string `json:"v2"`
	V3    string `json:"v3"`
	V4    string `json:"v4"`
	V5    string `json:"v5"`
}

BhojpurRule represents a Bhojpur Policy rule line.

Jump to

Keyboard shortcuts

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