satisfaction

package
v0.0.0-...-edbb0c7 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

README

satisfaction

package satisfaction provides functionality for testing whether a spam policy can be satisfied in a given state.

Variables

var (
    ErrUnsatisfiable = errors.New("policy could not be satisfied")
)

Functions

func FirstSatisfiable

func FirstSatisfiable(policies normpolicy.NormalizedPolicy, currentState *tpmstate.TpmState) (*int, error)

FirstSatisfiable finds the index of the first satisfiable policy branch, or returns an error if no policy was satisfiable.


Readme created from Go doc with goreadme

Documentation

Overview

package satisfaction provides functionality for testing whether a spam policy can be satisfied in a given state.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsatisfiable = errors.New("policy could not be satisfied")
)

Functions

func FirstSatisfiable

func FirstSatisfiable(policies normpolicy.NormalizedPolicy, currentState *tpmstate.TpmState) (*int, error)

FirstSatisfiable finds the index of the first satisfiable policy branch, or returns an error if no policy was satisfiable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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