controller

package
v3.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package controller is responsible for handling requests from the Server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Deployer        I.Deployer
	SilentDeployer  I.Deployer
	Log             I.Logger
	PushController  I.PushController
	StopController  I.StopController
	StartController I.StartController
	Config          config.Config
	EventManager    I.EventManager
	ErrorFinder     I.ErrorFinder
}

Controller is used to determine the type of request and process it accordingly.

func (*Controller) PutRequestHandler

func (c *Controller) PutRequestHandler(g *gin.Context)

func (*Controller) RunDeployment

func (c *Controller) RunDeployment(deployment *I.Deployment, response *bytes.Buffer) I.DeployResponse

func (*Controller) RunDeploymentViaHttp

func (c *Controller) RunDeploymentViaHttp(g *gin.Context)

RunDeploymentViaHttp checks the request content type and passes it to the Deployer.

type PutRequest

type PutRequest struct {
	State string                 `json:"state"`
	Data  map[string]interface{} `json:"data"`
}

Directories

Path Synopsis
Package deployer will deploy your application.
Package deployer will deploy your application.
bluegreen
Package bluegreen is responsible for concurrently pushing an application to multiple Cloud Foundry instances.
Package bluegreen is responsible for concurrently pushing an application to multiple Cloud Foundry instances.
bluegreen/courier
Package courier interfaces with the Executor to run specific Cloud Foundry CLI commands.
Package courier interfaces with the Executor to run specific Cloud Foundry CLI commands.
bluegreen/courier/executor
Package executor runs commands against the Cloud Foundry binary.
Package executor runs commands against the Cloud Foundry binary.
prechecker
Package prechecker checks that all the Cloud Foundry instances are running before a deploy.
Package prechecker checks that all the Cloud Foundry instances are running before a deploy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL