interfaces

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlueGreener

type BlueGreener interface {
	Push(
		environment config.Environment,
		appPath string,
		deploymentInfo S.DeploymentInfo,
		response io.Writer,
	) error
}

BlueGreener interface.

type Courier

type Courier interface {
	Login(api, username, password, org, space string, skipSSL bool) ([]byte, error)
	Delete(appName string) ([]byte, error)
	Push(appName, appLocation string, instances uint16) ([]byte, error)
	Rename(oldName, newName string) ([]byte, error)
	MapRoute(appName, domain 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)
	CleanUp() error
}

Courier interface.

type Deployer

type Deployer interface {
	Deploy(
		req *http.Request,
		environment,
		org,
		space,
		appName,
		contentType string,
		response io.Writer,
	) (int, error)
}

Deployer interface.

type Endpoints

type Endpoints interface {
	Deploy(c *gin.Context)
}

Endpoints interface.

type EventManager

type EventManager interface {
	AddHandler(handler Handler, eventType string) error
	Emit(event S.Event) error
}

EventManager interface.

type Executor

type Executor interface {
	Execute(args ...string) ([]byte, error)
	ExecuteInDirectory(directory string, args ...string) ([]byte, error)
	CleanUp() error
}

Executor interface.

type Extractor

type Extractor interface {
	Unzip(source, destination, manifest string) error
}

Extractor interface.

type Fetcher

type Fetcher interface {
	Fetch(url, manifest string) (string, error)
	FetchZipFromRequest(*http.Request) (string, error)
}

Fetcher interface.

type Handler

type Handler interface {
	OnEvent(event S.Event) error
}

Handler interface.

type Prechecker

type Prechecker interface {
	AssertAllFoundationsUp(environment config.Environment) error
}

Prechecker interface.

type Pusher

type Pusher interface {
	Login(foundationURL string, deploymentInfo S.DeploymentInfo, response io.Writer) error
	Push(appPath string, appExists bool, deploymentInfo S.DeploymentInfo, response io.Writer) error
	Rollback(appExists bool, deploymentInfo S.DeploymentInfo) error
	DeleteVenerable(deploymentInfo S.DeploymentInfo, foundationURL string) error
	CleanUp() error
	Exists(appName string) bool
}

Pusher interface.

type PusherFactory

type PusherFactory interface {
	CreatePusher() (Pusher, error)
}

PusherFactory interface.

type Randomizer

type Randomizer interface {
	StringRunes(length int) string
}

Randomizer interface.

Jump to

Keyboard shortcuts

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