storagecleaner

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

README

storage_cleaner

This module implements an extension that allows purging the backend storage by making an HTTP POST request to it.

The storage_cleaner extension is intended to be used only in tests, providing a way to clear the storage between test runs. Making a POST request to the exposed endpoint will delete all data in storage.

See Architecture Diagram in the parent directory.

Getting Started

The following settings are required:

  • trace_storage : name of a storage backend defined in jaegerstorage extension
extensions:
  storage_cleaner:
    trace_storage: storage_name

Documentation

Index

Constants

View Source
const (
	Port = "9231"
	URL  = "/purge"
)

Variables

View Source
var ID = component.NewID(componentType)

ID is the identifier of this extension.

Functions

func NewFactory

func NewFactory() extension.Factory

Types

type Config

type Config struct {
	TraceStorage string `valid:"required" mapstructure:"trace_storage"`
	Port         string `mapstructure:"port"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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