profileclient

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package profileclient to handle profiling of kubearmor telemetry events

Index

Constants

View Source
const (
	ColumnNamespace   = "Namespace"
	ColumnPodname     = "Podname"
	ColumnProcessName = "Procname"
	ColumnResource    = "Resource"
	ColumnResult      = "Result"
	ColumnCount       = "Count"
	ColumnTimestamp   = "Timestamp"
)

Column keys

Variables

View Source
var (

	//ColumnStyle for column color
	ColumnStyle = lipgloss.NewStyle().
		Foreground(lipgloss.Color("#00af00")).Align(lipgloss.Center).Bold(true)
)

Functions

func Start

func Start(o Options)

Start entire TUI

Types

type Frequency

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

Frequency and Timestamp data for another map

type Model

type Model struct {
	File    table.Model
	Process table.Model
	Network table.Model
	// contains filtered or unexported fields
}

Model for main Bubble Tea

func NewModel

func NewModel() Model

NewModel initializates new bubbletea model

func (Model) Init

func (m Model) Init() tea.Cmd

Init calls initial functions if needed

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update Bubble Tea function to Update with incoming events

func (Model) View

func (m Model) View() string

View Renders Bubble Tea UI

type Options

type Options struct {
	Namespace string
	Pod       string
	GRPC      string
}

Options for filter

type Profile

type Profile struct {
	Namespace string
	PodName   string
	Process   string
	Resource  string
	Result    string
}

Profile Row Data to display

type SomeData

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

SomeData stores incoming row data

Jump to

Keyboard shortcuts

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