Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIServer string `yaml:"api_server"` // TODO: not used
Namespaces []string `yaml:"namespaces"`
Pod *PodConfig `yaml:"pod"`
Service *ServiceConfig `yaml:"service"`
}
type KubeDiscoverer ¶ added in v0.57.0
func NewKubeDiscoverer ¶ added in v0.57.0
func NewKubeDiscoverer(cfg Config) (*KubeDiscoverer, error)
func (*KubeDiscoverer) Discover ¶ added in v0.57.0
func (d *KubeDiscoverer) Discover(ctx context.Context, in chan<- []model.TargetGroup)
func (*KubeDiscoverer) String ¶ added in v0.57.0
func (d *KubeDiscoverer) String() string
type PodTarget ¶
type PodTarget struct {
model.Base `hash:"ignore"`
Address string
Namespace string
Name string
Annotations map[string]any
Labels map[string]any
NodeName string
PodIP string
ControllerName string
ControllerKind string
ContName string
Image string
Env map[string]any
Port string
PortName string
PortProtocol string
// contains filtered or unexported fields
}
type ServiceConfig ¶ added in v0.57.0
type ServiceTarget ¶
type ServiceTarget struct {
model.Base `hash:"ignore"`
Address string
Namespace string
Name string
Annotations map[string]any
Labels map[string]any
Port string
PortName string
PortProtocol string
ClusterIP string
ExternalName string
Type string
// contains filtered or unexported fields
}
func (ServiceTarget) Hash ¶
func (s ServiceTarget) Hash() uint64
func (ServiceTarget) TUID ¶
func (s ServiceTarget) TUID() string
Click to show internal directories.
Click to hide internal directories.