Documentation
¶
Index ¶
- type BlueGreener
- type Courier
- func (c *Courier) CleanUp() error
- func (c *Courier) Delete(appName string) ([]byte, error)
- func (c *Courier) Exists(appName string) bool
- func (c *Courier) Login(api, username, password, org, space string, skipSSL bool) ([]byte, error)
- func (c *Courier) MapRoute(appName, domain string) ([]byte, error)
- func (c *Courier) Push(appName, appLocation string) ([]byte, error)
- func (c *Courier) Rename(appName, newAppName string) ([]byte, error)
- type Deployer
- type Env
- type EventManager
- type Executor
- type Extractor
- type Fetcher
- type Handler
- type Prechecker
- type Pusher
- func (p *Pusher) CleanUp() error
- func (p *Pusher) Exists(appName string) bool
- func (p *Pusher) FinishPush(deploymentInfo S.DeploymentInfo) error
- func (p *Pusher) Login(foundationURL string, deploymentInfo S.DeploymentInfo, out io.Writer) error
- func (p *Pusher) Push(appPath, domain string, deploymentInfo S.DeploymentInfo, out io.Writer) error
- func (p *Pusher) Rollback(deploymentInfo S.DeploymentInfo) error
- type PusherCreator
- type Randomizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlueGreener ¶
type BlueGreener struct {
PushCall struct {
Received struct {
Environment config.Environment
AppPath string
DeploymentInfo S.DeploymentInfo
Out io.Writer
}
Returns struct {
Error error
}
}
}
func (*BlueGreener) Push ¶
func (b *BlueGreener) Push(environment config.Environment, appPath string, deploymentInfo S.DeploymentInfo, out io.Writer) error
type Courier ¶
type Courier struct {
LoginCall struct {
Received struct {
FoundationURL string
Username string
Password string
Org string
Space string
SkipSSL bool
}
Returns struct {
Output []byte
Error error
}
}
DeleteCall struct {
Received struct {
AppName string
}
Returns struct {
Output []byte
Error error
}
}
PushCall struct {
Received struct {
AppName string
AppPath string
}
Returns struct {
Output []byte
Error error
}
}
RenameCall struct {
Received struct {
AppName string
AppNameVenerable string
}
Returns struct {
Output []byte
Error error
}
}
MapRouteCall struct {
Received struct {
AppName string
Domain string
}
Returns struct {
Output []byte
Error error
}
}
ExistsCall struct {
Received struct {
AppName string
}
Returns struct {
Bool bool
}
}
CleanUpCall struct {
Returns struct {
Error error
}
}
}
type Deployer ¶
type Env ¶
type EventManager ¶
type EventManager struct {
AddHandlerCall struct {
Received struct {
Handler I.Handler
EventType string
}
Returns struct {
Error error
}
}
EmitCall struct {
TimesCalled int
Received struct {
Event S.Event
}
Returns struct {
Error error
}
}
}
func (*EventManager) AddHandler ¶
func (e *EventManager) AddHandler(handler I.Handler, eventType string) error
type Executor ¶
type Executor struct {
ExecuteCall struct {
Received struct {
Args []string
}
Returns struct {
Output []byte
Error error
}
}
ExecuteInDirectoryCall struct {
Received struct {
AppLocation string
Args []string
}
Returns struct {
Output []byte
Error error
}
}
CleanUpCall struct {
Returns struct {
Error error
}
}
}
type Extractor ¶
type Fetcher ¶
type Handler ¶
type Prechecker ¶
type Prechecker struct {
AssertAllFoundationsUpCall struct {
Received struct {
Environment config.Environment
}
Returns struct {
Error error
}
}
}
func (*Prechecker) AssertAllFoundationsUp ¶
func (p *Prechecker) AssertAllFoundationsUp(environment config.Environment) error
type Pusher ¶
type Pusher struct {
LoginCall struct {
Received struct {
FoundationURL string
DeploymentInfo S.DeploymentInfo
Out io.Writer
}
Write struct {
Output string
}
Returns struct {
Error error
}
}
PushCall struct {
Received struct {
AppPath string
Domain string
DeploymentInfo S.DeploymentInfo
Out io.Writer
}
Write struct {
Output string
}
Returns struct {
Error error
}
}
RollbackCall struct {
Received struct {
DeploymentInfo S.DeploymentInfo
}
Returns struct {
Error error
}
}
FinishPushCall struct {
Received struct {
DeploymentInfo S.DeploymentInfo
}
Returns struct {
Error error
}
}
CleanUpCall struct {
Returns struct {
Error error
}
}
ExistsCall struct {
Received struct {
AppName string
}
Returns struct {
Exists bool
}
}
}
func (*Pusher) FinishPush ¶
func (p *Pusher) FinishPush(deploymentInfo S.DeploymentInfo) error
type PusherCreator ¶
type PusherCreator struct {
CreatePusherCall struct {
TimesCalled int
Returns struct {
Pushers []interfaces.Pusher
Error error
}
}
}
func (*PusherCreator) CreatePusher ¶
func (p *PusherCreator) CreatePusher() (interfaces.Pusher, error)
type Randomizer ¶
type Randomizer struct {
RandomizeCall struct {
Received struct {
Length int
}
Returns struct {
Runes string
}
}
}
func (*Randomizer) StringRunes ¶
func (r *Randomizer) StringRunes(length int) string
Click to show internal directories.
Click to hide internal directories.