labelstatus

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module is an fx module for providing LabelStatusFactory.

Types

type LabelStatus

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

LabelStatus holds the status of the labels.

func (*LabelStatus) SetMissing

func (ls *LabelStatus) SetMissing()

SetMissing sets the status to missing with current timestamp.

func (*LabelStatus) Setup

func (ls *LabelStatus) Setup(jobGroup *jobs.JobGroup, lifecycle fx.Lifecycle)

Setup sets up the LabelsStatus's lifecycle hooks.

type LabelStatusFactory

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

LabelStatusFactory is a factory for creating LabelStatus.

func NewLabelStatusFactory

func NewLabelStatusFactory(statusRegistry status.Registry) *LabelStatusFactory

NewLabelStatusFactory creates a new LabelStatusFactory.

func (*LabelStatusFactory) New

func (lsf *LabelStatusFactory) New(labelKey string, policyName string, componentID string) *LabelStatus

New creates a new LabelStatus.

Jump to

Keyboard shortcuts

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