type podEventType …
const podAdd …
const podModify …
const podDelete …
const eventBufferLen …
type watchEvent …
type sourceFile …
func NewSourceFile(path string, nodeName types.NodeName, period time.Duration, updates chan<- interface{ … }
func newSourceFile(path string, nodeName types.NodeName, period time.Duration, updates chan<- interface{ … }
func (s *sourceFile) run() { … }
func (s *sourceFile) applyDefaults(pod *api.Pod, source string) error { … }
func (s *sourceFile) listConfig() error { … }
func (s *sourceFile) extractFromDir(name string) ([]*v1.Pod, error) { … }
func (s *sourceFile) extractFromFile(filename string) (pod *v1.Pod, err error) { … }
func (s *sourceFile) replaceStore(pods ...*v1.Pod) (err error) { … }