probe

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSLAAC

func IsSLAAC(ip string) bool

IsSLAAC checks if the given IPv6 address is a SLAAC address.

func ToBool added in v0.2.0

func ToBool(path string) (bool, error)

func ToInt added in v0.2.0

func ToInt(path string) (int, error)

func ToString added in v0.2.0

func ToString(path string) (string, error)

Types

type Agent

type Agent struct {
	SystemUUID  string
	RegistryURL string
	Duration    time.Duration
	Server      *registry.Server // Pointer to Server for late initialization.

	LLDPSyncInterval time.Duration
	LLDPSyncDuration time.Duration
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(log logr.Logger, systemUUID, registryURL string, duration, LLDPSyncInterval, LLDPSyncDuration time.Duration) *Agent

NewAgent creates a new Agent with the specified system UUID and registry URL.

func (*Agent) Init

func (a *Agent) Init(ctx context.Context) error

Init initializes the Agent's Server field with network interface data.

func (*Agent) RefreshLLDP added in v0.2.0

func (a *Agent) RefreshLLDP(ctx context.Context) error

RefreshLLDP updates only the LLDP portion of the Agent's Server data. If LLDP collection fails, the previous LLDP data is retained.

func (*Agent) Start

func (a *Agent) Start(ctx context.Context) error

Start begins the periodic registration process.

Jump to

Keyboard shortcuts

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