зеркало из https://github.com/mozilla/mig.git
Update import statements to point to github.com/mozilla/mig/
This commit is contained in:
Родитель
e8eb90a137
Коммит
8c24601740
2
acl.go
2
acl.go
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -19,7 +19,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
// ActionVersion is the version of the syntax that is expected
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
var keyValidSigner1 = `
|
||||
|
|
2
agent.go
2
agent.go
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import "time"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package client /* import "mig.ninja/mig/client" */
|
||||
package client /* import "github.com/mozilla/mig/client" */
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
|
@ -28,9 +28,9 @@ import (
|
|||
"github.com/jvehent/cljs"
|
||||
"golang.org/x/crypto/openpgp"
|
||||
"gopkg.in/gcfg.v1"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/modules"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/modules"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
var version string
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package client /* import "mig.ninja/mig/client" */
|
||||
package client /* import "github.com/mozilla/mig/client" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -14,8 +14,8 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -17,9 +17,9 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
migdbsearch "mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
migdbsearch "github.com/mozilla/mig/database/search"
|
||||
)
|
||||
|
||||
func usage() {
|
||||
|
|
|
@ -14,9 +14,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"github.com/mozilla/mig/modules"
|
||||
)
|
||||
|
||||
// default expiration is 300 seconds
|
||||
|
|
|
@ -14,8 +14,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
// actionReader retrieves an action from the API using its numerical ID
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig/client"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"fmt"
|
||||
"github.com/bobappleyard/readline"
|
||||
"io"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig/client"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
|
|
@ -18,8 +18,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -15,9 +15,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
// investigatorReader retrieves an agent from the api
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
// loaderReader is used to manipulate loader entries
|
||||
|
|
|
@ -14,8 +14,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
// manifestReader is used to manipulate API manifests
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modulepack"
|
||||
_ "github.com/mozilla/mig/modulepack"
|
||||
)
|
||||
|
|
|
@ -12,8 +12,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig/client"
|
||||
migdbsearch "mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig/client"
|
||||
migdbsearch "github.com/mozilla/mig/database/search"
|
||||
)
|
||||
|
||||
// search runs a search for actions, commands or agents
|
||||
|
|
|
@ -18,9 +18,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"github.com/mozilla/mig/modules"
|
||||
)
|
||||
|
||||
func usage() {
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modulepack"
|
||||
_ "github.com/mozilla/mig/modulepack"
|
||||
)
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig/modules"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
// Various constants that indicate exchange and queue names used in RabbitMQ
|
||||
const (
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -12,7 +12,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -12,7 +12,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -13,8 +13,8 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/modules"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -12,7 +12,7 @@ import (
|
|||
"time"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// ActiveInvestigators returns a slice of investigators keys marked as active
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
_ "github.com/lib/pq"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// Return a loader entry ID given a loader key
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
_ "github.com/lib/pq"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// Add a new manifest record to the database
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package search /* import "mig.ninja/mig/database/search" */
|
||||
package search /* import "github.com/mozilla/mig/database/search" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -13,8 +13,8 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/database/search"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
// This file contains structures and functions related to the handling of
|
||||
// manifests and state bundles by the MIG loader and API.
|
||||
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
"os"
|
||||
"path"
|
||||
"runtime"
|
||||
|
|
|
@ -9,8 +9,8 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/streadway/amqp"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"mig.ninja/mig/modules"
|
||||
"mig.ninja/mig/service"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig/modules"
|
||||
"github.com/mozilla/mig/service"
|
||||
)
|
||||
|
||||
// publication lock is used to prevent publication when the channels are not
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
var testContext Context
|
||||
|
|
|
@ -9,14 +9,14 @@
|
|||
// about the system a given agent or loader is running on. This includes
|
||||
// information unrelated to MIG itself, such as the hostname of the system,
|
||||
// IP addresses, and so on.
|
||||
package agentcontext /* import "mig.ninja/mig/mig-agent/agentcontext" */
|
||||
package agentcontext /* import "github.com/mozilla/mig/mig-agent/agentcontext" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/kardianos/osext"
|
||||
"io/ioutil"
|
||||
mrand "math/rand"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os"
|
||||
"path"
|
||||
"regexp"
|
||||
|
|
|
@ -9,7 +9,7 @@ package agentcontext
|
|||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"net"
|
||||
"net/http"
|
||||
"time"
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// findLocalIPs updates the given context with the IP Addresses found in the machine.
|
||||
|
|
|
@ -9,7 +9,7 @@ package agentcontext
|
|||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os/exec"
|
||||
"strings"
|
||||
)
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/service"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/service"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os/exec"
|
||||
"strings"
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// alertHandler is called inside the agent when it recieves an alert message from a
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
|
||||
"gopkg.in/gcfg.v1"
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
|
@ -23,11 +23,11 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/streadway/amqp"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"mig.ninja/mig/modules"
|
||||
"mig.ninja/mig/pgp"
|
||||
"mig.ninja/mig/service"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig/modules"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
"github.com/mozilla/mig/service"
|
||||
)
|
||||
|
||||
// Context contains all configuration variables as well as handlers for
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"path"
|
||||
"testing"
|
||||
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
)
|
||||
|
||||
func TestInitKeyring(t *testing.T) {
|
||||
|
|
|
@ -8,7 +8,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
"os"
|
||||
"os/exec"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/service"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/service"
|
||||
)
|
||||
|
||||
// On Windows, processes aren't forked by the init, so when the service is
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modulepack"
|
||||
_ "github.com/mozilla/mig/modulepack"
|
||||
)
|
||||
|
|
|
@ -15,9 +15,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig/modules"
|
||||
|
||||
"gopkg.in/gcfg.v1"
|
||||
)
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
"fmt"
|
||||
"html/template"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
"net/http"
|
||||
"os"
|
||||
"time"
|
||||
|
|
|
@ -14,7 +14,7 @@ package main
|
|||
// socket.
|
||||
|
||||
import (
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/jvehent/cljs"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
// createAction receives a signed action in a POST request, validates it,
|
||||
|
|
|
@ -8,7 +8,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"github.com/jvehent/cljs"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
||||
|
|
|
@ -17,8 +17,8 @@ import (
|
|||
"github.com/gorilla/context"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/jvehent/cljs"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
var ctx Context
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
"crypto/sha256"
|
||||
"fmt"
|
||||
"golang.org/x/crypto/pbkdf2"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
const APIKeyLength = 32
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
|
||||
"github.com/jvehent/cljs"
|
||||
)
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"fmt"
|
||||
"gopkg.in/gcfg.v1"
|
||||
"io"
|
||||
"mig.ninja/mig"
|
||||
migdb "mig.ninja/mig/database"
|
||||
"github.com/mozilla/mig"
|
||||
migdb "github.com/mozilla/mig/database"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
|
|
|
@ -12,8 +12,8 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
|
||||
"github.com/jvehent/cljs"
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/jvehent/cljs"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
|
|
@ -14,8 +14,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/jvehent/cljs"
|
||||
"mig.ninja/mig"
|
||||
migdbsearch "mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig"
|
||||
migdbsearch "github.com/mozilla/mig/database/search"
|
||||
)
|
||||
|
||||
type pagination struct {
|
||||
|
|
|
@ -8,7 +8,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ import (
|
|||
"path"
|
||||
"strings"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
|
||||
"gopkg.in/gcfg.v1"
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// TAGS are useful to differentiate agents. You can add whatever values
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"mig.ninja/mig/service"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig/service"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
|
|
|
@ -22,9 +22,9 @@ import (
|
|||
"github.com/jvehent/cljs"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/mig-agent/agentcontext"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/mig-agent/agentcontext"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
var keyValidUser1 = `
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/kardianos/osext"
|
||||
service "mig.ninja/mig/service"
|
||||
service "github.com/mozilla/mig/service"
|
||||
)
|
||||
|
||||
// Run as a Windows service; the loader just runs in the background periodically calling
|
||||
|
|
|
@ -8,8 +8,8 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"gopkg.in/gcfg.v1"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"path"
|
||||
)
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"fmt"
|
||||
"github.com/gorhill/cronexpr"
|
||||
"gopkg.in/gcfg.v1"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"path"
|
||||
"time"
|
||||
)
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
var ctx Context
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os/exec"
|
||||
"path"
|
||||
)
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"os"
|
||||
"path"
|
||||
"time"
|
||||
|
|
|
@ -8,7 +8,7 @@ package main
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
|
||||
"github.com/streadway/amqp"
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ package main
|
|||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os"
|
||||
"regexp"
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ package main
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
|
@ -20,8 +20,8 @@ import (
|
|||
|
||||
"github.com/streadway/amqp"
|
||||
"gopkg.in/gcfg.v1"
|
||||
"mig.ninja/mig"
|
||||
migdb "mig.ninja/mig/database"
|
||||
"github.com/mozilla/mig"
|
||||
migdb "github.com/mozilla/mig/database"
|
||||
)
|
||||
|
||||
// Context contains all configuration variables as well as handlers for
|
||||
|
|
|
@ -49,7 +49,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
func logAgentAction(ctx Context, cmd mig.Command) (err error) {
|
||||
|
|
|
@ -7,7 +7,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/streadway/amqp"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// QueuesCleanup deletes rabbitmq queues of endpoints that no
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
func startRoutines(ctx Context) {
|
||||
|
|
|
@ -14,9 +14,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/streadway/amqp"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/modules"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/modules"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
2
misc.go
2
misc.go
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
// Misc support functions used in various places within MIG
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
package modulepack
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modules/agentdestroy"
|
||||
_ "github.com/mozilla/mig/modules/agentdestroy"
|
||||
)
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
package modulepack
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modules/audit"
|
||||
_ "github.com/mozilla/mig/modules/audit"
|
||||
)
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
package modulepack
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modules/agentdestroy"
|
||||
_ "mig.ninja/mig/modules/file"
|
||||
_ "mig.ninja/mig/modules/fswatch"
|
||||
_ "mig.ninja/mig/modules/netstat"
|
||||
_ "mig.ninja/mig/modules/ping"
|
||||
_ "mig.ninja/mig/modules/pkg"
|
||||
_ "mig.ninja/mig/modules/scribe"
|
||||
_ "mig.ninja/mig/modules/sshkey"
|
||||
_ "mig.ninja/mig/modules/timedrift"
|
||||
_ "github.com/mozilla/mig/modules/agentdestroy"
|
||||
_ "github.com/mozilla/mig/modules/file"
|
||||
_ "github.com/mozilla/mig/modules/fswatch"
|
||||
_ "github.com/mozilla/mig/modules/netstat"
|
||||
_ "github.com/mozilla/mig/modules/ping"
|
||||
_ "github.com/mozilla/mig/modules/pkg"
|
||||
_ "github.com/mozilla/mig/modules/scribe"
|
||||
_ "github.com/mozilla/mig/modules/sshkey"
|
||||
_ "github.com/mozilla/mig/modules/timedrift"
|
||||
)
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
package modulepack
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modules/dispatch"
|
||||
_ "github.com/mozilla/mig/modules/dispatch"
|
||||
)
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
package modulepack
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modules/example"
|
||||
_ "github.com/mozilla/mig/modules/example"
|
||||
)
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
package modulepack
|
||||
|
||||
import (
|
||||
_ "mig.ninja/mig/modules/examplepersist"
|
||||
_ "github.com/mozilla/mig/modules/examplepersist"
|
||||
)
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче