mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 20:58:38 +00:00
now all import paths point to github.com
This commit is contained in:
@@ -2,8 +2,9 @@ package middleware
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
"github.com/urfave/negroni"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
)
|
||||
|
||||
func NewNon200Logger(logger *logging.SimpleLogger) *FailedRequestLogger {
|
||||
@@ -11,7 +12,7 @@ func NewNon200Logger(logger *logging.SimpleLogger) *FailedRequestLogger {
|
||||
}
|
||||
|
||||
// FailedRequestLogger logs the request when a response code >= 400 is sent
|
||||
type FailedRequestLogger struct{
|
||||
type FailedRequestLogger struct {
|
||||
logger *logging.SimpleLogger
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ import (
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
)
|
||||
|
||||
// PlanExecutor handles everything related to running the Terraform plan including integration with Stash, S3, Terraform, and Github
|
||||
|
||||
@@ -6,7 +6,8 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
)
|
||||
|
||||
const InlineShebang = "/bin/sh -e"
|
||||
|
||||
@@ -4,7 +4,8 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"testing"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
)
|
||||
|
||||
var level = logging.Info
|
||||
|
||||
36
server.go
36
server.go
@@ -2,21 +2,21 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"strings"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/google/go-github/github"
|
||||
"github.com/urfave/cli"
|
||||
"github.hootops.com/production-delivery/atlantis/recovery"
|
||||
"github.com/urfave/negroni"
|
||||
"github.hootops.com/production-delivery/atlantis/middleware"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
"github.com/elazarl/go-bindata-assetfs"
|
||||
"github.com/google/go-github/github"
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
"github.com/hootsuite/atlantis/middleware"
|
||||
"github.com/hootsuite/atlantis/recovery"
|
||||
"github.com/urfave/cli"
|
||||
"github.com/urfave/negroni"
|
||||
)
|
||||
|
||||
// WebhookServer listens for Github webhooks and runs the necessary Atlantis command
|
||||
@@ -36,17 +36,17 @@ type Server struct {
|
||||
}
|
||||
|
||||
type ServerConfig struct {
|
||||
githubUsername string
|
||||
githubPassword string
|
||||
githubHostname string
|
||||
sshKey string
|
||||
awsAssumeRole string
|
||||
port int
|
||||
scratchDir string
|
||||
awsRegion string
|
||||
s3Bucket string
|
||||
logLevel string
|
||||
requireApproval bool
|
||||
githubUsername string
|
||||
githubPassword string
|
||||
githubHostname string
|
||||
sshKey string
|
||||
awsAssumeRole string
|
||||
port int
|
||||
scratchDir string
|
||||
awsRegion string
|
||||
s3Bucket string
|
||||
logLevel string
|
||||
requireApproval bool
|
||||
}
|
||||
|
||||
type ExecutionContext struct {
|
||||
|
||||
@@ -5,7 +5,8 @@ import (
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
)
|
||||
|
||||
const stashUrl = "http://stash.hootops.com"
|
||||
|
||||
@@ -3,7 +3,8 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
)
|
||||
|
||||
type StashPullRequestContext struct {
|
||||
|
||||
@@ -6,7 +6,8 @@ import (
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"github.hootops.com/production-delivery/atlantis/logging"
|
||||
|
||||
"github.com/hootsuite/atlantis/logging"
|
||||
)
|
||||
|
||||
type TerraformClient struct {
|
||||
|
||||
Reference in New Issue
Block a user