Documentation ¶
Index ¶
- type AppDiffer
- type CCFetcher
- func (fetcher *CCFetcher) FetchDesiredApps(logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client, ...) (<-chan []cc_messages.DesireAppRequestFromCC, <-chan error)
- func (fetcher *CCFetcher) FetchFingerprints(logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client) (<-chan []cc_messages.CCDesiredAppFingerprint, <-chan error)
- func (fetcher *CCFetcher) FetchTaskStates(logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client) (<-chan []cc_messages.CCTaskState, <-chan error)
- type CCTaskClient
- type Fetcher
- type LRPProcessor
- type TaskClient
- type TaskDiffer
- type TaskProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDiffer ¶
type AppDiffer interface { Diff(logger lager.Logger, cancel <-chan struct{}, fingerprints <-chan []cc_messages.CCDesiredAppFingerprint) <-chan error Stale() <-chan []cc_messages.CCDesiredAppFingerprint Missing() <-chan []cc_messages.CCDesiredAppFingerprint Deleted() <-chan []string }
func NewAppDiffer ¶
func NewAppDiffer(existing map[string]*models.DesiredLRPSchedulingInfo) AppDiffer
type CCFetcher ¶
func (*CCFetcher) FetchDesiredApps ¶
func (fetcher *CCFetcher) FetchDesiredApps( logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client, fingerprintCh <-chan []cc_messages.CCDesiredAppFingerprint, ) (<-chan []cc_messages.DesireAppRequestFromCC, <-chan error)
func (*CCFetcher) FetchFingerprints ¶
func (fetcher *CCFetcher) FetchFingerprints( logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client, ) (<-chan []cc_messages.CCDesiredAppFingerprint, <-chan error)
func (*CCFetcher) FetchTaskStates ¶
func (fetcher *CCFetcher) FetchTaskStates( logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client, ) (<-chan []cc_messages.CCTaskState, <-chan error)
type CCTaskClient ¶
type CCTaskClient struct { }
func (*CCTaskClient) FailTask ¶
func (tc *CCTaskClient) FailTask(logger lager.Logger, taskState *cc_messages.CCTaskState, httpClient *http.Client) error
type Fetcher ¶
type Fetcher interface { FetchFingerprints( logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client, ) (<-chan []cc_messages.CCDesiredAppFingerprint, <-chan error) FetchTaskStates( logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client, ) (<-chan []cc_messages.CCTaskState, <-chan error) FetchDesiredApps( logger lager.Logger, cancel <-chan struct{}, httpClient *http.Client, fingerprints <-chan []cc_messages.CCDesiredAppFingerprint, ) (<-chan []cc_messages.DesireAppRequestFromCC, <-chan error) }
type LRPProcessor ¶
type LRPProcessor struct {
// contains filtered or unexported fields
}
func NewLRPProcessor ¶
type TaskClient ¶
type TaskClient interface {
FailTask(logger lager.Logger, taskState *cc_messages.CCTaskState, httpClient *http.Client) error
}
type TaskDiffer ¶
type TaskDiffer interface { Diff(lager.Logger, <-chan []cc_messages.CCTaskState, <-chan struct{}) TasksToFail() <-chan []cc_messages.CCTaskState TasksToCancel() <-chan []string }
func NewTaskDiffer ¶
func NewTaskDiffer(bbsTasks map[string]*models.Task) TaskDiffer
type TaskProcessor ¶
type TaskProcessor struct {
// contains filtered or unexported fields
}
func NewTaskProcessor ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.