rconfig

package
v0.0.0-...-2feb83d Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 19 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 ProfileConfig

type ProfileConfig struct {
	Tags    []string
	Profile []byte
}

ProfileConfig defines a profile config

type RCPolicyProvider

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

RCPolicyProvider defines a remote config policy provider

func NewRCPolicyProvider

func NewRCPolicyProvider() (*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

type RCProfileProvider

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

RCProfileProvider defines a RC profile provider

func NewRCProfileProvider

func NewRCProfileProvider() (*RCProfileProvider, error)

NewRCProfileProvider returns a new Remote Config based policy provider

func (*RCProfileProvider) SendStats

SendStats sends the metrics of the directory provider

func (*RCProfileProvider) SetOnNewProfileCallback

func (r *RCProfileProvider) SetOnNewProfileCallback(onNewProfileCallback func(selector cgroupModel.WorkloadSelector, profile *proto.SecurityProfile))

SetOnNewProfileCallback sets the onNewProfileCallback function

func (*RCProfileProvider) Start

func (r *RCProfileProvider) Start(ctx context.Context) error

Start starts the Remote Config profile provider and subscribes to updates

func (*RCProfileProvider) Stop

func (r *RCProfileProvider) Stop() error

Stop stops the client

func (*RCProfileProvider) UpdateWorkloadSelectors

func (r *RCProfileProvider) UpdateWorkloadSelectors(selectors []cgroupModel.WorkloadSelector)

UpdateWorkloadSelectors updates the selectors used to query profiles

Jump to

Keyboard shortcuts

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