flare

package
v0.0.0-...-2feb83d Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 54 Imported by: 10

Documentation

Overview

Package flare contains the logic to create a flare archive.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotCompiled is returned if kubernetes apiserver support is not compiled in.
	// User classes should handle that case as gracefully as possible.
	ErrNotCompiled = errors.New("kubernetes apiserver support not compiled in")
)

Functions

func CompleteFlare

func CompleteFlare(fb flaretypes.FlareBuilder, diagnoseDeps diagnose.SuitesDeps) error

CompleteFlare packages up the files with an already created builder. This is aimed to be used by the flare component while we migrate to a component architecture.

func CreateDCAArchive

func CreateDCAArchive(local bool, distPath, logFilePath string, pdata ProfileData, diagnoseDeps diagnose.SuitesDeps, statusComponent status.Component) (string, error)

CreateDCAArchive packages up the files

func CreateSecurityAgentArchive

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

CreateSecurityAgentArchive packages up the files

func GetClusterAgentConfigCheck

func GetClusterAgentConfigCheck(w io.Writer, withDebug bool) error

GetClusterAgentConfigCheck proxies GetConfigCheck overidding the URL

func GetClusterAgentDiagnose

func GetClusterAgentDiagnose(w io.Writer, deps diagnose.SuitesDeps) error

GetClusterAgentDiagnose dumps the connectivity checks diagnose to the writer

func GetClusterChecks

func GetClusterChecks(w io.Writer, checkName string) error

GetClusterChecks dumps the clustercheck dispatching state to the writer

func GetConfigCheck

func GetConfigCheck(w io.Writer, withDebug bool) error

GetConfigCheck dump all loaded configurations to the writer

func GetEndpointsChecks

func GetEndpointsChecks(w io.Writer, checkName string) error

GetEndpointsChecks dumps the endpointschecks dispatching state to the writer

func PrintConfig

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

PrintConfig prints a human-readable representation of a configuration

func PrintRemoteConfigStates

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

PrintRemoteConfigStates dump the whole remote-config state

func QueryDCAMetrics

func QueryDCAMetrics() ([]byte, error)

QueryDCAMetrics gets the metrics payload exposed by the cluster agent

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

type ProfileData added in v0.9.0

type ProfileData map[string][]byte

ProfileData maps (pprof) profile names to the profile data

Jump to

Keyboard shortcuts

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