Versions in this module Expand all Collapse all v0 v0.2.2 Dec 18, 2017 Changes in this version type LockDetailData + Workspace string v0.2.1 Dec 4, 2017 v0.2.0 Nov 17, 2017 Changes in this version type Config + GitlabHostname string + GitlabToken string + GitlabUser string + GitlabWebHookSecret string + SlackToken string + Webhooks []WebhookConfig + type DefaultGithubRequestValidator struct + func (d *DefaultGithubRequestValidator) Validate(r *http.Request, secret []byte) ([]byte, error) + type DefaultGitlabRequestParser struct + func (d *DefaultGitlabRequestParser) Validate(r *http.Request, secret []byte) (interface{}, error) type EventsController + GithubRequestValidator GithubRequestValidator + GitlabRequestParser GitlabRequestParser + GitlabWebHookSecret []byte + SupportedVCSHosts []vcs.Host + func (e *EventsController) HandleGithubCommentEvent(w http.ResponseWriter, event *github.IssueCommentEvent, githubReqID string) + func (e *EventsController) HandleGithubPullRequestEvent(w http.ResponseWriter, pullEvent *github.PullRequestEvent, githubReqID string) + func (e *EventsController) HandleGitlabCommentEvent(w http.ResponseWriter, event gitlab.MergeCommentEvent) + func (e *EventsController) HandleGitlabMergeRequestEvent(w http.ResponseWriter, event gitlab.MergeEvent) + type GithubRequestValidator interface + Validate func(r *http.Request, secret []byte) ([]byte, error) + type GitlabRequestParser interface + Validate func(r *http.Request, secret []byte) (interface{}, error) + type WebhookConfig struct + Channel string + Event string + Kind string + WorkspaceRegex string v0.1.3 Nov 16, 2017 Changes in this version + const LockRouteName + type Config struct + AtlantisURL string + DataDir string + GithubHostname string + GithubToken string + GithubUser string + GithubWebHookSecret string + LogLevel string + Port int + RequireApproval bool + type EventsController struct + CommandRunner events.CommandRunner + GithubWebHookSecret []byte + Logger *logging.SimpleLogger + Parser events.EventParsing + PullCleaner events.PullCleaner + Validator GHRequestValidator + func (e *EventsController) HandleCommentEvent(w http.ResponseWriter, event *github.IssueCommentEvent, githubReqID string) + func (e *EventsController) HandlePullRequestEvent(w http.ResponseWriter, pullEvent *github.PullRequestEvent, githubReqID string) + func (e *EventsController) Post(w http.ResponseWriter, r *http.Request) + type GHRequestValidation struct + func (g *GHRequestValidation) Validate(r *http.Request, secret []byte) ([]byte, error) + type GHRequestValidator interface + Validate func(r *http.Request, secret []byte) ([]byte, error) + type LockDetailData struct + Environment string + LockKey string + LockKeyEncoded string + LockedBy string + PullRequestLink string + RepoName string + RepoOwner string + Time time.Time + UnlockURL string + type LockIndexData struct + LockURL string + PullNum int + RepoFullName string + Time time.Time type Server + AtlantisURL string + CommandHandler *events.CommandHandler + EventsController *EventsController + IndexTemplate TemplateWriter + LockDetailTemplate TemplateWriter + Locker locking.Locker + Logger *logging.SimpleLogger + Port int + Router *mux.Router + func (s *Server) DeleteLock(w http.ResponseWriter, _ *http.Request, id string) + func (s *Server) DeleteLockRoute(w http.ResponseWriter, r *http.Request) + func (s *Server) GetLock(w http.ResponseWriter, _ *http.Request, id string) + func (s *Server) GetLockRoute(w http.ResponseWriter, r *http.Request) + func (s *Server) Index(w http.ResponseWriter, _ *http.Request) + type TemplateWriter interface + Execute func(wr io.Writer, data interface{}) error v0.1.2 Aug 24, 2017 Changes in this version type Command + Flags []string v0.1.1 Aug 17, 2017 Changes in this version type EventParser + GithubToken string + type PostApply struct + Commands []string + type PostPlan struct + Commands []string type ProjectConfig + PostApply PostApply + PostPlan PostPlan type ProjectConfigYaml + PostApply PostApply + PostPlan PostPlan type ServerConfig + GithubWebHookSecret string v0.1.0 Aug 2, 2017 Changes in this version + const ProjectConfigFile + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type ApplyExecutor struct + type Command struct + Environment string + Name CommandName + Verbose bool + type CommandContext struct + BaseRepo models.Repo + Command *Command + HeadRepo models.Repo + Log *logging.SimpleLogger + Pull models.PullRequest + User models.User + type CommandExtraArguments struct + Arguments []string + Name string + type CommandHandler struct + func (c *CommandHandler) ExecuteCommand(ctx *CommandContext) + func (c *CommandHandler) SetLockURL(f func(id string) (url string)) + type CommandName int + const Apply + const Help + const Plan + func (c CommandName) String() string + type CommandResponse struct + Command CommandName + Error error + Failure string + ProjectResults []ProjectResult + type CommonData struct + Command string + Log string + Verbose bool + type ConcurrentRunLocker struct + func NewConcurrentRunLocker() *ConcurrentRunLocker + func (c *ConcurrentRunLocker) TryLock(repoFullName string, env string, pullNum int) bool + func (c *ConcurrentRunLocker) Unlock(repoFullName, env string, pullNum int) + type ConfigReader struct + func (c *ConfigReader) Exists(execPath string) bool + func (c *ConfigReader) Read(execPath string) (ProjectConfig, error) + type ErrData struct + Error string + type EventParser struct + GithubUser string + func (e *EventParser) DetermineCommand(comment *github.IssueCommentEvent) (*Command, error) + func (e *EventParser) ExtractCommentData(comment *github.IssueCommentEvent, ctx *CommandContext) error + func (e *EventParser) ExtractPullData(pull *github.PullRequest) (models.PullRequest, models.Repo, error) + func (e *EventParser) ExtractRepoData(ghRepo *github.Repository) (models.Repo, error) + type FailureData struct + Failure string + type GithubCommentRenderer struct + type GithubStatus struct + func (g *GithubStatus) Update(repo models.Repo, pull models.PullRequest, status Status, step string) error + func (g *GithubStatus) UpdateProjectResult(ctx *CommandContext, projectResults []ProjectResult) error + type HelpExecutor struct + type PlanExecutor struct + LockURL func(id string) (url string) + func (p *PlanExecutor) ModifiedProjects(repoFullName string, modifiedFiles []string) []models.Project + type PlanSuccess struct + LockURL string + TerraformOutput string + type PreApply struct + Commands []string + type PrePlan struct + Commands []string + type ProjectConfig struct + ExtraArguments []CommandExtraArguments + PreApply PreApply + PrePlan PrePlan + TerraformVersion *version.Version + func (c *ProjectConfig) GetExtraArguments(command string) []string + type ProjectConfigYaml struct + ExtraArguments []CommandExtraArguments + PreApply PreApply + PrePlan PrePlan + TerraformVersion string + type ProjectResult struct + ApplySuccess string + Error error + Failure string + Path string + PlanSuccess *PlanSuccess + func (p ProjectResult) Status() Status + type PullClosedExecutor struct + func (p *PullClosedExecutor) CleanUpPull(repo models.Repo, pull models.PullRequest) error + type RequestLogger struct + func NewRequestLogger(logger *logging.SimpleLogger) *RequestLogger + func (l *RequestLogger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) + type ResultData struct + Results map[string]string + type Server struct + func NewServer(config ServerConfig) (*Server, error) + func (s *Server) Start() error + type ServerConfig struct + AWSRegion string + AssumeRole string + AtlantisURL string + DataDir string + GithubHostname string + GithubToken string + GithubUser string + LogLevel string + Port int + RequireApproval bool + type Status int + const ApplyStep + const Error + const Failure + const Pending + const PlanStep + const Success + func (s Status) String() string + type Workspace struct + func (w *Workspace) Clone(ctx *CommandContext) (string, error) + func (w *Workspace) Delete(repo models.Repo, pull models.PullRequest) error + func (w *Workspace) GetWorkspace(ctx *CommandContext) (string, error)