Documentation ¶
Overview ¶
Package prechecker checks that all the Cloud Foundry instances are running before a deploy.
Index ¶
- func NewFoundationsUnavailableEventBinding(handler func(event FoundationsUnavailableEvent) error) I.Binding
- func NewPrechecker(eventManager I.EventManager) I.Prechecker
- type FoundationUnavailableError
- type FoundationsUnavailableEvent
- type InvalidGetRequestError
- type NoFoundationsConfiguredError
- type Prechecker
- type PrecheckerConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFoundationsUnavailableEventBinding ¶
func NewFoundationsUnavailableEventBinding(handler func(event FoundationsUnavailableEvent) error) I.Binding
func NewPrechecker ¶
func NewPrechecker(eventManager I.EventManager) I.Prechecker
Types ¶
type FoundationUnavailableError ¶ added in v0.6.0
type FoundationUnavailableError struct {}
func (FoundationUnavailableError) Error ¶ added in v0.6.0
func (e FoundationUnavailableError) Error() string
type FoundationsUnavailableEvent ¶
type FoundationsUnavailableEvent struct {}
func (FoundationsUnavailableEvent) Name ¶
func (d FoundationsUnavailableEvent) Name() string
type InvalidGetRequestError ¶ added in v0.6.0
func (InvalidGetRequestError) Error ¶ added in v0.6.0
func (e InvalidGetRequestError) Error() string
type NoFoundationsConfiguredError ¶ added in v0.6.0
type NoFoundationsConfiguredError struct{}
func (NoFoundationsConfiguredError) Error ¶ added in v0.6.0
func (e NoFoundationsConfiguredError) Error() string
type Prechecker ¶
type Prechecker struct {
EventManager I.EventManager
}
Prechecker has an eventmanager used to manage event if prechecks fail.
func (Prechecker) AssertAllFoundationsUp ¶
func (p Prechecker) AssertAllFoundationsUp(environment S.Environment) error
AssertAllFoundationsUp will send a request to each Cloud Foundry instance and check that the response status code is 200 OK.
type PrecheckerConstructor ¶
type PrecheckerConstructor func(eventManager I.EventManager) I.Prechecker
Click to show internal directories.
Click to hide internal directories.