rconfig

package
v0.0.0-...-5bd602d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package rconfig holds rconfig related files

Package rconfig holds rconfig related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RCPolicyProvider

type RCPolicyProvider struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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) Close

func (r *RCPolicyProvider) Close() error

Close stops the client

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

Jump to

Keyboard shortcuts

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