Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶ added in v0.10.0
type Discovery struct {
// contains filtered or unexported fields
}
Discovery implements service discovery using Kubernetes Endpoints.
func NewK8sDiscovery ¶
NewK8sDiscovery creates a new K8sDiscovery instance.
func (*Discovery) Close ¶ added in v0.10.0
Close cleans up resources used by the Kubernetes discovery provider.
func (*Discovery) GetInstances ¶ added in v0.10.0
func (k *Discovery) GetInstances( ctx context.Context, options provider.GetInstanceOptions, ) ([]provider.Instancer, error)
GetInstances returns the current list of service instances from Kubernetes endpoints.
type Options ¶
type Options struct {
// APIServer is the Kubernetes API server URL (e.g., "https://kubernetes.default.svc")
APIServer string
// KubeConfig is the path to kubeconfig file
KubeConfig string
// BearerToken is the authentication token
BearerToken string
// Insecure allows insecure server connections when using HTTPS
Insecure bool
}
Options defines the configuration for the Kubernetes discovery provider.
Click to show internal directories.
Click to hide internal directories.