debug

package
v0.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulDebug

type ConsulDebug struct {
	Archive    string           `json:"archive"`
	Duration   string           `json:"duration"`
	Interval   string           `json:"interval"`
	Captures   []string         `json:"captures"`
	Redactions []*redact.Redact `json:"redactions"`
	// contains filtered or unexported fields
}

ConsulDebug represents a ConsulDebug runner

func NewConsulDebug

func NewConsulDebug(cfg ConsulDebugConfig, tmpDir string, debugDuration time.Duration, debugInterval time.Duration) (*ConsulDebug, error)

func (ConsulDebug) ID

func (ConsulDebug) ID() string

func (ConsulDebug) Run

func (dbg ConsulDebug) Run() op.Op

type ConsulDebugConfig

type ConsulDebugConfig struct {
	Archive    string
	Duration   string
	Interval   string
	Captures   []string
	Redactions []*redact.Redact
}

ConsulDebugConfig is a config struct for ConsulDebug runners

type NomadDebug

type NomadDebug struct {
	Duration      string   `json:"duration"`
	Interval      string   `json:"interval"`
	LogLevel      string   `json:"log_level"`
	MaxNodes      int      `json:"max_nodes"`
	NodeClass     string   `json:"node_class"`
	NodeID        string   `json:"node_id"`
	PprofDuration string   `json:"pprof_duration"`
	PprofInterval string   `json:"pprof_interval"`
	ServerID      string   `json:"server_id"`
	Stale         bool     `json:"stale"`
	Verbose       bool     `json:"verbose"`
	EventTopic    []string `json:"event_topic"`

	Redactions []*redact.Redact `json:"redactions"`
	// contains filtered or unexported fields
}

NomadDebug represents a NomadDebug runner

func NewNomadDebug

func NewNomadDebug(cfg NomadDebugConfig, tmpDir string, debugDuration time.Duration, debugInterval time.Duration) (*NomadDebug, error)

func (NomadDebug) ID

func (NomadDebug) ID() string

func (NomadDebug) Run

func (dbg NomadDebug) Run() op.Op

type NomadDebugConfig

type NomadDebugConfig struct {
	Duration      string
	Interval      string
	LogLevel      string
	MaxNodes      int
	NodeClass     string
	NodeID        string
	PprofDuration string
	PprofInterval string
	ServerID      string
	Stale         bool
	Verbose       bool
	EventTopic    []string

	Redactions []*redact.Redact
}

NomadDebugConfig is a config struct for NomadDebug runners

type VaultDebug

type VaultDebug struct {
	Compress        string           `json:"compress"`
	Duration        string           `json:"duration"`
	Interval        string           `json:"interval"`
	LogFormat       string           `json:"log_format"`
	MetricsInterval string           `json:"metrics_interval"`
	Targets         []string         `json:"targets"`
	Redactions      []*redact.Redact `json:"redactions"`
	// contains filtered or unexported fields
}

VaultDebug represents a VaultDebug runner

func NewVaultDebug

func NewVaultDebug(cfg VaultDebugConfig, tmpDir string, debugDuration time.Duration, debugInterval time.Duration) (*VaultDebug, error)

func (VaultDebug) ID

func (VaultDebug) ID() string

func (VaultDebug) Run

func (dbg VaultDebug) Run() op.Op

type VaultDebugConfig

type VaultDebugConfig struct {
	Compress        string
	Duration        string
	Interval        string
	LogFormat       string
	MetricsInterval string
	Targets         []string
	Redactions      []*redact.Redact
}

VaultDebugConfig is a config struct for VaultDebug runners

Jump to

Keyboard shortcuts

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