flare

package
v0.0.0-...-17111e2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 46 Imported by: 16

Documentation

Overview

Package flare contains the logic to create a flare archive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecurityAgentArchive

func CreateSecurityAgentArchive(local bool, logFilePath string, statusComponent status.Component) (string, error)

CreateSecurityAgentArchive packages up the files

func ExtraFlareProviders

func ExtraFlareProviders(diagnoseDeps diagnose.SuitesDeps) []*flaretypes.FlareFiller

ExtraFlareProviders returns flare providers that are not given via fx. This function should only be called by the flare component.

func GetConfigFiles

func GetConfigFiles(fb flaretypes.FlareBuilder, confSearchPaths map[string]string)

GetConfigFiles copies configuration files to the flare archive.

func GetEnvVars

func GetEnvVars() ([]byte, error)

GetEnvVars collects allowed envvars that can affect the agent's behaviour while not being handled by viper, in addition to the envvars handled by viper

func GetExpVar

func GetExpVar(fb flaretypes.FlareBuilder) error

GetExpVar copies expvar files to the flare archive.

func GetLogFiles

func GetLogFiles(fb flaretypes.FlareBuilder, logFileDir string)

GetLogFiles copies log files to the flare archive.

func GetTaggerList

func GetTaggerList(remoteURL string) ([]byte, error)

GetTaggerList fetches the tagger list from the given URL.

func GetWorkloadList

func GetWorkloadList(url string) ([]byte, error)

GetWorkloadList fetches the workload list from the given URL.

func PrintConfig

func PrintConfig(w io.Writer, c integration.Config, checkName string)

PrintConfig prints a human-readable representation of a configuration with any secrets scrubbed.

func PrintConfigCheck

func PrintConfigCheck(w io.Writer, cr integration.ConfigCheckResponse, withDebug bool)

PrintConfigCheck prints a human-readable representation of the config check response

func PrintRemoteConfigStates

func PrintRemoteConfigStates(w io.Writer, state *pbgo.GetStateConfigResponse, stateHA *pbgo.GetStateConfigResponse)

PrintRemoteConfigStates dump the whole remote-config state

func SendFlare

func SendFlare(cfg pkgconfigmodel.Reader, archivePath string, caseID string, email string, source helpers.FlareSource) (string, error)

SendFlare sends a flare and returns the message returned by the backend. This entry point is deprecated in favor of the 'Send' method of the flare component.

Types

This section is empty.

Directories

Path Synopsis
Package clusteragent contains the logic to create the cluster agent flare archive.
Package clusteragent contains the logic to create the cluster agent flare archive.

Jump to

Keyboard shortcuts

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