Documentation ¶
Index ¶
- func CreateArchive(local bool, distPath, pyChecksPath, logFilePath string) (string, error)
- func CreateDCAArchive(local bool, distPath, logFilePath string) (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 PrintConfig(w io.Writer, c integration.Config)
- func SendFlare(archivePath string, caseID string, email string) (string, error)
- func SendFlareWithHostname(archivePath string, caseID string, email string, hostname string) (string, error)
- 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 ¶
CreateArchive packages up the files
func CreateDCAArchive ¶
CreateDCAArchive 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 PrintConfig ¶
func PrintConfig(w io.Writer, c integration.Config)
PrintConfig prints a human-readable representation of a configuration
Types ¶
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