host

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReachabilityUnknown = iota
	ReachabilityReachable
	ReachabilityUnreachable
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

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

func NewHost

func NewHost(id string, config config.Host, trackingConfig tracking.Config) *Host

func (*Host) AddNetInterface

func (h *Host) AddNetInterface(key string, netInterface *netinterface.NetInterface)

func (*Host) ClearPmaasEntityId

func (h *Host) ClearPmaasEntityId()

func (*Host) CloseStubIfPresent added in v0.0.3

func (h *Host) CloseStubIfPresent()

func (*Host) Data

func (h *Host) Data() tracking.DataSample

func (*Host) GetStub added in v0.0.3

func (h *Host) GetStub(container spi.IPMAASContainer) entities.Host

func (*Host) HostData added in v0.0.3

func (h *Host) HostData() data.HostData

func (*Host) Id

func (h *Host) Id() string

func (*Host) IpAddress

func (h *Host) IpAddress() string

func (*Host) Name

func (h *Host) Name() string

func (*Host) NetInterfaces

func (h *Host) NetInterfaces() iter.Seq2[string, *netinterface.NetInterface]

func (*Host) PingCount added in v0.0.3

func (h *Host) PingCount() int

func (*Host) PingEnabled added in v0.0.3

func (h *Host) PingEnabled() bool

func (*Host) PingTimeoutSeconds added in v0.0.3

func (h *Host) PingTimeoutSeconds() int

func (*Host) PingUseIcmp added in v0.0.3

func (h *Host) PingUseIcmp() bool

func (*Host) PmaasEntityId

func (h *Host) PmaasEntityId() string

func (*Host) SetPmaasEntityId

func (h *Host) SetPmaasEntityId(pmassEntityId string)

func (*Host) SnmpEnabled added in v0.0.3

func (h *Host) SnmpEnabled() bool

func (*Host) TrackingConfig added in v0.0.3

func (h *Host) TrackingConfig() tracking.Config

func (*Host) Update

func (h *Host) Update(newData *common.HostData, events *[]any)

Jump to

Keyboard shortcuts

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