Documentation
¶
Overview ¶
Package flare contains the logic to create a flare archive.
Index ¶
- func ExtraFlareProviders(workloadmeta option.Option[workloadmeta.Component], ipc ipc.Component) []*flaretypes.FlareFiller
- func PrintClusterCheckConfig(w io.Writer, c integration.Config, checkName string)
- func PrintConfigCheck(w io.Writer, cr integration.ConfigCheckResponse, withDebug bool)
- func PrintConfigWithInstanceIDs(w io.Writer, c integration.Config, instanceIDs []string, checkName string)
- func PrintRemoteConfigStates(w io.Writer, state *pbgo.GetStateConfigResponse, ...)
- func SendFlare(cfg pkgconfigmodel.Reader, archivePath string, caseID string, email string, ...) (string, error)
- type RemoteFlareProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtraFlareProviders ¶
func ExtraFlareProviders(workloadmeta option.Option[workloadmeta.Component], ipc ipc.Component) []*flaretypes.FlareFiller
ExtraFlareProviders returns flare providers that are not given via fx. This function should only be called by the flare component.
func PrintClusterCheckConfig ¶
func PrintClusterCheckConfig(w io.Writer, c integration.Config, checkName string)
PrintClusterCheckConfig 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 PrintConfigWithInstanceIDs ¶
func PrintConfigWithInstanceIDs(w io.Writer, c integration.Config, instanceIDs []string, checkName string)
PrintConfigWithInstanceIDs prints a human-readable representation of a configuration with any secrets scrubbed. We provide the instanceIDs precomputed from the server as the config information is scrubbed
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 ¶
type RemoteFlareProvider ¶
RemoteFlareProvider is a struct that contains a SecureClient It is used to make secure IPC requests to the agent
func (*RemoteFlareProvider) GetGoRoutineDump ¶
func (r *RemoteFlareProvider) GetGoRoutineDump() ([]byte, error)
func (*RemoteFlareProvider) GetTaggerList ¶
func (r *RemoteFlareProvider) GetTaggerList(remoteURL string) ([]byte, error)
GetTaggerList fetches the tagger list from the given URL.
func (*RemoteFlareProvider) GetWorkloadList ¶
func (r *RemoteFlareProvider) GetWorkloadList(url string) ([]byte, error)
GetWorkloadList fetches the workload list from the given URL.
Source Files
¶
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. |
|
Package common contains the logic to create a flare archive.
|
Package common contains the logic to create a flare archive. |
|
Package priviledged contains helper functions for system-probe and security-agent
|
Package priviledged contains helper functions for system-probe and security-agent |
|
Package securityagent contains flare logic for the security agent
|
Package securityagent contains flare logic for the security agent |