creator

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: 29 Imported by: 0

Documentation

Overview

Package creator creates dependencies upon initialization.

Index

Constants

View Source
const ENDPOINT = "/v3/apps/:environment/:org/:space/:appName"

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, provider CreatorModuleProvider) (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) CreateController

func (c Creator) CreateController() I.Controller

func (Creator) CreateControllerHandler

func (c Creator) CreateControllerHandler(controller I.Controller) *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) CreatePushController

func (c Creator) CreatePushController() I.PushController

func (Creator) CreateStartController

func (c Creator) CreateStartController() I.StartController

func (Creator) CreateStopController

func (c Creator) CreateStopController() I.StopController

func (Creator) PushManager

func (c Creator) PushManager(deployEventData structs.DeployEventData, cf I.CFContext, auth I.Authorization, env structs.Environment, envVars map[string]string) I.ActionCreator

func (Creator) StartManager

func (c Creator) StartManager(deployEventData structs.DeployEventData) I.ActionCreator

func (Creator) StopManager

func (c Creator) StopManager(deployEventData structs.DeployEventData) I.ActionCreator

type CreatorModuleProvider

type CreatorModuleProvider struct {
	NewCourier      courier.CourierConstructor
	NewPrechecker   prechecker.PrecheckerConstructor
	NewFetcher      artifetcher.ArtifetcherConstructor
	NewExtractor    extractor.ExtractorConstructor
	NewEventManager eventmanager.EventManagerConstructor
}

Jump to

Keyboard shortcuts

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