Documentation ¶
Index ¶
- Constants
- func DockerBuildMock()
- func GetRegexParams(regEx, url string) (paramsMap map[string]string)
- func GitCheckout(project Project, git Git) (*git2go.Repository, error)
- func GitCheckoutCommit(hash string, project Project, git Git) (*git2go.Repository, error)
- func GitCloneOptions(git Git) git2go.CloneOptions
- func GitFetch(project Project, git Git) (*git2go.Repository, error)
- func GitFetchOptions(git Git) git2go.FetchOptions
- func LoadBalancerMock()
- func WebsocketMsgMock()
- type Action
- type Arg
- type Docker
- type DockerBuild
- type DockerDeploy
- type DockerRegistry
- type Feature
- type Git
- type GitCommit
- type GitPing
- type GitStatus
- type GitSync
- type HeartBeat
- type Listener
- type ListenerPair
- type LoadBalancer
- type Project
- type Release
- type Secret
- type Service
- type ServiceSpec
- type State
- type Type
- type WebsocketMsg
Constants ¶
View Source
const ( Waiting State = "waiting" Running = "running" Fetching = "fetching" Building = "building" Pushing = "pushing" Complete = "complete" Failed = "failed" Deleting = "deleting" Deleted = "deleted" )
View Source
const ( File Type = "file" Env = "env" Build = "build" Internal = "internal" External = "external" Office = "office" )
View Source
const ( Create Action = "create" Update = "update" Destroy = "destroy" Rollback = "rollback" Status = "status" )
Variables ¶
This section is empty.
Functions ¶
func DockerBuildMock ¶
func DockerBuildMock()
func GetRegexParams ¶
func GitCheckout ¶
func GitCheckout(project Project, git Git) (*git2go.Repository, error)
func GitCheckoutCommit ¶
func GitCloneOptions ¶
func GitCloneOptions(git Git) git2go.CloneOptions
func GitFetchOptions ¶
func GitFetchOptions(git Git) git2go.FetchOptions
func LoadBalancerMock ¶
func LoadBalancerMock()
func WebsocketMsgMock ¶
func WebsocketMsgMock()
Types ¶
type Docker ¶
type Docker struct { Image string `json:"image"` Registry DockerRegistry `json:"registry"` }
type DockerBuild ¶
type DockerBuild struct { Action Action `json:"action"` State State `json:"state"` StateMessage string `json:"stateMessage"` Project Project `json:"project"` Git Git `json:"git"` Feature Feature `json:"feature"` Registry DockerRegistry `json:"registry"` BuildArgs []Arg `json:"buildArgs"` BuildLog string `json:"buildLog"` BuildError string `json:"buildError"` Image string `json:"image"` }
type DockerDeploy ¶
type DockerDeploy struct { Action Action `json:"action"` State State `json:"state"` StateMessage string `json:"stateMessage"` Project Project `json:"project"` Release Release `json:"release"` Docker Docker `json:"docker"` Services []Service `json:"services"` Secrets []Secret `json:"secrets"` Timeout int `json:"timeout"` DeploymentStrategy string `json:"deploymentStrategy"` Environment string `json:"environment"` }
Deploy
func DockerDeployCreateMock ¶
func DockerDeployCreateMock() DockerDeploy
type DockerRegistry ¶
type Git ¶
type Git struct { Url string `json:"gitUrl"` Protocol string `json:"protocol"` Branch string `json:"branch"` Workdir string `json:"workdir"` HeadHash string `json:"headHash,omitempty"` RsaPrivateKey string `json:"rsaPrivateKey" role:"secret"` RsaPublicKey string `json:"rsaPublicKey" role:"secret"` }
type GitCommit ¶
type GitCommit struct { Repository string `json:"repository"` User string `json:"user"` Message string `json:"message"` Ref string `json:"ref"` Hash string `json:"hash"` ParentHash string `json:"parentHash"` Created time.Time `json:"created"` }
func GitCommitMock ¶
func GitCommitMock() GitCommit
type GitPing ¶
func GitPingMock ¶
func GitPingMock() GitPing
type GitStatus ¶
type GitStatus struct { Repository string `json:"repository"` User string `json:"user"` Hash string `json:"hash"` State string `json:"state"` Context string `json:"context"` }
func GitStatusCircleFailedMock ¶
func GitStatusCircleFailedMock() GitStatus
func GitStatusCirclePendingMock ¶
func GitStatusCirclePendingMock() GitStatus
func GitStatusCircleSuccessMock ¶
func GitStatusCircleSuccessMock() GitStatus
type ListenerPair ¶
type LoadBalancer ¶
type LoadBalancer struct { Action Action `json:"action"` State State `json:"state"` StateMessage string `json:"stateMessage"` Name string `json:"name"` Type Type `json:"type"` Project Project `json:"project"` Service Service `json:"service"` ListenerPairs []ListenerPair `json:"portPairs"` DNSName string `json:"dnsName"` Environment string `json:"environment"` }
LoadBalancer
type Project ¶
type Project struct { Action Action `json:"action,omitempty"` Slug string `json:"slug"` Repository string `json:"repository"` NotifyChannels []string `json:"notifyChannels,omitempty"` }
func ProjectCreateMock ¶
func ProjectCreateMock() Project
type ServiceSpec ¶
type WebsocketMsg ¶
type WebsocketMsg struct { Channel string `json:"channel"` Payload interface{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.