Documentation ¶
Index ¶
- func EnvForDir(dir string, base []string) []string
- func GetVCS() *vcsCmd
- func Init(portalProxy interfaces.PortalProxy) (interfaces.StratosPlugin, error)
- func MergeEnvLists(in, out []string) []string
- type Applications
- type CFAppPush
- func (cfAppPush *CFAppPush) AddAdminGroupRoutes(echoGroup *echo.Group)
- func (cfAppPush *CFAppPush) AddSessionGroupRoutes(echoGroup *echo.Group)
- func (cfAppPush *CFAppPush) GetEndpointPlugin() (interfaces.EndpointPlugin, error)
- func (cfAppPush *CFAppPush) GetMiddlewarePlugin() (interfaces.MiddlewarePlugin, error)
- func (cfAppPush *CFAppPush) GetRoutePlugin() (interfaces.RoutePlugin, error)
- func (cfAppPush *CFAppPush) Init() error
- type CloneDetails
- type DeploySource
- type DockerCredentials
- type FolderSourceInfo
- type GitHubSourceInfo
- type GitUrlSourceInfo
- type ManifestResponse
- type MessageType
- type RawManifestApplication
- type SocketMessage
- type SocketWriter
- type StratosProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(portalProxy interfaces.PortalProxy) (interfaces.StratosPlugin, error)
func MergeEnvLists ¶
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) AddSessionGroupRoutes ¶
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)
type CloneDetails ¶
type DeploySource ¶
type DockerCredentials ¶
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
}
type StratosProject ¶
type StratosProject struct {
DeploySource interface{} `json:"deploySource"`
}
Click to show internal directories.
Click to hide internal directories.