dump

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OfflineDumpDateFormat = "2006-01-02-15-04-05"
	OfflineDumpPrefix     = "kubehound_"
)

Variables

This section is empty.

Functions

func DumpIngestorResultName

func DumpIngestorResultName(clusterName string, runID string) string

./<clusterName>/kubehound_<clusterName>_<run_id>

Types

type DumpIngestor

type DumpIngestor struct {
	ResultName string
	// contains filtered or unexported fields
}

func NewDumpIngestor

func NewDumpIngestor(ctx context.Context, collector collector.CollectorClient, compression bool, directoryOutput string, runID *config.RunID) (*DumpIngestor, error)

func NewDumpIngestor(ctx context.Context, collector collector.CollectorClient, compression bool, directoryOutput string) (*DumpIngestor, error) {

func (*DumpIngestor) Close

func (d *DumpIngestor) Close(ctx context.Context) error

Close() is invoked by the collector to close all handlers used to dump k8s objects. The function flushes all writers and close all the handlers.

func (*DumpIngestor) DumpK8sObjects

func (d *DumpIngestor) DumpK8sObjects(ctx context.Context) error

func (*DumpIngestor) OutputPath

func (d *DumpIngestor) OutputPath() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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