Documentation

Overview

    Package prechecker checks that all the Cloud Foundry instances are running before a deploy.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type FoundationUnavailableError

    type FoundationUnavailableError struct {
    	FoundationURL string
    	Status        string
    }

    func (FoundationUnavailableError) Error

    type InvalidGetRequestError

    type InvalidGetRequestError struct {
    	FoundationURL string
    	Err           error
    }

    func (InvalidGetRequestError) Error

    func (e InvalidGetRequestError) Error() string

    type NoFoundationsConfiguredError

    type NoFoundationsConfiguredError struct{}

    func (NoFoundationsConfiguredError) Error

    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 config.Environment) error

        AssertAllFoundationsUp will send a request to each Cloud Foundry instance and check that the response status code is 200 OK.