Documentation
¶
Index ¶
- type Status
- type Tracker
- func (tr *Tracker) ClearValidationError()
- func (tr *Tracker) GetStatus() Status
- func (tr *Tracker) SetError(err error)
- func (tr *Tracker) SetLastConfigRendered(t time.Time)
- func (tr *Tracker) SetLastConfigValid(t time.Time)
- func (tr *Tracker) SetLastProxyReload(t time.Time)
- func (tr *Tracker) SetLastSync(t time.Time)
- func (tr *Tracker) SetValidationError(verr *ValidationError)
- type Updates
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status struct { LastUpdated Updates `json:"last_updated"` LastError error `json:"last_error"` ValidationError *ValidationError `json:"validation_error"` }
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker is responsible for keeping track of state and updates throughout Beethoven. It serves as a common information hub to the API
func (*Tracker) ClearValidationError ¶
func (tr *Tracker) ClearValidationError()
func (*Tracker) SetLastConfigRendered ¶
SetLastConfigRendered will set the time we rendered a temporary config
func (*Tracker) SetLastConfigValid ¶
SetLastConfigValid captures the last time we had a successful rendered config validate via the proxy
func (*Tracker) SetLastProxyReload ¶
SetLastProxyReload the last time we executed a reload on the proxy
func (*Tracker) SetLastSync ¶
SetLastSync will set the time we fetched a snapshot from Marathon
func (*Tracker) SetValidationError ¶
func (tr *Tracker) SetValidationError(verr *ValidationError)
type ValidationError ¶
Click to show internal directories.
Click to hide internal directories.