recording

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool `yaml:"enabled" category:"experimental"`
}

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(fs *flag.FlagSet)

func (*Config) Validate

func (cfg *Config) Validate() error

type RecordingRules

type RecordingRules struct {
	// contains filtered or unexported fields
}

RecordingRules is a collection that gathers rules coming from config and coming from the bucket storage. Rules coming from config work as overrides of store rules, and in case of repeated ID, config rules prevail.

func New

func New(bucket objstore.Bucket, logger log.Logger, overrides *validation.Overrides) *RecordingRules

func (*RecordingRules) DeleteRecordingRule

DeleteRecordingRule deletes a store rule Operational purposes: you can delete store rules (no matter if they exist in config)

func (*RecordingRules) GetRecordingRule

GetRecordingRule will return a rule of the given ID or not found. Rules defined by config are returned over rules in the store.

func (*RecordingRules) ListRecordingRules

ListRecordingRules will return all the rules defined by config and in the store. Rules in the store with the same ID as a rule in config will be filtered out.

func (*RecordingRules) UpsertRecordingRule

UpsertRecordingRule upserts a rule in the storage. Operational purposes: you can upsert store rules (no matter if they exist in config)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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