Documentation ¶
Index ¶
Constants ¶
View Source
const MaxArchiveSize = 24 * 1024 * 1024
MaxArchiveSize defines maximum allowed tarball size
View Source
const MetadataRecordName = "insights-operator/gathers"
MetadataRecordName defines the metadata record name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Save(record.MemoryRecords) (record.MemoryRecords, error) Prune(time.Time) error }
Driver for the recorder
type FlushInterface ¶
FlushInterface extends Recorder by requiring flush
type MockRecorder ¶
MockRecorder records everything to the field Records
func (*MockRecorder) Flush ¶
func (*MockRecorder) Flush() error
func (*MockRecorder) Reset ¶
func (mr *MockRecorder) Reset()
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder struct
func New ¶
func New(driver Driver, interval time.Duration, anonymizer *anonymization.Anonymizer) *Recorder
New recorder
func (*Recorder) PeriodicallyPrune ¶
PeriodicallyPrune the reports using the recorder driver
Click to show internal directories.
Click to hide internal directories.