Discover Packages
github.com/sobczak-m/consul
sentinel
package
Version:
v1.4.5
Opens a new window with list of versions in this module.
Published: May 22, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ScopeCatalogUpsert returns the standard sentinel scope for a catalog create
or update. Service is allowed to be nil.
ScopeKVUpsert returns the standard sentinel scope for a KV create or update.
Evaluator wraps the Sentinel evaluator from the HashiCorp Sentinel policy
engine.
New returns a new instance of the Sentinel code engine. This is only available
in Consul Enterprise so this version always returns nil.
type ScopeFn func() map[string ]interface{}
ScopeFn is a callback that provides a sentinel scope. This is a callback
so that if we don't run sentinel for some reason (not enabled or a basic
policy check means we don't have to) then we don't spend the effort to make
the map.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.