Documentation
¶
Index ¶
- Constants
- func NewMonitRetryClient(delegate HTTPClient, maxUnavailableAttempts uint, maxOtherAttempts uint, ...) httpclient.Client
- func NewMonitRetryStrategy(retryable RequestRetryable, maxUnavailableAttempts uint, maxOtherAttempts uint, ...) boshretry.RetryStrategy
- type Client
- type ClientProvider
- type HTTPClient
- type RequestRetryable
- type Service
- type Status
Constants ¶
View Source
const ( StatusUnknown = "unknown" StatusStarting = "starting" StatusRunning = "running" StatusFailing = "failing" )
Variables ¶
This section is empty.
Functions ¶
func NewMonitRetryClient ¶
func NewMonitRetryClient( delegate HTTPClient, maxUnavailableAttempts uint, maxOtherAttempts uint, retryDelay time.Duration, logger boshlog.Logger, ) httpclient.Client
func NewMonitRetryStrategy ¶
func NewMonitRetryStrategy( retryable RequestRetryable, maxUnavailableAttempts uint, maxOtherAttempts uint, delay time.Duration, timeService clock.Clock, ) boshretry.RetryStrategy
Types ¶
type Client ¶
type Client interface {
ServicesInGroup(name string) (services []string, err error)
StartService(name string) (err error)
StopService(name string) (err error)
UnmonitorService(name string) (err error)
Status() (status Status, err error)
}
func NewHTTPClient ¶
func NewHTTPClient( host, username, password string, shortClient HTTPClient, longClient HTTPClient, logger boshlog.Logger, ) Client
NewHTTPClient creates a new monit client
status & start use the shortClient unmonitor & stop use the longClient
type ClientProvider ¶
func NewProvider ¶
func NewProvider(platform boshplatform.Platform, logger boshlog.Logger) ClientProvider
type RequestRetryable ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.