commands

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditCommand

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

AuditIndexCommand validates an index by checking existing chunks.

func (*AuditCommand) Register

func (a *AuditCommand) Register(app *kingpin.Application)

type RuleCommand

type RuleCommand struct {
	ClientConfig client.Config

	// Backend type (loki only)
	Backend string

	// Get Rule Groups Configs
	Namespace string
	RuleGroup string

	// Load Rules Config
	RuleFilesList []string
	RuleFiles     string
	RuleFilesPath string

	// Sync/Diff Rules Config
	Namespaces string

	IgnoredNamespaces string

	// Prepare Rules Config
	InPlaceEdit                        bool
	AggregationLabel                   string
	AggregationLabelExcludedRuleGroups string

	// Lint Rules Config
	LintDryRun bool

	// Rules check flags
	Strict bool

	// List Rules Config
	Format string

	DisableColor bool

	// Diff Rules Config
	Verbose bool
	// contains filtered or unexported fields
}

RuleCommand configures and executes rule related Loki operations

func (*RuleCommand) Register

func (r *RuleCommand) Register(app *kingpin.Application)

Register rule related commands and flags with the kingpin application

Jump to

Keyboard shortcuts

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