jast

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package jast implements policies JSON AST (JAST) parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct{}

Parser is a JAST parser implementation.

func (Parser) Unmarshal

func (p Parser) Unmarshal(in io.Reader, tag *uuid.UUID) (*pdp.PolicyStorage, error)

Unmarshal parses policies JSON representation to PDP's internal representation.

func (Parser) UnmarshalUpdate

func (p Parser) UnmarshalUpdate(in io.Reader, s pdp.Symbols, oldTag, newTag uuid.UUID) (*pdp.PolicyUpdate, error)

UnmarshalUpdate parses policies update JSON representation to PDP's internal representation.

Jump to

Keyboard shortcuts

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