Skip to content

Commit df1df42

Browse files
authored
Update module name to osquery/osquery-go (osquery#91)
Update module name to `osquery/osquery-go` completing the move from `kolide/osquery-go`
1 parent b019be7 commit df1df42

File tree

24 files changed

+44
-51
lines changed

24 files changed

+44
-51
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ deps: deps-go
1515

1616
gen: ./osquery.thrift
1717
mkdir -p ./gen
18-
thrift --gen go:package_prefix=github.com/kolide/osquery-go/gen/ -out ./gen ./osquery.thrift
18+
thrift --gen go:package_prefix=github.com/osquery/osquery-go/gen/ -out ./gen ./osquery.thrift
1919
rm -rf gen/osquery/extension-remote gen/osquery/extension_manager-remote
2020
gofmt -w ./gen
2121

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# osquery-go
22

3-
[![CircleCI](https://circleci.com/gh/kolide/osquery-go/tree/master.svg?style=svg)](https://circleci.com/gh/kolide/osquery-go/tree/master)
4-
[![GoDoc](https://godoc.org/github.com/kolide/osquery-go?status.svg)](http://godoc.org/github.com/kolide/osquery-go)
3+
[![CircleCI](https://circleci.com/gh/osquery/osquery-go/tree/master.svg?style=svg)](https://circleci.com/gh/osquery/osquery-go/tree/master)
4+
[![GoDoc](https://godoc.org/github.com/osquery/osquery-go?status.svg)](http://godoc.org/github.com/osquery/osquery-go)
55

66
[osquery](https://github.com/facebook/osquery) exposes an operating system as a high-performance relational database. This allows you to write SQL-based queries to explore operating system data. With osquery, SQL tables represent abstract concepts such as running processes, loaded kernel modules, open network connections, browser plugins, hardware events or file hashes.
77

@@ -13,16 +13,11 @@ In osquery, SQL tables, configuration retrieval, log handling, etc. are implemen
1313

1414
## Install
1515

16-
To install this library in your `GOPATH`:
16+
This library is compatible with Go Modules. To install:
1717

18+
``` go
19+
go get github.com/osquery/osquery-go
1820
```
19-
mkdir -p $GOPATH/src/github.com/kolide/
20-
git clone [email protected]:kolide/osquery-go.git $GOPATH/src/github.com/kolide/osquery-go
21-
cd $GOPATH/src/github.com/kolide/osquery-go
22-
make deps
23-
```
24-
25-
Alternatively, if you're using this in a project that uses a dependency management tool like [Glide](https://github.com/Masterminds/glide) or [Dep](https://github.com/golang/dep), then follow the relevant instructions provided by that tool.
2621

2722
## Using the library
2823

@@ -40,8 +35,8 @@ import (
4035
"os"
4136
"flag"
4237

43-
"github.com/kolide/osquery-go"
44-
"github.com/kolide/osquery-go/plugin/table"
38+
"github.com/osquery/osquery-go"
39+
"github.com/osquery/osquery-go/plugin/table"
4540
)
4641

4742
func main() {
@@ -194,7 +189,7 @@ import (
194189
"os"
195190
"time"
196191

197-
"github.com/kolide/osquery-go"
192+
"github.com/osquery/osquery-go"
198193
)
199194

200195
func main() {

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"time"
66

7-
"github.com/kolide/osquery-go/gen/osquery"
8-
"github.com/kolide/osquery-go/transport"
7+
"github.com/osquery/osquery-go/gen/osquery"
8+
"github.com/osquery/osquery-go/transport"
99
"github.com/pkg/errors"
1010

1111
"github.com/apache/thrift/lib/go/thrift"

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"errors"
66
"testing"
77

8-
"github.com/kolide/osquery-go/gen/osquery"
9-
"github.com/kolide/osquery-go/mock"
8+
"github.com/osquery/osquery-go/gen/osquery"
9+
"github.com/osquery/osquery-go/mock"
1010
"github.com/stretchr/testify/assert"
1111
)
1212

examples/call/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"time"
77

8-
"github.com/kolide/osquery-go"
8+
"github.com/osquery/osquery-go"
99
)
1010

1111
func main() {

examples/config/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"log"
77
"time"
88

9-
"github.com/kolide/osquery-go"
10-
"github.com/kolide/osquery-go/plugin/config"
9+
"github.com/osquery/osquery-go"
10+
"github.com/osquery/osquery-go/plugin/config"
1111
)
1212

1313
var (

examples/distributed/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"fmt"
77
"log"
88

9-
"github.com/kolide/osquery-go"
10-
"github.com/kolide/osquery-go/plugin/distributed"
9+
"github.com/osquery/osquery-go"
10+
"github.com/osquery/osquery-go/plugin/distributed"
1111
)
1212

1313
func main() {

examples/logger/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"flag"
66
"log"
77

8-
"github.com/kolide/osquery-go"
9-
"github.com/kolide/osquery-go/plugin/logger"
8+
"github.com/osquery/osquery-go"
9+
"github.com/osquery/osquery-go/plugin/logger"
1010
)
1111

1212
func main() {

examples/query/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"time"
77

8-
"github.com/kolide/osquery-go"
8+
"github.com/osquery/osquery-go"
99
)
1010

1111
func main() {

examples/table/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"log"
77
"time"
88

9-
"github.com/kolide/osquery-go"
10-
"github.com/kolide/osquery-go/plugin/table"
9+
"github.com/osquery/osquery-go"
10+
"github.com/osquery/osquery-go/plugin/table"
1111
)
1212

1313
var (

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
module github.com/kolide/osquery-go
1+
module github.com/osquery/osquery-go
22

33
require (
44
github.com/Microsoft/go-winio v0.4.9
55
github.com/apache/thrift v0.13.1-0.20200603211036-eac4d0c79a5f
6-
github.com/davecgh/go-spew v1.1.0 // indirect
6+
github.com/davecgh/go-spew v1.1.1 // indirect
77
github.com/pkg/errors v0.8.0
88
github.com/pmezard/go-difflib v1.0.0 // indirect
99
github.com/stretchr/testify v1.2.2
10-
golang.org/x/sys v0.0.0-20180815093151-14742f9018cd // indirect
10+
golang.org/x/sys v0.0.0-20210603125802-9665404d3644 // indirect
1111
)
1212

1313
go 1.13

go.sum

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
github.com/Microsoft/go-winio v0.4.9 h1:3RbgqgGVqmcpbOiwrjbVtDHLlJBGF6aE+yHmNtBNsFQ=
22
github.com/Microsoft/go-winio v0.4.9/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA=
3-
github.com/apache/thrift v0.13.0 h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI=
4-
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
53
github.com/apache/thrift v0.13.1-0.20200603211036-eac4d0c79a5f h1:33BV5v3u8I6dA2dEoPuXWCsAaHHOJfPtdxZhAMQV4uo=
64
github.com/apache/thrift v0.13.1-0.20200603211036-eac4d0c79a5f/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
7-
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
8-
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
5+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
6+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
97
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
108
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
119
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1210
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1311
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
1412
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
15-
golang.org/x/sys v0.0.0-20180815093151-14742f9018cd h1:Vdp9FdQnZJQQF78wgpudgkchp80Nu37AWr8+mprtgAo=
16-
golang.org/x/sys v0.0.0-20180815093151-14742f9018cd/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
13+
golang.org/x/sys v0.0.0-20210603125802-9665404d3644 h1:CA1DEQ4NdKphKeL70tvsWNdT5oFh1lOjihRcEDROi0I=
14+
golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

mock/osquery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package mock
55
import (
66
"context"
77

8-
"github.com/kolide/osquery-go/gen/osquery"
8+
"github.com/osquery/osquery-go/gen/osquery"
99
)
1010

1111
var _ osquery.ExtensionManager = (*ExtensionManager)(nil)

mock_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package osquery
44

5-
import "github.com/kolide/osquery-go/gen/osquery"
5+
import "github.com/osquery/osquery-go/gen/osquery"
66

77
var _ ExtensionManager = (*MockExtensionManager)(nil)
88

plugin/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package config
66
import (
77
"context"
88

9-
"github.com/kolide/osquery-go/gen/osquery"
9+
"github.com/osquery/osquery-go/gen/osquery"
1010
)
1111

1212
// GenerateConfigsFunc returns the configurations generated by this plugin.

plugin/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"errors"
66
"testing"
77

8-
"github.com/kolide/osquery-go/gen/osquery"
8+
"github.com/osquery/osquery-go/gen/osquery"
99
"github.com/stretchr/testify/assert"
1010
)
1111

plugin/distributed/distributed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strconv"
1111
"strings"
1212

13-
"github.com/kolide/osquery-go/gen/osquery"
13+
"github.com/osquery/osquery-go/gen/osquery"
1414
)
1515

1616
// GetQueriesResult contains the information about which queries the

plugin/distributed/distributed_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"sort"
1010
"testing"
1111

12-
"github.com/kolide/osquery-go/gen/osquery"
12+
"github.com/osquery/osquery-go/gen/osquery"
1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
1515
)

plugin/logger/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"context"
99
"encoding/json"
1010

11-
"github.com/kolide/osquery-go/gen/osquery"
11+
"github.com/osquery/osquery-go/gen/osquery"
1212
)
1313

1414
// LogFunc is the logger function used by an osquery Logger plugin.

plugin/logger/logger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"errors"
66
"testing"
77

8-
"github.com/kolide/osquery-go/gen/osquery"
8+
"github.com/osquery/osquery-go/gen/osquery"
99
"github.com/stretchr/testify/assert"
1010
)
1111

plugin/table/table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"encoding/json"
77
"strconv"
88

9-
"github.com/kolide/osquery-go/gen/osquery"
9+
"github.com/osquery/osquery-go/gen/osquery"
1010
"github.com/pkg/errors"
1111
)
1212

plugin/table/table_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"errors"
77
"testing"
88

9-
"github.com/kolide/osquery-go/gen/osquery"
9+
"github.com/osquery/osquery-go/gen/osquery"
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212
)

server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
"github.com/apache/thrift/lib/go/thrift"
1010

11-
"github.com/kolide/osquery-go/gen/osquery"
12-
"github.com/kolide/osquery-go/transport"
11+
"github.com/osquery/osquery-go/gen/osquery"
12+
"github.com/osquery/osquery-go/transport"
1313
"github.com/pkg/errors"
1414
)
1515

server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414

1515
"github.com/apache/thrift/lib/go/thrift"
1616

17-
"github.com/kolide/osquery-go/gen/osquery"
18-
"github.com/kolide/osquery-go/plugin/logger"
17+
"github.com/osquery/osquery-go/gen/osquery"
18+
"github.com/osquery/osquery-go/plugin/logger"
1919
"github.com/stretchr/testify/assert"
2020
"github.com/stretchr/testify/require"
2121
)

0 commit comments

Comments
 (0)