watch

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatchBuffer

type WatchBuffer struct {
	Resource ccapi.ResourceType
	// contains filtered or unexported fields
}

Implementation of io.ReadCloser

func NewWatchBuffer

func NewWatchBuffer(resource ccapi.ResourceType) *WatchBuffer

func (*WatchBuffer) Close

func (w *WatchBuffer) Close() error

Close all channels

func (*WatchBuffer) EmitWatchEvent

func (c *WatchBuffer) EmitWatchEvent(eType watch.EventType, object runtime.Object) error

func (*WatchBuffer) Read

func (w *WatchBuffer) Read(p []byte) (n int, err error)

Read watch events as byte stream

func (*WatchBuffer) Write

func (w *WatchBuffer) Write(data []byte) (nr int, err error)

Write

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL