Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeStaticServiceDiscovery ¶
InvokeStaticServiceDiscovery causes statically configured services to be uploaded to the tracker.
Types ¶
type EntityConfig ¶
type EntityConfig struct {
// IP address of the entity.
IPAddress string `json:"ip_address" validate:"required,ip"`
// UID of the entity.
UID string `json:"uid"`
// Name of the entity.
Name string `json:"name"`
}
EntityConfig describes a single entity. swagger:model
type FxIn ¶
type FxIn struct {
fx.In
Unmarshaller config.Unmarshaller
Lifecycle fx.Lifecycle
EntityTrackers notifiers.Trackers `name:"entity_trackers"`
}
FxIn describes parameters passed to k8s discovery constructor.
type ServiceConfig ¶
type ServiceConfig struct {
// Name of the service.
Name string `json:"name" validate:"required"`
// Entities of the service.
Entities []*EntityConfig `json:"entities"`
}
ServiceConfig describes a service and its entities. swagger:model
type StaticDiscovery ¶
type StaticDiscovery struct {
// contains filtered or unexported fields
}
StaticDiscovery reads entities from config and writes them to tracker.
type StaticDiscoveryConfig ¶
type StaticDiscoveryConfig struct {
// Services list.
Services []*ServiceConfig `json:"services"`
}
StaticDiscoveryConfig for pre-determined list of services. swagger:model
Click to show internal directories.
Click to hide internal directories.