Documentation ¶
Index ¶
- type Action
- type ActionCreator
- type Authorization
- type Binding
- type BlueGreener
- type CFContext
- type Client
- type Controller
- type Courier
- type DeployResponse
- type Deployer
- type Deployment
- type DeploymentError
- type DeploymentType
- type Endpoints
- type ErrorFinder
- type ErrorMatcher
- type Event
- type EventManager
- type Executor
- type Extractor
- type Fetcher
- type Handler
- type HealthChecker
- type IEvent
- type LogMatchedError
- type Logger
- type Prechecker
- type PushController
- type PushManagerFactory
- type Randomizer
- type StartController
- type StartManagerFactory
- type StartStopEventData
- type StopController
- type StopManagerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionCreator ¶
type ActionCreator interface { SetUp() error CleanUp() OnStart() error OnFinish(environment S.Environment, response io.ReadWriter, err error) DeployResponse Create(environment S.Environment, response io.ReadWriter, foundationURL string) (Action, error) InitiallyError(initiallyErrors []error) error ExecuteError(executeErrors []error) error UndoError(executeErrors, undoErrors []error) error SuccessError(successErrors []error) error }
type Authorization ¶
type BlueGreener ¶
type BlueGreener interface { Execute( actionCreator ActionCreator, environment S.Environment, response io.ReadWriter, ) error }
type Controller ¶
type Controller interface { RunDeployment(deployment *Deployment, response *bytes.Buffer) DeployResponse RunDeploymentViaHttp(g *gin.Context) PutRequestHandler(g *gin.Context) }
type Courier ¶
type Courier interface { Login(foundationURL, username, password, org, space string, skipSSL bool) ([]byte, error) Delete(appName string) ([]byte, error) Push(appName, appLocation, hostname string, instances uint16) ([]byte, error) Rename(oldName, newName string) ([]byte, error) MapRoute(appName, domain, hostname string) ([]byte, error) MapRouteWithPath(appName, domain, hostname, path string) ([]byte, error) UnmapRoute(appName, domain, hostname string) ([]byte, error) UnmapRouteWithPath(appName, domain, hostname, path string) ([]byte, error) DeleteRoute(domain, hostname string) ([]byte, error) CreateService(service, plan, name string) ([]byte, error) BindService(appName, serviceName string) ([]byte, error) UnbindService(appName, serviceName string) ([]byte, error) DeleteService(serviceName string) ([]byte, error) Start(appName string) ([]byte, error) Stop(appName string) ([]byte, error) Restage(appName string) ([]byte, error) Logs(appName string) ([]byte, error) Exists(appName string) bool Cups(appName string, body string) ([]byte, error) Uups(appName string, body string) ([]byte, error) Domains() ([]string, error) CleanUp() error }
Courier interface.
type DeployResponse ¶
type DeployResponse struct { StatusCode int DeploymentInfo *structs.DeploymentInfo Error error }
type Deployer ¶
type Deployer interface { Deploy( deploymentInfo *structs.DeploymentInfo, environment structs.Environment, actionCreator ActionCreator, response io.ReadWriter, ) *DeployResponse }
Deployer interface.
type Deployment ¶
type Deployment struct { Body *[]byte Type DeploymentType Authorization Authorization CFContext CFContext }
type DeploymentError ¶
type DeploymentType ¶
type ErrorFinder ¶
type ErrorFinder interface {
FindErrors(responseString string) []LogMatchedError
}
type ErrorMatcher ¶
type ErrorMatcher interface { Descriptor() string Match(matchTo []byte) LogMatchedError }
type EventManager ¶
type EventManager interface { AddHandler(handler Handler, eventType string) error Emit(event Event) error EmitEvent(event IEvent) error AddBinding(binding Binding) }
EventManager interface.
type Executor ¶
type Executor interface { Execute(args ...string) ([]byte, error) ExecuteInDirectory(directory string, args ...string) ([]byte, error) CleanUp() error }
Executor interface.
type Fetcher ¶
type Fetcher interface { Fetch(url, manifest string) (string, error) FetchZipFromRequest(body io.Reader) (string, string, error) }
Fetcher interface.
type HealthChecker ¶ added in v0.7.0
HealthChecker interface.
type LogMatchedError ¶
type Prechecker ¶
type Prechecker interface {
AssertAllFoundationsUp(environment S.Environment) error
}
Prechecker interface.
type PushController ¶
type PushController interface {
RunDeployment(deployment *Deployment, response *bytes.Buffer) (deployResponse DeployResponse)
}
type PushManagerFactory ¶
type PushManagerFactory interface {
PushManager(deployEventData structs.DeployEventData, cfContext CFContext, auth Authorization, env structs.Environment, envVars map[string]string) ActionCreator
}
type Randomizer ¶
Randomizer interface.
type StartController ¶
type StartController interface {
StartDeployment(deployment *Deployment, data map[string]interface{}, response *bytes.Buffer) (deployResponse DeployResponse)
}
type StartManagerFactory ¶
type StartManagerFactory interface {
StartManager(deployEventData structs.DeployEventData) ActionCreator
}
type StartStopEventData ¶
type StartStopEventData struct { FoundationURL string Context CFContext Courier interface{} Response io.ReadWriter }
PushEventData has a RequestBody and DeploymentInfo.
type StopController ¶
type StopController interface {
StopDeployment(deployment *Deployment, data map[string]interface{}, response *bytes.Buffer) (deployResponse DeployResponse)
}
type StopManagerFactory ¶
type StopManagerFactory interface {
StopManager(deployEventData structs.DeployEventData) ActionCreator
}
Source Files ¶
- action.go
- bluegreener.go
- client.go
- controller.go
- courier.go
- deployer.go
- endpoints.go
- error.go
- errorfinder.go
- errormatcher.go
- eventmanager.go
- executor.go
- extractor.go
- fetcher.go
- handler.go
- healthchecker.go
- logger.go
- prechecker.go
- pushcontroller.go
- randomizer.go
- startcontroller.go
- startstopper_event_data.go
- stopcontroller.go
Click to show internal directories.
Click to hide internal directories.