Documentation ¶
Overview ¶
Package rconfig holds rconfig related files
Package rconfig holds rconfig related files
Index ¶
- type RCPolicyProvider
- func (r *RCPolicyProvider) Close() error
- func (r *RCPolicyProvider) LoadPolicies(macroFilters []rules.MacroFilter, ruleFilters []rules.RuleFilter) ([]*rules.Policy, *multierror.Error)
- func (r *RCPolicyProvider) SetOnNewPoliciesReadyCb(cb func())
- func (r *RCPolicyProvider) Start()
- func (r *RCPolicyProvider) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RCPolicyProvider ¶
RCPolicyProvider defines a remote config policy provider
func NewRCPolicyProvider ¶
func NewRCPolicyProvider(dumpPolicies bool, setEnforcementCallback func(bool)) (*RCPolicyProvider, error)
NewRCPolicyProvider returns a new Remote Config based policy provider
func (*RCPolicyProvider) LoadPolicies ¶
func (r *RCPolicyProvider) LoadPolicies(macroFilters []rules.MacroFilter, ruleFilters []rules.RuleFilter) ([]*rules.Policy, *multierror.Error)
LoadPolicies implements the PolicyProvider interface
func (*RCPolicyProvider) SetOnNewPoliciesReadyCb ¶
func (r *RCPolicyProvider) SetOnNewPoliciesReadyCb(cb func())
SetOnNewPoliciesReadyCb implements the PolicyProvider interface
func (*RCPolicyProvider) Start ¶
func (r *RCPolicyProvider) Start()
Start starts the Remote Config policy provider and subscribes to updates
func (*RCPolicyProvider) Type ¶
func (r *RCPolicyProvider) Type() string
Type returns the type of this policy provider
Click to show internal directories.
Click to hide internal directories.