rego

package
v0.0.0-...-923a9ec Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright (C) 2022 AlgoNode Org.

algostreamer is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

algostreamer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with algostreamer. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileCfg

func CompileCfg(cfg *OpaConfig) error

Types

type OpaConfig

type OpaConfig struct {
	MyID  string       `json:"myid"`
	Rules RegoRulesMap `json:"rules"`
	// contains filtered or unexported fields
}

type RegoRulesCompilers

type RegoRulesCompilers struct {
	Status *ast.Compiler
	Block  *ast.Compiler
	Tx     *ast.Compiler
}

type RegoRulesMap

type RegoRulesMap struct {
	Status string `json:"status"`
	Block  string `json:"block"`
	Tx     string `json:"tx"`
}

Jump to

Keyboard shortcuts

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