istio: Index | Files

package pod

import ""


Package Files



const (
    LabelZoneRegion        = ""
    LabelZoneFailureDomain = ""

k8s well known labels

type Cache Uses

type Cache interface {
    GetPodByIP(ip string) (Info, bool)

Cache for pod Info.

func NewCache Uses

func NewCache(listener Listener) (Cache, event.Handler)

NewCache creates a cache and its update handler

type Info Uses

type Info struct {
    IP       string
    FullName resource.Name
    Labels   map[string]string
    Locality string

    // ServiceAccountName the Spiffe name for the Pod service account.
    ServiceAccountName string

    NodeName string

Info for a Pod.

type Listener Uses

type Listener struct {
    PodAdded   func(info Info)
    PodUpdated func(info Info)
    PodDeleted func(info Info)

Listener is an observer of updates to the pod cache.

Package pod imports 7 packages (graph) and is imported by 2 packages. Updated 2019-12-09. Refresh now. Tools for package owners.