Documentation ¶
Overview ¶
+kubebuilder:validation:Optional
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeStaticServiceDiscovery ¶
func InvokeStaticServiceDiscovery( unmarshaller config.Unmarshaller, lifecycle fx.Lifecycle, entityTrackers *entities.EntityTrackers, ) error
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 +kubebuilder:object:generate=true
func (*EntityConfig) DeepCopy ¶ added in v0.1.2
func (in *EntityConfig) DeepCopy() *EntityConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntityConfig.
func (*EntityConfig) DeepCopyInto ¶ added in v0.1.2
func (in *EntityConfig) DeepCopyInto(out *EntityConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceConfig ¶
type ServiceConfig struct { // Name of the service. Name string `json:"name" validate:"required"` // Entities of the service. Entities []*EntityConfig `json:"entities,omitempty"` }
ServiceConfig describes a service and its entities. swagger:model +kubebuilder:object:generate=true
func (*ServiceConfig) DeepCopy ¶ added in v0.1.2
func (in *ServiceConfig) DeepCopy() *ServiceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceConfig.
func (*ServiceConfig) DeepCopyInto ¶ added in v0.1.2
func (in *ServiceConfig) DeepCopyInto(out *ServiceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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,omitempty"` }
StaticDiscoveryConfig for pre-determined list of services. swagger:model +kubebuilder:object:generate=true
func (*StaticDiscoveryConfig) DeepCopy ¶ added in v0.1.2
func (in *StaticDiscoveryConfig) DeepCopy() *StaticDiscoveryConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticDiscoveryConfig.
func (*StaticDiscoveryConfig) DeepCopyInto ¶ added in v0.1.2
func (in *StaticDiscoveryConfig) DeepCopyInto(out *StaticDiscoveryConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.