Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EndpointsCacheResyncPeriod is the period in which we do a full resync of the endpoints cache. EndpointsCacheResyncPeriod = time.Duration(60) * time.Second // PodCacheResyncPeriod is the period in which we do a full resync of the pod cache. PodCacheResyncPeriod = time.Duration(60) * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter for Kubernetes Service Discovery.
func (*Adapter) ListInstances ¶
func (a *Adapter) ListInstances() ([]*api.ServiceInstance, error)
ListInstances queries for the list of service instances currently registered.
func (*Adapter) ListServiceInstances ¶
func (a *Adapter) ListServiceInstances(serviceName string) ([]*api.ServiceInstance, error)
ListServiceInstances queries for the list of service instances currently registered for the given service.
func (*Adapter) ListServices ¶
ListServices queries for the list of services for which instances are currently registered.
type Config ¶
type Config struct { kubepkg.Config // Namespace to target for Kubernetes API calls. // If left empty, defaults to "default" namespace. Namespace auth.Namespace // Client to be used by the Kubernetes adapter. // If no client is provided, then a client is created // according the specified URL/Token/Namespace, if provided, // or from the local service account, if running within a Kubernetes pod. Client kubernetes.Interface }
Config stores configurable attributes of the Kubernetes adapter.
Click to show internal directories.
Click to hide internal directories.