pipeline

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenK8sObjects

func GenK8sObjects() []runtime.Object

func NewFakeDumpIngestorPipeline

func NewFakeDumpIngestorPipeline(ctx context.Context, t *testing.T, mockCollector bool) (*mockwriter.DumperWriter, collector.CollectorClient)

func PipelineLiveTest

func PipelineLiveTest(ctx context.Context, t *testing.T, workerNum int) (*mockwriter.DumperWriter, collector.CollectorClient)

Types

type ClusterRoleBindingIngestor

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

func NewClusterRoleBindingIngestor

func NewClusterRoleBindingIngestor(ctx context.Context, dumpWriter writer.DumperWriter) *ClusterRoleBindingIngestor

func (*ClusterRoleBindingIngestor) Complete

Complete() is invoked by the collector when all k8s assets have been streamed. The function flushes all writers and waits for completion.

func (*ClusterRoleBindingIngestor) IngestClusterRoleBinding

func (d *ClusterRoleBindingIngestor) IngestClusterRoleBinding(ctx context.Context, clusterRoleBinding types.ClusterRoleBindingType) error

type ClusterRoleIngestor

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

func NewClusterRoleIngestor

func NewClusterRoleIngestor(ctx context.Context, dumpWriter writer.DumperWriter) *ClusterRoleIngestor

func (*ClusterRoleIngestor) Complete

func (d *ClusterRoleIngestor) Complete(ctx context.Context) error

Complete() is invoked by the collector when all k8s assets have been streamed. The function flushes all writers and waits for completion.

func (*ClusterRoleIngestor) IngestClusterRole

func (d *ClusterRoleIngestor) IngestClusterRole(ctx context.Context, clusterRole types.ClusterRoleType) error

type DumpIngestorPipeline

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

type EndpointIngestor

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

func NewEndpointIngestor

func NewEndpointIngestor(ctx context.Context, dumpWriter writer.DumperWriter) *EndpointIngestor

func (*EndpointIngestor) Complete

func (d *EndpointIngestor) Complete(ctx context.Context) error

Complete() is invoked by the collector when all k8s assets have been streamed. The function flushes all writers and waits for completion.

func (*EndpointIngestor) IngestEndpoint

func (d *EndpointIngestor) IngestEndpoint(ctx context.Context, endpoint types.EndpointType) error

type NodeIngestor

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

func NewNodeIngestor

func NewNodeIngestor(ctx context.Context, dumpWriter writer.DumperWriter) *NodeIngestor

func (*NodeIngestor) Complete

func (d *NodeIngestor) Complete(ctx context.Context) error

Complete() is invoked by the collector when all k8s assets have been streamed. The function flushes all writers and waits for completion.

func (*NodeIngestor) IngestNode

func (d *NodeIngestor) IngestNode(ctx context.Context, node types.NodeType) error

type PipelineDumpIngestor

type PipelineDumpIngestor struct {
	WorkerNumber int
	// contains filtered or unexported fields
}

PipelineDumpIngestor is a parallelized pipeline based ingestor implementation.

func (*PipelineDumpIngestor) Run

func (*PipelineDumpIngestor) Wait

type PodIngestor

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

func NewPodIngestor

func NewPodIngestor(ctx context.Context, dumpWriter writer.DumperWriter) *PodIngestor

func (*PodIngestor) Complete

func (d *PodIngestor) Complete(ctx context.Context) error

Complete() is invoked by the collector when all k8s assets have been streamed. The function flushes all writers and waits for completion.

func (*PodIngestor) IngestPod

func (d *PodIngestor) IngestPod(ctx context.Context, pod types.PodType) error

type RoleBindingIngestor

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

func NewRoleBindingIngestor

func NewRoleBindingIngestor(ctx context.Context, dumpWriter writer.DumperWriter) *RoleBindingIngestor

func (*RoleBindingIngestor) Complete

func (d *RoleBindingIngestor) Complete(ctx context.Context) error

Complete() is invoked by the collector when all k8s assets have been streamed. The function flushes all writers and waits for completion.

func (*RoleBindingIngestor) IngestRoleBinding

func (d *RoleBindingIngestor) IngestRoleBinding(ctx context.Context, roleBinding types.RoleBindingType) error

type RoleIngestor

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

func NewRoleIngestor

func NewRoleIngestor(ctx context.Context, dumpWriter writer.DumperWriter) *RoleIngestor

func (*RoleIngestor) Complete

func (d *RoleIngestor) Complete(ctx context.Context) error

Complete() is invoked by the collector when all k8s assets have been streamed. The function flushes all writers and waits for completion.

func (*RoleIngestor) IngestRole

func (d *RoleIngestor) IngestRole(ctx context.Context, role types.RoleType) error

type StreamFunc

type StreamFunc func(context.Context) error

Jump to

Keyboard shortcuts

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