Documentation ¶
Index ¶
Constants ¶
View Source
const ( JobNameSyncLogs = "sync-logs" JobNameAddLogStream = "add-log-stream" JobNameRemoveLogStream = "remove-log-stream" JobNameCheckPodData = "check-pod-data" JobNameDumpResourcePrefix = "dump" )
View Source
const (
ResyncTime = time.Second * 5
)
todo: decrease syn-log frequency
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Options // contains filtered or unexported fields }
todo: move job handling into job.go
func NewController ¶
func NewController( kubeclientset kubernetes.Interface, dynamicclientset dynamic.Interface, opts Options, ) (*Controller, error)
func (*Controller) Start ¶
func (controller *Controller) Start(nWorkers int, expr filter.Expression) error
func (*Controller) Stop ¶
func (controller *Controller) Stop() error
type HandleKind ¶
type HandleKind string
const ( HandleAdd HandleKind = "Add" HandleUpdate HandleKind = "Edit" HandleDelete HandleKind = "Delete" )
type LogStreamOptions ¶
type Stream ¶
type Stream interface { // Sync new data from stream source into stream destination. Sync() error // Close the streamer. Close() error }
func NewLogStream ¶
func NewLogStream(opts LogStreamOptions) (Stream, error)
Click to show internal directories.
Click to hide internal directories.