flow

package
v0.0.0-...-246ca4d Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package flow implements ClickHouse table schema for cilium hubble flow events.

Index

Constants

This section is empty.

Variables

View Source
var DDL = NewDDL("flows")

DDL for ClickHouse table.

Functions

func NewDDL

func NewDDL(tableName string) string

Types

type Peer

type Peer struct {
	Kubernetes RowKubernetes
}

type Row

type Row struct {
	Raw     *observer.Flow
	Index   Peer
	Peer    Peer
	Inverse bool
}

type RowKubernetes

type RowKubernetes struct {
	Pod       string
	Namespace string
	Image     string
	Container string
}

type Table

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

Table is wrapper for ClickHouse columns that simplifies data ingestion.

func NewTable

func NewTable(name string) *Table

func (*Table) Append

func (t *Table) Append(row Row) error

func (*Table) Each

func (t *Table) Each(fn func(row Row) error) error

func (*Table) Input

func (t *Table) Input() proto.Input

func (*Table) Insert

func (t *Table) Insert() string

func (*Table) Reset

func (t *Table) Reset()

func (*Table) Result

func (t *Table) Result() proto.Results

func (*Table) ResultColumns

func (t *Table) ResultColumns() []string

func (*Table) Rows

func (t *Table) Rows() int

Jump to

Keyboard shortcuts

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