ledger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ledger

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

func New

func New(client *kubernetes.Clientset, watchIntervalSec int) *Ledger

func (*Ledger) Close

func (l *Ledger) Close()

func (*Ledger) Register

func (l *Ledger) Register(kindNamespaceName k8s.KindNamespaceName) (<-chan Status, observer.CancelFunc)

Register registers a new channel for observing the status of a given object. The channel will receive updates every watchIntervalSec seconds.

type Status

type Status struct {
	Message     string        `json:"message"`
	PodStatus   k8s.PodStatus `json:"pod_status"`
	LastRestart string        `json:"last_restart"`
}

Jump to

Keyboard shortcuts

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