Documentation ¶
Index ¶
- func CreateArchive(local bool, distPath, pyChecksPath string, logFilePaths []string, ...) (string, error)
- func CreateDCAArchive(local bool, distPath, logFilePath string) (string, error)
- func CreatePerformanceProfile(prefix, debugURL string, cpusec int, target *ProfileData) error
- func CreateSecurityAgentArchive(local bool, logFilePath string, runtimeStatus map[string]interface{}) (string, error)
- func GetClusterAgentConfigCheck(w io.Writer, withDebug bool) error
- func GetClusterAgentDiagnose(w io.Writer) error
- func GetClusterChecks(w io.Writer) error
- func GetConfigCheck(w io.Writer, withDebug bool) error
- func GetEndpointsChecks(w io.Writer) error
- func PrintConfig(w io.Writer, c integration.Config)
- func QueryDCAMetrics() ([]byte, error)
- func SendFlare(archivePath string, caseID string, email string) (string, error)
- func SendFlareWithHostname(archivePath string, caseID string, email string, hostname string) (string, error)
- type ProfileData
- type RedactingWriter
- func (f *RedactingWriter) Close() error
- func (f *RedactingWriter) Flush() error
- func (f *RedactingWriter) RegisterReplacer(r log.Replacer)
- func (f *RedactingWriter) Truncate(size int64) error
- func (f *RedactingWriter) Write(p []byte) (int, error)
- func (f *RedactingWriter) WriteFromFile(filePath string) (int, error)
- type SearchPaths
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArchive ¶
func CreateArchive(local bool, distPath, pyChecksPath string, logFilePaths []string, pdata ProfileData, ipcError error) (string, error)
CreateArchive packages up the files
func CreateDCAArchive ¶
CreateDCAArchive packages up the files
func CreatePerformanceProfile ¶ added in v0.9.0
func CreatePerformanceProfile(prefix, debugURL string, cpusec int, target *ProfileData) error
CreatePerformanceProfile adds a set of heap and CPU profiles into target, using cpusec as the CPU profile duration, debugURL as the target URL for fetching the profiles and prefix as a prefix for naming them inside target.
It is accepted to pass a nil target.
func CreateSecurityAgentArchive ¶
func CreateSecurityAgentArchive(local bool, logFilePath string, runtimeStatus map[string]interface{}) (string, error)
CreateSecurityAgentArchive packages up the files
func GetClusterAgentConfigCheck ¶
GetClusterAgentConfigCheck proxies GetConfigCheck overidding the URL
func GetClusterAgentDiagnose ¶
GetClusterAgentDiagnose dumps the connectivity checks diagnose to the writer
func GetClusterChecks ¶
GetClusterChecks dumps the clustercheck dispatching state to the writer
func GetConfigCheck ¶
GetConfigCheck dump all loaded configurations to the writer
func GetEndpointsChecks ¶
GetEndpointsChecks dumps the endpointschecks dispatching state to the writer
func PrintConfig ¶
func PrintConfig(w io.Writer, c integration.Config)
PrintConfig prints a human-readable representation of a configuration
func QueryDCAMetrics ¶
QueryDCAMetrics gets the metrics payload exposed by the cluster agent
Types ¶
type ProfileData ¶ added in v0.9.0
ProfileData maps (pprof) profile names to the profile data.
type RedactingWriter ¶
type RedactingWriter struct {
// contains filtered or unexported fields
}
RedactingWriter is a writer that will redact content before writing to target
func NewRedactingWriter ¶
NewRedactingWriter instantiates a RedactingWriter to target with given permissions
func (*RedactingWriter) Close ¶
func (f *RedactingWriter) Close() error
Close closes the underlying file, if buffered previously flushes the contents
func (*RedactingWriter) Flush ¶
func (f *RedactingWriter) Flush() error
Flush if this is a buffered writer, it flushes the buffer, otherwise NOP
func (*RedactingWriter) RegisterReplacer ¶
func (f *RedactingWriter) RegisterReplacer(r log.Replacer)
RegisterReplacer register additional replacers to run on stream
func (*RedactingWriter) Truncate ¶
func (f *RedactingWriter) Truncate(size int64) error
Truncate truncates the file of the target file to the specified size
func (*RedactingWriter) Write ¶
func (f *RedactingWriter) Write(p []byte) (int, error)
Write writes the redacted byte stream, applying all replacers and credential cleanup to target
func (*RedactingWriter) WriteFromFile ¶
func (f *RedactingWriter) WriteFromFile(filePath string) (int, error)
WriteFromFile will read contents from file and write them redacted to target
type SearchPaths ¶
SearchPaths is just an alias for a map of strings