cfapppush

package
v2.0.0-beta-001+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 41 Imported by: 0

README

Note: Plugin contains non-Glide managed dependencies

The CF CLI code is checked in as a non-Glide managed dependency. The CF CLI repository is of significant size (200+ MB) and it would significantly slow down deployment time if Glide dependencies had to be downloaded every time the UI is built.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvForDir

func EnvForDir(dir string, base []string) []string

func GetVCS

func GetVCS() *vcsCmd

Currently only git is supported

func Init

func MergeEnvLists

func MergeEnvLists(in, out []string) []string

Types

type Applications

type Applications struct {
	Applications []RawManifestApplication `yaml:"applications"`
}

type CFAppPush

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

func (*CFAppPush) AddAdminGroupRoutes

func (cfAppPush *CFAppPush) AddAdminGroupRoutes(echoGroup *echo.Group)

func (*CFAppPush) AddSessionGroupRoutes

func (cfAppPush *CFAppPush) AddSessionGroupRoutes(echoGroup *echo.Group)

func (*CFAppPush) GetEndpointPlugin

func (cfAppPush *CFAppPush) GetEndpointPlugin() (interfaces.EndpointPlugin, error)

func (*CFAppPush) GetMiddlewarePlugin

func (cfAppPush *CFAppPush) GetMiddlewarePlugin() (interfaces.MiddlewarePlugin, error)

func (*CFAppPush) GetRoutePlugin

func (cfAppPush *CFAppPush) GetRoutePlugin() (interfaces.RoutePlugin, error)

func (*CFAppPush) Init

func (cfAppPush *CFAppPush) Init() error

type CloneDetails

type CloneDetails struct {
	Url    string
	Branch string
	Commit string
}

type DeploySource

type DeploySource struct {
	SourceType string `json:"type"`
	Timestamp  int64  `json:"timestamp"`
}

type DockerCredentials

type DockerCredentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type FolderSourceInfo

type FolderSourceInfo struct {
	DeploySource
	WaitAfterUpload bool     `json:"wait"`
	Files           int      `json:"files"`
	Folders         []string `json:"folders,omitempty"`
}

type GitHubSourceInfo

type GitHubSourceInfo struct {
	DeploySource
	Project    string `json:"project"`
	Branch     string `json:"branch"`
	Url        string `json:"url"`
	CommitHash string `json:"commit"`
}

Structure used to provide metadata about the GitHub source

type GitUrlSourceInfo

type GitUrlSourceInfo struct {
	DeploySource
	Project    string `json:"project"`
	Branch     string `json:"branch"`
	Url        string `json:"url"`
	CommitHash string `json:"commit"`
}

Structure used to provide metadata about the Git Url source

type ManifestResponse

type ManifestResponse struct {
	Manifest string
}

type MessageType

type MessageType int
const (
	DATA MessageType = iota + 20000
	MANIFEST
	CLOSE_SUCCESS
)

Success

const (
	CLOSE_PUSH_ERROR MessageType = iota + 40000
	CLOSE_NO_MANIFEST
	CLOSE_INVALID_MANIFEST
	CLOSE_FAILED_CLONE
	CLOSE_FAILED_NO_BRANCH
	CLOSE_FAILURE
	CLOSE_NO_SESSION
	CLOSE_NO_CNSI
	CLOSE_NO_CNSI_USERTOKEN
)

Close - error cases

const (
	EVENT_CLONED MessageType = iota + 10000
	EVENT_FETCHED_MANIFEST
	EVENT_PUSH_STARTED
	EVENT_PUSH_COMPLETED
)

Events

const (
	SOURCE_REQUIRED MessageType = iota + 30000
	SOURCE_GITHUB
	SOURCE_FOLDER
	SOURCE_FILE
	SOURCE_FILE_DATA
	SOURCE_FILE_ACK
	SOURCE_GITURL
	SOURCE_WAIT_ACK
)

Source exchange messages

type RawManifestApplication

type RawManifestApplication struct {
	Name                    string                 `yaml:"name,omitempty"`
	Buildpack               string                 `yaml:"buildpack,omitempty"`
	Command                 string                 `yaml:"command,omitempty"`
	DeprecatedDomain        interface{}            `yaml:"domain,omitempty"`
	DeprecatedDomains       interface{}            `yaml:"domains,omitempty"`
	DeprecatedHost          interface{}            `yaml:"host,omitempty"`
	DeprecatedHosts         interface{}            `yaml:"hosts,omitempty"`
	DeprecatedNoHostname    interface{}            `yaml:"no-hostname,omitempty"`
	DiskQuota               string                 `yaml:"disk_quota,omitempty"`
	Docker                  rawDockerInfo          `yaml:"docker,omitempty"`
	DropletPath             string                 `yaml:"droplet-path,omitempty"`
	EnvironmentVariables    map[string]interface{} `yaml:"env,omitempty"`
	HealthCheckHTTPEndpoint string                 `yaml:"health-check-http-endpoint,omitempty"`
	HealthCheckType         string                 `yaml:"health-check-type,omitempty"`
	Instances               *int                   `yaml:"instances,omitempty"`
	Memory                  string                 `yaml:"memory,omitempty"`
	NoRoute                 bool                   `yaml:"no-route,omitempty"`
	Path                    string                 `yaml:"path,omitempty"`
	RandomRoute             bool                   `yaml:"random-route,omitempty"`
	Routes                  []rawManifestRoute     `yaml:"routes,omitempty"`
	Services                []string               `yaml:"services,omitempty"`
	StackName               string                 `yaml:"stack,omitempty"`
	Timeout                 int                    `yaml:"timeout,omitempty"`
	DockerImage             string                 `json:"docker_image,omitempty"`
	DockerCredentials       DockerCredentials      `json:"docker_credentials,omitempty"`
}

Based on manifest.rawManifestApplicaiton

type SocketMessage

type SocketMessage struct {
	Message   string      `json:"message"`
	Timestamp int64       `json:"timestamp"`
	Type      MessageType `json:"type"`
}

type SocketWriter

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

func (*SocketWriter) Write

func (sw *SocketWriter) Write(data []byte) (int, error)

type StratosProject

type StratosProject struct {
	DeploySource interface{} `json:"deploySource"`
}

Jump to

Keyboard shortcuts

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