reporting

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpdateTypeLabel

func GetUpdateTypeLabel(updateType UpdateType) string

func ReportUpdated

func ReportUpdated(update *UpdateResult, scfg *config.StrategyConfig)

Types

type Change

type Change struct {
	Old           resource.Quantity
	New           resource.Quantity
	Type          UpdateType
	ContainerName string
}

type Payload

type Payload struct {
	Text string `json:"text"`
}

type ResultType

type ResultType int
const (
	ResultTypeSuccess ResultType = iota
	ResultTypeFailed
	ResultTypeDryRun
)

type UpdateResult

type UpdateResult struct {
	Changes []Change
	Type    ResultType
	Key     string
	Error   error
}

type UpdateType

type UpdateType int
const (
	UpdateTypeCpuRequest UpdateType = iota
	UpdateTypeMemoryRequest
	UpdateTypeCpuLimit
	UpdateTypeMemoryLimit
)

Jump to

Keyboard shortcuts

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