api

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 25 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, clusterName string, runID 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) Ingest

func (g *IngestorAPI) Ingest(_ context.Context, clusterName string, runID 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