Documentation ¶
Index ¶
- func EndpointFields(endpoints *v1.Endpoints) log.Fields
- func NewListWatch(client *kubernetes.Clientset, resource string) *cache.ListWatch
- func NodeFields(node *v1.Node) log.Fields
- func PodFields(svc *v1.Pod) log.Fields
- func ServiceFields(svc *v1.Service) log.Fields
- type EndpointCache
- type NodeCache
- type PodCache
- type ServiceCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListWatch ¶
func NewListWatch(client *kubernetes.Clientset, resource string) *cache.ListWatch
Types ¶
type EndpointCache ¶
type EndpointCache struct {
// contains filtered or unexported fields
}
func NewEndpointCache ¶
func NewEndpointCache(source cache.ListerWatcher, syncInterval time.Duration, bufferSize int) *EndpointCache
func (*EndpointCache) GetByIP ¶
func (s *EndpointCache) GetByIP(ip string) (*v1.Endpoints, error)
GetByIP returns the Endpoint
func (*EndpointCache) GetMetadataByIP ¶
func (s *EndpointCache) GetMetadataByIP(ip string) (map[string]string, error)
GetMetadataByIP returns the Endpoint metadata
type NodeCache ¶
type NodeCache struct {
// contains filtered or unexported fields
}
func NewNodeCache ¶
func (*NodeCache) GetMetadataByIP ¶
GetMetadataByIP returns the node metadata
type PodCache ¶
type PodCache struct {
// contains filtered or unexported fields
}
func NewPodCache ¶
func (*PodCache) GetMetadataByIP ¶
GetMetadataByIP returns the svc metadata
type ServiceCache ¶
type ServiceCache struct {
// contains filtered or unexported fields
}
func NewServiceCache ¶
func NewServiceCache(source cache.ListerWatcher, syncInterval time.Duration, bufferSize int) *ServiceCache
func (*ServiceCache) GetByIP ¶
func (s *ServiceCache) GetByIP(ip string) (*v1.Service, error)
GetByIP returns the service
func (*ServiceCache) GetMetadataByIP ¶
func (s *ServiceCache) GetMetadataByIP(ip string) (map[string]string, error)
GetMetadataByIP returns the svc metadata
Click to show internal directories.
Click to hide internal directories.