ruler

package
v0.0.0-...-7838e69 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ActionSign is the action of signing generic data.
	ActionSign = "Sign"
	// ActionSignBeaconAttestation is the action of signing a beacon attestation.
	ActionSignBeaconAttestation = "Sign beacon attestation"
	// ActionSignBeaconProposal is the action of signing a beacon proposal.
	ActionSignBeaconProposal = "Sign beacon proposal"
	// ActionAccessAccount is the action of accessing an account.
	ActionAccessAccount = "Access account"
	// ActionCreateAccount is the action of creating an account.
	ActionCreateAccount = "Create account"
	// ActionLockWallet is the action of locking a wallet.
	ActionLockWallet = "Lock wallet"
	// ActionUnlockWallet is the action of unlocking a wallet.
	ActionUnlockWallet = "Unlock wallet"
	// ActionLockAccount is the action of locking an account.
	ActionLockAccount = "Lock account"
	// ActionUnlockAccount is the action of unlocking an account.
	ActionUnlockAccount = "Unlock account"
)

Functions

This section is empty.

Types

type RulesData

type RulesData struct {
	WalletName  string
	AccountName string
	PubKey      []byte
	Data        interface{}
}

RulesData contains data for the rules.

type Service

type Service interface {
	// RunRules runs a set of rules for the given information.
	RunRules(context.Context, *checker.Credentials, string, []*RulesData) []rules.Result
}

Service provides an interface to check requests against a rules engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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