status

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconSender

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

BeaconSender sends beacon messages to the cluster manager.

func NewBeaconSender

func NewBeaconSender(
	c Config,
	opt grpc.DialOption,
	log logr.Logger,
) (*BeaconSender, error)

NewBeaconSender creates a new BeaconSender for sending beacon messages.

func (*BeaconSender) Run

func (s *BeaconSender) Run(ctx context.Context)

Run starts the beacon sender.

type ComponentStatusSender

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

ComponentStatusSender sends component status data to the cluster manager.

func New

func New(c Config, fn componentStatusComposer, opt grpc.DialOption, log logr.Logger) (*ComponentStatusSender, error)

New creates a new ComponentStatusSender.

func (*ComponentStatusSender) Run

Run starts the component status sender.

type Config

type Config struct {
	// Enable is the flag to enable sending component status.
	Enable bool `yaml:"enable"`
	// Name is the name of the component.
	Name string `yaml:"name"`
	// ClusterManagerServerWorkerServiceAddr is the address of the cluster manager server worker service.
	ClusterManagerServerWorkerServiceAddr string `yaml:"clusterManagerServerWorkerServiceAddr"`
	// InitalDelay is the inital delay at which the sender sends the first status message to the server.
	InitalDelay time.Duration `yaml:"initialDelay"`
	// Interval is the interval at which the sender sends status message to the server.
	Interval time.Duration `yaml:"interval"`
}

Config is the configuration for the sender.

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration.

type PodStatusSender

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

PodStatusSender sends pod status messages to the cluster manager.

func NewPodStatusSender

func NewPodStatusSender(
	c Config,
	ns, label string,
	opt grpc.DialOption,
	log logr.Logger,
) (*PodStatusSender, error)

NewPodStatusSender creates a new PodStatusSender for sending pod status.

func (*PodStatusSender) Run

func (s *PodStatusSender) Run(ctx context.Context)

Run starts the pod status sender.

Jump to

Keyboard shortcuts

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