creator

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package creator creates dependencies upon initialization.

Index

Constants

View Source
const ENDPOINT = "/v2/deploy/:environment/:org/:space/:appName"

ENDPOINT is used by the handler to define the deployment endpoint.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	// contains filtered or unexported fields
}

Creator has a config, eventManager, logger and writer for creating dependencies.

func Custom

func Custom(level string, configFilename string) (Creator, error)

Custom returns a custom Creator with an Error.

func Default

func Default() (Creator, error)

Default returns a default Creator and an Error.

func (Creator) CreateConfig

func (c Creator) CreateConfig() config.Config

CreateConfig returns a Config.

func (Creator) CreateControllerHandler

func (c Creator) CreateControllerHandler() *gin.Engine

CreateControllerHandler returns a gin.Engine that implements http.Handler. Sets up the controller endpoint.

func (Creator) CreateCourier added in v0.7.0

func (c Creator) CreateCourier() (I.Courier, error)

CreateCourier returns a courier with an executor.

func (Creator) CreateEventManager

func (c Creator) CreateEventManager() I.EventManager

CreateEventManager returns an EventManager.

func (Creator) CreateFileSystem added in v0.4.0

func (c Creator) CreateFileSystem() *afero.Afero

CreateFileSystem returns a file system.

func (Creator) CreateHTTPClient added in v0.7.0

func (c Creator) CreateHTTPClient() *http.Client

CreateHTTPClient return an http client.

func (Creator) CreateListener

func (c Creator) CreateListener() net.Listener

CreateListener creates a listener TCP and listens for all incoming requests.

func (Creator) CreateLogger

func (c Creator) CreateLogger() I.Logger

CreateLogger returns a Logger.

func (Creator) CreatePusher

func (c Creator) CreatePusher(deploymentInfo S.DeploymentInfo, response io.ReadWriter) (I.Pusher, error)

CreatePusher is used by the BlueGreener.

Returns a pusher and error.

Jump to

Keyboard shortcuts

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