api

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyIngested = errors.New("ingestion already completed")
)

Functions

This section is empty.

Types

type API

type API interface {
	Ingest(ctx context.Context, path string) error
	Notify(ctx context.Context, clusterName string, runID string) error
}

type IngestorAPI

type IngestorAPI struct {
	Cfg *config.KubehoundConfig
	// contains filtered or unexported fields
}

func (*IngestorAPI) Close added in v1.6.0

func (g *IngestorAPI) Close(ctx context.Context)

func (*IngestorAPI) Ingest

func (g *IngestorAPI) Ingest(ctx context.Context, path string) error

func (*IngestorAPI) Notify

func (g *IngestorAPI) Notify(ctx context.Context, clusterName string, runID string) error

Notify notifies the caller that the ingestion is completed

func (*IngestorAPI) RehydrateLatest added in v1.3.3

func (g *IngestorAPI) RehydrateLatest(ctx context.Context) ([]*grpc.IngestedCluster, error)

RehydrateLatest is just a GRPC wrapper around the Ingest method from the API package

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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