diskrecorder

package
v0.0.0-...-898015a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskRecorder

type DiskRecorder struct {
	// contains filtered or unexported fields
}

func New

func New(path string) *DiskRecorder

New diskrecorder driver

func (*DiskRecorder) LastArchive

func (d *DiskRecorder) LastArchive() (*insightsclient.Source, error)

LastArchive tries to find the latest Insights archive. Returns an error when it can't read the base directory or when it can't open the last archive found.

func (*DiskRecorder) Prune

func (d *DiskRecorder) Prune(olderThan time.Time) error

Prune the archives older than given time

func (*DiskRecorder) Save

Save the records into the archive in the directory at d.basePath

func (*DiskRecorder) SaveAtPath

func (d *DiskRecorder) SaveAtPath(records record.MemoryRecords, path string) (record.MemoryRecords, error)

SaveAtPath the records into the archive at `path`

func (*DiskRecorder) Summary

func (d *DiskRecorder) Summary(_ context.Context, since time.Time) (*insightsclient.Source, bool, error)

Summary implements summarizer interface to insights uploader

Jump to

Keyboard shortcuts

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