murre

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FETCH_CONTAINERS_SPEC_RATIO = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerStats

type ContainerStats struct {
	Namespace     string
	PodName       string
	ContainerName string
	CpuUsage      float64
	MemoryBytes   float64
	LastUpdateTs  time.Time
}

type DataFetcher

type DataFetcher interface {
	GetMetrics() ([]*k8s.NodeMetrics, error)
	GetContainers() ([]*k8s.ContainerResources, error)
}

type Murre

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

func NewMurre

func NewMurre(ui UI, config *config.Config) (*Murre, error)

func (*Murre) Run

func (m *Murre) Run() error

func (*Murre) Stop

func (m *Murre) Stop()

type UI

type UI interface {
	Update(stats []*k8s.Stats)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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