mirror of
https://github.com/Velocidex/velociraptor.git
synced 2026-10-12 02:09:59 +00:00
Refactor code to satisfy static checks (#4826)
Also sync upstream vfilter fixes --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
dependabot[bot]
parent
bb0fb04b12
commit
5708c27dd6
@@ -18,9 +18,10 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
||||
- name: Set up Go 1.25
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
|
||||
with:
|
||||
go-version: '^1.25'
|
||||
|
||||
@@ -38,9 +39,7 @@ jobs:
|
||||
sudo apt-get install mingw-w64-x86-64-dev gcc-mingw-w64-x86-64 gcc-mingw-w64
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
|
||||
with:
|
||||
node-version: 22.19
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
||||
|
||||
- name: npm install gui
|
||||
run: |
|
||||
|
||||
@@ -18,9 +18,10 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
||||
- name: Set up Go 1.25
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
|
||||
with:
|
||||
go-version: '^1.25'
|
||||
|
||||
@@ -42,9 +43,7 @@ jobs:
|
||||
cd ..
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
|
||||
with:
|
||||
node-version: 20
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
||||
|
||||
- name: npm install gui
|
||||
run: |
|
||||
|
||||
@@ -9,12 +9,12 @@ jobs:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
with:
|
||||
fetch-depth: 50
|
||||
|
||||
- name: Set up Go 1.25
|
||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
|
||||
with:
|
||||
go-version: 1.25
|
||||
|
||||
@@ -127,7 +127,7 @@ jobs:
|
||||
cp artifacts/testdata/server/testcases/*.out* artifact_output/server/
|
||||
|
||||
- name: StoreBinaries
|
||||
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
||||
if: always()
|
||||
with:
|
||||
name: artifact
|
||||
|
||||
@@ -104,9 +104,6 @@ debug_minion:
|
||||
debug_client:
|
||||
dlv debug --init ./scripts/dlv.init --build-flags="-tags 'server_vql extras'" ./bin/ -- client -v --debug --debug_port 6061
|
||||
|
||||
lint:
|
||||
golangci-lint run
|
||||
|
||||
# Do this after fetching the build artifacts with `gh run download <RunID>`
|
||||
UpdateCIArtifacts:
|
||||
mv artifact/server/* artifacts/testdata/server/testcases/
|
||||
|
||||
+1
-1
@@ -299,7 +299,7 @@ func (self *OSPath) MarshalYAML() (interface{}, error) {
|
||||
json_string := []byte(self.String())
|
||||
buf := bytes.Buffer{}
|
||||
err := json.Indent(&buf, json_string, " ", " ")
|
||||
return string(buf.Bytes()), err
|
||||
return buf.String(), err
|
||||
}
|
||||
|
||||
// MarshalText is used by the YAML marshaller. We indent the text to
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package data
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
"github.com/Velocidex/ordereddict"
|
||||
@@ -18,7 +18,7 @@ func TestAccessorData(t *testing.T) {
|
||||
fd, err := accessor.Open("Hello world")
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "Hello world", string(data))
|
||||
@@ -34,7 +34,7 @@ func TestAccessorScope(t *testing.T) {
|
||||
fd, err := accessor.Open("Foobar")
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "Hello world", string(data))
|
||||
|
||||
@@ -4,7 +4,6 @@ package ewf
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/Velocidex/go-ewf/parser"
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
@@ -54,9 +53,11 @@ func (self *EWFReader) Read(buff []byte) (int, error) {
|
||||
}
|
||||
|
||||
func (self *EWFReader) Seek(offset int64, whence int) (int64, error) {
|
||||
if whence == os.SEEK_SET {
|
||||
switch whence {
|
||||
case io.SeekStart:
|
||||
self.offset = offset
|
||||
} else if whence == os.SEEK_CUR {
|
||||
|
||||
case io.SeekCurrent:
|
||||
self.offset += offset
|
||||
}
|
||||
return self.offset, nil
|
||||
|
||||
@@ -26,7 +26,6 @@ import (
|
||||
|
||||
type AccessorLinuxTestSuite struct {
|
||||
suite.Suite
|
||||
tmpdir string
|
||||
}
|
||||
|
||||
func (self *AccessorLinuxTestSuite) TestLinuxSymlinks() {
|
||||
|
||||
@@ -43,7 +43,7 @@ func (self *AccessorWindowsTestSuite) TestACL() {
|
||||
scope := vql_subsystem.MakeScope()
|
||||
scope.SetLogger(log.New(os.Stderr, " ", 0))
|
||||
|
||||
accessor, err := accessors.GetAccessor("file", scope)
|
||||
_, err := accessors.GetAccessor("file", scope)
|
||||
// Permission denied!
|
||||
assert.Error(self.T(), err)
|
||||
|
||||
@@ -52,7 +52,7 @@ func (self *AccessorWindowsTestSuite) TestACL() {
|
||||
Set(vql_subsystem.ACL_MANAGER_VAR, acl_managers.NullACLManager{}))
|
||||
scope.SetLogger(log.New(os.Stderr, " ", 0))
|
||||
|
||||
accessor, err = accessors.GetAccessor("file", scope)
|
||||
accessor, err := accessors.GetAccessor("file", scope)
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
_, err = accessor.ReadDir("/")
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
file_store_accessor "www.velocidex.com/golang/velociraptor/accessors/file_store"
|
||||
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
|
||||
"www.velocidex.com/golang/velociraptor/file_store"
|
||||
"www.velocidex.com/golang/velociraptor/file_store/api"
|
||||
"www.velocidex.com/golang/velociraptor/file_store/path_specs"
|
||||
@@ -46,8 +45,6 @@ var (
|
||||
|
||||
type FSAccessorTest struct {
|
||||
test_utils.TestSuite
|
||||
|
||||
config_obj *config_proto.Config
|
||||
}
|
||||
|
||||
func (self *FSAccessorTest) TestCaseInsensitive() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package accessors
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/vtesting/assert"
|
||||
@@ -129,7 +129,7 @@ func TestMountFilesystemAccessor(t *testing.T) {
|
||||
fd, err := mount_fs.Open(path)
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
return string(data)
|
||||
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||
"www.velocidex.com/golang/go-ntfs/parser"
|
||||
ntfs "www.velocidex.com/golang/go-ntfs/parser"
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
"www.velocidex.com/golang/velociraptor/constants"
|
||||
@@ -273,7 +272,7 @@ func getNTFSCache(scope vfilter.Scope,
|
||||
return cache_ctx, nil
|
||||
}
|
||||
|
||||
func GetScopeOptions(scope vfilter.Scope) parser.Options {
|
||||
func GetScopeOptions(scope vfilter.Scope) ntfs.Options {
|
||||
directory_depth := vql_subsystem.GetIntFromRow(
|
||||
scope, scope, constants.NTFS_MAX_DIRECTORY_DEPTH)
|
||||
if directory_depth == 0 {
|
||||
@@ -292,7 +291,7 @@ func GetScopeOptions(scope vfilter.Scope) parser.Options {
|
||||
full_path_resolution := vql_subsystem.GetBoolFromRow(
|
||||
scope, scope, constants.NTFS_DISABLE_FULL_PATH_RESOLUTION)
|
||||
|
||||
return parser.Options{
|
||||
return ntfs.Options{
|
||||
MaxDirectoryDepth: int(directory_depth),
|
||||
MaxLinks: int(max_links),
|
||||
IncludeShortNames: include_short_names,
|
||||
|
||||
@@ -5,7 +5,6 @@ package offset
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
@@ -43,7 +42,7 @@ func (self *OffsetReader) Close() error {
|
||||
}
|
||||
|
||||
func (self *OffsetReader) Read(buff []byte) (int, error) {
|
||||
new_pos, err := self.reader.Seek(self.offset, os.SEEK_SET)
|
||||
new_pos, err := self.reader.Seek(self.offset, io.SeekStart)
|
||||
if err != nil {
|
||||
return int(new_pos), err
|
||||
}
|
||||
@@ -58,7 +57,7 @@ func (self *OffsetReader) Seek(offset int64, whence int) (int64, error) {
|
||||
// Callers are operating in the offsetted coordinate system so the
|
||||
// real offset should be the offset they asked for plus the base
|
||||
// offset.
|
||||
if whence == os.SEEK_SET {
|
||||
if whence == io.SeekStart {
|
||||
offset += self.base_offset
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package offset
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
@@ -27,13 +26,13 @@ func TestAccessorOffset(t *testing.T) {
|
||||
fd, err := accessor.Open(pathspec.String())
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "bit of text", string(data))
|
||||
|
||||
// Check that Seeking works
|
||||
n, err := fd.Seek(3, os.SEEK_SET)
|
||||
n, err := fd.Seek(3, io.SeekStart)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, int64(3), n)
|
||||
|
||||
|
||||
@@ -42,9 +42,7 @@ func (self *ProcessAccessor) OpenWithOSPath(
|
||||
handle: fd,
|
||||
}
|
||||
|
||||
for _, r := range ranges {
|
||||
result.ranges = append(result.ranges, r)
|
||||
}
|
||||
result.ranges = append(result.ranges, ranges...)
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
@@ -50,14 +50,13 @@ func (self *PSTFile) GetPath(id pst.Identifier) string {
|
||||
self.mu.Lock()
|
||||
defer self.mu.Unlock()
|
||||
|
||||
res, _ := self.paths[id]
|
||||
res := self.paths[id]
|
||||
return res
|
||||
}
|
||||
|
||||
func (self *PSTFile) setPath(parent_id, id pst.Identifier, name string) {
|
||||
root, _ := self.paths[parent_id]
|
||||
new_path := path.Join(root, name)
|
||||
self.paths[id] = new_path
|
||||
root := self.paths[parent_id]
|
||||
self.paths[id] = path.Join(root, name)
|
||||
}
|
||||
|
||||
func (self *PSTFile) walkFolders(folder *pst.Folder) error {
|
||||
|
||||
@@ -82,6 +82,7 @@ func (self RawS3SystemAccessor) ReadDirWithOSPath(
|
||||
}
|
||||
|
||||
if len(path.Components) == 0 {
|
||||
metricS3OpsListObjects.Inc()
|
||||
resp, err := s3Client.ListBuckets(self.ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -3,7 +3,6 @@ package sparse
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
@@ -63,7 +62,7 @@ func (self *SparseReader) readDistinctPages(buf []byte) (int, error) {
|
||||
buf_end := buf_start + PAGE_SIZE
|
||||
|
||||
// Repeat the read with a single page at the time.
|
||||
_, err := self.handle.Seek(self.offset, os.SEEK_SET)
|
||||
_, err := self.handle.Seek(self.offset, io.SeekStart)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
@@ -100,7 +99,7 @@ func (self *SparseReader) Read(buf []byte) (int, error) {
|
||||
}
|
||||
} else {
|
||||
// Read memory from process at specified offset.
|
||||
_, err := self.handle.Seek(self.offset, os.SEEK_SET)
|
||||
_, err := self.handle.Seek(self.offset, io.SeekStart)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package sparse
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
@@ -26,7 +26,7 @@ func TestAccessorSparse(t *testing.T) {
|
||||
fd, err := accessor.Open(pathspec.String())
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "This \x00\x00\x00\x00\x00bit", string(data))
|
||||
|
||||
@@ -2,7 +2,6 @@ package vhdx
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
@@ -47,9 +46,10 @@ func (self *VHDXFile) Seek(offset int64, whence int) (int64, error) {
|
||||
self.mu.Lock()
|
||||
defer self.mu.Unlock()
|
||||
|
||||
if whence == os.SEEK_SET {
|
||||
switch whence {
|
||||
case io.SeekStart:
|
||||
self.offset = offset
|
||||
} else if whence == os.SEEK_CUR {
|
||||
case io.SeekCurrent:
|
||||
self.offset += offset
|
||||
}
|
||||
return self.offset, nil
|
||||
|
||||
@@ -2,7 +2,7 @@ package accessors
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
@@ -46,7 +46,7 @@ func TestVirtualFilesystemAccessor(t *testing.T) {
|
||||
fd, err := fs_accessor.Open(path)
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
return string(data)
|
||||
|
||||
@@ -2,7 +2,6 @@ package vmdk
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/accessors"
|
||||
@@ -47,9 +46,10 @@ func (self *VMDKFile) Seek(offset int64, whence int) (int64, error) {
|
||||
self.mu.Lock()
|
||||
defer self.mu.Unlock()
|
||||
|
||||
if whence == os.SEEK_SET {
|
||||
switch whence {
|
||||
case io.SeekStart:
|
||||
self.offset = offset
|
||||
} else if whence == os.SEEK_CUR {
|
||||
case io.SeekCurrent:
|
||||
self.offset += offset
|
||||
}
|
||||
return self.offset, nil
|
||||
|
||||
@@ -37,7 +37,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@@ -268,7 +267,7 @@ func GetBzip2File(full_path *accessors.OSPath, scope vfilter.Scope) (
|
||||
|
||||
zr := bzip2.NewReader(fd)
|
||||
return &SeekableGzip{reader: fd,
|
||||
gz: ioutil.NopCloser(zr),
|
||||
gz: io.NopCloser(zr),
|
||||
info: &GzipFileInfo{
|
||||
_modtime: stat.ModTime(),
|
||||
_name: stat.Name(),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package zip
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -30,7 +30,7 @@ func TestAccessorGzip(t *testing.T) {
|
||||
fd, err := gzip_accessor.Open(abs_path)
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "hello world\n", string(data))
|
||||
@@ -49,7 +49,7 @@ func TestAccessorBzip2(t *testing.T) {
|
||||
fd, err := gzip_accessor.Open(abs_path)
|
||||
assert.NoError(t, err)
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "goodbye world\n", string(data))
|
||||
|
||||
@@ -42,7 +42,6 @@ import (
|
||||
"www.velocidex.com/golang/velociraptor/third_party/zip"
|
||||
"www.velocidex.com/golang/velociraptor/utils"
|
||||
"www.velocidex.com/golang/velociraptor/utils/tempfile"
|
||||
utils_tempfile "www.velocidex.com/golang/velociraptor/utils/tempfile"
|
||||
"www.velocidex.com/golang/vfilter"
|
||||
"www.velocidex.com/golang/vfilter/types"
|
||||
)
|
||||
@@ -87,7 +86,7 @@ func (self *Tracker) Inc(filename string) {
|
||||
self.mu.Lock()
|
||||
defer self.mu.Unlock()
|
||||
|
||||
prev, _ := self.refs[filename]
|
||||
prev := self.refs[filename]
|
||||
self.refs[filename] = prev + 1
|
||||
}
|
||||
|
||||
@@ -596,7 +595,7 @@ func (self *SeekableZip) Close() error {
|
||||
|
||||
zipAccessorCurrentTmpConversions.Dec()
|
||||
err := os.Remove(self.tmp_file_backing.Name())
|
||||
utils_tempfile.RemoveTmpFile(self.tmp_file_backing.Name(), err)
|
||||
tempfile.RemoveTmpFile(self.tmp_file_backing.Name(), err)
|
||||
}
|
||||
|
||||
err := self.delegate.Close()
|
||||
@@ -661,7 +660,7 @@ func (self *SeekableZip) createTmpBackup() (err error) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
utils_tempfile.AddTmpFile(self.tmp_file_backing.Name())
|
||||
tempfile.AddTmpFile(self.tmp_file_backing.Name())
|
||||
|
||||
zipAccessorCurrentTmpConversions.Inc()
|
||||
zipAccessorTotalTmpConversions.Inc()
|
||||
|
||||
@@ -2,7 +2,7 @@ package zip
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -310,7 +310,7 @@ func (self *ZipTestSuite) TestPermissions() {
|
||||
assert.NoError(self.T(), err)
|
||||
defer fd.Close()
|
||||
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
zip_scope_pathspec := &accessors.PathSpec{
|
||||
|
||||
+56
-130
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
_ "www.velocidex.com/golang/velociraptor/proto"
|
||||
)
|
||||
|
||||
@@ -19,10 +20,7 @@ const (
|
||||
)
|
||||
|
||||
type ApiClientACL struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// if this is set we allow everything - normally only set by
|
||||
// server-server comms.
|
||||
SuperUser bool `protobuf:"varint,21,opt,name=super_user,json=superUser,proto3" json:"super_user,omitempty"`
|
||||
@@ -54,16 +52,16 @@ type ApiClientACL struct {
|
||||
DatastoreAccess bool `protobuf:"varint,18,opt,name=datastore_access,json=datastoreAccess,proto3" json:"datastore_access,omitempty"`
|
||||
// A list of roles in lieu of the permissions above. These will be
|
||||
// interpolated into this ACL object.
|
||||
Roles []string `protobuf:"bytes,9,rep,name=roles,proto3" json:"roles,omitempty"`
|
||||
Roles []string `protobuf:"bytes,9,rep,name=roles,proto3" json:"roles,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApiClientACL) Reset() {
|
||||
*x = ApiClientACL{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_acl_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_acl_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApiClientACL) String() string {
|
||||
@@ -74,7 +72,7 @@ func (*ApiClientACL) ProtoMessage() {}
|
||||
|
||||
func (x *ApiClientACL) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_acl_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -267,21 +265,18 @@ func (x *ApiClientACL) GetRoles() []string {
|
||||
// A role is a named sets of ACL permissions. A user may possess
|
||||
// multiple roles.
|
||||
type Role struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Permissions *ApiClientACL `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Permissions *ApiClientACL `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Role) Reset() {
|
||||
*x = Role{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_acl_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_acl_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Role) String() string {
|
||||
@@ -292,7 +287,7 @@ func (*Role) ProtoMessage() {}
|
||||
|
||||
func (x *Role) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_acl_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -323,98 +318,56 @@ func (x *Role) GetPermissions() *ApiClientACL {
|
||||
|
||||
var File_acl_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_acl_proto_rawDesc = []byte{
|
||||
0x0a, 0x09, 0x61, 0x63, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74,
|
||||
0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, 0x07, 0x0a, 0x0c, 0x41, 0x70, 0x69,
|
||||
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x43, 0x4c, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x75, 0x70,
|
||||
0x65, 0x72, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73,
|
||||
0x75, 0x70, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x12, 0x4b, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x5f,
|
||||
0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x2e, 0xe2, 0xfc, 0xe3,
|
||||
0xc4, 0x01, 0x28, 0x12, 0x26, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x20, 0x61, 0x72,
|
||||
0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x20, 0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x6c, 0x65,
|
||||
0x76, 0x65, 0x6c, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x08, 0x61, 0x6c, 0x6c,
|
||||
0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x79, 0x5f, 0x71, 0x75, 0x65,
|
||||
0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x6e, 0x79, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x12, 0x58, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x71, 0x75,
|
||||
0x65, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x31, 0xe2, 0xfc, 0xe3, 0xc4,
|
||||
0x01, 0x2b, 0x12, 0x29, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x71, 0x75, 0x65, 0x75,
|
||||
0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x63, 0x61,
|
||||
0x6e, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x20, 0x74, 0x6f, 0x2e, 0x52, 0x0d, 0x70,
|
||||
0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c,
|
||||
0x72, 0x65, 0x61, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x08, 0x52, 0x0b, 0x72, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12,
|
||||
0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73,
|
||||
0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x43, 0x6c, 0x69,
|
||||
0x65, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x5f,
|
||||
0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x6f,
|
||||
0x6c, 0x6c, 0x65, 0x63, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63,
|
||||
0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x62, 0x61, 0x73, 0x69, 0x63, 0x18, 0x18, 0x20, 0x01,
|
||||
0x28, 0x08, 0x52, 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x42, 0x61, 0x73, 0x69, 0x63,
|
||||
0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x68, 0x75, 0x6e, 0x74, 0x18, 0x16,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x48, 0x75, 0x6e, 0x74, 0x12,
|
||||
0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65,
|
||||
0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
|
||||
0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x0e, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12,
|
||||
0x34, 0x0a, 0x16, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x14, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x57,
|
||||
0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x65, 0x63, 0x76, 0x65, 0x18,
|
||||
0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x65, 0x63, 0x76, 0x65, 0x12, 0x27, 0x0a,
|
||||
0x0f, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72,
|
||||
0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b,
|
||||
0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x72, 0x67, 0x5f, 0x61, 0x64,
|
||||
0x6d, 0x69, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x72, 0x67, 0x41, 0x64,
|
||||
0x6d, 0x69, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x6d, 0x70, 0x65,
|
||||
0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72,
|
||||
0x76, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x27, 0x0a, 0x0f,
|
||||
0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x18,
|
||||
0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
|
||||
0x6d, 0x52, 0x65, 0x61, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
|
||||
0x74, 0x65, 0x6d, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x0f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x57, 0x72, 0x69, 0x74, 0x65,
|
||||
0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x19, 0x20, 0x01, 0x28,
|
||||
0x08, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61,
|
||||
0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28,
|
||||
0x08, 0x52, 0x0c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
||||
0x27, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c,
|
||||
0x74, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72,
|
||||
0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65,
|
||||
0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08,
|
||||
0x52, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12,
|
||||
0x29, 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x73,
|
||||
0x74, 0x6f, 0x72, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f,
|
||||
0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73,
|
||||
0x22, 0x51, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x0b,
|
||||
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x43, 0x6c, 0x69,
|
||||
0x65, 0x6e, 0x74, 0x41, 0x43, 0x4c, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x42, 0x32, 0x5a, 0x30, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63,
|
||||
0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f,
|
||||
0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x63, 0x6c,
|
||||
0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_acl_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\tacl.proto\x12\x05proto\x1a\x14proto/semantic.proto\"\xf5\a\n" +
|
||||
"\fApiClientACL\x12\x1d\n" +
|
||||
"\n" +
|
||||
"super_user\x18\x15 \x01(\bR\tsuperUser\x12K\n" +
|
||||
"\tall_query\x18\x01 \x01(\bB.\xe2\xfc\xe3\xc4\x01(\x12&Provides arbitrary query level access.R\ballQuery\x12\x1b\n" +
|
||||
"\tany_query\x18\n" +
|
||||
" \x01(\bR\banyQuery\x12X\n" +
|
||||
"\x0epublish_queues\x18\x02 \x03(\tB1\xe2\xfc\xe3\xc4\x01+\x12)List of queues the client can publish to.R\rpublishQueues\x12!\n" +
|
||||
"\fread_results\x18\x03 \x01(\bR\vreadResults\x12#\n" +
|
||||
"\rlabel_clients\x18\v \x01(\bR\flabelClients\x12%\n" +
|
||||
"\x0ecollect_client\x18\x04 \x01(\bR\rcollectClient\x12#\n" +
|
||||
"\rcollect_basic\x18\x18 \x01(\bR\fcollectBasic\x12\x1d\n" +
|
||||
"\n" +
|
||||
"start_hunt\x18\x16 \x01(\bR\tstartHunt\x12%\n" +
|
||||
"\x0ecollect_server\x18\x05 \x01(\bR\rcollectServer\x12'\n" +
|
||||
"\x0fartifact_writer\x18\x06 \x01(\bR\x0eartifactWriter\x124\n" +
|
||||
"\x16server_artifact_writer\x18\x0f \x01(\bR\x14serverArtifactWriter\x12\x16\n" +
|
||||
"\x06execve\x18\a \x01(\bR\x06execve\x12'\n" +
|
||||
"\x0fnotebook_editor\x18\b \x01(\bR\x0enotebookEditor\x12\x1b\n" +
|
||||
"\torg_admin\x18\x13 \x01(\bR\borgAdmin\x12$\n" +
|
||||
"\rimpersonation\x18\x14 \x01(\bR\rimpersonation\x12!\n" +
|
||||
"\fserver_admin\x18\f \x01(\bR\vserverAdmin\x12'\n" +
|
||||
"\x0ffilesystem_read\x18\r \x01(\bR\x0efilesystemRead\x12)\n" +
|
||||
"\x10filesystem_write\x18\x0e \x01(\bR\x0ffilesystemWrite\x12\x18\n" +
|
||||
"\anetwork\x18\x19 \x01(\bR\anetwork\x12#\n" +
|
||||
"\rmachine_state\x18\x10 \x01(\bR\fmachineState\x12'\n" +
|
||||
"\x0fprepare_results\x18\x11 \x01(\bR\x0eprepareResults\x12%\n" +
|
||||
"\x0edelete_results\x18\x17 \x01(\bR\rdeleteResults\x12)\n" +
|
||||
"\x10datastore_access\x18\x12 \x01(\bR\x0fdatastoreAccess\x12\x14\n" +
|
||||
"\x05roles\x18\t \x03(\tR\x05roles\"Q\n" +
|
||||
"\x04Role\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x125\n" +
|
||||
"\vpermissions\x18\x02 \x01(\v2\x13.proto.ApiClientACLR\vpermissionsB2Z0www.velocidex.com/golang/velociraptor/acls/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_acl_proto_rawDescOnce sync.Once
|
||||
file_acl_proto_rawDescData = file_acl_proto_rawDesc
|
||||
file_acl_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_acl_proto_rawDescGZIP() []byte {
|
||||
file_acl_proto_rawDescOnce.Do(func() {
|
||||
file_acl_proto_rawDescData = protoimpl.X.CompressGZIP(file_acl_proto_rawDescData)
|
||||
file_acl_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_acl_proto_rawDesc), len(file_acl_proto_rawDesc)))
|
||||
})
|
||||
return file_acl_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_acl_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_acl_proto_goTypes = []interface{}{
|
||||
var file_acl_proto_goTypes = []any{
|
||||
(*ApiClientACL)(nil), // 0: proto.ApiClientACL
|
||||
(*Role)(nil), // 1: proto.Role
|
||||
}
|
||||
@@ -432,37 +385,11 @@ func file_acl_proto_init() {
|
||||
if File_acl_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_acl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiClientACL); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_acl_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Role); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_acl_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_acl_proto_rawDesc), len(file_acl_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
@@ -473,7 +400,6 @@ func file_acl_proto_init() {
|
||||
MessageInfos: file_acl_proto_msgTypes,
|
||||
}.Build()
|
||||
File_acl_proto = out.File
|
||||
file_acl_proto_rawDesc = nil
|
||||
file_acl_proto_goTypes = nil
|
||||
file_acl_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package actions_test
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"os"
|
||||
"sync"
|
||||
"testing"
|
||||
@@ -279,7 +279,7 @@ func (self *EventsTestSuite) TestEventTableUpdate() {
|
||||
|
||||
fd, err := os.Open(self.writeback)
|
||||
assert.NoError(self.T(), err)
|
||||
data, err := ioutil.ReadAll(fd)
|
||||
data, err := io.ReadAll(fd)
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
// Make sure the event queries end up in the writeback file
|
||||
|
||||
+129
-264
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
_ "www.velocidex.com/golang/velociraptor/proto"
|
||||
)
|
||||
|
||||
@@ -19,10 +20,7 @@ const (
|
||||
)
|
||||
|
||||
type Range struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Range offset in the underlying file.
|
||||
FileOffset int64 `protobuf:"varint,1,opt,name=file_offset,json=fileOffset,proto3" json:"file_offset,omitempty"`
|
||||
// Range offset in the underlying file
|
||||
@@ -31,16 +29,16 @@ type Range struct {
|
||||
// if the range is sparse and has no underlying storage.
|
||||
FileLength int64 `protobuf:"varint,3,opt,name=file_length,json=fileLength,proto3" json:"file_length,omitempty"`
|
||||
// Length of this range.
|
||||
Length int64 `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"`
|
||||
Length int64 `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Range) Reset() {
|
||||
*x = Range{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_transport_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_transport_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Range) String() string {
|
||||
@@ -51,7 +49,7 @@ func (*Range) ProtoMessage() {}
|
||||
|
||||
func (x *Range) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_transport_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -95,20 +93,17 @@ func (x *Range) GetLength() int64 {
|
||||
}
|
||||
|
||||
type Index struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Ranges []*Range `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Ranges []*Range `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Index) Reset() {
|
||||
*x = Index{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_transport_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_transport_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Index) String() string {
|
||||
@@ -119,7 +114,7 @@ func (*Index) ProtoMessage() {}
|
||||
|
||||
func (x *Index) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_transport_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -144,22 +139,19 @@ func (x *Index) GetRanges() []*Range {
|
||||
// A message to encode a filesystem path (maybe for raw access)
|
||||
// Next field: 15
|
||||
type PathSpec struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
|
||||
Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
|
||||
Accessor string `protobuf:"bytes,3,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
|
||||
Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
|
||||
Accessor string `protobuf:"bytes,3,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PathSpec) Reset() {
|
||||
*x = PathSpec{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_transport_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_transport_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *PathSpec) String() string {
|
||||
@@ -170,7 +162,7 @@ func (*PathSpec) ProtoMessage() {}
|
||||
|
||||
func (x *PathSpec) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_transport_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -212,18 +204,15 @@ func (x *PathSpec) GetAccessor() string {
|
||||
// policies (since the filestore is just a directory on disk with
|
||||
// regular files and timestamps).
|
||||
type FileBuffer struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Pathspec *PathSpec `protobuf:"bytes,1,opt,name=pathspec,proto3" json:"pathspec,omitempty"`
|
||||
Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Pathspec *PathSpec `protobuf:"bytes,1,opt,name=pathspec,proto3" json:"pathspec,omitempty"`
|
||||
Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
// Expected size of file.
|
||||
Size uint64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
|
||||
StoredSize uint64 `protobuf:"varint,8,opt,name=stored_size,json=storedSize,proto3" json:"stored_size,omitempty"`
|
||||
IsSparse bool `protobuf:"varint,9,opt,name=is_sparse,json=isSparse,proto3" json:"is_sparse,omitempty"`
|
||||
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
||||
// If this is > 0 then the data field contains already compressed
|
||||
// If this is > 0 then then data field contains already compressed
|
||||
// data. The length of the uncompressed data will be given here.
|
||||
UncompressedLength uint64 `protobuf:"varint,17,opt,name=uncompressed_length,json=uncompressedLength,proto3" json:"uncompressed_length,omitempty"`
|
||||
// For uploaders that do not transfer the bulk data inside the
|
||||
@@ -246,16 +235,16 @@ type FileBuffer struct {
|
||||
// and not per query so this number is unique across all the
|
||||
// queries in the collection. It amounts to the row id on the
|
||||
// collections uploads result set.
|
||||
UploadNumber int64 `protobuf:"varint,15,opt,name=upload_number,json=uploadNumber,proto3" json:"upload_number,omitempty"`
|
||||
UploadNumber int64 `protobuf:"varint,15,opt,name=upload_number,json=uploadNumber,proto3" json:"upload_number,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *FileBuffer) Reset() {
|
||||
*x = FileBuffer{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_transport_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_transport_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *FileBuffer) String() string {
|
||||
@@ -266,7 +255,7 @@ func (*FileBuffer) ProtoMessage() {}
|
||||
|
||||
func (x *FileBuffer) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_transport_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -401,21 +390,18 @@ func (x *FileBuffer) GetUploadNumber() int64 {
|
||||
}
|
||||
|
||||
type ForemanCheckin struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
LastHuntTimestamp uint64 `protobuf:"varint,1,opt,name=last_hunt_timestamp,json=lastHuntTimestamp,proto3" json:"last_hunt_timestamp,omitempty"`
|
||||
LastEventTableVersion uint64 `protobuf:"varint,2,opt,name=last_event_table_version,json=lastEventTableVersion,proto3" json:"last_event_table_version,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
LastHuntTimestamp uint64 `protobuf:"varint,1,opt,name=last_hunt_timestamp,json=lastHuntTimestamp,proto3" json:"last_hunt_timestamp,omitempty"`
|
||||
LastEventTableVersion uint64 `protobuf:"varint,2,opt,name=last_event_table_version,json=lastEventTableVersion,proto3" json:"last_event_table_version,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ForemanCheckin) Reset() {
|
||||
*x = ForemanCheckin{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_transport_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_transport_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ForemanCheckin) String() string {
|
||||
@@ -426,7 +412,7 @@ func (*ForemanCheckin) ProtoMessage() {}
|
||||
|
||||
func (x *ForemanCheckin) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_transport_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -464,33 +450,30 @@ func (x *ForemanCheckin) GetLastEventTableVersion() uint64 {
|
||||
// allow the upload to resume, i.e. reflect the uploader interface
|
||||
// args.
|
||||
type UploadTransaction struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
Accessor string `protobuf:"bytes,2,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
StoreAsName string `protobuf:"bytes,3,opt,name=store_as_name,json=storeAsName,proto3" json:"store_as_name,omitempty"`
|
||||
Components []string `protobuf:"bytes,13,rep,name=components,proto3" json:"components,omitempty"`
|
||||
ExpectedSize int64 `protobuf:"varint,4,opt,name=expected_size,json=expectedSize,proto3" json:"expected_size,omitempty"`
|
||||
Mtime int64 `protobuf:"varint,5,opt,name=mtime,proto3" json:"mtime,omitempty"`
|
||||
Atime int64 `protobuf:"varint,6,opt,name=atime,proto3" json:"atime,omitempty"`
|
||||
Ctime int64 `protobuf:"varint,7,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
||||
Btime int64 `protobuf:"varint,8,opt,name=btime,proto3" json:"btime,omitempty"`
|
||||
Mode int64 `protobuf:"varint,9,opt,name=mode,proto3" json:"mode,omitempty"`
|
||||
StartOffset int64 `protobuf:"varint,10,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
|
||||
UploadId int64 `protobuf:"varint,11,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
Accessor string `protobuf:"bytes,2,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
StoreAsName string `protobuf:"bytes,3,opt,name=store_as_name,json=storeAsName,proto3" json:"store_as_name,omitempty"`
|
||||
Components []string `protobuf:"bytes,13,rep,name=components,proto3" json:"components,omitempty"`
|
||||
ExpectedSize int64 `protobuf:"varint,4,opt,name=expected_size,json=expectedSize,proto3" json:"expected_size,omitempty"`
|
||||
Mtime int64 `protobuf:"varint,5,opt,name=mtime,proto3" json:"mtime,omitempty"`
|
||||
Atime int64 `protobuf:"varint,6,opt,name=atime,proto3" json:"atime,omitempty"`
|
||||
Ctime int64 `protobuf:"varint,7,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
||||
Btime int64 `protobuf:"varint,8,opt,name=btime,proto3" json:"btime,omitempty"`
|
||||
Mode int64 `protobuf:"varint,9,opt,name=mode,proto3" json:"mode,omitempty"`
|
||||
StartOffset int64 `protobuf:"varint,10,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
|
||||
UploadId int64 `protobuf:"varint,11,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
|
||||
// A JSON object that represents the result of the upload
|
||||
Response string `protobuf:"bytes,12,opt,name=response,proto3" json:"response,omitempty"`
|
||||
Response string `protobuf:"bytes,12,opt,name=response,proto3" json:"response,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UploadTransaction) Reset() {
|
||||
*x = UploadTransaction{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_transport_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_transport_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UploadTransaction) String() string {
|
||||
@@ -501,7 +484,7 @@ func (*UploadTransaction) ProtoMessage() {}
|
||||
|
||||
func (x *UploadTransaction) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_transport_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -609,124 +592,81 @@ func (x *UploadTransaction) GetResponse() string {
|
||||
|
||||
var File_transport_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_transport_proto_rawDesc = []byte{
|
||||
0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
|
||||
0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a,
|
||||
0x01, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65,
|
||||
0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x66,
|
||||
0x69, 0x6c, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x69,
|
||||
0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4f, 0x66, 0x66, 0x73,
|
||||
0x65, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74,
|
||||
0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x4c, 0x65, 0x6e,
|
||||
0x67, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x2d, 0x0a, 0x05, 0x49,
|
||||
0x6e, 0x64, 0x65, 0x78, 0x12, 0x24, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x61, 0x6e,
|
||||
0x67, 0x65, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x50,
|
||||
0x61, 0x74, 0x68, 0x53, 0x70, 0x65, 0x63, 0x12, 0x81, 0x01, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x6d, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x67, 0x12, 0x65,
|
||||
0x54, 0x68, 0x65, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x70, 0x61, 0x73, 0x73, 0x65, 0x64, 0x20,
|
||||
0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
|
||||
0x6d, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73,
|
||||
0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x73, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70,
|
||||
0x72, 0x65, 0x74, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x20, 0x69, 0x74, 0x73, 0x20, 0x6f, 0x77, 0x6e,
|
||||
0x20, 0x77, 0x61, 0x79, 0x2e, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1e, 0x0a, 0x0a, 0x63,
|
||||
0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52,
|
||||
0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4b, 0x0a, 0x08, 0x61,
|
||||
0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe2,
|
||||
0xfc, 0xe3, 0xc4, 0x01, 0x29, 0x12, 0x27, 0x54, 0x68, 0x65, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73,
|
||||
0x73, 0x6f, 0x72, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x74, 0x72,
|
||||
0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x08,
|
||||
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x22, 0x9e, 0x04, 0x0a, 0x0a, 0x46, 0x69, 0x6c,
|
||||
0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x68, 0x73,
|
||||
0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x53, 0x70, 0x65, 0x63, 0x52, 0x08, 0x70, 0x61, 0x74, 0x68,
|
||||
0x73, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x04, 0x42, 0x29, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x23, 0x12, 0x21, 0x4f, 0x66,
|
||||
0x66, 0x73, 0x65, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62, 0x75, 0x66, 0x66,
|
||||
0x65, 0x72, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52,
|
||||
0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18,
|
||||
0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
|
||||
0x74, 0x6f, 0x72, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09,
|
||||
0x69, 0x73, 0x5f, 0x73, 0x70, 0x61, 0x72, 0x73, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x08, 0x69, 0x73, 0x53, 0x70, 0x61, 0x72, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
||||
0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a,
|
||||
0x13, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x6c, 0x65,
|
||||
0x6e, 0x67, 0x74, 0x68, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x75, 0x6e, 0x63, 0x6f,
|
||||
0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x1f,
|
||||
0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x10, 0x20,
|
||||
0x01, 0x28, 0x04, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12,
|
||||
0x17, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x06, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6f, 0x66, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x65, 0x6f, 0x66, 0x12, 0x22, 0x0a, 0x05, 0x69, 0x6e,
|
||||
0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x05, 0x61, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x62, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x05, 0x62, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
|
||||
0x6e, 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72,
|
||||
0x65, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x6e,
|
||||
0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x75, 0x70, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x79, 0x0a, 0x0e, 0x46, 0x6f, 0x72,
|
||||
0x65, 0x6d, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x6c,
|
||||
0x61, 0x73, 0x74, 0x5f, 0x68, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||
0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x75,
|
||||
0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x37, 0x0a, 0x18, 0x6c,
|
||||
0x61, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
||||
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x6c,
|
||||
0x61, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x65, 0x72,
|
||||
0x73, 0x69, 0x6f, 0x6e, 0x22, 0xfc, 0x02, 0x0a, 0x11, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x54,
|
||||
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x6f, 0x72, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x61, 0x73, 0x5f, 0x6e,
|
||||
0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x65,
|
||||
0x41, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
|
||||
0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70,
|
||||
0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74,
|
||||
0x65, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65,
|
||||
0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03,
|
||||
0x52, 0x05, 0x61, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x62, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74,
|
||||
0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73,
|
||||
0x74, 0x61, 0x72, 0x74, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75,
|
||||
0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x42, 0x35, 0x5a, 0x33, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63,
|
||||
0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f,
|
||||
0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x63, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
const file_transport_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x0ftransport.proto\x12\x05proto\x1a\x14proto/semantic.proto\"\x8a\x01\n" +
|
||||
"\x05Range\x12\x1f\n" +
|
||||
"\vfile_offset\x18\x01 \x01(\x03R\n" +
|
||||
"fileOffset\x12'\n" +
|
||||
"\x0foriginal_offset\x18\x02 \x01(\x03R\x0eoriginalOffset\x12\x1f\n" +
|
||||
"\vfile_length\x18\x03 \x01(\x03R\n" +
|
||||
"fileLength\x12\x16\n" +
|
||||
"\x06length\x18\x04 \x01(\x03R\x06length\"-\n" +
|
||||
"\x05Index\x12$\n" +
|
||||
"\x06ranges\x18\x01 \x03(\v2\f.proto.RangeR\x06ranges\"\xfb\x01\n" +
|
||||
"\bPathSpec\x12\x81\x01\n" +
|
||||
"\x04path\x18\x02 \x01(\tBm\xe2\xfc\xe3\xc4\x01g\x12eThe path passed to the Filesystem accessor. This value is interpreted by the accessor in its own way.R\x04path\x12\x1e\n" +
|
||||
"\n" +
|
||||
"components\x18\x04 \x03(\tR\n" +
|
||||
"components\x12K\n" +
|
||||
"\baccessor\x18\x03 \x01(\tB/\xe2\xfc\xe3\xc4\x01)\x12'The accessor used to retrieve the file.R\baccessor\"\x9e\x04\n" +
|
||||
"\n" +
|
||||
"FileBuffer\x12+\n" +
|
||||
"\bpathspec\x18\x01 \x01(\v2\x0f.proto.PathSpecR\bpathspec\x12A\n" +
|
||||
"\x06offset\x18\x02 \x01(\x04B)\xe2\xfc\xe3\xc4\x01#\x12!Offset of the buffer in the file.R\x06offset\x12\x12\n" +
|
||||
"\x04size\x18\a \x01(\x04R\x04size\x12\x1f\n" +
|
||||
"\vstored_size\x18\b \x01(\x04R\n" +
|
||||
"storedSize\x12\x1b\n" +
|
||||
"\tis_sparse\x18\t \x01(\bR\bisSparse\x12\x12\n" +
|
||||
"\x04data\x18\x03 \x01(\fR\x04data\x12/\n" +
|
||||
"\x13uncompressed_length\x18\x11 \x01(\x04R\x12uncompressedLength\x12\x1f\n" +
|
||||
"\vdata_length\x18\x10 \x01(\x04R\n" +
|
||||
"dataLength\x12\x17\n" +
|
||||
"\aflow_id\x18\x04 \x01(\tR\x06flowId\x12\x10\n" +
|
||||
"\x03eof\x18\x05 \x01(\bR\x03eof\x12\"\n" +
|
||||
"\x05index\x18\x06 \x01(\v2\f.proto.IndexR\x05index\x12\x14\n" +
|
||||
"\x05mtime\x18\n" +
|
||||
" \x01(\x03R\x05mtime\x12\x14\n" +
|
||||
"\x05atime\x18\v \x01(\x03R\x05atime\x12\x14\n" +
|
||||
"\x05ctime\x18\f \x01(\x03R\x05ctime\x12\x14\n" +
|
||||
"\x05btime\x18\r \x01(\x03R\x05btime\x12\x1c\n" +
|
||||
"\treference\x18\x0e \x01(\tR\treference\x12#\n" +
|
||||
"\rupload_number\x18\x0f \x01(\x03R\fuploadNumber\"y\n" +
|
||||
"\x0eForemanCheckin\x12.\n" +
|
||||
"\x13last_hunt_timestamp\x18\x01 \x01(\x04R\x11lastHuntTimestamp\x127\n" +
|
||||
"\x18last_event_table_version\x18\x02 \x01(\x04R\x15lastEventTableVersion\"\xfc\x02\n" +
|
||||
"\x11UploadTransaction\x12\x1a\n" +
|
||||
"\bfilename\x18\x01 \x01(\tR\bfilename\x12\x1a\n" +
|
||||
"\baccessor\x18\x02 \x01(\tR\baccessor\x12\"\n" +
|
||||
"\rstore_as_name\x18\x03 \x01(\tR\vstoreAsName\x12\x1e\n" +
|
||||
"\n" +
|
||||
"components\x18\r \x03(\tR\n" +
|
||||
"components\x12#\n" +
|
||||
"\rexpected_size\x18\x04 \x01(\x03R\fexpectedSize\x12\x14\n" +
|
||||
"\x05mtime\x18\x05 \x01(\x03R\x05mtime\x12\x14\n" +
|
||||
"\x05atime\x18\x06 \x01(\x03R\x05atime\x12\x14\n" +
|
||||
"\x05ctime\x18\a \x01(\x03R\x05ctime\x12\x14\n" +
|
||||
"\x05btime\x18\b \x01(\x03R\x05btime\x12\x12\n" +
|
||||
"\x04mode\x18\t \x01(\x03R\x04mode\x12!\n" +
|
||||
"\fstart_offset\x18\n" +
|
||||
" \x01(\x03R\vstartOffset\x12\x1b\n" +
|
||||
"\tupload_id\x18\v \x01(\x03R\buploadId\x12\x1a\n" +
|
||||
"\bresponse\x18\f \x01(\tR\bresponseB5Z3www.velocidex.com/golang/velociraptor/actions/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_transport_proto_rawDescOnce sync.Once
|
||||
file_transport_proto_rawDescData = file_transport_proto_rawDesc
|
||||
file_transport_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_transport_proto_rawDescGZIP() []byte {
|
||||
file_transport_proto_rawDescOnce.Do(func() {
|
||||
file_transport_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_proto_rawDescData)
|
||||
file_transport_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_proto_rawDesc), len(file_transport_proto_rawDesc)))
|
||||
})
|
||||
return file_transport_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_transport_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_transport_proto_goTypes = []interface{}{
|
||||
var file_transport_proto_goTypes = []any{
|
||||
(*Range)(nil), // 0: proto.Range
|
||||
(*Index)(nil), // 1: proto.Index
|
||||
(*PathSpec)(nil), // 2: proto.PathSpec
|
||||
@@ -750,85 +690,11 @@ func file_transport_proto_init() {
|
||||
if File_transport_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_transport_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Range); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_transport_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Index); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_transport_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*PathSpec); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_transport_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FileBuffer); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_transport_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ForemanCheckin); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_transport_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UploadTransaction); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_transport_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_proto_rawDesc), len(file_transport_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
@@ -839,7 +705,6 @@ func file_transport_proto_init() {
|
||||
MessageInfos: file_transport_proto_msgTypes,
|
||||
}.Build()
|
||||
File_transport_proto = out.File
|
||||
file_transport_proto_rawDesc = nil
|
||||
file_transport_proto_goTypes = nil
|
||||
file_transport_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+186
-468
@@ -10,6 +10,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
proto "www.velocidex.com/golang/velociraptor/artifacts/proto"
|
||||
_ "www.velocidex.com/golang/velociraptor/proto"
|
||||
)
|
||||
@@ -22,23 +23,20 @@ const (
|
||||
)
|
||||
|
||||
type VQLRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// The obfuscated name of the artifact this query came from.
|
||||
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
|
||||
// The compiled VQL query to evaluate on the endpoint.
|
||||
VQL string `protobuf:"bytes,1,opt,name=VQL,proto3" json:"VQL,omitempty"`
|
||||
VQL string `protobuf:"bytes,1,opt,name=VQL,proto3" json:"VQL,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VQLRequest) Reset() {
|
||||
*x = VQLRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VQLRequest) String() string {
|
||||
@@ -49,7 +47,7 @@ func (*VQLRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VQLRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -79,22 +77,19 @@ func (x *VQLRequest) GetVQL() string {
|
||||
}
|
||||
|
||||
type VQLEnv struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VQLEnv) Reset() {
|
||||
*x = VQLEnv{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VQLEnv) String() string {
|
||||
@@ -105,7 +100,7 @@ func (*VQLEnv) ProtoMessage() {}
|
||||
|
||||
func (x *VQLEnv) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -144,10 +139,7 @@ func (x *VQLEnv) GetComment() string {
|
||||
// This is the most common type of message - it specifies a query to
|
||||
// run on the endpoint.
|
||||
type VQLCollectorArgs struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Number of this request compared to the entire collection.
|
||||
QueryId int64 `protobuf:"varint,32,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"`
|
||||
TotalQueries int64 `protobuf:"varint,33,opt,name=total_queries,json=totalQueries,proto3" json:"total_queries,omitempty"`
|
||||
@@ -184,16 +176,16 @@ type VQLCollectorArgs struct {
|
||||
Heartbeat uint64 `protobuf:"varint,27,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"`
|
||||
Tools []string `protobuf:"bytes,26,rep,name=tools,proto3" json:"tools,omitempty"`
|
||||
// Used only for API based calls
|
||||
OrgId string `protobuf:"bytes,35,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
OrgId string `protobuf:"bytes,35,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VQLCollectorArgs) Reset() {
|
||||
*x = VQLCollectorArgs{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VQLCollectorArgs) String() string {
|
||||
@@ -204,7 +196,7 @@ func (*VQLCollectorArgs) ProtoMessage() {}
|
||||
|
||||
func (x *VQLCollectorArgs) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -360,21 +352,18 @@ func (x *VQLCollectorArgs) GetOrgId() string {
|
||||
}
|
||||
|
||||
type VQLTypeMap struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VQLTypeMap) Reset() {
|
||||
*x = VQLTypeMap{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VQLTypeMap) String() string {
|
||||
@@ -385,7 +374,7 @@ func (*VQLTypeMap) ProtoMessage() {}
|
||||
|
||||
func (x *VQLTypeMap) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -415,10 +404,7 @@ func (x *VQLTypeMap) GetType() string {
|
||||
}
|
||||
|
||||
type VQLResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// DEPRECATED: Response is encoded in a json array of rows.
|
||||
Response string `protobuf:"bytes,1,opt,name=Response,proto3" json:"Response,omitempty"`
|
||||
// Response is encoded as line delimited JSON.
|
||||
@@ -441,16 +427,16 @@ type VQLResponse struct {
|
||||
QueryStartRow uint64 `protobuf:"varint,11,opt,name=query_start_row,json=queryStartRow,proto3" json:"query_start_row,omitempty"`
|
||||
Log string `protobuf:"bytes,9,opt,name=log,proto3" json:"log,omitempty"`
|
||||
// Used only for server-server comms
|
||||
OrgId string `protobuf:"bytes,12,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
OrgId string `protobuf:"bytes,12,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VQLResponse) Reset() {
|
||||
*x = VQLResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VQLResponse) String() string {
|
||||
@@ -461,7 +447,7 @@ func (*VQLResponse) ProtoMessage() {}
|
||||
|
||||
func (x *VQLResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -586,20 +572,17 @@ func (x *VQLResponse) GetOrgId() string {
|
||||
// GRR APIs. When we re-implement the API plugins, refactor this into
|
||||
// a more sane structure.
|
||||
type User struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *User) Reset() {
|
||||
*x = User{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *User) String() string {
|
||||
@@ -610,7 +593,7 @@ func (*User) ProtoMessage() {}
|
||||
|
||||
func (x *User) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -633,21 +616,18 @@ func (x *User) GetUsername() string {
|
||||
}
|
||||
|
||||
type VQLEventTable struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Event []*VQLCollectorArgs `protobuf:"bytes,1,rep,name=event,proto3" json:"event,omitempty"`
|
||||
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Event []*VQLCollectorArgs `protobuf:"bytes,1,rep,name=event,proto3" json:"event,omitempty"`
|
||||
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VQLEventTable) Reset() {
|
||||
*x = VQLEventTable{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VQLEventTable) String() string {
|
||||
@@ -658,7 +638,7 @@ func (*VQLEventTable) ProtoMessage() {}
|
||||
|
||||
func (x *VQLEventTable) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -688,27 +668,24 @@ func (x *VQLEventTable) GetVersion() uint64 {
|
||||
}
|
||||
|
||||
type ClientInfo struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||
Fqdn string `protobuf:"bytes,4,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
|
||||
System string `protobuf:"bytes,5,opt,name=system,proto3" json:"system,omitempty"`
|
||||
Release string `protobuf:"bytes,6,opt,name=release,proto3" json:"release,omitempty"`
|
||||
Architecture string `protobuf:"bytes,7,opt,name=architecture,proto3" json:"architecture,omitempty"`
|
||||
IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
||||
Ping uint64 `protobuf:"varint,11,opt,name=ping,proto3" json:"ping,omitempty"`
|
||||
PingTime string `protobuf:"bytes,19,opt,name=ping_time,json=pingTime,proto3" json:"ping_time,omitempty"`
|
||||
ClientVersion string `protobuf:"bytes,12,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
|
||||
ClientName string `protobuf:"bytes,13,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
|
||||
FirstSeenAt uint64 `protobuf:"varint,20,opt,name=first_seen_at,json=firstSeenAt,proto3" json:"first_seen_at,omitempty"`
|
||||
BuildTime string `protobuf:"bytes,24,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
|
||||
BuildUrl string `protobuf:"bytes,25,opt,name=build_url,json=buildUrl,proto3" json:"build_url,omitempty"`
|
||||
InstallTime uint64 `protobuf:"varint,26,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"`
|
||||
Labels []string `protobuf:"bytes,15,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
MacAddresses []string `protobuf:"bytes,22,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||
Fqdn string `protobuf:"bytes,4,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
|
||||
System string `protobuf:"bytes,5,opt,name=system,proto3" json:"system,omitempty"`
|
||||
Release string `protobuf:"bytes,6,opt,name=release,proto3" json:"release,omitempty"`
|
||||
Architecture string `protobuf:"bytes,7,opt,name=architecture,proto3" json:"architecture,omitempty"`
|
||||
IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
||||
Ping uint64 `protobuf:"varint,11,opt,name=ping,proto3" json:"ping,omitempty"`
|
||||
PingTime string `protobuf:"bytes,19,opt,name=ping_time,json=pingTime,proto3" json:"ping_time,omitempty"`
|
||||
ClientVersion string `protobuf:"bytes,12,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
|
||||
ClientName string `protobuf:"bytes,13,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
|
||||
FirstSeenAt uint64 `protobuf:"varint,20,opt,name=first_seen_at,json=firstSeenAt,proto3" json:"first_seen_at,omitempty"`
|
||||
BuildTime string `protobuf:"bytes,24,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
|
||||
BuildUrl string `protobuf:"bytes,25,opt,name=build_url,json=buildUrl,proto3" json:"build_url,omitempty"`
|
||||
InstallTime uint64 `protobuf:"varint,26,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"`
|
||||
Labels []string `protobuf:"bytes,15,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
MacAddresses []string `protobuf:"bytes,22,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
|
||||
// A hint if tasks are available. This does not have to be
|
||||
// accurate - checking the task queue will yield the correct
|
||||
// tasks.
|
||||
@@ -722,19 +699,19 @@ type ClientInfo struct {
|
||||
LabelsTimestamp uint64 `protobuf:"varint,23,opt,name=labels_timestamp,json=labelsTimestamp,proto3" json:"labels_timestamp,omitempty"`
|
||||
// A List of flows that are currently in flight and their last
|
||||
// update epoch time.
|
||||
InFlightFlows map[string]int64 `protobuf:"bytes,28,rep,name=in_flight_flows,json=inFlightFlows,proto3" json:"in_flight_flows,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
InFlightFlows map[string]int64 `protobuf:"bytes,28,rep,name=in_flight_flows,json=inFlightFlows,proto3" json:"in_flight_flows,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
||||
// A list of indexed metadata fields. These are not all metadata
|
||||
// fields, only the ones that are important enough to be indexed.
|
||||
Metadata map[string]string `protobuf:"bytes,29,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Metadata map[string]string `protobuf:"bytes,29,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ClientInfo) Reset() {
|
||||
*x = ClientInfo{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vql_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vql_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ClientInfo) String() string {
|
||||
@@ -745,7 +722,7 @@ func (*ClientInfo) ProtoMessage() {}
|
||||
|
||||
func (x *ClientInfo) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vql_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -937,280 +914,120 @@ func (x *ClientInfo) GetMetadata() map[string]string {
|
||||
|
||||
var File_vql_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_vql_proto_rawDesc = []byte{
|
||||
0x0a, 0x09, 0x76, 0x71, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74,
|
||||
0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x0a, 0x56, 0x51, 0x4c, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x51,
|
||||
0x4c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x56, 0x51, 0x4c, 0x22, 0x4a, 0x0a, 0x06,
|
||||
0x56, 0x51, 0x4c, 0x45, 0x6e, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x9e, 0x0b, 0x0a, 0x10, 0x56, 0x51, 0x4c,
|
||||
0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x72, 0x67, 0x73, 0x12, 0x19, 0x0a,
|
||||
0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x20, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61,
|
||||
0x6c, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x21, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x22, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65,
|
||||
0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64,
|
||||
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65,
|
||||
0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69,
|
||||
0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72,
|
||||
0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x2f, 0x0a, 0x13, 0x65, 0x66, 0x66, 0x65, 0x63,
|
||||
0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x26,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50,
|
||||
0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x5c, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18,
|
||||
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x51,
|
||||
0x4c, 0x45, 0x6e, 0x76, 0x42, 0x3b, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x35, 0x12, 0x33, 0x45, 0x6e,
|
||||
0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
|
||||
0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x71, 0x75, 0x65, 0x72, 0x79,
|
||||
0x2e, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x5a, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x18,
|
||||
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x51,
|
||||
0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x31, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x2b,
|
||||
0x12, 0x29, 0x54, 0x68, 0x65, 0x20, 0x56, 0x51, 0x4c, 0x20, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65,
|
||||
0x73, 0x20, 0x74, 0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x6f, 0x6e, 0x20,
|
||||
0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x05, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x12, 0x9d, 0x01, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x04, 0x42, 0x83, 0x01, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x7d, 0x12, 0x62, 0x54,
|
||||
0x68, 0x65, 0x20, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x20, 0x72, 0x6f, 0x77, 0x73, 0x20,
|
||||
0x70, 0x65, 0x72, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x20, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x20, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x72, 0x20, 0x74,
|
||||
0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65,
|
||||
0x20, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x20, 0x61, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x20, 0x6d, 0x75,
|
||||
0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73,
|
||||
0x2e, 0x22, 0x11, 0x4d, 0x61, 0x78, 0x20, 0x72, 0x6f, 0x77, 0x73, 0x20, 0x70, 0x65, 0x72, 0x20,
|
||||
0x70, 0x61, 0x72, 0x74, 0x32, 0x04, 0x31, 0x30, 0x30, 0x30, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x52,
|
||||
0x6f, 0x77, 0x12, 0x2d, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x6f, 0x77, 0x5f, 0x62, 0x75,
|
||||
0x66, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x25, 0x20, 0x01, 0x28, 0x04, 0x52,
|
||||
0x10, 0x6d, 0x61, 0x78, 0x52, 0x6f, 0x77, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a,
|
||||
0x65, 0x12, 0xcb, 0x01, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x77, 0x61, 0x69, 0x74, 0x18, 0x06,
|
||||
0x20, 0x01, 0x28, 0x04, 0x42, 0xaf, 0x01, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0xa8, 0x01, 0x12, 0x7d,
|
||||
0x46, 0x6f, 0x72, 0x20, 0x6c, 0x6f, 0x6e, 0x67, 0x20, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,
|
||||
0x20, 0x77, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x72, 0x74, 0x69,
|
||||
0x61, 0x6c, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x61, 0x66, 0x74, 0x65, 0x72,
|
||||
0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6c, 0x6f, 0x6e, 0x67, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73,
|
||||
0x20, 0x69, 0x73, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72,
|
||||
0x20, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x73,
|
||||
0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x6e, 0x65, 0x76, 0x65, 0x72, 0x20, 0x72, 0x65, 0x61,
|
||||
0x6c, 0x6c, 0x79, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x2e, 0x22, 0x23, 0x42,
|
||||
0x61, 0x74, 0x63, 0x68, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x20, 0x74, 0x68,
|
||||
0x61, 0x74, 0x20, 0x74, 0x61, 0x6b, 0x65, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6c, 0x6f, 0x6e,
|
||||
0x67, 0x2e, 0x32, 0x02, 0x31, 0x30, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x57, 0x61, 0x69, 0x74, 0x12,
|
||||
0xc8, 0x01, 0x0a, 0x0e, 0x6f, 0x70, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f,
|
||||
0x6e, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x02, 0x42, 0xa1, 0x01, 0xe2, 0xfc, 0xe3, 0xc4, 0x01,
|
||||
0x9a, 0x01, 0x12, 0x97, 0x01, 0x41, 0x6e, 0x20, 0x4f, 0x70, 0x20, 0x69, 0x73, 0x20, 0x64, 0x65,
|
||||
0x66, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x61, 0x72,
|
||||
0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x20, 0x75, 0x6e, 0x69, 0x74, 0x20, 0x6f, 0x66, 0x20,
|
||||
0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
|
||||
0x73, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x6c, 0x69, 0x6d,
|
||||
0x69, 0x74, 0x65, 0x64, 0x2e, 0x20, 0x54, 0x79, 0x70, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20,
|
||||
0x56, 0x51, 0x4c, 0x20, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x20, 0x77, 0x69, 0x6c, 0x6c,
|
||||
0x20, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x6f, 0x70, 0x73, 0x20, 0x74, 0x6f, 0x77, 0x61, 0x72,
|
||||
0x64, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x61, 0x73, 0x20,
|
||||
0x61, 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x0c, 0x6f, 0x70,
|
||||
0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x70,
|
||||
0x75, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x63,
|
||||
0x70, 0x75, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6f, 0x70, 0x73, 0x5f,
|
||||
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x69, 0x6f, 0x70,
|
||||
0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65,
|
||||
0x73, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x24, 0x20, 0x01, 0x28, 0x02,
|
||||
0x52, 0x0f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75,
|
||||
0x74, 0x12, 0x6e, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x05,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x72, 0x74,
|
||||
0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x3f, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x39, 0x12, 0x37, 0x41,
|
||||
0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x20, 0x73, 0x65, 0x6e, 0x74, 0x20, 0x66, 0x72,
|
||||
0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x74, 0x6f,
|
||||
0x20, 0x68, 0x65, 0x6c, 0x70, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20,
|
||||
0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74,
|
||||
0x73, 0x12, 0x44, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x19, 0x20, 0x01,
|
||||
0x28, 0x04, 0x42, 0x2a, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x24, 0x12, 0x22, 0x4d, 0x61, 0x78, 0x69,
|
||||
0x6d, 0x75, 0x6d, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65,
|
||||
0x20, 0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x75, 0x6e, 0x2e, 0x52, 0x07,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x61, 0x72, 0x74,
|
||||
0x62, 0x65, 0x61, 0x74, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x68, 0x65, 0x61, 0x72,
|
||||
0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x4b, 0x0a, 0x05, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x1a,
|
||||
0x20, 0x03, 0x28, 0x09, 0x42, 0x35, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x2f, 0x12, 0x2d, 0x41, 0x20,
|
||||
0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x20, 0x77, 0x65,
|
||||
0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x6e, 0x65, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x75,
|
||||
0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x56, 0x51, 0x4c, 0x2e, 0x52, 0x05, 0x74, 0x6f, 0x6f,
|
||||
0x6c, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x23, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x0a, 0x56, 0x51, 0x4c,
|
||||
0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
|
||||
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x79, 0x70, 0x65, 0x22, 0xe5, 0x07, 0x0a, 0x0b, 0x56, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x18, 0x12, 0x16, 0x4a,
|
||||
0x53, 0x4f, 0x4e, 0x20, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x44, 0x0a, 0x0d, 0x4a, 0x53, 0x4f, 0x4e, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x18, 0x12, 0x16,
|
||||
0x4a, 0x53, 0x4f, 0x4e, 0x20, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x0d, 0x4a, 0x53, 0x4f, 0x4e, 0x4c, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73,
|
||||
0x73, 0x65, 0x64, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18,
|
||||
0x0f, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x16, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65,
|
||||
0x64, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a,
|
||||
0x11, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x69,
|
||||
0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x70,
|
||||
0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x79,
|
||||
0x74, 0x65, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52,
|
||||
0x0a, 0x62, 0x79, 0x74, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x52, 0x0a, 0x07, 0x43,
|
||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x38, 0xe2, 0xfc,
|
||||
0xe3, 0xc4, 0x01, 0x32, 0x12, 0x30, 0x41, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20,
|
||||
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x20, 0x68, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x20,
|
||||
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20,
|
||||
0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x52, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
|
||||
0x5e, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x51, 0x4c, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61,
|
||||
0x70, 0x42, 0x35, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x2f, 0x12, 0x2d, 0x4d, 0x61, 0x70, 0x70, 0x69,
|
||||
0x6e, 0x67, 0x20, 0x62, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x20, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
|
||||
0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x69,
|
||||
0x72, 0x20, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12,
|
||||
0x52, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x04, 0x42, 0x37, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x31, 0x12, 0x2f, 0x43, 0x68, 0x72, 0x6f, 0x6e,
|
||||
0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x6f,
|
||||
0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x77, 0x65, 0x20, 0x72,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x20, 0x74, 0x6f, 0x2e, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72,
|
||||
0x79, 0x49, 0x64, 0x12, 0x74, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||
0x04, 0x42, 0x60, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x5a, 0x12, 0x58, 0x4c, 0x61, 0x72, 0x67, 0x65,
|
||||
0x20, 0x56, 0x51, 0x4c, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x20, 0x61,
|
||||
0x72, 0x65, 0x20, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x20, 0x61, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x20,
|
||||
0x6d, 0x61, 0x6e, 0x79, 0x20, 0x70, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73,
|
||||
0x20, 0x63, 0x61, 0x72, 0x72, 0x69, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x61, 0x72,
|
||||
0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x2e, 0x52, 0x04, 0x70, 0x61, 0x72, 0x74, 0x12, 0x4d, 0x0a, 0x05, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x2e, 0x56, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x24, 0xe2, 0xfc, 0xe3,
|
||||
0xc4, 0x01, 0x1e, 0x12, 0x1c, 0x54, 0x68, 0x65, 0x20, 0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x74,
|
||||
0x68, 0x61, 0x74, 0x20, 0x77, 0x61, 0x73, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64,
|
||||
0x2e, 0x52, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x5c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x42, 0x3e, 0xe2, 0xfc, 0xe3,
|
||||
0xc4, 0x01, 0x38, 0x0a, 0x0b, 0x52, 0x44, 0x46, 0x44, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x12, 0x29, 0x54, 0x68, 0x65, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x20,
|
||||
0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x77, 0x61, 0x73,
|
||||
0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x52, 0x09, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x52, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f,
|
||||
0x72, 0x6f, 0x77, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x42, 0x33, 0xe2, 0xfc, 0xe3, 0xc4,
|
||||
0x01, 0x2d, 0x12, 0x2b, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
|
||||
0x20, 0x6f, 0x66, 0x20, 0x72, 0x6f, 0x77, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73,
|
||||
0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x70, 0x61, 0x72, 0x74, 0x2e, 0x52,
|
||||
0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x71, 0x75,
|
||||
0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x0b, 0x20,
|
||||
0x01, 0x28, 0x04, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52,
|
||||
0x6f, 0x77, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x03, 0x6c, 0x6f, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x0c,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x04, 0x55,
|
||||
0x73, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x1b, 0x12, 0x19, 0x54,
|
||||
0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74,
|
||||
0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61,
|
||||
0x6d, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x0d, 0x56, 0x51, 0x4c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x12, 0x55, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x51, 0x4c, 0x43,
|
||||
0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x72, 0x67, 0x73, 0x42, 0x26, 0xe2, 0xfc,
|
||||
0xe3, 0xc4, 0x01, 0x20, 0x12, 0x1e, 0x41, 0x20, 0x73, 0x65, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x65,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x20, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20,
|
||||
0x72, 0x75, 0x6e, 0x2e, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x07, 0x76,
|
||||
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x42, 0x28, 0xe2, 0xfc,
|
||||
0xe3, 0xc4, 0x01, 0x22, 0x12, 0x20, 0x54, 0x68, 0x65, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
||||
0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x20,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22,
|
||||
0xc0, 0x08, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b,
|
||||
0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x68,
|
||||
0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68,
|
||||
0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73,
|
||||
0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x73,
|
||||
0x74, 0x65, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x06,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x22, 0x0a,
|
||||
0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72,
|
||||
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
|
||||
0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04,
|
||||
0x70, 0x69, 0x6e, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d,
|
||||
0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e,
|
||||
0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
|
||||
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x69, 0x72,
|
||||
0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x5f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x0b, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, 0x41, 0x74, 0x12, 0x1d, 0x0a,
|
||||
0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09,
|
||||
0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x73,
|
||||
0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x04, 0x52,
|
||||
0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61,
|
||||
0x62, 0x65, 0x6c, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72,
|
||||
0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x63,
|
||||
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x61, 0x73,
|
||||
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x68, 0x61,
|
||||
0x73, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69,
|
||||
0x6e, 0x74, 0x65, 0x72, 0x72, 0x6f, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f,
|
||||
0x69, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x72, 0x6f, 0x67, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12,
|
||||
0x43, 0x0a, 0x1e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x6f, 0x67,
|
||||
0x61, 0x74, 0x65, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1b, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x74,
|
||||
0x65, 0x72, 0x72, 0x6f, 0x67, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74,
|
||||
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x75, 0x6e,
|
||||
0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x11, 0x20, 0x01, 0x28,
|
||||
0x04, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x75, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73,
|
||||
0x74, 0x61, 0x6d, 0x70, 0x12, 0x37, 0x0a, 0x18, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
|
||||
0x18, 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e,
|
||||
0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a,
|
||||
0x10, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||
0x70, 0x18, 0x17, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x54,
|
||||
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4c, 0x0a, 0x0f, 0x69, 0x6e, 0x5f, 0x66,
|
||||
0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x1c, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x6c, 0x6f,
|
||||
0x77, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x69, 0x6e, 0x46, 0x6c, 0x69, 0x67, 0x68,
|
||||
0x74, 0x46, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
||||
0x74, 0x61, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x61,
|
||||
0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
|
||||
0x61, 0x74, 0x61, 0x1a, 0x40, 0x0a, 0x12, 0x49, 0x6e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46,
|
||||
0x6c, 0x6f, 0x77, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
|
||||
0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
|
||||
0x38, 0x01, 0x42, 0x35, 0x5a, 0x33, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69,
|
||||
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76,
|
||||
0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x63, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
const file_vql_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\tvql.proto\x12\x05proto\x1a\x14proto/semantic.proto\x1a\x1eartifacts/proto/artifact.proto\"2\n" +
|
||||
"\n" +
|
||||
"VQLRequest\x12\x12\n" +
|
||||
"\x04Name\x18\x02 \x01(\tR\x04Name\x12\x10\n" +
|
||||
"\x03VQL\x18\x01 \x01(\tR\x03VQL\"J\n" +
|
||||
"\x06VQLEnv\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value\x12\x18\n" +
|
||||
"\acomment\x18\x03 \x01(\tR\acomment\"\x9e\v\n" +
|
||||
"\x10VQLCollectorArgs\x12\x19\n" +
|
||||
"\bquery_id\x18 \x01(\x03R\aqueryId\x12#\n" +
|
||||
"\rtotal_queries\x18! \x01(\x03R\ftotalQueries\x12\x16\n" +
|
||||
"\x06expiry\x18\" \x01(\x04R\x06expiry\x12\"\n" +
|
||||
"\fprecondition\x18\x1d \x01(\tR\fprecondition\x12\x1c\n" +
|
||||
"\tprincipal\x18\x1c \x01(\tR\tprincipal\x12/\n" +
|
||||
"\x13effective_principal\x18& \x01(\tR\x12effectivePrincipal\x12\\\n" +
|
||||
"\x03env\x18\x03 \x03(\v2\r.proto.VQLEnvB;\xe2\xfc\xe3\xc4\x015\x123Environment variables to be provided for the query.R\x03env\x12Z\n" +
|
||||
"\x05Query\x18\x02 \x03(\v2\x11.proto.VQLRequestB1\xe2\xfc\xe3\xc4\x01+\x12)The VQL queries to execute on the client.R\x05Query\x12\x9d\x01\n" +
|
||||
"\amax_row\x18\x04 \x01(\x04B\x83\x01\xe2\xfc\xe3\xc4\x01}\x12bThe maximum rows per response. Responses larger than this will be split across multiple responses.\"\x11Max rows per part2\x041000R\x06maxRow\x12-\n" +
|
||||
"\x13max_row_buffer_size\x18% \x01(\x04R\x10maxRowBufferSize\x12\xcb\x01\n" +
|
||||
"\bmax_wait\x18\x06 \x01(\x04B\xaf\x01\xe2\xfc\xe3\xc4\x01\xa8\x01\x12}For long queries we return partial results after this long. This is required for event listeners which never really complete.\"#Batch requests that take this long.2\x0210R\amaxWait\x12\xc8\x01\n" +
|
||||
"\x0eops_per_second\x18\x18 \x01(\x02B\xa1\x01\xe2\xfc\xe3\xc4\x01\x9a\x01\x12\x97\x01An Op is defined as some arbitrary unit of work. This allows work to be limited. Typically VQL plugins will count ops towards the query as appropriate.R\fopsPerSecond\x12\x1b\n" +
|
||||
"\tcpu_limit\x18\x1e \x01(\x02R\bcpuLimit\x12\x1d\n" +
|
||||
"\n" +
|
||||
"iops_limit\x18\x1f \x01(\x02R\tiopsLimit\x12)\n" +
|
||||
"\x10progress_timeout\x18$ \x01(\x02R\x0fprogressTimeout\x12n\n" +
|
||||
"\tartifacts\x18\x05 \x03(\v2\x0f.proto.ArtifactB?\xe2\xfc\xe3\xc4\x019\x127Artifacts sent from the server to help with this query.R\tartifacts\x12D\n" +
|
||||
"\atimeout\x18\x19 \x01(\x04B*\xe2\xfc\xe3\xc4\x01$\x12\"Maximum time for the query to run.R\atimeout\x12\x1c\n" +
|
||||
"\theartbeat\x18\x1b \x01(\x04R\theartbeat\x12K\n" +
|
||||
"\x05tools\x18\x1a \x03(\tB5\xe2\xfc\xe3\xc4\x01/\x12-A list of tools we will need to run this VQL.R\x05tools\x12\x15\n" +
|
||||
"\x06org_id\x18# \x01(\tR\x05orgId\"8\n" +
|
||||
"\n" +
|
||||
"VQLTypeMap\x12\x16\n" +
|
||||
"\x06column\x18\x01 \x01(\tR\x06column\x12\x12\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type\"\xe5\a\n" +
|
||||
"\vVQLResponse\x12:\n" +
|
||||
"\bResponse\x18\x01 \x01(\tB\x1e\xe2\xfc\xe3\xc4\x01\x18\x12\x16JSON encoded response.R\bResponse\x12D\n" +
|
||||
"\rJSONLResponse\x18\n" +
|
||||
" \x01(\tB\x1e\xe2\xfc\xe3\xc4\x01\x18\x12\x16JSON encoded response.R\rJSONLResponse\x126\n" +
|
||||
"\x16CompressedJsonResponse\x18\x0f \x01(\fR\x16CompressedJsonResponse\x12+\n" +
|
||||
"\x11uncompressed_size\x18\r \x01(\x04R\x10uncompressedSize\x12\x1f\n" +
|
||||
"\vbyte_offset\x18\x0e \x01(\x04R\n" +
|
||||
"byteOffset\x12R\n" +
|
||||
"\aColumns\x18\x02 \x03(\tB8\xe2\xfc\xe3\xc4\x012\x120A list of column headings produced by the query.R\aColumns\x12^\n" +
|
||||
"\x05types\x18\b \x03(\v2\x11.proto.VQLTypeMapB5\xe2\xfc\xe3\xc4\x01/\x12-Mapping between column names and their types.R\x05types\x12R\n" +
|
||||
"\bquery_id\x18\x05 \x01(\x04B7\xe2\xfc\xe3\xc4\x011\x12/Chronological order of the query we respond to.R\aqueryId\x12t\n" +
|
||||
"\x04part\x18\x06 \x01(\x04B`\xe2\xfc\xe3\xc4\x01Z\x12XLarge VQL responses are split across many parts. This carries the part of this response.R\x04part\x12M\n" +
|
||||
"\x05Query\x18\x03 \x01(\v2\x11.proto.VQLRequestB$\xe2\xfc\xe3\xc4\x01\x1e\x12\x1cThe query that was executed.R\x05Query\x12\\\n" +
|
||||
"\ttimestamp\x18\x04 \x01(\x04B>\xe2\xfc\xe3\xc4\x018\n" +
|
||||
"\vRDFDatetime\x12)The timestamp the response was generated.R\ttimestamp\x12R\n" +
|
||||
"\n" +
|
||||
"total_rows\x18\a \x01(\x04B3\xe2\xfc\xe3\xc4\x01-\x12+Total number of rows in this response part.R\ttotalRows\x12&\n" +
|
||||
"\x0fquery_start_row\x18\v \x01(\x04R\rqueryStartRow\x12\x10\n" +
|
||||
"\x03log\x18\t \x01(\tR\x03log\x12\x15\n" +
|
||||
"\x06org_id\x18\f \x01(\tR\x05orgId\"E\n" +
|
||||
"\x04User\x12=\n" +
|
||||
"\busername\x18\x01 \x01(\tB!\xe2\xfc\xe3\xc4\x01\x1b\x12\x19The username of the user.R\busername\"\xaa\x01\n" +
|
||||
"\rVQLEventTable\x12U\n" +
|
||||
"\x05event\x18\x01 \x03(\v2\x17.proto.VQLCollectorArgsB&\xe2\xfc\xe3\xc4\x01 \x12\x1eA set of event queries to run.R\x05event\x12B\n" +
|
||||
"\aversion\x18\x02 \x01(\x04B(\xe2\xfc\xe3\xc4\x01\"\x12 The version of this event table.R\aversion\"\xc0\b\n" +
|
||||
"\n" +
|
||||
"ClientInfo\x12\x1b\n" +
|
||||
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12\x1a\n" +
|
||||
"\bhostname\x18\x03 \x01(\tR\bhostname\x12\x12\n" +
|
||||
"\x04fqdn\x18\x04 \x01(\tR\x04fqdn\x12\x16\n" +
|
||||
"\x06system\x18\x05 \x01(\tR\x06system\x12\x18\n" +
|
||||
"\arelease\x18\x06 \x01(\tR\arelease\x12\"\n" +
|
||||
"\farchitecture\x18\a \x01(\tR\farchitecture\x12\x1d\n" +
|
||||
"\n" +
|
||||
"ip_address\x18\n" +
|
||||
" \x01(\tR\tipAddress\x12\x12\n" +
|
||||
"\x04ping\x18\v \x01(\x04R\x04ping\x12\x1b\n" +
|
||||
"\tping_time\x18\x13 \x01(\tR\bpingTime\x12%\n" +
|
||||
"\x0eclient_version\x18\f \x01(\tR\rclientVersion\x12\x1f\n" +
|
||||
"\vclient_name\x18\r \x01(\tR\n" +
|
||||
"clientName\x12\"\n" +
|
||||
"\rfirst_seen_at\x18\x14 \x01(\x04R\vfirstSeenAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"build_time\x18\x18 \x01(\tR\tbuildTime\x12\x1b\n" +
|
||||
"\tbuild_url\x18\x19 \x01(\tR\bbuildUrl\x12!\n" +
|
||||
"\finstall_time\x18\x1a \x01(\x04R\vinstallTime\x12\x16\n" +
|
||||
"\x06labels\x18\x0f \x03(\tR\x06labels\x12#\n" +
|
||||
"\rmac_addresses\x18\x16 \x03(\tR\fmacAddresses\x12\x1b\n" +
|
||||
"\thas_tasks\x18\x1b \x01(\bR\bhasTasks\x127\n" +
|
||||
"\x18last_interrogate_flow_id\x18\x10 \x01(\tR\x15lastInterrogateFlowId\x12C\n" +
|
||||
"\x1elast_interrogate_artifact_name\x18\x15 \x01(\tR\x1blastInterrogateArtifactName\x12.\n" +
|
||||
"\x13last_hunt_timestamp\x18\x11 \x01(\x04R\x11lastHuntTimestamp\x127\n" +
|
||||
"\x18last_event_table_version\x18\x12 \x01(\x04R\x15lastEventTableVersion\x12)\n" +
|
||||
"\x10labels_timestamp\x18\x17 \x01(\x04R\x0flabelsTimestamp\x12L\n" +
|
||||
"\x0fin_flight_flows\x18\x1c \x03(\v2$.proto.ClientInfo.InFlightFlowsEntryR\rinFlightFlows\x12;\n" +
|
||||
"\bmetadata\x18\x1d \x03(\v2\x1f.proto.ClientInfo.MetadataEntryR\bmetadata\x1a@\n" +
|
||||
"\x12InFlightFlowsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\x1a;\n" +
|
||||
"\rMetadataEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B5Z3www.velocidex.com/golang/velociraptor/actions/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_vql_proto_rawDescOnce sync.Once
|
||||
file_vql_proto_rawDescData = file_vql_proto_rawDesc
|
||||
file_vql_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_vql_proto_rawDescGZIP() []byte {
|
||||
file_vql_proto_rawDescOnce.Do(func() {
|
||||
file_vql_proto_rawDescData = protoimpl.X.CompressGZIP(file_vql_proto_rawDescData)
|
||||
file_vql_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vql_proto_rawDesc), len(file_vql_proto_rawDesc)))
|
||||
})
|
||||
return file_vql_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_vql_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_vql_proto_goTypes = []interface{}{
|
||||
var file_vql_proto_goTypes = []any{
|
||||
(*VQLRequest)(nil), // 0: proto.VQLRequest
|
||||
(*VQLEnv)(nil), // 1: proto.VQLEnv
|
||||
(*VQLCollectorArgs)(nil), // 2: proto.VQLCollectorArgs
|
||||
@@ -1244,109 +1061,11 @@ func file_vql_proto_init() {
|
||||
if File_vql_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_vql_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VQLRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vql_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VQLEnv); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vql_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VQLCollectorArgs); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vql_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VQLTypeMap); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vql_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VQLResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vql_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*User); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vql_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VQLEventTable); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vql_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ClientInfo); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_vql_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_vql_proto_rawDesc), len(file_vql_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumExtensions: 0,
|
||||
@@ -1357,7 +1076,6 @@ func file_vql_proto_init() {
|
||||
MessageInfos: file_vql_proto_msgTypes,
|
||||
}.Build()
|
||||
File_vql_proto = out.File
|
||||
file_vql_proto_rawDesc = nil
|
||||
file_vql_proto_goTypes = nil
|
||||
file_vql_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@ func (self *QueryTracker) GetStartRow(query *actions_proto.VQLRequest) uint64 {
|
||||
self.mu.Lock()
|
||||
defer self.mu.Unlock()
|
||||
|
||||
start_row, _ := self.queriesToStartRow[query.Name]
|
||||
start_row := self.queriesToStartRow[query.Name]
|
||||
return start_row
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ func (self *QueryTracker) AddRows(
|
||||
self.mu.Lock()
|
||||
defer self.mu.Unlock()
|
||||
|
||||
start_row, _ := self.queriesToStartRow[query.Name]
|
||||
start_row := self.queriesToStartRow[query.Name]
|
||||
self.queriesToStartRow[query.Name] = start_row + count
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -374,7 +374,7 @@ func CheckPreconditions(
|
||||
}
|
||||
|
||||
for _, vql := range vqls {
|
||||
for _ = range vql.Eval(ctx, scope) {
|
||||
for range vql.Eval(ctx, scope) {
|
||||
return true, nil
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -114,8 +114,8 @@ func (self *ClientVQLTestSuite) TestDependentArtifacts() {
|
||||
var responses []*crypto_proto.VeloMessage
|
||||
vtesting.WaitUntil(5*time.Second, self.T(), func() bool {
|
||||
responses = resp.Drain.Messages()
|
||||
return "Target: Query, JSONL: {\"X\":1,\"_Source\":\"Custom.Foo.Bar.Baz.A\"}\n\n" ==
|
||||
getVQLResponse(responses)
|
||||
return getVQLResponse(responses) ==
|
||||
"Target: Query, JSONL: {\"X\":1,\"_Source\":\"Custom.Foo.Bar.Baz.A\"}\n\n"
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
+1
-3
@@ -792,9 +792,7 @@ func (self *ApiServer) SetArtifactFile(
|
||||
Warnings: state.Warnings,
|
||||
}
|
||||
|
||||
for _, e := range state.Errors {
|
||||
res.Errors = append(res.Errors, e)
|
||||
}
|
||||
res.Errors = append(res.Errors, state.Errors...)
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
+7
-9
@@ -34,9 +34,7 @@ import (
|
||||
"github.com/lpar/gzipped"
|
||||
"www.velocidex.com/golang/velociraptor/api/proto"
|
||||
api_utils "www.velocidex.com/golang/velociraptor/api/utils"
|
||||
utils "www.velocidex.com/golang/velociraptor/api/utils"
|
||||
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
|
||||
"www.velocidex.com/golang/velociraptor/gui/velociraptor"
|
||||
gui_assets "www.velocidex.com/golang/velociraptor/gui/velociraptor"
|
||||
"www.velocidex.com/golang/velociraptor/services"
|
||||
vutils "www.velocidex.com/golang/velociraptor/utils"
|
||||
@@ -49,14 +47,14 @@ var (
|
||||
func install_static_assets(
|
||||
ctx context.Context,
|
||||
config_obj *config_proto.Config, mux *api_utils.ServeMux) {
|
||||
base := utils.GetBasePath(config_obj)
|
||||
dir := utils.Join(base, "/app/")
|
||||
base := api_utils.GetBasePath(config_obj)
|
||||
dir := api_utils.Join(base, "/app/")
|
||||
mux.Handle(dir, ipFilter(config_obj, api_utils.StripPrefix(
|
||||
dir, fixCSSURLs(config_obj,
|
||||
gzipped.FileServer(NewCachedFilesystem(ctx, gui_assets.NewHTTPFS()))))))
|
||||
|
||||
mux.Handle("/favicon.png",
|
||||
http.RedirectHandler(utils.Join(base, "/favicon.ico"),
|
||||
http.RedirectHandler(api_utils.Join(base, "/favicon.ico"),
|
||||
http.StatusMovedPermanently))
|
||||
}
|
||||
|
||||
@@ -96,10 +94,10 @@ func GetTemplateHandler(
|
||||
user_options = &proto.SetGUIOptionsRequest{}
|
||||
}
|
||||
|
||||
args := velociraptor.HTMLtemplateArgs{
|
||||
args := gui_assets.HTMLtemplateArgs{
|
||||
Timestamp: time.Now().UTC().UnixNano() / 1000,
|
||||
CsrfToken: csrf.Token(r),
|
||||
BasePath: utils.GetBasePath(config_obj),
|
||||
BasePath: api_utils.GetBasePath(config_obj),
|
||||
Heading: "Heading",
|
||||
UserTheme: user_options.Theme,
|
||||
OrgId: user_options.Org,
|
||||
@@ -173,7 +171,7 @@ func NewInterceptingResponseWriter(
|
||||
ResponseWriter: w,
|
||||
from: "url(/app/assets/",
|
||||
to: fmt.Sprintf("url(%v/app/assets/",
|
||||
utils.GetBasePath(config_obj)),
|
||||
api_utils.GetBasePath(config_obj)),
|
||||
br_writer: brotli.NewWriter(w),
|
||||
}
|
||||
}
|
||||
@@ -184,6 +182,6 @@ func NewInterceptingResponseWriter(
|
||||
ResponseWriter: w,
|
||||
from: "url(/app/assets/",
|
||||
to: fmt.Sprintf("url(%v/app/assets/",
|
||||
utils.GetBasePath(config_obj)),
|
||||
api_utils.GetBasePath(config_obj)),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,6 @@ func (self *CertAuthenticator) AddLogoff(mux *api_utils.ServeMux) error {
|
||||
func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("WWW-Authenticate", `Basic realm="Restricted"`)
|
||||
http.Error(w, "authorization failed", http.StatusUnauthorized)
|
||||
return
|
||||
})))
|
||||
|
||||
return nil
|
||||
|
||||
@@ -21,10 +21,6 @@ func (self *transformerTransport) RoundTrip(
|
||||
req *http.Request) (*http.Response, error) {
|
||||
|
||||
rt := self.transport.RoundTrip
|
||||
if rt == nil {
|
||||
rt = http.DefaultTransport.RoundTrip
|
||||
}
|
||||
|
||||
for _, t := range self.transformers {
|
||||
rt = t(rt)
|
||||
}
|
||||
@@ -89,7 +85,7 @@ func traceNetwork(config_obj *config_proto.Config) func(rt RoundTripFunc) RoundT
|
||||
}
|
||||
defer res.Body.Close()
|
||||
|
||||
ct, _ := res.Header["Content-Type"]
|
||||
ct := res.Header["Content-Type"]
|
||||
|
||||
bs, err := io.ReadAll(res.Body)
|
||||
if err != nil {
|
||||
|
||||
@@ -6,9 +6,7 @@ import (
|
||||
"text/template"
|
||||
|
||||
api_utils "www.velocidex.com/golang/velociraptor/api/utils"
|
||||
utils "www.velocidex.com/golang/velociraptor/api/utils"
|
||||
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
|
||||
"www.velocidex.com/golang/velociraptor/gui/velociraptor"
|
||||
gui_assets "www.velocidex.com/golang/velociraptor/gui/velociraptor"
|
||||
"www.velocidex.com/golang/velociraptor/json"
|
||||
)
|
||||
@@ -16,7 +14,7 @@ import (
|
||||
func renderRejectionMessage(
|
||||
config_obj *config_proto.Config,
|
||||
r *http.Request, w http.ResponseWriter, err error,
|
||||
username string, authenticators []velociraptor.AuthenticatorInfo) {
|
||||
username string, authenticators []gui_assets.AuthenticatorInfo) {
|
||||
|
||||
// For API calls we render the error as JSON
|
||||
base_path := api_utils.GetBasePath(config_obj, "/api/")
|
||||
@@ -39,13 +37,13 @@ func renderRejectionMessage(
|
||||
return
|
||||
}
|
||||
|
||||
err = tmpl.Execute(w, velociraptor.HTMLtemplateArgs{
|
||||
BasePath: utils.GetBasePath(config_obj),
|
||||
ErrState: json.MustMarshalString(velociraptor.ErrState{
|
||||
err = tmpl.Execute(w, gui_assets.HTMLtemplateArgs{
|
||||
BasePath: api_utils.GetBasePath(config_obj),
|
||||
ErrState: json.MustMarshalString(gui_assets.ErrState{
|
||||
Type: "Login",
|
||||
Username: username,
|
||||
Authenticators: authenticators,
|
||||
BasePath: utils.GetBasePath(config_obj),
|
||||
BasePath: api_utils.GetBasePath(config_obj),
|
||||
}),
|
||||
})
|
||||
if err != nil {
|
||||
@@ -71,13 +69,13 @@ func renderLogoffMessage(
|
||||
return
|
||||
}
|
||||
|
||||
err = tmpl.Execute(w, velociraptor.HTMLtemplateArgs{
|
||||
BasePath: utils.GetBasePath(config_obj),
|
||||
ErrState: json.MustMarshalString(velociraptor.ErrState{
|
||||
err = tmpl.Execute(w, gui_assets.HTMLtemplateArgs{
|
||||
BasePath: api_utils.GetBasePath(config_obj),
|
||||
ErrState: json.MustMarshalString(gui_assets.ErrState{
|
||||
Type: "Logoff",
|
||||
Username: username,
|
||||
BasePath: utils.GetBaseDirectory(config_obj),
|
||||
Authenticators: []velociraptor.AuthenticatorInfo{},
|
||||
BasePath: api_utils.GetBaseDirectory(config_obj),
|
||||
Authenticators: []gui_assets.AuthenticatorInfo{},
|
||||
}),
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/Velocidex/ordereddict"
|
||||
jwt "github.com/golang-jwt/jwt/v4"
|
||||
@@ -139,68 +138,6 @@ func reject_with_username(
|
||||
})
|
||||
}
|
||||
|
||||
// Create a new JWT cookie embedding the claims in it.
|
||||
// The JWT is signed with the server's private key so we can verify it
|
||||
// easily and it can not be modified.
|
||||
func getSignedJWTTokenCookie(
|
||||
config_obj *config_proto.Config,
|
||||
authenticator *config_proto.Authenticator,
|
||||
claims *Claims, r *http.Request) (*http.Cookie, error) {
|
||||
if config_obj.Frontend == nil {
|
||||
return nil, errors.New("config has no Frontend")
|
||||
}
|
||||
|
||||
expiry_min := authenticator.DefaultSessionExpiryMin
|
||||
if expiry_min == 0 {
|
||||
expiry_min = 60 * 24 // 1 Day by default
|
||||
}
|
||||
|
||||
// We force expiry in the JWT **as well** as the session
|
||||
// cookie. The JWT expiry is most important as the browser can
|
||||
// replay session cookies past expiry.
|
||||
expiry := utils.GetTime().Now().Add(time.Minute * time.Duration(expiry_min))
|
||||
|
||||
// Enforce the JWT to expire
|
||||
claims.Expires = float64(expiry.Unix())
|
||||
|
||||
// Make a JWT and sign it.
|
||||
token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims)
|
||||
if authenticator.OidcDebug {
|
||||
logging.GetLogger(config_obj, &logging.GUIComponent).
|
||||
Debug("getSignedJWTTokenCookie: Creating JWT with claims: %#v", claims)
|
||||
}
|
||||
|
||||
tokenString, err := token.SignedString([]byte(config_obj.Frontend.PrivateKey))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Log a successful login.
|
||||
err = services.LogAudit(r.Context(),
|
||||
config_obj, claims.Username, "Login",
|
||||
ordereddict.NewDict().
|
||||
Set("remote", r.RemoteAddr).
|
||||
Set("authenticator", authenticator.Type).
|
||||
Set("url", r.URL.Path))
|
||||
if err != nil {
|
||||
logger := logging.GetLogger(config_obj, &logging.FrontendComponent)
|
||||
logger.Error("getSignedJWTTokenCookie LogAudit: Login %v %v",
|
||||
claims.Username, r.RemoteAddr)
|
||||
}
|
||||
|
||||
// Sets the cookie on the browser so it is only valid from the
|
||||
// base down.
|
||||
return &http.Cookie{
|
||||
Name: "VelociraptorAuth",
|
||||
Value: tokenString,
|
||||
Path: api_utils.GetBaseDirectory(config_obj),
|
||||
Secure: true,
|
||||
HttpOnly: true,
|
||||
SameSite: http.SameSiteStrictMode,
|
||||
Expires: expiry,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// Extracts the claims from the VelociraptorAuth cookie:
|
||||
// Ensure the JWT is properly validated and contains all the
|
||||
// required fields.
|
||||
|
||||
+3
-5
@@ -365,7 +365,8 @@ func StartFrontendHttps(
|
||||
|
||||
atomic.StoreInt32(&server_obj.Healthy, 1)
|
||||
|
||||
listener, err, closer := server_obj.NewLoadSheddingListener(server.Addr)
|
||||
listener, closer, err := server_obj.NewLoadSheddingListener(
|
||||
server.Addr)
|
||||
if err != nil {
|
||||
server_obj.Error("Frontend server: Can not listen on %v: %v",
|
||||
server.Addr, err)
|
||||
@@ -564,7 +565,7 @@ func StartFrontendWithAutocert(
|
||||
// port for the GUI and clients. If we load shed the
|
||||
// clients we will also load shed the GUI... Does this
|
||||
// makes sense?
|
||||
listener, err, closer := server_obj.NewLoadSheddingListener(server.Addr)
|
||||
listener, closer, err := server_obj.NewLoadSheddingListener(server.Addr)
|
||||
if err != nil {
|
||||
server_obj.Error("Frontend server: Can not listen on %v: %v",
|
||||
server.Addr, err)
|
||||
@@ -773,8 +774,6 @@ func addClientCerts(config_obj *config_proto.Config, in *tls.Config) error {
|
||||
in.ClientAuth = tls.RequireAndVerifyClientCert
|
||||
in.ClientCAs = client_ca
|
||||
|
||||
in.BuildNameToCertificate()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -806,7 +805,6 @@ func getTLSConfig(config_obj *config_proto.Config, in *tls.Config) error {
|
||||
in.CurvePreferences = []tls.CurveID{
|
||||
tls.CurveP521, tls.CurveP384, tls.CurveP256}
|
||||
in.ClientSessionCache = tls.NewLRUClientSessionCache(int(expected_clients))
|
||||
in.PreferServerCipherSuites = true
|
||||
|
||||
in.CipherSuites = []uint16{
|
||||
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
|
||||
|
||||
@@ -21,8 +21,6 @@ import (
|
||||
|
||||
type DatastoreAPITest struct {
|
||||
test_utils.TestSuite
|
||||
|
||||
client_config *config_proto.Config
|
||||
}
|
||||
|
||||
func (self *DatastoreAPITest) SetupTest() {
|
||||
|
||||
+3
-2
@@ -69,6 +69,7 @@ import (
|
||||
const BUFSIZE = 1 * 1024 * 1024
|
||||
|
||||
var (
|
||||
//lint:file-ignore SA6002 - Slices are ok.
|
||||
pool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
return make([]byte, BUFSIZE)
|
||||
@@ -230,7 +231,7 @@ func vfsFileDownloadHandler(config_obj *config_proto.Config) http.Handler {
|
||||
// 1. The file is not sparse
|
||||
// 2. The file is sparse and we are not padding.
|
||||
// 3. The file is sparse and we are padding it.
|
||||
var reader_at io.ReaderAt = utils.MakeReaderAtter(file)
|
||||
var reader_at = utils.MakeReaderAtter(file)
|
||||
var total_size int
|
||||
|
||||
index, err := getIndex(org_config_obj, path_spec)
|
||||
@@ -782,7 +783,7 @@ func vfsGetBuffer(config_obj *config_proto.Config, client_id string,
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
var reader_at io.ReaderAt = utils.MakeReaderAtter(file)
|
||||
var reader_at = utils.MakeReaderAtter(file)
|
||||
|
||||
result := &api_proto.VFSFileBuffer{
|
||||
Data: make([]byte, length),
|
||||
|
||||
+7
-5
@@ -43,9 +43,7 @@ type: SERVER_EVENT
|
||||
// Tests the public API endpoints
|
||||
type GeneralAPITest struct {
|
||||
test_utils.TestSuite
|
||||
|
||||
client_config *config_proto.Config
|
||||
username string
|
||||
username string
|
||||
}
|
||||
|
||||
func (self *GeneralAPITest) SetupTest() {
|
||||
@@ -100,6 +98,7 @@ func (self *GeneralAPITest) TestQuery() {
|
||||
err := user_manager.SetUser(self.Ctx, &api_proto.VelociraptorUser{
|
||||
Name: self.username,
|
||||
})
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
// Make the user a reader on the root org.
|
||||
err = services.GrantUserToOrg(self.Ctx,
|
||||
@@ -218,6 +217,7 @@ func (self *GeneralAPITest) TestVFSGetBuffer() {
|
||||
err = user_manager.SetUser(self.Ctx, &api_proto.VelociraptorUser{
|
||||
Name: self.username,
|
||||
})
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
// Make the user a reader on the root org.
|
||||
err = services.GrantUserToOrg(self.Ctx,
|
||||
@@ -240,7 +240,7 @@ func (self *GeneralAPITest) TestVFSGetBuffer() {
|
||||
Length: 100,
|
||||
}
|
||||
|
||||
buf, err := client.VFSGetBuffer(self.Ctx, message)
|
||||
_, err = client.VFSGetBuffer(self.Ctx, message)
|
||||
assert.Error(self.T(), err)
|
||||
assert.Contains(self.T(), err.Error(),
|
||||
"PermissionDenied desc = User is not allowed to view the VFS")
|
||||
@@ -254,7 +254,7 @@ func (self *GeneralAPITest) TestVFSGetBuffer() {
|
||||
})
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
buf, err = client.VFSGetBuffer(self.Ctx, message)
|
||||
buf, err := client.VFSGetBuffer(self.Ctx, message)
|
||||
assert.NoError(self.T(), err)
|
||||
assert.Equal(self.T(), string(buf.Data), "Hello")
|
||||
}
|
||||
@@ -312,6 +312,7 @@ func (self *GeneralAPITest) TestVFSGetBufferSparse() {
|
||||
err = user_manager.SetUser(self.Ctx, &api_proto.VelociraptorUser{
|
||||
Name: self.username,
|
||||
})
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
// Make the user a reader on the root org.
|
||||
err = services.GrantUserToOrg(self.Ctx,
|
||||
@@ -358,6 +359,7 @@ func (self *GeneralAPITest) TestPushEvents() {
|
||||
err = user_manager.SetUser(self.Ctx, &api_proto.VelociraptorUser{
|
||||
Name: self.username,
|
||||
})
|
||||
assert.NoError(self.T(), err)
|
||||
|
||||
// Make the user a reader on the root org.
|
||||
err = services.GrantUserToOrg(self.Ctx,
|
||||
|
||||
+2
-1
@@ -65,7 +65,7 @@ func (self *ApiServer) SearchFile(ctx context.Context,
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
var reader_at io.ReaderAt = utils.MakeReaderAtter(file)
|
||||
var reader_at = utils.MakeReaderAtter(file)
|
||||
index, err := getIndex(org_config_obj, path_spec)
|
||||
|
||||
// If the file is sparse, we use the sparse reader.
|
||||
@@ -84,6 +84,7 @@ func (self *ApiServer) SearchFile(ctx context.Context,
|
||||
offset := int64(in.Offset)
|
||||
var buf []byte
|
||||
|
||||
//lint:file-ignore SA6002 Slices are OK
|
||||
if in.Forward {
|
||||
buf = pool.Get().([]byte)
|
||||
defer pool.Put(buf)
|
||||
|
||||
+2
-3
@@ -10,7 +10,6 @@ import (
|
||||
"www.velocidex.com/golang/velociraptor/api/tables"
|
||||
artifacts_proto "www.velocidex.com/golang/velociraptor/artifacts/proto"
|
||||
"www.velocidex.com/golang/velociraptor/constants"
|
||||
"www.velocidex.com/golang/velociraptor/json"
|
||||
vjson "www.velocidex.com/golang/velociraptor/json"
|
||||
"www.velocidex.com/golang/velociraptor/services"
|
||||
)
|
||||
@@ -184,12 +183,12 @@ func (self *ApiServer) GetClientFlows(
|
||||
flow.Request.Creator,
|
||||
flow.TotalUploadedBytes,
|
||||
flow.TotalCollectedRows,
|
||||
json.ConvertProtoToOrderedDict(flow),
|
||||
vjson.ConvertProtoToOrderedDict(flow),
|
||||
flow.Request.Urgent,
|
||||
flow.ArtifactsWithResults,
|
||||
}
|
||||
opts := vjson.DefaultEncOpts()
|
||||
serialized, err := json.MarshalWithOptions(row_data, opts)
|
||||
serialized, err := vjson.MarshalWithOptions(row_data, opts)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
+1
-2
@@ -3,7 +3,6 @@ package api
|
||||
import (
|
||||
"context"
|
||||
|
||||
"www.velocidex.com/golang/velociraptor/api/proto"
|
||||
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
|
||||
)
|
||||
|
||||
@@ -11,7 +10,7 @@ func (self *ApiServer) Check(
|
||||
ctx context.Context,
|
||||
in *api_proto.HealthCheckRequest) (*api_proto.HealthCheckResponse, error) {
|
||||
|
||||
return &proto.HealthCheckResponse{
|
||||
return &api_proto.HealthCheckResponse{
|
||||
Status: api_proto.HealthCheckResponse_SERVING,
|
||||
}, nil
|
||||
}
|
||||
|
||||
+2
-3
@@ -15,7 +15,6 @@ import (
|
||||
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
|
||||
"www.velocidex.com/golang/velociraptor/api/tables"
|
||||
"www.velocidex.com/golang/velociraptor/json"
|
||||
vjson "www.velocidex.com/golang/velociraptor/json"
|
||||
"www.velocidex.com/golang/velociraptor/logging"
|
||||
"www.velocidex.com/golang/velociraptor/services"
|
||||
"www.velocidex.com/golang/velociraptor/services/hunt_dispatcher"
|
||||
@@ -88,7 +87,7 @@ func (self *ApiServer) GetHuntFlows(
|
||||
flow.Context.TotalCollectedRows,
|
||||
}
|
||||
|
||||
opts := vjson.DefaultEncOpts()
|
||||
opts := json.DefaultEncOpts()
|
||||
serialized, err := json.MarshalWithOptions(row_data, opts)
|
||||
if err != nil {
|
||||
continue
|
||||
@@ -166,7 +165,7 @@ func (self *ApiServer) GetHuntTable(
|
||||
total_clients_scheduled,
|
||||
hunt.Creator,
|
||||
}
|
||||
opts := vjson.DefaultEncOpts()
|
||||
opts := json.DefaultEncOpts()
|
||||
serialized, err := json.MarshalWithOptions(row_data, opts)
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
+234
-833
File diff suppressed because it is too large
Load Diff
+1027
-739
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,5 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// source: api.proto
|
||||
|
||||
package proto
|
||||
|
||||
|
||||
+275
-666
File diff suppressed because it is too large
Load Diff
+218
-495
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
_ "www.velocidex.com/golang/velociraptor/proto"
|
||||
)
|
||||
|
||||
@@ -119,23 +120,20 @@ func (SearchClientsRequest_Filters) EnumDescriptor() ([]byte, []int) {
|
||||
// semantic versioning. We use a string instead which represents the
|
||||
// commit number.
|
||||
type AgentInformation struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
BuildTime string `protobuf:"bytes,3,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
|
||||
BuildUrl string `protobuf:"bytes,4,opt,name=build_url,json=buildUrl,proto3" json:"build_url,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
BuildTime string `protobuf:"bytes,3,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
|
||||
BuildUrl string `protobuf:"bytes,4,opt,name=build_url,json=buildUrl,proto3" json:"build_url,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AgentInformation) Reset() {
|
||||
*x = AgentInformation{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AgentInformation) String() string {
|
||||
@@ -146,7 +144,7 @@ func (*AgentInformation) ProtoMessage() {}
|
||||
|
||||
func (x *AgentInformation) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -189,37 +187,34 @@ func (x *AgentInformation) GetBuildUrl() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// TODO: This is an older protobuf that is now largely superceded by
|
||||
// TODO: This is an older protobuf that is now largely supeceeded by
|
||||
// actions_proto.ClientInfo. We need to replace use of this protobuf
|
||||
// by ClientInfo.
|
||||
type ApiClient struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
AgentInformation *AgentInformation `protobuf:"bytes,2,opt,name=agent_information,json=agentInformation,proto3" json:"agent_information,omitempty"`
|
||||
OsInfo *Uname `protobuf:"bytes,3,opt,name=os_info,json=osInfo,proto3" json:"os_info,omitempty"`
|
||||
FirstSeenAt uint64 `protobuf:"varint,6,opt,name=first_seen_at,json=firstSeenAt,proto3" json:"first_seen_at,omitempty"`
|
||||
LastSeenAt uint64 `protobuf:"varint,7,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
|
||||
LastIp string `protobuf:"bytes,16,opt,name=last_ip,json=lastIp,proto3" json:"last_ip,omitempty"`
|
||||
LastInterrogateFlowId string `protobuf:"bytes,19,opt,name=last_interrogate_flow_id,json=lastInterrogateFlowId,proto3" json:"last_interrogate_flow_id,omitempty"`
|
||||
LastInterrogateArtifactName string `protobuf:"bytes,21,opt,name=last_interrogate_artifact_name,json=lastInterrogateArtifactName,proto3" json:"last_interrogate_artifact_name,omitempty"`
|
||||
Labels []string `protobuf:"bytes,18,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
LastHuntTimestamp uint64 `protobuf:"varint,22,opt,name=last_hunt_timestamp,json=lastHuntTimestamp,proto3" json:"last_hunt_timestamp,omitempty"`
|
||||
LastEventTableVersion uint64 `protobuf:"varint,23,opt,name=last_event_table_version,json=lastEventTableVersion,proto3" json:"last_event_table_version,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
AgentInformation *AgentInformation `protobuf:"bytes,2,opt,name=agent_information,json=agentInformation,proto3" json:"agent_information,omitempty"`
|
||||
OsInfo *Uname `protobuf:"bytes,3,opt,name=os_info,json=osInfo,proto3" json:"os_info,omitempty"`
|
||||
FirstSeenAt uint64 `protobuf:"varint,6,opt,name=first_seen_at,json=firstSeenAt,proto3" json:"first_seen_at,omitempty"`
|
||||
LastSeenAt uint64 `protobuf:"varint,7,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
|
||||
LastIp string `protobuf:"bytes,16,opt,name=last_ip,json=lastIp,proto3" json:"last_ip,omitempty"`
|
||||
LastInterrogateFlowId string `protobuf:"bytes,19,opt,name=last_interrogate_flow_id,json=lastInterrogateFlowId,proto3" json:"last_interrogate_flow_id,omitempty"`
|
||||
LastInterrogateArtifactName string `protobuf:"bytes,21,opt,name=last_interrogate_artifact_name,json=lastInterrogateArtifactName,proto3" json:"last_interrogate_artifact_name,omitempty"`
|
||||
Labels []string `protobuf:"bytes,18,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
LastHuntTimestamp uint64 `protobuf:"varint,22,opt,name=last_hunt_timestamp,json=lastHuntTimestamp,proto3" json:"last_hunt_timestamp,omitempty"`
|
||||
LastEventTableVersion uint64 `protobuf:"varint,23,opt,name=last_event_table_version,json=lastEventTableVersion,proto3" json:"last_event_table_version,omitempty"`
|
||||
// Last time the labels on this client were updated.
|
||||
LastLabelTimestamp uint64 `protobuf:"varint,24,opt,name=last_label_timestamp,json=lastLabelTimestamp,proto3" json:"last_label_timestamp,omitempty"`
|
||||
InFlightFlows map[string]int64 `protobuf:"bytes,25,rep,name=in_flight_flows,json=inFlightFlows,proto3" json:"in_flight_flows,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
InFlightFlows map[string]int64 `protobuf:"bytes,25,rep,name=in_flight_flows,json=inFlightFlows,proto3" json:"in_flight_flows,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApiClient) Reset() {
|
||||
*x = ApiClient{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApiClient) String() string {
|
||||
@@ -230,7 +225,7 @@ func (*ApiClient) ProtoMessage() {}
|
||||
|
||||
func (x *ApiClient) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -337,28 +332,25 @@ func (x *ApiClient) GetInFlightFlows() map[string]int64 {
|
||||
}
|
||||
|
||||
type SearchClientsRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
|
||||
// Retrieves only the names of matching search terms (used for
|
||||
// suggestion box). If this is false, we return the entire client
|
||||
// record of matching clients.
|
||||
NameOnly bool `protobuf:"varint,4,opt,name=name_only,json=nameOnly,proto3" json:"name_only,omitempty"`
|
||||
Sort SearchClientsRequest_SortingSense `protobuf:"varint,6,opt,name=sort,proto3,enum=proto.SearchClientsRequest_SortingSense" json:"sort,omitempty"`
|
||||
Filter SearchClientsRequest_Filters `protobuf:"varint,7,opt,name=filter,proto3,enum=proto.SearchClientsRequest_Filters" json:"filter,omitempty"`
|
||||
NameOnly bool `protobuf:"varint,4,opt,name=name_only,json=nameOnly,proto3" json:"name_only,omitempty"`
|
||||
Sort SearchClientsRequest_SortingSense `protobuf:"varint,6,opt,name=sort,proto3,enum=proto.SearchClientsRequest_SortingSense" json:"sort,omitempty"`
|
||||
Filter SearchClientsRequest_Filters `protobuf:"varint,7,opt,name=filter,proto3,enum=proto.SearchClientsRequest_Filters" json:"filter,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SearchClientsRequest) Reset() {
|
||||
*x = SearchClientsRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SearchClientsRequest) String() string {
|
||||
@@ -369,7 +361,7 @@ func (*SearchClientsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SearchClientsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -427,23 +419,20 @@ func (x *SearchClientsRequest) GetFilter() SearchClientsRequest_Filters {
|
||||
}
|
||||
|
||||
type SearchClientsResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*ApiClient `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
|
||||
Total uint64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
|
||||
SearchTerm *SearchClientsRequest `protobuf:"bytes,4,opt,name=search_term,json=searchTerm,proto3" json:"search_term,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*ApiClient `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
|
||||
Total uint64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
|
||||
SearchTerm *SearchClientsRequest `protobuf:"bytes,4,opt,name=search_term,json=searchTerm,proto3" json:"search_term,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SearchClientsResponse) Reset() {
|
||||
*x = SearchClientsResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SearchClientsResponse) String() string {
|
||||
@@ -454,7 +443,7 @@ func (*SearchClientsResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SearchClientsResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -498,23 +487,20 @@ func (x *SearchClientsResponse) GetSearchTerm() *SearchClientsRequest {
|
||||
}
|
||||
|
||||
type GetClientRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Lightweight bool `protobuf:"varint,2,opt,name=lightweight,proto3" json:"lightweight,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Lightweight bool `protobuf:"varint,2,opt,name=lightweight,proto3" json:"lightweight,omitempty"`
|
||||
// If true we also update the MRU for this client.
|
||||
UpdateMru bool `protobuf:"varint,3,opt,name=update_mru,json=updateMru,proto3" json:"update_mru,omitempty"`
|
||||
UpdateMru bool `protobuf:"varint,3,opt,name=update_mru,json=updateMru,proto3" json:"update_mru,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetClientRequest) Reset() {
|
||||
*x = GetClientRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetClientRequest) String() string {
|
||||
@@ -525,7 +511,7 @@ func (*GetClientRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetClientRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -562,22 +548,19 @@ func (x *GetClientRequest) GetUpdateMru() bool {
|
||||
}
|
||||
|
||||
type LabelClientsRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientIds []string `protobuf:"bytes,1,rep,name=client_ids,json=clientIds,proto3" json:"client_ids,omitempty"`
|
||||
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientIds []string `protobuf:"bytes,1,rep,name=client_ids,json=clientIds,proto3" json:"client_ids,omitempty"`
|
||||
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LabelClientsRequest) Reset() {
|
||||
*x = LabelClientsRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *LabelClientsRequest) String() string {
|
||||
@@ -588,7 +571,7 @@ func (*LabelClientsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *LabelClientsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -625,22 +608,19 @@ func (x *LabelClientsRequest) GetOperation() string {
|
||||
}
|
||||
|
||||
type ClientLabels struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// When was the labeling record last updated.
|
||||
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
Label []string `protobuf:"bytes,2,rep,name=label,proto3" json:"label,omitempty"`
|
||||
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
Label []string `protobuf:"bytes,2,rep,name=label,proto3" json:"label,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ClientLabels) Reset() {
|
||||
*x = ClientLabels{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ClientLabels) String() string {
|
||||
@@ -651,7 +631,7 @@ func (*ClientLabels) ProtoMessage() {}
|
||||
|
||||
func (x *ClientLabels) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -681,22 +661,19 @@ func (x *ClientLabels) GetLabel() []string {
|
||||
}
|
||||
|
||||
type ClientMetadataItem struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
// A Json blob of unstructured data.
|
||||
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ClientMetadataItem) Reset() {
|
||||
*x = ClientMetadataItem{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ClientMetadataItem) String() string {
|
||||
@@ -707,7 +684,7 @@ func (*ClientMetadataItem) ProtoMessage() {}
|
||||
|
||||
func (x *ClientMetadataItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -737,21 +714,18 @@ func (x *ClientMetadataItem) GetValue() string {
|
||||
}
|
||||
|
||||
type ClientMetadata struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*ClientMetadataItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*ClientMetadataItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ClientMetadata) Reset() {
|
||||
*x = ClientMetadata{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ClientMetadata) String() string {
|
||||
@@ -762,7 +736,7 @@ func (*ClientMetadata) ProtoMessage() {}
|
||||
|
||||
func (x *ClientMetadata) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -792,23 +766,20 @@ func (x *ClientMetadata) GetClientId() string {
|
||||
}
|
||||
|
||||
type SetClientMetadataRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Add []*ClientMetadataItem `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Add []*ClientMetadataItem `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"`
|
||||
// A list of keys to remove
|
||||
Remove []string `protobuf:"bytes,2,rep,name=remove,proto3" json:"remove,omitempty"`
|
||||
ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Remove []string `protobuf:"bytes,2,rep,name=remove,proto3" json:"remove,omitempty"`
|
||||
ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SetClientMetadataRequest) Reset() {
|
||||
*x = SetClientMetadataRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SetClientMetadataRequest) String() string {
|
||||
@@ -819,7 +790,7 @@ func (*SetClientMetadataRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetClientMetadataRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -857,25 +828,22 @@ func (x *SetClientMetadataRequest) GetClientId() string {
|
||||
|
||||
// Message to carry uname information.
|
||||
type Uname struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
System string `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"`
|
||||
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||
Release string `protobuf:"bytes,3,opt,name=release,proto3" json:"release,omitempty"`
|
||||
Machine string `protobuf:"bytes,5,opt,name=machine,proto3" json:"machine,omitempty"`
|
||||
Fqdn string `protobuf:"bytes,7,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
|
||||
MacAddresses []string `protobuf:"bytes,11,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
System string `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"`
|
||||
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||
Release string `protobuf:"bytes,3,opt,name=release,proto3" json:"release,omitempty"`
|
||||
Machine string `protobuf:"bytes,5,opt,name=machine,proto3" json:"machine,omitempty"`
|
||||
Fqdn string `protobuf:"bytes,7,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
|
||||
MacAddresses []string `protobuf:"bytes,11,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Uname) Reset() {
|
||||
*x = Uname{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Uname) String() string {
|
||||
@@ -886,7 +854,7 @@ func (*Uname) ProtoMessage() {}
|
||||
|
||||
func (x *Uname) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[10]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -944,23 +912,20 @@ func (x *Uname) GetMacAddresses() []string {
|
||||
}
|
||||
|
||||
type IndexRecord struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Usually client id
|
||||
Entity string `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
|
||||
// The term under which we indexed the entity.
|
||||
Term string `protobuf:"bytes,2,opt,name=term,proto3" json:"term,omitempty"`
|
||||
Term string `protobuf:"bytes,2,opt,name=term,proto3" json:"term,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *IndexRecord) Reset() {
|
||||
*x = IndexRecord{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_clients_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_clients_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *IndexRecord) String() string {
|
||||
@@ -971,7 +936,7 @@ func (*IndexRecord) ProtoMessage() {}
|
||||
|
||||
func (x *IndexRecord) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_clients_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1002,202 +967,107 @@ func (x *IndexRecord) GetTerm() string {
|
||||
|
||||
var File_clients_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_clients_proto_rawDesc = []byte{
|
||||
0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||
0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65,
|
||||
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x10,
|
||||
0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
|
||||
0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d,
|
||||
0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a,
|
||||
0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x55, 0x72, 0x6c, 0x22, 0x8c, 0x07, 0x0a, 0x09, 0x41,
|
||||
0x70, 0x69, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe2, 0xfc, 0xe3,
|
||||
0xc4, 0x01, 0x1c, 0x0a, 0x0b, 0x41, 0x70, 0x69, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64,
|
||||
0x12, 0x0d, 0x54, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x52,
|
||||
0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x11, 0x61, 0x67, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x67, 0x65,
|
||||
0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x61,
|
||||
0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
|
||||
0x25, 0x0a, 0x07, 0x6f, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x06,
|
||||
0x6f, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x74, 0x0a, 0x0d, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f,
|
||||
0x73, 0x65, 0x65, 0x6e, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x42, 0x50, 0xe2,
|
||||
0xfc, 0xe3, 0xc4, 0x01, 0x4a, 0x0a, 0x0b, 0x52, 0x44, 0x46, 0x44, 0x61, 0x74, 0x65, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x12, 0x3b, 0x57, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x69,
|
||||
0x65, 0x6e, 0x74, 0x20, 0x77, 0x61, 0x73, 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x20, 0x73, 0x65,
|
||||
0x65, 0x6e, 0x20, 0x28, 0x69, 0x2e, 0x65, 0x2e, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x69, 0x74,
|
||||
0x20, 0x77, 0x61, 0x73, 0x20, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x29, 0x2e, 0x52,
|
||||
0x0b, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, 0x41, 0x74, 0x12, 0x58, 0x0a, 0x0c,
|
||||
0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x04, 0x42, 0x36, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x30, 0x0a, 0x0b, 0x52, 0x44, 0x46, 0x44,
|
||||
0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x4c, 0x61, 0x73, 0x74, 0x20, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x63,
|
||||
0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x2e, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74,
|
||||
0x53, 0x65, 0x65, 0x6e, 0x41, 0x74, 0x12, 0x41, 0x0a, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69,
|
||||
0x70, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x22, 0x12,
|
||||
0x20, 0x54, 0x68, 0x65, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20, 0x73, 0x65, 0x65, 0x6e, 0x20, 0x72,
|
||||
0x65, 0x6d, 0x6f, 0x74, 0x65, 0x20, 0x41, 0x50, 0x49, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
|
||||
0x73, 0x52, 0x06, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x70, 0x12, 0x37, 0x0a, 0x18, 0x6c, 0x61, 0x73,
|
||||
0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x6f, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c,
|
||||
0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x6c, 0x61, 0x73,
|
||||
0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x6f, 0x67, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77,
|
||||
0x49, 0x64, 0x12, 0x43, 0x0a, 0x1e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72,
|
||||
0x72, 0x6f, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1b, 0x6c, 0x61, 0x73, 0x74,
|
||||
0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x6f, 0x67, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66,
|
||||
0x61, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c,
|
||||
0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12,
|
||||
0x2e, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x16, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6c, 0x61,
|
||||
0x73, 0x74, 0x48, 0x75, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12,
|
||||
0x37, 0x0a, 0x18, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x17, 0x20, 0x01, 0x28,
|
||||
0x04, 0x52, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74,
|
||||
0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||
0x18, 0x18, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x61, 0x62, 0x65,
|
||||
0x6c, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4b, 0x0a, 0x0f, 0x69, 0x6e,
|
||||
0x5f, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x19, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x43,
|
||||
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x6e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x6c,
|
||||
0x6f, 0x77, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x69, 0x6e, 0x46, 0x6c, 0x69, 0x67,
|
||||
0x68, 0x74, 0x46, 0x6c, 0x6f, 0x77, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x49, 0x6e, 0x46, 0x6c, 0x69,
|
||||
0x67, 0x68, 0x74, 0x46, 0x6c, 0x6f, 0x77, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
|
||||
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
|
||||
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
|
||||
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd3, 0x02, 0x0a, 0x14, 0x53, 0x65,
|
||||
0x61, 0x72, 0x63, 0x68, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69,
|
||||
0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f,
|
||||
0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x4f,
|
||||
0x6e, 0x6c, 0x79, 0x12, 0x3c, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||
0x0e, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
|
||||
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53,
|
||||
0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x6e, 0x73, 0x65, 0x52, 0x04, 0x73, 0x6f, 0x72,
|
||||
0x74, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28,
|
||||
0x0e, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
|
||||
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46,
|
||||
0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x38,
|
||||
0x0a, 0x0c, 0x53, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x0c,
|
||||
0x0a, 0x08, 0x55, 0x4e, 0x53, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
|
||||
0x53, 0x4f, 0x52, 0x54, 0x5f, 0x55, 0x50, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x4f, 0x52,
|
||||
0x54, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x22, 0x25, 0x0a, 0x07, 0x46, 0x69, 0x6c, 0x74,
|
||||
0x65, 0x72, 0x73, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x45,
|
||||
0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x22,
|
||||
0xfa, 0x01, 0x0a, 0x15, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
||||
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x69, 0x74, 0x65,
|
||||
0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x2e, 0x41, 0x70, 0x69, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d,
|
||||
0x73, 0x12, 0x65, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
|
||||
0x42, 0x4f, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x49, 0x12, 0x47, 0x49, 0x66, 0x20, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x73, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66,
|
||||
0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x20, 0x77, 0x65, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
|
||||
0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x68, 0x65, 0x72, 0x65,
|
||||
0x2e, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61,
|
||||
0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x3c,
|
||||
0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x61, 0x72,
|
||||
0x63, 0x68, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x65, 0x72, 0x6d, 0x22, 0x9f, 0x01, 0x0a,
|
||||
0x10, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x4f,
|
||||
0x0a, 0x0b, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x08, 0x42, 0x2d, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x27, 0x12, 0x25, 0x49, 0x66, 0x20,
|
||||
0x73, 0x65, 0x74, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
|
||||
0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x2e, 0x52, 0x0b, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12,
|
||||
0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x72, 0x75, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x08, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x72, 0x75, 0x22, 0x6a,
|
||||
0x0a, 0x13, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f,
|
||||
0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e,
|
||||
0x74, 0x49, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1c, 0x0a, 0x09,
|
||||
0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x42, 0x0a, 0x0c, 0x43, 0x6c,
|
||||
0x69, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65,
|
||||
0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x3c,
|
||||
0x0a, 0x12, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
||||
0x49, 0x74, 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5e, 0x0a, 0x0e,
|
||||
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f,
|
||||
0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61,
|
||||
0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12,
|
||||
0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x18,
|
||||
0x53, 0x65, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
|
||||
0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18,
|
||||
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6c,
|
||||
0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d,
|
||||
0x52, 0x03, 0x61, 0x64, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18,
|
||||
0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x1b, 0x0a,
|
||||
0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xa3, 0x03, 0x0a, 0x05, 0x55,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x2d, 0x12, 0x2b, 0x54, 0x68,
|
||||
0x65, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
|
||||
0x6d, 0x20, 0x28, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x7c, 0x44, 0x61, 0x72, 0x77, 0x69,
|
||||
0x6e, 0x7c, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x29, 0x2e, 0x52, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65,
|
||||
0x6d, 0x12, 0x40, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x42, 0x24, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x1e, 0x12, 0x1c, 0x54, 0x68, 0x65,
|
||||
0x20, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69,
|
||||
0x73, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e,
|
||||
0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x30, 0x12, 0x2e, 0x54, 0x68,
|
||||
0x65, 0x20, 0x4f, 0x53, 0x20, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x20, 0x69, 0x64, 0x65,
|
||||
0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x65, 0x2e, 0x67, 0x2e, 0x20, 0x37, 0x2c, 0x20,
|
||||
0x4f, 0x53, 0x58, 0x2c, 0x20, 0x64, 0x65, 0x62, 0x69, 0x61, 0x6e, 0x2e, 0x52, 0x07, 0x72, 0x65,
|
||||
0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
|
||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x2d, 0x12, 0x2b,
|
||||
0x54, 0x68, 0x65, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x61, 0x72, 0x63, 0x68, 0x69,
|
||||
0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x20, 0x65, 0x2e, 0x67, 0x2e, 0x20, 0x41, 0x4d, 0x44,
|
||||
0x36, 0x34, 0x2c, 0x20, 0x78, 0x38, 0x36, 0x5f, 0x36, 0x34, 0x2e, 0x52, 0x07, 0x6d, 0x61, 0x63,
|
||||
0x68, 0x69, 0x6e, 0x65, 0x12, 0x45, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x09, 0x42, 0x31, 0xe2, 0xfc, 0xe3, 0xc4, 0x01, 0x2b, 0x12, 0x29, 0x54, 0x68, 0x65, 0x20,
|
||||
0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x27, 0x73, 0x20, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x20, 0x71,
|
||||
0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6d,
|
||||
0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03,
|
||||
0x28, 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73,
|
||||
0x22, 0x39, 0x0a, 0x0b, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x42, 0x31, 0x5a, 0x2f, 0x77,
|
||||
0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61,
|
||||
0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_clients_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\rclients.proto\x12\x05proto\x1a\x14proto/semantic.proto\"|\n" +
|
||||
"\x10AgentInformation\x12\x18\n" +
|
||||
"\aversion\x18\x01 \x01(\tR\aversion\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n" +
|
||||
"\n" +
|
||||
"build_time\x18\x03 \x01(\tR\tbuildTime\x12\x1b\n" +
|
||||
"\tbuild_url\x18\x04 \x01(\tR\bbuildUrl\"\x8c\a\n" +
|
||||
"\tApiClient\x12?\n" +
|
||||
"\tclient_id\x18\x01 \x01(\tB\"\xe2\xfc\xe3\xc4\x01\x1c\n" +
|
||||
"\vApiClientId\x12\rThe client idR\bclientId\x12D\n" +
|
||||
"\x11agent_information\x18\x02 \x01(\v2\x17.proto.AgentInformationR\x10agentInformation\x12%\n" +
|
||||
"\aos_info\x18\x03 \x01(\v2\f.proto.UnameR\x06osInfo\x12t\n" +
|
||||
"\rfirst_seen_at\x18\x06 \x01(\x04BP\xe2\xfc\xe3\xc4\x01J\n" +
|
||||
"\vRDFDatetime\x12;When the client was first seen (i.e. when it was enrolled).R\vfirstSeenAt\x12X\n" +
|
||||
"\flast_seen_at\x18\a \x01(\x04B6\xe2\xfc\xe3\xc4\x010\n" +
|
||||
"\vRDFDatetime\x12!Last time when client checked in.R\n" +
|
||||
"lastSeenAt\x12A\n" +
|
||||
"\alast_ip\x18\x10 \x01(\tB(\xe2\xfc\xe3\xc4\x01\"\x12 The last seen remote API addressR\x06lastIp\x127\n" +
|
||||
"\x18last_interrogate_flow_id\x18\x13 \x01(\tR\x15lastInterrogateFlowId\x12C\n" +
|
||||
"\x1elast_interrogate_artifact_name\x18\x15 \x01(\tR\x1blastInterrogateArtifactName\x12\x16\n" +
|
||||
"\x06labels\x18\x12 \x03(\tR\x06labels\x12.\n" +
|
||||
"\x13last_hunt_timestamp\x18\x16 \x01(\x04R\x11lastHuntTimestamp\x127\n" +
|
||||
"\x18last_event_table_version\x18\x17 \x01(\x04R\x15lastEventTableVersion\x120\n" +
|
||||
"\x14last_label_timestamp\x18\x18 \x01(\x04R\x12lastLabelTimestamp\x12K\n" +
|
||||
"\x0fin_flight_flows\x18\x19 \x03(\v2#.proto.ApiClient.InFlightFlowsEntryR\rinFlightFlows\x1a@\n" +
|
||||
"\x12InFlightFlowsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\"\xd3\x02\n" +
|
||||
"\x14SearchClientsRequest\x12\x16\n" +
|
||||
"\x06offset\x18\x01 \x01(\x04R\x06offset\x12\x14\n" +
|
||||
"\x05limit\x18\x02 \x01(\x04R\x05limit\x12\x14\n" +
|
||||
"\x05query\x18\x03 \x01(\tR\x05query\x12\x1b\n" +
|
||||
"\tname_only\x18\x04 \x01(\bR\bnameOnly\x12<\n" +
|
||||
"\x04sort\x18\x06 \x01(\x0e2(.proto.SearchClientsRequest.SortingSenseR\x04sort\x12;\n" +
|
||||
"\x06filter\x18\a \x01(\x0e2#.proto.SearchClientsRequest.FiltersR\x06filter\"8\n" +
|
||||
"\fSortingSense\x12\f\n" +
|
||||
"\bUNSORTED\x10\x00\x12\v\n" +
|
||||
"\aSORT_UP\x10\x01\x12\r\n" +
|
||||
"\tSORT_DOWN\x10\x02\"%\n" +
|
||||
"\aFilters\x12\x0e\n" +
|
||||
"\n" +
|
||||
"UNFILTERED\x10\x00\x12\n" +
|
||||
"\n" +
|
||||
"\x06ONLINE\x10\x01\"\xfa\x01\n" +
|
||||
"\x15SearchClientsResponse\x12&\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x10.proto.ApiClientR\x05items\x12e\n" +
|
||||
"\x05names\x18\x02 \x03(\tBO\xe2\xfc\xe3\xc4\x01I\x12GIf name_only is specified in the request we only return the names here.R\x05names\x12\x14\n" +
|
||||
"\x05total\x18\x03 \x01(\x04R\x05total\x12<\n" +
|
||||
"\vsearch_term\x18\x04 \x01(\v2\x1b.proto.SearchClientsRequestR\n" +
|
||||
"searchTerm\"\x9f\x01\n" +
|
||||
"\x10GetClientRequest\x12\x1b\n" +
|
||||
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12O\n" +
|
||||
"\vlightweight\x18\x02 \x01(\bB-\xe2\xfc\xe3\xc4\x01'\x12%If set only collect some information.R\vlightweight\x12\x1d\n" +
|
||||
"\n" +
|
||||
"update_mru\x18\x03 \x01(\bR\tupdateMru\"j\n" +
|
||||
"\x13LabelClientsRequest\x12\x1d\n" +
|
||||
"\n" +
|
||||
"client_ids\x18\x01 \x03(\tR\tclientIds\x12\x16\n" +
|
||||
"\x06labels\x18\x02 \x03(\tR\x06labels\x12\x1c\n" +
|
||||
"\toperation\x18\x03 \x01(\tR\toperation\"B\n" +
|
||||
"\fClientLabels\x12\x1c\n" +
|
||||
"\ttimestamp\x18\x01 \x01(\x04R\ttimestamp\x12\x14\n" +
|
||||
"\x05label\x18\x02 \x03(\tR\x05label\"<\n" +
|
||||
"\x12ClientMetadataItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value\"^\n" +
|
||||
"\x0eClientMetadata\x12/\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x19.proto.ClientMetadataItemR\x05items\x12\x1b\n" +
|
||||
"\tclient_id\x18\x02 \x01(\tR\bclientId\"|\n" +
|
||||
"\x18SetClientMetadataRequest\x12+\n" +
|
||||
"\x03add\x18\x01 \x03(\v2\x19.proto.ClientMetadataItemR\x03add\x12\x16\n" +
|
||||
"\x06remove\x18\x02 \x03(\tR\x06remove\x12\x1b\n" +
|
||||
"\tclient_id\x18\x03 \x01(\tR\bclientId\"\xa3\x03\n" +
|
||||
"\x05Uname\x12K\n" +
|
||||
"\x06system\x18\x01 \x01(\tB3\xe2\xfc\xe3\xc4\x01-\x12+The system platform (Windows|Darwin|Linux).R\x06system\x12@\n" +
|
||||
"\bhostname\x18\x02 \x01(\tB$\xe2\xfc\xe3\xc4\x01\x1e\x12\x1cThe hostname of this system.R\bhostname\x12P\n" +
|
||||
"\arelease\x18\x03 \x01(\tB6\xe2\xfc\xe3\xc4\x010\x12.The OS release identifier e.g. 7, OSX, debian.R\arelease\x12M\n" +
|
||||
"\amachine\x18\x05 \x01(\tB3\xe2\xfc\xe3\xc4\x01-\x12+The system architecture e.g. AMD64, x86_64.R\amachine\x12E\n" +
|
||||
"\x04fqdn\x18\a \x01(\tB1\xe2\xfc\xe3\xc4\x01+\x12)The system's fully qualified domain name.R\x04fqdn\x12#\n" +
|
||||
"\rmac_addresses\x18\v \x03(\tR\fmacAddresses\"9\n" +
|
||||
"\vIndexRecord\x12\x16\n" +
|
||||
"\x06entity\x18\x01 \x01(\tR\x06entity\x12\x12\n" +
|
||||
"\x04term\x18\x02 \x01(\tR\x04termB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_clients_proto_rawDescOnce sync.Once
|
||||
file_clients_proto_rawDescData = file_clients_proto_rawDesc
|
||||
file_clients_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_clients_proto_rawDescGZIP() []byte {
|
||||
file_clients_proto_rawDescOnce.Do(func() {
|
||||
file_clients_proto_rawDescData = protoimpl.X.CompressGZIP(file_clients_proto_rawDescData)
|
||||
file_clients_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_clients_proto_rawDesc), len(file_clients_proto_rawDesc)))
|
||||
})
|
||||
return file_clients_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_clients_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_clients_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||
var file_clients_proto_goTypes = []interface{}{
|
||||
var file_clients_proto_goTypes = []any{
|
||||
(SearchClientsRequest_SortingSense)(0), // 0: proto.SearchClientsRequest.SortingSense
|
||||
(SearchClientsRequest_Filters)(0), // 1: proto.SearchClientsRequest.Filters
|
||||
(*AgentInformation)(nil), // 2: proto.AgentInformation
|
||||
@@ -1236,157 +1106,11 @@ func file_clients_proto_init() {
|
||||
if File_clients_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_clients_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AgentInformation); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiClient); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SearchClientsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SearchClientsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetClientRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*LabelClientsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ClientLabels); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ClientMetadataItem); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ClientMetadata); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SetClientMetadataRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Uname); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_clients_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IndexRecord); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_clients_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_clients_proto_rawDesc), len(file_clients_proto_rawDesc)),
|
||||
NumEnums: 2,
|
||||
NumMessages: 13,
|
||||
NumExtensions: 0,
|
||||
@@ -1398,7 +1122,6 @@ func file_clients_proto_init() {
|
||||
MessageInfos: file_clients_proto_msgTypes,
|
||||
}.Build()
|
||||
File_clients_proto = out.File
|
||||
file_clients_proto_rawDesc = nil
|
||||
file_clients_proto_goTypes = nil
|
||||
file_clients_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+63
-129
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,24 +19,21 @@ const (
|
||||
)
|
||||
|
||||
type ArgDescriptor struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Repeated bool `protobuf:"varint,4,opt,name=repeated,proto3" json:"repeated,omitempty"`
|
||||
Required bool `protobuf:"varint,5,opt,name=required,proto3" json:"required,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Repeated bool `protobuf:"varint,4,opt,name=repeated,proto3" json:"repeated,omitempty"`
|
||||
Required bool `protobuf:"varint,5,opt,name=required,proto3" json:"required,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ArgDescriptor) Reset() {
|
||||
*x = ArgDescriptor{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_completions_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_completions_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ArgDescriptor) String() string {
|
||||
@@ -46,7 +44,7 @@ func (*ArgDescriptor) ProtoMessage() {}
|
||||
|
||||
func (x *ArgDescriptor) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_completions_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -97,28 +95,25 @@ func (x *ArgDescriptor) GetRequired() bool {
|
||||
}
|
||||
|
||||
type Completion struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Args []*ArgDescriptor `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
|
||||
Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
|
||||
Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Platforms []string `protobuf:"bytes,8,rep,name=platforms,proto3" json:"platforms,omitempty"`
|
||||
FreeFormArgs bool `protobuf:"varint,9,opt,name=free_form_args,json=freeFormArgs,proto3" json:"free_form_args,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Args []*ArgDescriptor `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
|
||||
Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
|
||||
Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Platforms []string `protobuf:"bytes,8,rep,name=platforms,proto3" json:"platforms,omitempty"`
|
||||
FreeFormArgs bool `protobuf:"varint,9,opt,name=free_form_args,json=freeFormArgs,proto3" json:"free_form_args,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Completion) Reset() {
|
||||
*x = Completion{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_completions_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_completions_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Completion) String() string {
|
||||
@@ -129,7 +124,7 @@ func (*Completion) ProtoMessage() {}
|
||||
|
||||
func (x *Completion) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_completions_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -208,20 +203,17 @@ func (x *Completion) GetFreeFormArgs() bool {
|
||||
}
|
||||
|
||||
type KeywordCompletions struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*Completion `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*Completion `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *KeywordCompletions) Reset() {
|
||||
*x = KeywordCompletions{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_completions_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_completions_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *KeywordCompletions) String() string {
|
||||
@@ -232,7 +224,7 @@ func (*KeywordCompletions) ProtoMessage() {}
|
||||
|
||||
func (x *KeywordCompletions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_completions_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -256,65 +248,46 @@ func (x *KeywordCompletions) GetItems() []*Completion {
|
||||
|
||||
var File_completions_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_completions_proto_rawDesc = []byte{
|
||||
0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x0d, 0x41,
|
||||
0x72, 0x67, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
|
||||
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
|
||||
0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
|
||||
0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0xf4,
|
||||
0x02, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
||||
0x6e, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x72, 0x67, 0x44, 0x65, 0x73, 0x63, 0x72,
|
||||
0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63,
|
||||
0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63,
|
||||
0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
|
||||
0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74,
|
||||
0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
|
||||
0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
|
||||
0x6d, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x72, 0x65, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x5f,
|
||||
0x61, 0x72, 0x67, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x72, 0x65, 0x65,
|
||||
0x46, 0x6f, 0x72, 0x6d, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61,
|
||||
0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x12, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64,
|
||||
0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x05, 0x69,
|
||||
0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x69,
|
||||
0x74, 0x65, 0x6d, 0x73, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f,
|
||||
0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
|
||||
0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70,
|
||||
0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_completions_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x11completions.proto\x12\x05proto\"\x91\x01\n" +
|
||||
"\rArgDescriptor\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type\x12 \n" +
|
||||
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1a\n" +
|
||||
"\brepeated\x18\x04 \x01(\bR\brepeated\x12\x1a\n" +
|
||||
"\brequired\x18\x05 \x01(\bR\brequired\"\xf4\x02\n" +
|
||||
"\n" +
|
||||
"Completion\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
||||
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x12\n" +
|
||||
"\x04type\x18\x03 \x01(\tR\x04type\x12\x18\n" +
|
||||
"\aversion\x18\x06 \x01(\x04R\aversion\x12(\n" +
|
||||
"\x04args\x18\x04 \x03(\v2\x14.proto.ArgDescriptorR\x04args\x12\x1a\n" +
|
||||
"\bcategory\x18\x05 \x01(\tR\bcategory\x12;\n" +
|
||||
"\bmetadata\x18\a \x03(\v2\x1f.proto.Completion.MetadataEntryR\bmetadata\x12\x1c\n" +
|
||||
"\tplatforms\x18\b \x03(\tR\tplatforms\x12$\n" +
|
||||
"\x0efree_form_args\x18\t \x01(\bR\ffreeFormArgs\x1a;\n" +
|
||||
"\rMetadataEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"=\n" +
|
||||
"\x12KeywordCompletions\x12'\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x11.proto.CompletionR\x05itemsB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_completions_proto_rawDescOnce sync.Once
|
||||
file_completions_proto_rawDescData = file_completions_proto_rawDesc
|
||||
file_completions_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_completions_proto_rawDescGZIP() []byte {
|
||||
file_completions_proto_rawDescOnce.Do(func() {
|
||||
file_completions_proto_rawDescData = protoimpl.X.CompressGZIP(file_completions_proto_rawDescData)
|
||||
file_completions_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_completions_proto_rawDesc), len(file_completions_proto_rawDesc)))
|
||||
})
|
||||
return file_completions_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_completions_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_completions_proto_goTypes = []interface{}{
|
||||
var file_completions_proto_goTypes = []any{
|
||||
(*ArgDescriptor)(nil), // 0: proto.ArgDescriptor
|
||||
(*Completion)(nil), // 1: proto.Completion
|
||||
(*KeywordCompletions)(nil), // 2: proto.KeywordCompletions
|
||||
@@ -336,49 +309,11 @@ func file_completions_proto_init() {
|
||||
if File_completions_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_completions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ArgDescriptor); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_completions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Completion); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_completions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*KeywordCompletions); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_completions_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_completions_proto_rawDesc), len(file_completions_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
@@ -389,7 +324,6 @@ func file_completions_proto_init() {
|
||||
MessageInfos: file_completions_proto_msgTypes,
|
||||
}.Build()
|
||||
File_completions_proto = out.File
|
||||
file_completions_proto_rawDesc = nil
|
||||
file_completions_proto_goTypes = nil
|
||||
file_completions_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+86
-173
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
proto "www.velocidex.com/golang/velociraptor/artifacts/proto"
|
||||
_ "www.velocidex.com/golang/velociraptor/proto"
|
||||
proto1 "www.velocidex.com/golang/velociraptor/timelines/proto"
|
||||
@@ -21,10 +22,7 @@ const (
|
||||
)
|
||||
|
||||
type GetTableRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Paging parameters.
|
||||
Rows uint64 `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"` // Number of rows to fetch
|
||||
StartRow uint64 `protobuf:"varint,3,opt,name=start_row,json=startRow,proto3" json:"start_row,omitempty"` // First row to fetch.
|
||||
@@ -80,15 +78,15 @@ type GetTableRequest struct {
|
||||
Version uint64 `protobuf:"varint,25,opt,name=version,proto3" json:"version,omitempty"`
|
||||
// Used for VFS components
|
||||
VfsComponents []string `protobuf:"bytes,26,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetTableRequest) Reset() {
|
||||
*x = GetTableRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_csv_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_csv_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetTableRequest) String() string {
|
||||
@@ -99,7 +97,7 @@ func (*GetTableRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetTableRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_csv_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -325,22 +323,19 @@ func (x *GetTableRequest) GetVfsComponents() []string {
|
||||
}
|
||||
|
||||
type Row struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// The row encoded as a JSON array: Current code encodes the
|
||||
// entire JSON []interface{} into a single JSON string.
|
||||
Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"`
|
||||
Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Row) Reset() {
|
||||
*x = Row{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_csv_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_csv_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Row) String() string {
|
||||
@@ -351,7 +346,7 @@ func (*Row) ProtoMessage() {}
|
||||
|
||||
func (x *Row) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_csv_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -374,29 +369,26 @@ func (x *Row) GetJson() string {
|
||||
}
|
||||
|
||||
type GetTableResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Columns []string `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
|
||||
Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
|
||||
TotalRows int64 `protobuf:"varint,3,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"`
|
||||
ColumnTypes []*proto.ColumnType `protobuf:"bytes,4,rep,name=column_types,json=columnTypes,proto3" json:"column_types,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Columns []string `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
|
||||
Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
|
||||
TotalRows int64 `protobuf:"varint,3,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"`
|
||||
ColumnTypes []*proto.ColumnType `protobuf:"bytes,4,rep,name=column_types,json=columnTypes,proto3" json:"column_types,omitempty"`
|
||||
// Used for time based data.
|
||||
StartTime int64 `protobuf:"varint,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
EndTime int64 `protobuf:"varint,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
|
||||
Timelines []*proto1.Timeline `protobuf:"bytes,8,rep,name=timelines,proto3" json:"timelines,omitempty"`
|
||||
// If there is a stack table this is the path to it.
|
||||
StackPath []string `protobuf:"bytes,7,rep,name=stack_path,json=stackPath,proto3" json:"stack_path,omitempty"`
|
||||
StackPath []string `protobuf:"bytes,7,rep,name=stack_path,json=stackPath,proto3" json:"stack_path,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetTableResponse) Reset() {
|
||||
*x = GetTableResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_csv_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_csv_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetTableResponse) String() string {
|
||||
@@ -407,7 +399,7 @@ func (*GetTableResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetTableResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_csv_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -480,115 +472,75 @@ func (x *GetTableResponse) GetStackPath() []string {
|
||||
|
||||
var File_csv_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_csv_proto_rawDesc = []byte{
|
||||
0x0a, 0x09, 0x63, 0x73, 0x76, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74,
|
||||
0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69,
|
||||
0x6e, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69,
|
||||
0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x07, 0x0a, 0x0f, 0x47, 0x65,
|
||||
0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x72, 0x6f, 0x77,
|
||||
0x73, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x6f, 0x77, 0x12, 0x1d,
|
||||
0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a,
|
||||
0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69,
|
||||
0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64,
|
||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x1a,
|
||||
0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
|
||||
0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x17,
|
||||
0x0a, 0x07, 0x68, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x06, 0x68, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x65, 0x62,
|
||||
0x6f, 0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f,
|
||||
0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x65, 0x6c, 0x6c,
|
||||
0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x65, 0x6c, 0x6c, 0x49,
|
||||
0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
||||
0x6e, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x65, 0x6c, 0x6c, 0x56, 0x65, 0x72,
|
||||
0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64,
|
||||
0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x69,
|
||||
0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74,
|
||||
0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65,
|
||||
0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6b,
|
||||
0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x11, 0x20,
|
||||
0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65,
|
||||
0x6e, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f,
|
||||
0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x6f,
|
||||
0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x2b, 0x0a, 0x11,
|
||||
0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61,
|
||||
0x64, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c,
|
||||
0x75, 0x6d, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75,
|
||||
0x6d, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75,
|
||||
0x6d, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x72, 0x74, 0x43, 0x6f,
|
||||
0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72,
|
||||
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6f,
|
||||
0x72, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x66,
|
||||
0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x15, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x0c, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
||||
0x12, 0x21, 0x0a, 0x0c, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78,
|
||||
0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65,
|
||||
0x67, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x70, 0x61, 0x74,
|
||||
0x68, 0x18, 0x1e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x61,
|
||||
0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x78, 0x18,
|
||||
0x1b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x64, 0x78, 0x12,
|
||||
0x17, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x78, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x06, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x78, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f,
|
||||
0x69, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76,
|
||||
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65,
|
||||
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x66, 0x73, 0x5f, 0x63, 0x6f, 0x6d,
|
||||
0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x76,
|
||||
0x66, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x19, 0x0a, 0x03,
|
||||
0x52, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xbe, 0x02, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07,
|
||||
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x13, 0xe2,
|
||||
0xfc, 0xe3, 0xc4, 0x01, 0x0d, 0x12, 0x0b, 0x54, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
|
||||
0x6e, 0x73, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x04, 0x72,
|
||||
0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x2e, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
|
||||
0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x34, 0x0a, 0x0c, 0x63, 0x6f,
|
||||
0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54,
|
||||
0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73,
|
||||
0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12,
|
||||
0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x09,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61,
|
||||
0x63, 0x6b, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73,
|
||||
0x74, 0x61, 0x63, 0x6b, 0x50, 0x61, 0x74, 0x68, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e,
|
||||
0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
|
||||
0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f,
|
||||
0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_csv_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\tcsv.proto\x12\x05proto\x1a\x14proto/semantic.proto\x1a\x1eartifacts/proto/artifact.proto\x1a\x1ftimelines/proto/timelines.proto\"\xb0\a\n" +
|
||||
"\x0fGetTableRequest\x12\x12\n" +
|
||||
"\x04rows\x18\x02 \x01(\x04R\x04rows\x12\x1b\n" +
|
||||
"\tstart_row\x18\x03 \x01(\x04R\bstartRow\x12\x1d\n" +
|
||||
"\n" +
|
||||
"start_time\x18\r \x01(\x03R\tstartTime\x12\x19\n" +
|
||||
"\bend_time\x18\x0e \x01(\x03R\aendTime\x12\x1b\n" +
|
||||
"\tclient_id\x18\x04 \x01(\tR\bclientId\x12\x17\n" +
|
||||
"\aflow_id\x18\x05 \x01(\tR\x06flowId\x12\x1a\n" +
|
||||
"\bartifact\x18\x06 \x01(\tR\bartifact\x12\x12\n" +
|
||||
"\x04type\x18\a \x01(\tR\x04type\x12\x17\n" +
|
||||
"\ahunt_id\x18\b \x01(\tR\x06huntId\x12\x1f\n" +
|
||||
"\vnotebook_id\x18\t \x01(\tR\n" +
|
||||
"notebookId\x12\x17\n" +
|
||||
"\acell_id\x18\n" +
|
||||
" \x01(\tR\x06cellId\x12!\n" +
|
||||
"\fcell_version\x18\x1d \x01(\tR\vcellVersion\x12\x19\n" +
|
||||
"\btable_id\x18\v \x01(\x03R\atableId\x12\x1a\n" +
|
||||
"\btimeline\x18\x10 \x01(\tR\btimeline\x12-\n" +
|
||||
"\x12include_components\x18\x1f \x03(\tR\x11includeComponents\x12'\n" +
|
||||
"\x0fskip_components\x18\x11 \x03(\tR\x0eskipComponents\x12'\n" +
|
||||
"\x0fdownload_format\x18\f \x01(\tR\x0edownloadFormat\x12+\n" +
|
||||
"\x11download_filename\x18\x12 \x01(\tR\x10downloadFilename\x12\x18\n" +
|
||||
"\acolumns\x18\x0f \x03(\tR\acolumns\x12\x1f\n" +
|
||||
"\vsort_column\x18\x13 \x01(\tR\n" +
|
||||
"sortColumn\x12%\n" +
|
||||
"\x0esort_direction\x18\x14 \x01(\bR\rsortDirection\x12#\n" +
|
||||
"\rfilter_column\x18\x15 \x01(\tR\ffilterColumn\x12!\n" +
|
||||
"\ffilter_regex\x18\x16 \x01(\tR\vfilterRegex\x12\x1d\n" +
|
||||
"\n" +
|
||||
"stack_path\x18\x1e \x03(\tR\tstackPath\x12\x1b\n" +
|
||||
"\tstart_idx\x18\x1b \x01(\x04R\bstartIdx\x12\x17\n" +
|
||||
"\aend_idx\x18\x1c \x01(\x04R\x06endIdx\x12\x15\n" +
|
||||
"\x06org_id\x18\x17 \x01(\tR\x05orgId\x12\x1a\n" +
|
||||
"\btimezone\x18\x18 \x01(\tR\btimezone\x12\x18\n" +
|
||||
"\aversion\x18\x19 \x01(\x04R\aversion\x12%\n" +
|
||||
"\x0evfs_components\x18\x1a \x03(\tR\rvfsComponents\"\x19\n" +
|
||||
"\x03Row\x12\x12\n" +
|
||||
"\x04json\x18\x02 \x01(\tR\x04json\"\xbe\x02\n" +
|
||||
"\x10GetTableResponse\x12-\n" +
|
||||
"\acolumns\x18\x01 \x03(\tB\x13\xe2\xfc\xe3\xc4\x01\r\x12\vThe columnsR\acolumns\x12\x1e\n" +
|
||||
"\x04rows\x18\x02 \x03(\v2\n" +
|
||||
".proto.RowR\x04rows\x12\x1d\n" +
|
||||
"\n" +
|
||||
"total_rows\x18\x03 \x01(\x03R\ttotalRows\x124\n" +
|
||||
"\fcolumn_types\x18\x04 \x03(\v2\x11.proto.ColumnTypeR\vcolumnTypes\x12\x1d\n" +
|
||||
"\n" +
|
||||
"start_time\x18\x05 \x01(\x03R\tstartTime\x12\x19\n" +
|
||||
"\bend_time\x18\x06 \x01(\x03R\aendTime\x12-\n" +
|
||||
"\ttimelines\x18\b \x03(\v2\x0f.proto.TimelineR\ttimelines\x12\x1d\n" +
|
||||
"\n" +
|
||||
"stack_path\x18\a \x03(\tR\tstackPathB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_csv_proto_rawDescOnce sync.Once
|
||||
file_csv_proto_rawDescData = file_csv_proto_rawDesc
|
||||
file_csv_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_csv_proto_rawDescGZIP() []byte {
|
||||
file_csv_proto_rawDescOnce.Do(func() {
|
||||
file_csv_proto_rawDescData = protoimpl.X.CompressGZIP(file_csv_proto_rawDescData)
|
||||
file_csv_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_csv_proto_rawDesc), len(file_csv_proto_rawDesc)))
|
||||
})
|
||||
return file_csv_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_csv_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_csv_proto_goTypes = []interface{}{
|
||||
var file_csv_proto_goTypes = []any{
|
||||
(*GetTableRequest)(nil), // 0: proto.GetTableRequest
|
||||
(*Row)(nil), // 1: proto.Row
|
||||
(*GetTableResponse)(nil), // 2: proto.GetTableResponse
|
||||
@@ -611,49 +563,11 @@ func file_csv_proto_init() {
|
||||
if File_csv_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_csv_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetTableRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_csv_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Row); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_csv_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetTableResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_csv_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_csv_proto_rawDesc), len(file_csv_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 3,
|
||||
NumExtensions: 0,
|
||||
@@ -664,7 +578,6 @@ func file_csv_proto_init() {
|
||||
MessageInfos: file_csv_proto_msgTypes,
|
||||
}.Build()
|
||||
File_csv_proto = out.File
|
||||
file_csv_proto_rawDesc = nil
|
||||
file_csv_proto_goTypes = nil
|
||||
file_csv_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+60
-131
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,23 +19,20 @@ const (
|
||||
)
|
||||
|
||||
type DSPathSpec struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Components []string `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty"`
|
||||
PathType int64 `protobuf:"varint,2,opt,name=path_type,json=pathType,proto3" json:"path_type,omitempty"`
|
||||
IsDir bool `protobuf:"varint,3,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"`
|
||||
Tag string `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Components []string `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty"`
|
||||
PathType int64 `protobuf:"varint,2,opt,name=path_type,json=pathType,proto3" json:"path_type,omitempty"`
|
||||
IsDir bool `protobuf:"varint,3,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"`
|
||||
Tag string `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DSPathSpec) Reset() {
|
||||
*x = DSPathSpec{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_datastore_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_datastore_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DSPathSpec) String() string {
|
||||
@@ -45,7 +43,7 @@ func (*DSPathSpec) ProtoMessage() {}
|
||||
|
||||
func (x *DSPathSpec) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_datastore_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -89,25 +87,22 @@ func (x *DSPathSpec) GetTag() string {
|
||||
}
|
||||
|
||||
type DataRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Pathspec *DSPathSpec `protobuf:"bytes,1,opt,name=pathspec,proto3" json:"pathspec,omitempty"`
|
||||
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Pathspec *DSPathSpec `protobuf:"bytes,1,opt,name=pathspec,proto3" json:"pathspec,omitempty"`
|
||||
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
// If set the request will block until the data is committed to
|
||||
// disk.
|
||||
Sync bool `protobuf:"varint,3,opt,name=sync,proto3" json:"sync,omitempty"`
|
||||
OrgId string `protobuf:"bytes,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
Sync bool `protobuf:"varint,3,opt,name=sync,proto3" json:"sync,omitempty"`
|
||||
OrgId string `protobuf:"bytes,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DataRequest) Reset() {
|
||||
*x = DataRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_datastore_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_datastore_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DataRequest) String() string {
|
||||
@@ -118,7 +113,7 @@ func (*DataRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DataRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_datastore_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -162,20 +157,17 @@ func (x *DataRequest) GetOrgId() string {
|
||||
}
|
||||
|
||||
type DataResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DataResponse) Reset() {
|
||||
*x = DataResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_datastore_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_datastore_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DataResponse) String() string {
|
||||
@@ -186,7 +178,7 @@ func (*DataResponse) ProtoMessage() {}
|
||||
|
||||
func (x *DataResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_datastore_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -209,20 +201,17 @@ func (x *DataResponse) GetData() []byte {
|
||||
}
|
||||
|
||||
type ListChildrenResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Children []*DSPathSpec `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Children []*DSPathSpec `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListChildrenResponse) Reset() {
|
||||
*x = ListChildrenResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_datastore_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_datastore_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListChildrenResponse) String() string {
|
||||
@@ -233,7 +222,7 @@ func (*ListChildrenResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListChildrenResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_datastore_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -257,50 +246,41 @@ func (x *ListChildrenResponse) GetChildren() []*DSPathSpec {
|
||||
|
||||
var File_datastore_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_datastore_proto_rawDesc = []byte{
|
||||
0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x72, 0x0a, 0x0a, 0x44, 0x53, 0x50, 0x61,
|
||||
0x74, 0x68, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
|
||||
0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70,
|
||||
0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74,
|
||||
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x74, 0x68, 0x54,
|
||||
0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x44, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61,
|
||||
0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x7b, 0x0a, 0x0b,
|
||||
0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x08, 0x70,
|
||||
0x61, 0x74, 0x68, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x53, 0x50, 0x61, 0x74, 0x68, 0x53, 0x70, 0x65, 0x63,
|
||||
0x52, 0x08, 0x70, 0x61, 0x74, 0x68, 0x73, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61,
|
||||
0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12,
|
||||
0x0a, 0x04, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x79,
|
||||
0x6e, 0x63, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x22, 0x22, 0x0a, 0x0c, 0x44, 0x61, 0x74,
|
||||
0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
||||
0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x45, 0x0a,
|
||||
0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65,
|
||||
0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
|
||||
0x44, 0x53, 0x50, 0x61, 0x74, 0x68, 0x53, 0x70, 0x65, 0x63, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c,
|
||||
0x64, 0x72, 0x65, 0x6e, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f,
|
||||
0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
|
||||
0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70,
|
||||
0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_datastore_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x0fdatastore.proto\x12\x05proto\"r\n" +
|
||||
"\n" +
|
||||
"DSPathSpec\x12\x1e\n" +
|
||||
"\n" +
|
||||
"components\x18\x01 \x03(\tR\n" +
|
||||
"components\x12\x1b\n" +
|
||||
"\tpath_type\x18\x02 \x01(\x03R\bpathType\x12\x15\n" +
|
||||
"\x06is_dir\x18\x03 \x01(\bR\x05isDir\x12\x10\n" +
|
||||
"\x03tag\x18\x04 \x01(\tR\x03tag\"{\n" +
|
||||
"\vDataRequest\x12-\n" +
|
||||
"\bpathspec\x18\x01 \x01(\v2\x11.proto.DSPathSpecR\bpathspec\x12\x12\n" +
|
||||
"\x04data\x18\x02 \x01(\fR\x04data\x12\x12\n" +
|
||||
"\x04sync\x18\x03 \x01(\bR\x04sync\x12\x15\n" +
|
||||
"\x06org_id\x18\x04 \x01(\tR\x05orgId\"\"\n" +
|
||||
"\fDataResponse\x12\x12\n" +
|
||||
"\x04data\x18\x02 \x01(\fR\x04data\"E\n" +
|
||||
"\x14ListChildrenResponse\x12-\n" +
|
||||
"\bchildren\x18\x01 \x03(\v2\x11.proto.DSPathSpecR\bchildrenB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_datastore_proto_rawDescOnce sync.Once
|
||||
file_datastore_proto_rawDescData = file_datastore_proto_rawDesc
|
||||
file_datastore_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_datastore_proto_rawDescGZIP() []byte {
|
||||
file_datastore_proto_rawDescOnce.Do(func() {
|
||||
file_datastore_proto_rawDescData = protoimpl.X.CompressGZIP(file_datastore_proto_rawDescData)
|
||||
file_datastore_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_datastore_proto_rawDesc), len(file_datastore_proto_rawDesc)))
|
||||
})
|
||||
return file_datastore_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_datastore_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_datastore_proto_goTypes = []interface{}{
|
||||
var file_datastore_proto_goTypes = []any{
|
||||
(*DSPathSpec)(nil), // 0: proto.DSPathSpec
|
||||
(*DataRequest)(nil), // 1: proto.DataRequest
|
||||
(*DataResponse)(nil), // 2: proto.DataResponse
|
||||
@@ -321,61 +301,11 @@ func file_datastore_proto_init() {
|
||||
if File_datastore_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_datastore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DSPathSpec); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_datastore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DataRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_datastore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DataResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_datastore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ListChildrenResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_datastore_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_datastore_proto_rawDesc), len(file_datastore_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
@@ -386,7 +316,6 @@ func file_datastore_proto_init() {
|
||||
MessageInfos: file_datastore_proto_msgTypes,
|
||||
}.Build()
|
||||
File_datastore_proto = out.File
|
||||
file_datastore_proto_rawDesc = nil
|
||||
file_datastore_proto_goTypes = nil
|
||||
file_datastore_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+70
-144
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,22 +19,19 @@ const (
|
||||
)
|
||||
|
||||
type DocSearchRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
||||
Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
|
||||
Length int64 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
||||
Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
|
||||
Length int64 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DocSearchRequest) Reset() {
|
||||
*x = DocSearchRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_docs_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_docs_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DocSearchRequest) String() string {
|
||||
@@ -44,7 +42,7 @@ func (*DocSearchRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DocSearchRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_docs_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -81,21 +79,18 @@ func (x *DocSearchRequest) GetLength() int64 {
|
||||
}
|
||||
|
||||
type Highlight struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
|
||||
End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
|
||||
End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Highlight) Reset() {
|
||||
*x = Highlight{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_docs_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_docs_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Highlight) String() string {
|
||||
@@ -106,7 +101,7 @@ func (*Highlight) ProtoMessage() {}
|
||||
|
||||
func (x *Highlight) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_docs_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -136,28 +131,25 @@ func (x *Highlight) GetEnd() uint64 {
|
||||
}
|
||||
|
||||
type DocSearchResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
|
||||
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
||||
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Fragment string `protobuf:"bytes,4,opt,name=fragment,proto3" json:"fragment,omitempty"`
|
||||
FullText string `protobuf:"bytes,5,opt,name=full_text,json=fullText,proto3" json:"full_text,omitempty"`
|
||||
Highlights []*Highlight `protobuf:"bytes,6,rep,name=highlights,proto3" json:"highlights,omitempty"`
|
||||
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
|
||||
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
||||
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Fragment string `protobuf:"bytes,4,opt,name=fragment,proto3" json:"fragment,omitempty"`
|
||||
FullText string `protobuf:"bytes,5,opt,name=full_text,json=fullText,proto3" json:"full_text,omitempty"`
|
||||
Highlights []*Highlight `protobuf:"bytes,6,rep,name=highlights,proto3" json:"highlights,omitempty"`
|
||||
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
|
||||
// JSON encoded crumbs structure
|
||||
Crumbs string `protobuf:"bytes,8,opt,name=crumbs,proto3" json:"crumbs,omitempty"`
|
||||
Crumbs string `protobuf:"bytes,8,opt,name=crumbs,proto3" json:"crumbs,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DocSearchResponse) Reset() {
|
||||
*x = DocSearchResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_docs_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_docs_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DocSearchResponse) String() string {
|
||||
@@ -168,7 +160,7 @@ func (*DocSearchResponse) ProtoMessage() {}
|
||||
|
||||
func (x *DocSearchResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_docs_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -240,21 +232,18 @@ func (x *DocSearchResponse) GetCrumbs() string {
|
||||
}
|
||||
|
||||
type DocSearchResponses struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
||||
Items []*DocSearchResponse `protobuf:"bytes,2,rep,name=Items,proto3" json:"Items,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
||||
Items []*DocSearchResponse `protobuf:"bytes,2,rep,name=Items,proto3" json:"Items,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DocSearchResponses) Reset() {
|
||||
*x = DocSearchResponses{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_docs_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_docs_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DocSearchResponses) String() string {
|
||||
@@ -265,7 +254,7 @@ func (*DocSearchResponses) ProtoMessage() {}
|
||||
|
||||
func (x *DocSearchResponses) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_docs_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -296,58 +285,46 @@ func (x *DocSearchResponses) GetItems() []*DocSearchResponse {
|
||||
|
||||
var File_docs_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_docs_proto_rawDesc = []byte{
|
||||
0x0a, 0x0a, 0x64, 0x6f, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x56, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74,
|
||||
0x61, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x33, 0x0a, 0x09, 0x48,
|
||||
0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72,
|
||||
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x65, 0x6e, 0x64,
|
||||
0x22, 0xe8, 0x01, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
|
||||
0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74,
|
||||
0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x12, 0x30, 0x0a,
|
||||
0x0a, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x6c, 0x69,
|
||||
0x67, 0x68, 0x74, 0x52, 0x0a, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x75, 0x6d, 0x62, 0x73, 0x18, 0x08, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x72, 0x75, 0x6d, 0x62, 0x73, 0x22, 0x5a, 0x0a, 0x12, 0x44,
|
||||
0x6f, 0x63, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73,
|
||||
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44,
|
||||
0x6f, 0x63, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76,
|
||||
0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c,
|
||||
0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72,
|
||||
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
const file_docs_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\n" +
|
||||
"docs.proto\x12\x05proto\"V\n" +
|
||||
"\x10DocSearchRequest\x12\x14\n" +
|
||||
"\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n" +
|
||||
"\x05start\x18\x02 \x01(\x03R\x05start\x12\x16\n" +
|
||||
"\x06length\x18\x03 \x01(\x03R\x06length\"3\n" +
|
||||
"\tHighlight\x12\x14\n" +
|
||||
"\x05start\x18\x01 \x01(\x04R\x05start\x12\x10\n" +
|
||||
"\x03end\x18\x02 \x01(\x04R\x03end\"\xe8\x01\n" +
|
||||
"\x11DocSearchResponse\x12\x12\n" +
|
||||
"\x04link\x18\x01 \x01(\tR\x04link\x12\x14\n" +
|
||||
"\x05title\x18\x02 \x01(\tR\x05title\x12\x12\n" +
|
||||
"\x04type\x18\x03 \x01(\tR\x04type\x12\x1a\n" +
|
||||
"\bfragment\x18\x04 \x01(\tR\bfragment\x12\x1b\n" +
|
||||
"\tfull_text\x18\x05 \x01(\tR\bfullText\x120\n" +
|
||||
"\n" +
|
||||
"highlights\x18\x06 \x03(\v2\x10.proto.HighlightR\n" +
|
||||
"highlights\x12\x12\n" +
|
||||
"\x04tags\x18\a \x03(\tR\x04tags\x12\x16\n" +
|
||||
"\x06crumbs\x18\b \x01(\tR\x06crumbs\"Z\n" +
|
||||
"\x12DocSearchResponses\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x04R\x05total\x12.\n" +
|
||||
"\x05Items\x18\x02 \x03(\v2\x18.proto.DocSearchResponseR\x05ItemsB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_docs_proto_rawDescOnce sync.Once
|
||||
file_docs_proto_rawDescData = file_docs_proto_rawDesc
|
||||
file_docs_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_docs_proto_rawDescGZIP() []byte {
|
||||
file_docs_proto_rawDescOnce.Do(func() {
|
||||
file_docs_proto_rawDescData = protoimpl.X.CompressGZIP(file_docs_proto_rawDescData)
|
||||
file_docs_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_docs_proto_rawDesc), len(file_docs_proto_rawDesc)))
|
||||
})
|
||||
return file_docs_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_docs_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_docs_proto_goTypes = []interface{}{
|
||||
var file_docs_proto_goTypes = []any{
|
||||
(*DocSearchRequest)(nil), // 0: proto.DocSearchRequest
|
||||
(*Highlight)(nil), // 1: proto.Highlight
|
||||
(*DocSearchResponse)(nil), // 2: proto.DocSearchResponse
|
||||
@@ -368,61 +345,11 @@ func file_docs_proto_init() {
|
||||
if File_docs_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_docs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DocSearchRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_docs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Highlight); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_docs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DocSearchResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_docs_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DocSearchResponses); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_docs_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_docs_proto_rawDesc), len(file_docs_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
@@ -433,7 +360,6 @@ func file_docs_proto_init() {
|
||||
MessageInfos: file_docs_proto_msgTypes,
|
||||
}.Build()
|
||||
File_docs_proto = out.File
|
||||
file_docs_proto_rawDesc = nil
|
||||
file_docs_proto_goTypes = nil
|
||||
file_docs_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+54
-117
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,13 +19,10 @@ const (
|
||||
)
|
||||
|
||||
type CreateDownloadRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
FlowId string `protobuf:"bytes,1,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
HuntId string `protobuf:"bytes,3,opt,name=hunt_id,json=huntId,proto3" json:"hunt_id,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
FlowId string `protobuf:"bytes,1,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
HuntId string `protobuf:"bytes,3,opt,name=hunt_id,json=huntId,proto3" json:"hunt_id,omitempty"`
|
||||
// When set we only create combined hunt output and not individual
|
||||
// flow breakdowns.
|
||||
OnlyCombinedHunt bool `protobuf:"varint,4,opt,name=only_combined_hunt,json=onlyCombinedHunt,proto3" json:"only_combined_hunt,omitempty"`
|
||||
@@ -35,16 +33,16 @@ type CreateDownloadRequest struct {
|
||||
// If set we lock the file with this password.
|
||||
Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"`
|
||||
// If set we expand all sparse files in the archive.
|
||||
ExpandSparse bool `protobuf:"varint,9,opt,name=expand_sparse,json=expandSparse,proto3" json:"expand_sparse,omitempty"`
|
||||
ExpandSparse bool `protobuf:"varint,9,opt,name=expand_sparse,json=expandSparse,proto3" json:"expand_sparse,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateDownloadRequest) Reset() {
|
||||
*x = CreateDownloadRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_download_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_download_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateDownloadRequest) String() string {
|
||||
@@ -55,7 +53,7 @@ func (*CreateDownloadRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreateDownloadRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_download_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -134,20 +132,17 @@ func (x *CreateDownloadRequest) GetExpandSparse() bool {
|
||||
}
|
||||
|
||||
type CreateDownloadResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
VfsPath string `protobuf:"bytes,1,opt,name=vfs_path,json=vfsPath,proto3" json:"vfs_path,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
VfsPath string `protobuf:"bytes,1,opt,name=vfs_path,json=vfsPath,proto3" json:"vfs_path,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateDownloadResponse) Reset() {
|
||||
*x = CreateDownloadResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_download_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_download_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateDownloadResponse) String() string {
|
||||
@@ -158,7 +153,7 @@ func (*CreateDownloadResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CreateDownloadResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_download_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -181,23 +176,20 @@ func (x *CreateDownloadResponse) GetVfsPath() string {
|
||||
}
|
||||
|
||||
type FormUploadMetadata struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// A list of Path components to the VFS
|
||||
VfsPath []string `protobuf:"bytes,3,rep,name=VfsPath,proto3" json:"VfsPath,omitempty"`
|
||||
VfsPath []string `protobuf:"bytes,3,rep,name=VfsPath,proto3" json:"VfsPath,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *FormUploadMetadata) Reset() {
|
||||
*x = FormUploadMetadata{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_download_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_download_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *FormUploadMetadata) String() string {
|
||||
@@ -208,7 +200,7 @@ func (*FormUploadMetadata) ProtoMessage() {}
|
||||
|
||||
func (x *FormUploadMetadata) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_download_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -246,58 +238,42 @@ func (x *FormUploadMetadata) GetVfsPath() []string {
|
||||
|
||||
var File_download_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_download_proto_rawDesc = []byte{
|
||||
0x0a, 0x0e, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x02, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x06, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c,
|
||||
0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63,
|
||||
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x75, 0x6e, 0x74, 0x5f,
|
||||
0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x75, 0x6e, 0x74, 0x49, 0x64,
|
||||
0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x6e, 0x6c, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65,
|
||||
0x64, 0x5f, 0x68, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6f, 0x6e,
|
||||
0x6c, 0x79, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x64, 0x48, 0x75, 0x6e, 0x74, 0x12, 0x1f,
|
||||
0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x08, 0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12,
|
||||
0x1d, 0x0a, 0x0a, 0x63, 0x73, 0x76, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x06, 0x20,
|
||||
0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x73, 0x76, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x23,
|
||||
0x0a, 0x0d, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||||
0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x54,
|
||||
0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
|
||||
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
|
||||
0x23, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x5f, 0x73, 0x70, 0x61, 0x72, 0x73, 0x65,
|
||||
0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x53, 0x70,
|
||||
0x61, 0x72, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f,
|
||||
0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19,
|
||||
0x0a, 0x08, 0x76, 0x66, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x07, 0x76, 0x66, 0x73, 0x50, 0x61, 0x74, 0x68, 0x22, 0x5c, 0x0a, 0x12, 0x46, 0x6f, 0x72,
|
||||
0x6d, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75,
|
||||
0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x56, 0x66, 0x73, 0x50, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07,
|
||||
0x56, 0x66, 0x73, 0x50, 0x61, 0x74, 0x68, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76,
|
||||
0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c,
|
||||
0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72,
|
||||
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
const file_download_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x0edownload.proto\x12\x05proto\"\xba\x02\n" +
|
||||
"\x15CreateDownloadRequest\x12\x17\n" +
|
||||
"\aflow_id\x18\x01 \x01(\tR\x06flowId\x12\x1b\n" +
|
||||
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12\x17\n" +
|
||||
"\ahunt_id\x18\x03 \x01(\tR\x06huntId\x12,\n" +
|
||||
"\x12only_combined_hunt\x18\x04 \x01(\bR\x10onlyCombinedHunt\x12\x1f\n" +
|
||||
"\vjson_format\x18\x05 \x01(\bR\n" +
|
||||
"jsonFormat\x12\x1d\n" +
|
||||
"\n" +
|
||||
"csv_format\x18\x06 \x01(\bR\tcsvFormat\x12#\n" +
|
||||
"\rdownload_type\x18\a \x01(\tR\fdownloadType\x12\x1a\n" +
|
||||
"\bpassword\x18\b \x01(\tR\bpassword\x12#\n" +
|
||||
"\rexpand_sparse\x18\t \x01(\bR\fexpandSparse\"3\n" +
|
||||
"\x16CreateDownloadResponse\x12\x19\n" +
|
||||
"\bvfs_path\x18\x01 \x01(\tR\avfsPath\"\\\n" +
|
||||
"\x12FormUploadMetadata\x12\x1a\n" +
|
||||
"\bfilename\x18\x01 \x01(\tR\bfilename\x12\x10\n" +
|
||||
"\x03url\x18\x02 \x01(\tR\x03url\x12\x18\n" +
|
||||
"\aVfsPath\x18\x03 \x03(\tR\aVfsPathB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_download_proto_rawDescOnce sync.Once
|
||||
file_download_proto_rawDescData = file_download_proto_rawDesc
|
||||
file_download_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_download_proto_rawDescGZIP() []byte {
|
||||
file_download_proto_rawDescOnce.Do(func() {
|
||||
file_download_proto_rawDescData = protoimpl.X.CompressGZIP(file_download_proto_rawDescData)
|
||||
file_download_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_download_proto_rawDesc), len(file_download_proto_rawDesc)))
|
||||
})
|
||||
return file_download_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_download_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_download_proto_goTypes = []interface{}{
|
||||
var file_download_proto_goTypes = []any{
|
||||
(*CreateDownloadRequest)(nil), // 0: proto.CreateDownloadRequest
|
||||
(*CreateDownloadResponse)(nil), // 1: proto.CreateDownloadResponse
|
||||
(*FormUploadMetadata)(nil), // 2: proto.FormUploadMetadata
|
||||
@@ -315,49 +291,11 @@ func file_download_proto_init() {
|
||||
if File_download_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_download_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CreateDownloadRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_download_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CreateDownloadResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_download_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FormUploadMetadata); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_download_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_download_proto_rawDesc), len(file_download_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 3,
|
||||
NumExtensions: 0,
|
||||
@@ -368,7 +306,6 @@ func file_download_proto_init() {
|
||||
MessageInfos: file_download_proto_msgTypes,
|
||||
}.Build()
|
||||
File_download_proto = out.File
|
||||
file_download_proto_rawDesc = nil
|
||||
file_download_proto_goTypes = nil
|
||||
file_download_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+150
-360
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
proto1 "www.velocidex.com/golang/velociraptor/crypto/proto"
|
||||
proto "www.velocidex.com/golang/velociraptor/flows/proto"
|
||||
)
|
||||
@@ -20,22 +21,19 @@ const (
|
||||
)
|
||||
|
||||
type ContainerMemberStats struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
UncompressedSize uint64 `protobuf:"varint,2,opt,name=uncompressed_size,json=uncompressedSize,proto3" json:"uncompressed_size,omitempty"`
|
||||
CompressedSize uint64 `protobuf:"varint,3,opt,name=compressed_size,json=compressedSize,proto3" json:"compressed_size,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
UncompressedSize uint64 `protobuf:"varint,2,opt,name=uncompressed_size,json=uncompressedSize,proto3" json:"uncompressed_size,omitempty"`
|
||||
CompressedSize uint64 `protobuf:"varint,3,opt,name=compressed_size,json=compressedSize,proto3" json:"compressed_size,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ContainerMemberStats) Reset() {
|
||||
*x = ContainerMemberStats{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ContainerMemberStats) String() string {
|
||||
@@ -46,7 +44,7 @@ func (*ContainerMemberStats) ProtoMessage() {}
|
||||
|
||||
func (x *ContainerMemberStats) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -84,10 +82,7 @@ func (x *ContainerMemberStats) GetCompressedSize() uint64 {
|
||||
|
||||
// Stats about exported containers
|
||||
type ContainerStats struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Seconds since epoch
|
||||
Timestamp uint64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
TotalUploadedFiles uint64 `protobuf:"varint,1,opt,name=total_uploaded_files,json=totalUploadedFiles,proto3" json:"total_uploaded_files,omitempty"`
|
||||
@@ -111,15 +106,15 @@ type ContainerStats struct {
|
||||
// A string representation of the file path
|
||||
VfsPath string `protobuf:"bytes,12,opt,name=vfs_path,json=vfsPath,proto3" json:"vfs_path,omitempty"`
|
||||
ActiveMembers []*ContainerMemberStats `protobuf:"bytes,13,rep,name=active_members,json=activeMembers,proto3" json:"active_members,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ContainerStats) Reset() {
|
||||
*x = ContainerStats{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ContainerStats) String() string {
|
||||
@@ -130,7 +125,7 @@ func (*ContainerStats) ProtoMessage() {}
|
||||
|
||||
func (x *ContainerStats) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -237,27 +232,24 @@ func (x *ContainerStats) GetActiveMembers() []*ContainerMemberStats {
|
||||
}
|
||||
|
||||
type AvailableDownloadFile struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
|
||||
// Deprecated things are now stored in the stats.
|
||||
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
|
||||
Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
||||
Date string `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
|
||||
Stats *ContainerStats `protobuf:"bytes,8,opt,name=stats,proto3" json:"stats,omitempty"`
|
||||
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
|
||||
Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
||||
Date string `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
|
||||
Stats *ContainerStats `protobuf:"bytes,8,opt,name=stats,proto3" json:"stats,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AvailableDownloadFile) Reset() {
|
||||
*x = AvailableDownloadFile{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AvailableDownloadFile) String() string {
|
||||
@@ -268,7 +260,7 @@ func (*AvailableDownloadFile) ProtoMessage() {}
|
||||
|
||||
func (x *AvailableDownloadFile) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -333,20 +325,17 @@ func (x *AvailableDownloadFile) GetStats() *ContainerStats {
|
||||
}
|
||||
|
||||
type AvailableDownloads struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Files []*AvailableDownloadFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Files []*AvailableDownloadFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AvailableDownloads) Reset() {
|
||||
*x = AvailableDownloads{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AvailableDownloads) String() string {
|
||||
@@ -357,7 +346,7 @@ func (*AvailableDownloads) ProtoMessage() {}
|
||||
|
||||
func (x *AvailableDownloads) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -380,21 +369,18 @@ func (x *AvailableDownloads) GetFiles() []*AvailableDownloadFile {
|
||||
}
|
||||
|
||||
type FlowDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Context *proto.ArtifactCollectorContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
||||
AvailableDownloads *AvailableDownloads `protobuf:"bytes,16,opt,name=available_downloads,json=availableDownloads,proto3" json:"available_downloads,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *FlowDetails) Reset() {
|
||||
*x = FlowDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *FlowDetails) String() string {
|
||||
@@ -405,7 +391,7 @@ func (*FlowDetails) ProtoMessage() {}
|
||||
|
||||
func (x *FlowDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -437,24 +423,21 @@ func (x *FlowDetails) GetAvailableDownloads() *AvailableDownloads {
|
||||
// This shows the requests that were actually sent to the client. When
|
||||
// the user selects artifacts to send they are compiled into raw VQL
|
||||
// for sending to the client. NOTE: Clients do not know anything about
|
||||
// artifacts - they only interpret raw VQL as compiled by the server.
|
||||
// artifacts - they only interprect raw VQL as compiled by the server.
|
||||
type ApiFlowRequestDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*proto1.VeloMessage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
FlowId string `protobuf:"bytes,3,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*proto1.VeloMessage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
FlowId string `protobuf:"bytes,3,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApiFlowRequestDetails) Reset() {
|
||||
*x = ApiFlowRequestDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApiFlowRequestDetails) String() string {
|
||||
@@ -465,7 +448,7 @@ func (*ApiFlowRequestDetails) ProtoMessage() {}
|
||||
|
||||
func (x *ApiFlowRequestDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -502,20 +485,17 @@ func (x *ApiFlowRequestDetails) GetFlowId() string {
|
||||
}
|
||||
|
||||
type ApiFlowResultDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*proto1.VeloMessage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*proto1.VeloMessage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApiFlowResultDetails) Reset() {
|
||||
*x = ApiFlowResultDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApiFlowResultDetails) String() string {
|
||||
@@ -526,7 +506,7 @@ func (*ApiFlowResultDetails) ProtoMessage() {}
|
||||
|
||||
func (x *ApiFlowResultDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -549,20 +529,17 @@ func (x *ApiFlowResultDetails) GetItems() []*proto1.VeloMessage {
|
||||
}
|
||||
|
||||
type ApiFlowLogDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*proto1.LogMessage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*proto1.LogMessage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApiFlowLogDetails) Reset() {
|
||||
*x = ApiFlowLogDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApiFlowLogDetails) String() string {
|
||||
@@ -573,7 +550,7 @@ func (*ApiFlowLogDetails) ProtoMessage() {}
|
||||
|
||||
func (x *ApiFlowLogDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -596,26 +573,23 @@ func (x *ApiFlowLogDetails) GetItems() []*proto1.LogMessage {
|
||||
}
|
||||
|
||||
type ApiFlowRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
FlowId string `protobuf:"bytes,2,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
|
||||
IncludeArchived bool `protobuf:"varint,5,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
FlowId string `protobuf:"bytes,2,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
|
||||
IncludeArchived bool `protobuf:"varint,5,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"`
|
||||
// If specified we only return flows that collected this artifact.
|
||||
Artifact string `protobuf:"bytes,6,opt,name=artifact,proto3" json:"artifact,omitempty"`
|
||||
Artifact string `protobuf:"bytes,6,opt,name=artifact,proto3" json:"artifact,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApiFlowRequest) Reset() {
|
||||
*x = ApiFlowRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApiFlowRequest) String() string {
|
||||
@@ -626,7 +600,7 @@ func (*ApiFlowRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ApiFlowRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -684,21 +658,18 @@ func (x *ApiFlowRequest) GetArtifact() string {
|
||||
}
|
||||
|
||||
type ApiFlowResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
||||
Items []*proto.ArtifactCollectorContext `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
||||
Items []*proto.ArtifactCollectorContext `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApiFlowResponse) Reset() {
|
||||
*x = ApiFlowResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_flows_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_flows_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApiFlowResponse) String() string {
|
||||
@@ -709,7 +680,7 @@ func (*ApiFlowResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ApiFlowResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_flows_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -740,134 +711,76 @@ func (x *ApiFlowResponse) GetItems() []*proto.ArtifactCollectorContext {
|
||||
|
||||
var File_flows_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_flows_proto_rawDesc = []byte{
|
||||
0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x66,
|
||||
0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66,
|
||||
0x61, 0x63, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
|
||||
0x72, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x12, 0x2b, 0x0a, 0x11, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64,
|
||||
0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x75, 0x6e, 0x63,
|
||||
0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x27, 0x0a,
|
||||
0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73,
|
||||
0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x9a, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x61,
|
||||
0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x30, 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c,
|
||||
0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x70, 0x6c, 0x6f,
|
||||
0x61, 0x64, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x74, 0x6f, 0x74,
|
||||
0x61, 0x6c, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65,
|
||||
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x70,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x74,
|
||||
0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65,
|
||||
0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x74,
|
||||
0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64,
|
||||
0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63,
|
||||
0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x70,
|
||||
0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74,
|
||||
0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x66,
|
||||
0x69, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61,
|
||||
0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
|
||||
0x61, 0x73, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x75, 0x72,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x74, 0x6f, 0x74,
|
||||
0x61, 0x6c, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f,
|
||||
0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a,
|
||||
0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
|
||||
0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
|
||||
0x72, 0x72, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x66, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68,
|
||||
0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x66, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12,
|
||||
0x42, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
||||
0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
|
||||
0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53,
|
||||
0x74, 0x61, 0x74, 0x73, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62,
|
||||
0x65, 0x72, 0x73, 0x22, 0xc4, 0x01, 0x0a, 0x15, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d,
|
||||
0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d,
|
||||
0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
||||
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x0a,
|
||||
0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74,
|
||||
0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x48, 0x0a, 0x12, 0x41, 0x76,
|
||||
0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x73,
|
||||
0x12, 0x32, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66,
|
||||
0x69, 0x6c, 0x65, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x0b, 0x46, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x74,
|
||||
0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x72,
|
||||
0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43,
|
||||
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12,
|
||||
0x4a, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x77,
|
||||
0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f,
|
||||
0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x22, 0x77, 0x0a, 0x15, 0x41,
|
||||
0x70, 0x69, 0x46, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x74,
|
||||
0x61, 0x69, 0x6c, 0x73, 0x12, 0x28, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x65, 0x6c, 0x6f,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1b,
|
||||
0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66,
|
||||
0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6c,
|
||||
0x6f, 0x77, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x14, 0x41, 0x70, 0x69, 0x46, 0x6c, 0x6f, 0x77, 0x52,
|
||||
0x65, 0x73, 0x75, 0x6c, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x28, 0x0a, 0x05,
|
||||
0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x65, 0x6c, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
|
||||
0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3c, 0x0a, 0x11, 0x41, 0x70, 0x69, 0x46, 0x6c, 0x6f,
|
||||
0x77, 0x4c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x27, 0x0a, 0x05, 0x69,
|
||||
0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x69,
|
||||
0x74, 0x65, 0x6d, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x0e, 0x41, 0x70, 0x69, 0x46, 0x6c, 0x6f, 0x77,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e,
|
||||
0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65,
|
||||
0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f,
|
||||
0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x69,
|
||||
0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, 0x72,
|
||||
0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x22, 0x5e, 0x0a, 0x0f, 0x41, 0x70, 0x69, 0x46, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x69,
|
||||
0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
|
||||
0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x05, 0x69, 0x74, 0x65,
|
||||
0x6d, 0x73, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69,
|
||||
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76,
|
||||
0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_flows_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\vflows.proto\x12\x05proto\x1a\x17crypto/proto/jobs.proto\x1a$flows/proto/artifact_collector.proto\"\x80\x01\n" +
|
||||
"\x14ContainerMemberStats\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12+\n" +
|
||||
"\x11uncompressed_size\x18\x02 \x01(\x04R\x10uncompressedSize\x12'\n" +
|
||||
"\x0fcompressed_size\x18\x03 \x01(\x04R\x0ecompressedSize\"\x9a\x04\n" +
|
||||
"\x0eContainerStats\x12\x1c\n" +
|
||||
"\ttimestamp\x18\b \x01(\x04R\ttimestamp\x120\n" +
|
||||
"\x14total_uploaded_files\x18\x01 \x01(\x04R\x12totalUploadedFiles\x120\n" +
|
||||
"\x14total_uploaded_bytes\x18\x02 \x01(\x04R\x12totalUploadedBytes\x128\n" +
|
||||
"\x18total_uncompressed_bytes\x18\x03 \x01(\x04R\x16totalUncompressedBytes\x124\n" +
|
||||
"\x16total_compressed_bytes\x18\x04 \x01(\x04R\x14totalCompressedBytes\x122\n" +
|
||||
"\x15total_container_files\x18\x05 \x01(\x04R\x13totalContainerFiles\x12\x12\n" +
|
||||
"\x04hash\x18\x06 \x01(\tR\x04hash\x12%\n" +
|
||||
"\x0etotal_duration\x18\t \x01(\x04R\rtotalDuration\x12\x1e\n" +
|
||||
"\n" +
|
||||
"components\x18\a \x03(\tR\n" +
|
||||
"components\x12\x12\n" +
|
||||
"\x04type\x18\n" +
|
||||
" \x01(\tR\x04type\x12\x14\n" +
|
||||
"\x05error\x18\v \x01(\tR\x05error\x12\x19\n" +
|
||||
"\bvfs_path\x18\f \x01(\tR\avfsPath\x12B\n" +
|
||||
"\x0eactive_members\x18\r \x03(\v2\x1b.proto.ContainerMemberStatsR\ractiveMembers\"\xc4\x01\n" +
|
||||
"\x15AvailableDownloadFile\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
"\x04path\x18\x05 \x01(\tR\x04path\x12\x12\n" +
|
||||
"\x04type\x18\x06 \x01(\tR\x04type\x12\x1a\n" +
|
||||
"\bcomplete\x18\x02 \x01(\bR\bcomplete\x12\x12\n" +
|
||||
"\x04size\x18\x03 \x01(\x04R\x04size\x12\x12\n" +
|
||||
"\x04date\x18\x04 \x01(\tR\x04date\x12+\n" +
|
||||
"\x05stats\x18\b \x01(\v2\x15.proto.ContainerStatsR\x05stats\"H\n" +
|
||||
"\x12AvailableDownloads\x122\n" +
|
||||
"\x05files\x18\x01 \x03(\v2\x1c.proto.AvailableDownloadFileR\x05files\"\x94\x01\n" +
|
||||
"\vFlowDetails\x129\n" +
|
||||
"\acontext\x18\x01 \x01(\v2\x1f.proto.ArtifactCollectorContextR\acontext\x12J\n" +
|
||||
"\x13available_downloads\x18\x10 \x01(\v2\x19.proto.AvailableDownloadsR\x12availableDownloads\"w\n" +
|
||||
"\x15ApiFlowRequestDetails\x12(\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x12.proto.VeloMessageR\x05items\x12\x1b\n" +
|
||||
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12\x17\n" +
|
||||
"\aflow_id\x18\x03 \x01(\tR\x06flowId\"@\n" +
|
||||
"\x14ApiFlowResultDetails\x12(\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x12.proto.VeloMessageR\x05items\"<\n" +
|
||||
"\x11ApiFlowLogDetails\x12'\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x11.proto.LogMessageR\x05items\"\xbb\x01\n" +
|
||||
"\x0eApiFlowRequest\x12\x1b\n" +
|
||||
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12\x17\n" +
|
||||
"\aflow_id\x18\x02 \x01(\tR\x06flowId\x12\x16\n" +
|
||||
"\x06offset\x18\x03 \x01(\x04R\x06offset\x12\x14\n" +
|
||||
"\x05count\x18\x04 \x01(\x04R\x05count\x12)\n" +
|
||||
"\x10include_archived\x18\x05 \x01(\bR\x0fincludeArchived\x12\x1a\n" +
|
||||
"\bartifact\x18\x06 \x01(\tR\bartifact\"^\n" +
|
||||
"\x0fApiFlowResponse\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x04R\x05total\x125\n" +
|
||||
"\x05items\x18\x02 \x03(\v2\x1f.proto.ArtifactCollectorContextR\x05itemsB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_flows_proto_rawDescOnce sync.Once
|
||||
file_flows_proto_rawDescData = file_flows_proto_rawDesc
|
||||
file_flows_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_flows_proto_rawDescGZIP() []byte {
|
||||
file_flows_proto_rawDescOnce.Do(func() {
|
||||
file_flows_proto_rawDescData = protoimpl.X.CompressGZIP(file_flows_proto_rawDescData)
|
||||
file_flows_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_flows_proto_rawDesc), len(file_flows_proto_rawDesc)))
|
||||
})
|
||||
return file_flows_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_flows_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_flows_proto_goTypes = []interface{}{
|
||||
var file_flows_proto_goTypes = []any{
|
||||
(*ContainerMemberStats)(nil), // 0: proto.ContainerMemberStats
|
||||
(*ContainerStats)(nil), // 1: proto.ContainerStats
|
||||
(*AvailableDownloadFile)(nil), // 2: proto.AvailableDownloadFile
|
||||
@@ -904,133 +817,11 @@ func file_flows_proto_init() {
|
||||
if File_flows_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_flows_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ContainerMemberStats); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ContainerStats); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AvailableDownloadFile); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AvailableDownloads); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FlowDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiFlowRequestDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiFlowResultDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiFlowLogDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiFlowRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_flows_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiFlowResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_flows_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_flows_proto_rawDesc), len(file_flows_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumExtensions: 0,
|
||||
@@ -1041,7 +832,6 @@ func file_flows_proto_init() {
|
||||
MessageInfos: file_flows_proto_msgTypes,
|
||||
}.Build()
|
||||
File_flows_proto = out.File
|
||||
file_flows_proto_rawDesc = nil
|
||||
file_flows_proto_goTypes = nil
|
||||
file_flows_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+30
-71
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -67,20 +68,17 @@ func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {
|
||||
}
|
||||
|
||||
type HealthCheckRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *HealthCheckRequest) Reset() {
|
||||
*x = HealthCheckRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_health_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_health_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *HealthCheckRequest) String() string {
|
||||
@@ -91,7 +89,7 @@ func (*HealthCheckRequest) ProtoMessage() {}
|
||||
|
||||
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_health_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -114,20 +112,17 @@ func (x *HealthCheckRequest) GetService() string {
|
||||
}
|
||||
|
||||
type HealthCheckResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *HealthCheckResponse) Reset() {
|
||||
*x = HealthCheckResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_health_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_health_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *HealthCheckResponse) String() string {
|
||||
@@ -138,7 +133,7 @@ func (*HealthCheckResponse) ProtoMessage() {}
|
||||
|
||||
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_health_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -162,42 +157,33 @@ func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus {
|
||||
|
||||
var File_health_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_health_proto_rawDesc = []byte{
|
||||
0x0a, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43,
|
||||
0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73,
|
||||
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65,
|
||||
0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
|
||||
0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a,
|
||||
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,
|
||||
0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e,
|
||||
0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22,
|
||||
0x3a, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
||||
0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a,
|
||||
0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f,
|
||||
0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x42, 0x31, 0x5a, 0x2f, 0x77,
|
||||
0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61,
|
||||
0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_health_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\fhealth.proto\x12\x05proto\".\n" +
|
||||
"\x12HealthCheckRequest\x12\x18\n" +
|
||||
"\aservice\x18\x01 \x01(\tR\aservice\"\x93\x01\n" +
|
||||
"\x13HealthCheckResponse\x12@\n" +
|
||||
"\x06status\x18\x01 \x01(\x0e2(.proto.HealthCheckResponse.ServingStatusR\x06status\":\n" +
|
||||
"\rServingStatus\x12\v\n" +
|
||||
"\aUNKNOWN\x10\x00\x12\v\n" +
|
||||
"\aSERVING\x10\x01\x12\x0f\n" +
|
||||
"\vNOT_SERVING\x10\x02B1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_health_proto_rawDescOnce sync.Once
|
||||
file_health_proto_rawDescData = file_health_proto_rawDesc
|
||||
file_health_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_health_proto_rawDescGZIP() []byte {
|
||||
file_health_proto_rawDescOnce.Do(func() {
|
||||
file_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_health_proto_rawDescData)
|
||||
file_health_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_health_proto_rawDesc), len(file_health_proto_rawDesc)))
|
||||
})
|
||||
return file_health_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_health_proto_goTypes = []interface{}{
|
||||
var file_health_proto_goTypes = []any{
|
||||
(HealthCheckResponse_ServingStatus)(0), // 0: proto.HealthCheckResponse.ServingStatus
|
||||
(*HealthCheckRequest)(nil), // 1: proto.HealthCheckRequest
|
||||
(*HealthCheckResponse)(nil), // 2: proto.HealthCheckResponse
|
||||
@@ -216,37 +202,11 @@ func file_health_proto_init() {
|
||||
if File_health_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HealthCheckRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HealthCheckResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_health_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_health_proto_rawDesc), len(file_health_proto_rawDesc)),
|
||||
NumEnums: 1,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
@@ -258,7 +218,6 @@ func file_health_proto_init() {
|
||||
MessageInfos: file_health_proto_msgTypes,
|
||||
}.Build()
|
||||
File_health_proto = out.File
|
||||
file_health_proto_rawDesc = nil
|
||||
file_health_proto_goTypes = nil
|
||||
file_health_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+246
-595
File diff suppressed because it is too large
Load Diff
+223
-456
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
proto2 "www.velocidex.com/golang/velociraptor/actions/proto"
|
||||
proto1 "www.velocidex.com/golang/velociraptor/artifacts/proto"
|
||||
proto "www.velocidex.com/golang/velociraptor/flows/proto"
|
||||
@@ -21,21 +22,18 @@ const (
|
||||
)
|
||||
|
||||
type ReformatVQLMessage struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Vql string `protobuf:"bytes,1,opt,name=vql,proto3" json:"vql,omitempty"`
|
||||
Artifact string `protobuf:"bytes,2,opt,name=artifact,proto3" json:"artifact,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Vql string `protobuf:"bytes,1,opt,name=vql,proto3" json:"vql,omitempty"`
|
||||
Artifact string `protobuf:"bytes,2,opt,name=artifact,proto3" json:"artifact,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ReformatVQLMessage) Reset() {
|
||||
*x = ReformatVQLMessage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ReformatVQLMessage) String() string {
|
||||
@@ -46,7 +44,7 @@ func (*ReformatVQLMessage) ProtoMessage() {}
|
||||
|
||||
func (x *ReformatVQLMessage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -76,21 +74,18 @@ func (x *ReformatVQLMessage) GetArtifact() string {
|
||||
}
|
||||
|
||||
type Env struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Env) Reset() {
|
||||
*x = Env{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Env) String() string {
|
||||
@@ -101,7 +96,7 @@ func (*Env) ProtoMessage() {}
|
||||
|
||||
func (x *Env) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -131,22 +126,19 @@ func (x *Env) GetValue() string {
|
||||
}
|
||||
|
||||
type NotebookExportRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
NotebookId string `protobuf:"bytes,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
PreferredName string `protobuf:"bytes,3,opt,name=preferred_name,json=preferredName,proto3" json:"preferred_name,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
NotebookId string `protobuf:"bytes,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
PreferredName string `protobuf:"bytes,3,opt,name=preferred_name,json=preferredName,proto3" json:"preferred_name,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *NotebookExportRequest) Reset() {
|
||||
*x = NotebookExportRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *NotebookExportRequest) String() string {
|
||||
@@ -157,7 +149,7 @@ func (*NotebookExportRequest) ProtoMessage() {}
|
||||
|
||||
func (x *NotebookExportRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -195,35 +187,32 @@ func (x *NotebookExportRequest) GetPreferredName() string {
|
||||
|
||||
// Message sent to the notebook processor ro request a cell recalc.
|
||||
type NotebookCellRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
NotebookId string `protobuf:"bytes,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
CellId string `protobuf:"bytes,2,opt,name=cell_id,json=cellId,proto3" json:"cell_id,omitempty"`
|
||||
Version string `protobuf:"bytes,12,opt,name=version,proto3" json:"version,omitempty"`
|
||||
AvailableVersions []string `protobuf:"bytes,13,rep,name=available_versions,json=availableVersions,proto3" json:"available_versions,omitempty"`
|
||||
Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
|
||||
Output string `protobuf:"bytes,14,opt,name=output,proto3" json:"output,omitempty"`
|
||||
Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Offset uint64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Count uint64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
|
||||
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
|
||||
CurrentlyEditing bool `protobuf:"varint,8,opt,name=currently_editing,json=currentlyEditing,proto3" json:"currently_editing,omitempty"`
|
||||
Env []*Env `protobuf:"bytes,9,rep,name=env,proto3" json:"env,omitempty"`
|
||||
IncludeUploads bool `protobuf:"varint,10,opt,name=include_uploads,json=includeUploads,proto3" json:"include_uploads,omitempty"`
|
||||
IncludeTimelines bool `protobuf:"varint,16,opt,name=include_timelines,json=includeTimelines,proto3" json:"include_timelines,omitempty"`
|
||||
// If this is set schedule the calculation syncronously.
|
||||
Sync bool `protobuf:"varint,15,opt,name=sync,proto3" json:"sync,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
NotebookId string `protobuf:"bytes,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
CellId string `protobuf:"bytes,2,opt,name=cell_id,json=cellId,proto3" json:"cell_id,omitempty"`
|
||||
Version string `protobuf:"bytes,12,opt,name=version,proto3" json:"version,omitempty"`
|
||||
AvailableVersions []string `protobuf:"bytes,13,rep,name=available_versions,json=availableVersions,proto3" json:"available_versions,omitempty"`
|
||||
Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
|
||||
Output string `protobuf:"bytes,14,opt,name=output,proto3" json:"output,omitempty"`
|
||||
Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Offset uint64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Count uint64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
|
||||
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
|
||||
CurrentlyEditing bool `protobuf:"varint,8,opt,name=currently_editing,json=currentlyEditing,proto3" json:"currently_editing,omitempty"`
|
||||
Env []*Env `protobuf:"bytes,9,rep,name=env,proto3" json:"env,omitempty"`
|
||||
IncludeUploads bool `protobuf:"varint,10,opt,name=include_uploads,json=includeUploads,proto3" json:"include_uploads,omitempty"`
|
||||
IncludeTimelines bool `protobuf:"varint,16,opt,name=include_timelines,json=includeTimelines,proto3" json:"include_timelines,omitempty"`
|
||||
// If this is set schedule the calculation synchronously.
|
||||
Sync bool `protobuf:"varint,15,opt,name=sync,proto3" json:"sync,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *NotebookCellRequest) Reset() {
|
||||
*x = NotebookCellRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *NotebookCellRequest) String() string {
|
||||
@@ -234,7 +223,7 @@ func (*NotebookCellRequest) ProtoMessage() {}
|
||||
|
||||
func (x *NotebookCellRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -355,26 +344,23 @@ func (x *NotebookCellRequest) GetSync() bool {
|
||||
}
|
||||
|
||||
type NotebookContext struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
HuntId string `protobuf:"bytes,2,opt,name=hunt_id,json=huntId,proto3" json:"hunt_id,omitempty"`
|
||||
FlowId string `protobuf:"bytes,3,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
EventArtifact string `protobuf:"bytes,5,opt,name=event_artifact,json=eventArtifact,proto3" json:"event_artifact,omitempty"`
|
||||
StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
EndTime int64 `protobuf:"varint,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
HuntId string `protobuf:"bytes,2,opt,name=hunt_id,json=huntId,proto3" json:"hunt_id,omitempty"`
|
||||
FlowId string `protobuf:"bytes,3,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
EventArtifact string `protobuf:"bytes,5,opt,name=event_artifact,json=eventArtifact,proto3" json:"event_artifact,omitempty"`
|
||||
StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
EndTime int64 `protobuf:"varint,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *NotebookContext) Reset() {
|
||||
*x = NotebookContext{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *NotebookContext) String() string {
|
||||
@@ -385,7 +371,7 @@ func (*NotebookContext) ProtoMessage() {}
|
||||
|
||||
func (x *NotebookContext) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -451,13 +437,10 @@ func (x *NotebookContext) GetEndTime() int64 {
|
||||
|
||||
// Represents an entire notebook.
|
||||
type NotebookMetadata struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||
// Type of notebook - Hunt, Flow or empty for default.
|
||||
Context *NotebookContext `protobuf:"bytes,16,opt,name=context,proto3" json:"context,omitempty"`
|
||||
// A list of usernames that have access to this notebook.
|
||||
@@ -491,16 +474,16 @@ type NotebookMetadata struct {
|
||||
ColumnTypes []*proto1.ColumnType `protobuf:"bytes,17,rep,name=column_types,json=columnTypes,proto3" json:"column_types,omitempty"`
|
||||
// Cells that are not immediately included but may be included by
|
||||
// the GUI as suggestions.
|
||||
Suggestions []*NotebookCellRequest `protobuf:"bytes,19,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
|
||||
Suggestions []*NotebookCellRequest `protobuf:"bytes,19,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *NotebookMetadata) Reset() {
|
||||
*x = NotebookMetadata{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *NotebookMetadata) String() string {
|
||||
@@ -511,7 +494,7 @@ func (*NotebookMetadata) ProtoMessage() {}
|
||||
|
||||
func (x *NotebookMetadata) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -688,20 +671,17 @@ func (x *NotebookMetadata) GetSuggestions() []*NotebookCellRequest {
|
||||
}
|
||||
|
||||
type Notebooks struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*NotebookMetadata `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*NotebookMetadata `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Notebooks) Reset() {
|
||||
*x = Notebooks{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Notebooks) String() string {
|
||||
@@ -712,7 +692,7 @@ func (*Notebooks) ProtoMessage() {}
|
||||
|
||||
func (x *Notebooks) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -735,13 +715,10 @@ func (x *Notebooks) GetItems() []*NotebookMetadata {
|
||||
}
|
||||
|
||||
type NotebookCell struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
NotebookId string `protobuf:"bytes,16,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
|
||||
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
NotebookId string `protobuf:"bytes,16,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
|
||||
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
|
||||
// A short summary of the notebook cell.
|
||||
Summary string `protobuf:"bytes,17,opt,name=summary,proto3" json:"summary,omitempty"`
|
||||
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
||||
@@ -760,15 +737,15 @@ type NotebookCell struct {
|
||||
Error string `protobuf:"bytes,13,opt,name=error,proto3" json:"error,omitempty"`
|
||||
CurrentVersion string `protobuf:"bytes,14,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
|
||||
AvailableVersions []string `protobuf:"bytes,15,rep,name=available_versions,json=availableVersions,proto3" json:"available_versions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *NotebookCell) Reset() {
|
||||
*x = NotebookCell{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *NotebookCell) String() string {
|
||||
@@ -779,7 +756,7 @@ func (*NotebookCell) ProtoMessage() {}
|
||||
|
||||
func (x *NotebookCell) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -914,25 +891,22 @@ func (x *NotebookCell) GetAvailableVersions() []string {
|
||||
}
|
||||
|
||||
type NotebookFileUploadRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
DisableAttachmentId bool `protobuf:"varint,6,opt,name=disable_attachment_id,json=disableAttachmentId,proto3" json:"disable_attachment_id,omitempty"`
|
||||
Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
|
||||
NotebookId string `protobuf:"bytes,3,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
CellId string `protobuf:"bytes,5,opt,name=cell_id,json=cellId,proto3" json:"cell_id,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
DisableAttachmentId bool `protobuf:"varint,6,opt,name=disable_attachment_id,json=disableAttachmentId,proto3" json:"disable_attachment_id,omitempty"`
|
||||
Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
|
||||
NotebookId string `protobuf:"bytes,3,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
CellId string `protobuf:"bytes,5,opt,name=cell_id,json=cellId,proto3" json:"cell_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *NotebookFileUploadRequest) Reset() {
|
||||
*x = NotebookFileUploadRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *NotebookFileUploadRequest) String() string {
|
||||
@@ -943,7 +917,7 @@ func (*NotebookFileUploadRequest) ProtoMessage() {}
|
||||
|
||||
func (x *NotebookFileUploadRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1001,22 +975,19 @@ func (x *NotebookFileUploadRequest) GetCellId() string {
|
||||
}
|
||||
|
||||
type NotebookFileUploadResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *NotebookFileUploadResponse) Reset() {
|
||||
*x = NotebookFileUploadResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_notebooks_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_notebooks_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *NotebookFileUploadResponse) String() string {
|
||||
@@ -1027,7 +998,7 @@ func (*NotebookFileUploadResponse) ProtoMessage() {}
|
||||
|
||||
func (x *NotebookFileUploadResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_notebooks_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1065,210 +1036,129 @@ func (x *NotebookFileUploadResponse) GetMimeType() string {
|
||||
|
||||
var File_notebooks_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_notebooks_proto_rawDesc = []byte{
|
||||
0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x71, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x1e, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x24, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61,
|
||||
0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f,
|
||||
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x42, 0x0a, 0x12, 0x52, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x56, 0x51, 0x4c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x71,
|
||||
0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x71, 0x6c, 0x12, 0x1a, 0x0a, 0x08,
|
||||
0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||
0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x22, 0x2d, 0x0a, 0x03, 0x45, 0x6e, 0x76, 0x12,
|
||||
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
||||
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x73, 0x0a, 0x15, 0x4e, 0x6f, 0x74, 0x65, 0x62,
|
||||
0x6f, 0x6f, 0x6b, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x49,
|
||||
0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72,
|
||||
0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70,
|
||||
0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xd1, 0x03, 0x0a,
|
||||
0x13, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b,
|
||||
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x62,
|
||||
0x6f, 0x6f, 0x6b, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x64,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x65, 0x6c, 0x6c, 0x49, 0x64, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69,
|
||||
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0d,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x56,
|
||||
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f,
|
||||
0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66,
|
||||
0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,
|
||||
0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||||
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x63,
|
||||
0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c,
|
||||
0x79, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18,
|
||||
0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e,
|
||||
0x76, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64,
|
||||
0x65, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12,
|
||||
0x2b, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6c,
|
||||
0x69, 0x6e, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69, 0x6e, 0x63, 0x6c,
|
||||
0x75, 0x64, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x73, 0x79, 0x6e, 0x63, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x79, 0x6e, 0x63,
|
||||
0x22, 0xd5, 0x01, 0x0a, 0x0f, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x43, 0x6f, 0x6e,
|
||||
0x74, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x75, 0x6e, 0x74,
|
||||
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x75, 0x6e, 0x74, 0x49,
|
||||
0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x06, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c,
|
||||
0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63,
|
||||
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74,
|
||||
0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x1d,
|
||||
0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a,
|
||||
0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xc5, 0x07, 0x0a, 0x10, 0x4e, 0x6f, 0x74,
|
||||
0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a,
|
||||
0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x43,
|
||||
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12,
|
||||
0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73,
|
||||
0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72,
|
||||
0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63,
|
||||
0x74, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61,
|
||||
0x63, 0x74, 0x73, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x15, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66,
|
||||
0x61, 0x63, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x12, 0x38,
|
||||
0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x16, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66,
|
||||
0x61, 0x63, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2e, 0x56, 0x51, 0x4c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41,
|
||||
0x72, 0x67, 0x73, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70,
|
||||
0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
|
||||
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x69,
|
||||
0x66, 0x69, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x0c, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a,
|
||||
0x0b, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x49, 0x64, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63,
|
||||
0x65, 0x6c, 0x6c, 0x73, 0x12, 0x38, 0x0a, 0x0d, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x43, 0x65, 0x6c, 0x6c,
|
||||
0x52, 0x0c, 0x63, 0x65, 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x24,
|
||||
0x0a, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x64,
|
||||
0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x65,
|
||||
0x6c, 0x6c, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x18, 0x09,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x12, 0x4a, 0x0a, 0x13,
|
||||
0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
|
||||
0x61, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x73, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44,
|
||||
0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x46, 0x0a, 0x11, 0x61, 0x76, 0x61, 0x69,
|
||||
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x12, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x76, 0x61, 0x69,
|
||||
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x52, 0x10,
|
||||
0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73,
|
||||
0x12, 0x1c, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e, 0x76, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x1c,
|
||||
0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28,
|
||||
0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x0c,
|
||||
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
|
||||
0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70,
|
||||
0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
|
||||
0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x52, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
||||
0x22, 0x3a, 0x0a, 0x09, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x2d, 0x0a,
|
||||
0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x4d, 0x65, 0x74,
|
||||
0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x8e, 0x04, 0x0a,
|
||||
0x0c, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x1f, 0x0a,
|
||||
0x0b, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x49, 0x64, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69,
|
||||
0x6e, 0x70, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07,
|
||||
0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
|
||||
0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x65,
|
||||
0x6c, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x65, 0x6c,
|
||||
0x6c, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18,
|
||||
0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12,
|
||||
0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x72, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
|
||||
0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x6f, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||
0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||
0x6d, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12,
|
||||
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79,
|
||||
0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x5f,
|
||||
0x65, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x63,
|
||||
0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x12,
|
||||
0x20, 0x0a, 0x0b, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x09,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x12, 0x1c, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e, 0x76, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12,
|
||||
0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||
0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,
|
||||
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
|
||||
0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d,
|
||||
0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69,
|
||||
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xd9, 0x01,
|
||||
0x0a, 0x19, 0x4e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64,
|
||||
0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x64,
|
||||
0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x64, 0x69, 0x73, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
|
||||
0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20,
|
||||
0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12,
|
||||
0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x49, 0x64,
|
||||
0x12, 0x17, 0x0a, 0x07, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x06, 0x63, 0x65, 0x6c, 0x6c, 0x49, 0x64, 0x22, 0x67, 0x0a, 0x1a, 0x4e, 0x6f, 0x74,
|
||||
0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c,
|
||||
0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c,
|
||||
0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79,
|
||||
0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79,
|
||||
0x70, 0x65, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69,
|
||||
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76,
|
||||
0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_notebooks_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x0fnotebooks.proto\x12\x05proto\x1a\x17actions/proto/vql.proto\x1a\x1eartifacts/proto/artifact.proto\x1a$flows/proto/artifact_collector.proto\x1a\vflows.proto\"B\n" +
|
||||
"\x12ReformatVQLMessage\x12\x10\n" +
|
||||
"\x03vql\x18\x01 \x01(\tR\x03vql\x12\x1a\n" +
|
||||
"\bartifact\x18\x02 \x01(\tR\bartifact\"-\n" +
|
||||
"\x03Env\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value\"s\n" +
|
||||
"\x15NotebookExportRequest\x12\x1f\n" +
|
||||
"\vnotebook_id\x18\x01 \x01(\tR\n" +
|
||||
"notebookId\x12\x12\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type\x12%\n" +
|
||||
"\x0epreferred_name\x18\x03 \x01(\tR\rpreferredName\"\xd1\x03\n" +
|
||||
"\x13NotebookCellRequest\x12\x1f\n" +
|
||||
"\vnotebook_id\x18\x01 \x01(\tR\n" +
|
||||
"notebookId\x12\x17\n" +
|
||||
"\acell_id\x18\x02 \x01(\tR\x06cellId\x12\x18\n" +
|
||||
"\aversion\x18\f \x01(\tR\aversion\x12-\n" +
|
||||
"\x12available_versions\x18\r \x03(\tR\x11availableVersions\x12\x14\n" +
|
||||
"\x05input\x18\x03 \x01(\tR\x05input\x12\x16\n" +
|
||||
"\x06output\x18\x0e \x01(\tR\x06output\x12\x12\n" +
|
||||
"\x04name\x18\v \x01(\tR\x04name\x12\x16\n" +
|
||||
"\x06offset\x18\x04 \x01(\x04R\x06offset\x12\x14\n" +
|
||||
"\x05count\x18\x05 \x01(\x04R\x05count\x12\x12\n" +
|
||||
"\x04type\x18\x06 \x01(\tR\x04type\x12+\n" +
|
||||
"\x11currently_editing\x18\b \x01(\bR\x10currentlyEditing\x12\x1c\n" +
|
||||
"\x03env\x18\t \x03(\v2\n" +
|
||||
".proto.EnvR\x03env\x12'\n" +
|
||||
"\x0finclude_uploads\x18\n" +
|
||||
" \x01(\bR\x0eincludeUploads\x12+\n" +
|
||||
"\x11include_timelines\x18\x10 \x01(\bR\x10includeTimelines\x12\x12\n" +
|
||||
"\x04sync\x18\x0f \x01(\bR\x04sync\"\xd5\x01\n" +
|
||||
"\x0fNotebookContext\x12\x12\n" +
|
||||
"\x04type\x18\x01 \x01(\tR\x04type\x12\x17\n" +
|
||||
"\ahunt_id\x18\x02 \x01(\tR\x06huntId\x12\x17\n" +
|
||||
"\aflow_id\x18\x03 \x01(\tR\x06flowId\x12\x1b\n" +
|
||||
"\tclient_id\x18\x04 \x01(\tR\bclientId\x12%\n" +
|
||||
"\x0eevent_artifact\x18\x05 \x01(\tR\reventArtifact\x12\x1d\n" +
|
||||
"\n" +
|
||||
"start_time\x18\x06 \x01(\x03R\tstartTime\x12\x19\n" +
|
||||
"\bend_time\x18\a \x01(\x03R\aendTime\"\xc5\a\n" +
|
||||
"\x10NotebookMetadata\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
||||
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x18\n" +
|
||||
"\acreator\x18\x03 \x01(\tR\acreator\x120\n" +
|
||||
"\acontext\x18\x10 \x01(\v2\x16.proto.NotebookContextR\acontext\x12$\n" +
|
||||
"\rcollaborators\x18\f \x03(\tR\rcollaborators\x12\x1c\n" +
|
||||
"\tartifacts\x18\x14 \x03(\tR\tartifacts\x12)\n" +
|
||||
"\x05specs\x18\x15 \x03(\v2\x13.proto.ArtifactSpecR\x05specs\x128\n" +
|
||||
"\n" +
|
||||
"parameters\x18\x16 \x03(\v2\x18.proto.ArtifactParameterR\n" +
|
||||
"parameters\x123\n" +
|
||||
"\brequests\x18\x17 \x03(\v2\x17.proto.VQLCollectorArgsR\brequests\x12\x16\n" +
|
||||
"\x06public\x18\r \x01(\bR\x06public\x12!\n" +
|
||||
"\fcreated_time\x18\x04 \x01(\x03R\vcreatedTime\x12#\n" +
|
||||
"\rmodified_time\x18\x05 \x01(\x03R\fmodifiedTime\x12\x1f\n" +
|
||||
"\vnotebook_id\x18\a \x01(\tR\n" +
|
||||
"notebookId\x12\x14\n" +
|
||||
"\x05cells\x18\x06 \x03(\tR\x05cells\x128\n" +
|
||||
"\rcell_metadata\x18\v \x03(\v2\x13.proto.NotebookCellR\fcellMetadata\x12$\n" +
|
||||
"\x0elatest_cell_id\x18\b \x01(\tR\flatestCellId\x12\x16\n" +
|
||||
"\x06hidden\x18\t \x01(\bR\x06hidden\x12J\n" +
|
||||
"\x13available_downloads\x18\n" +
|
||||
" \x01(\v2\x19.proto.AvailableDownloadsR\x12availableDownloads\x12F\n" +
|
||||
"\x11available_uploads\x18\x12 \x01(\v2\x19.proto.AvailableDownloadsR\x10availableUploads\x12\x1c\n" +
|
||||
"\x03env\x18\x0e \x03(\v2\n" +
|
||||
".proto.EnvR\x03env\x12\x1c\n" +
|
||||
"\ttimelines\x18\x0f \x03(\tR\ttimelines\x124\n" +
|
||||
"\fcolumn_types\x18\x11 \x03(\v2\x11.proto.ColumnTypeR\vcolumnTypes\x12<\n" +
|
||||
"\vsuggestions\x18\x13 \x03(\v2\x1a.proto.NotebookCellRequestR\vsuggestions\":\n" +
|
||||
"\tNotebooks\x12-\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x17.proto.NotebookMetadataR\x05items\"\x8e\x04\n" +
|
||||
"\fNotebookCell\x12\x1f\n" +
|
||||
"\vnotebook_id\x18\x10 \x01(\tR\n" +
|
||||
"notebookId\x12\x14\n" +
|
||||
"\x05input\x18\x01 \x01(\tR\x05input\x12\x16\n" +
|
||||
"\x06output\x18\x02 \x01(\tR\x06output\x12\x18\n" +
|
||||
"\asummary\x18\x11 \x01(\tR\asummary\x12\x12\n" +
|
||||
"\x04data\x18\x03 \x01(\tR\x04data\x12\x17\n" +
|
||||
"\acell_id\x18\x04 \x01(\tR\x06cellId\x12\x1a\n" +
|
||||
"\bmessages\x18\x05 \x03(\tR\bmessages\x12#\n" +
|
||||
"\rmore_messages\x18\f \x01(\bR\fmoreMessages\x12\x1c\n" +
|
||||
"\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\x12\x1a\n" +
|
||||
"\bduration\x18\n" +
|
||||
" \x01(\x03R\bduration\x12\x12\n" +
|
||||
"\x04type\x18\a \x01(\tR\x04type\x12+\n" +
|
||||
"\x11currently_editing\x18\b \x01(\bR\x10currentlyEditing\x12 \n" +
|
||||
"\vcalculating\x18\t \x01(\bR\vcalculating\x12\x1c\n" +
|
||||
"\x03env\x18\v \x03(\v2\n" +
|
||||
".proto.EnvR\x03env\x12\x14\n" +
|
||||
"\x05error\x18\r \x01(\tR\x05error\x12'\n" +
|
||||
"\x0fcurrent_version\x18\x0e \x01(\tR\x0ecurrentVersion\x12-\n" +
|
||||
"\x12available_versions\x18\x0f \x03(\tR\x11availableVersions\"\xd9\x01\n" +
|
||||
"\x19NotebookFileUploadRequest\x12\x12\n" +
|
||||
"\x04data\x18\x01 \x01(\tR\x04data\x12\x1a\n" +
|
||||
"\bfilename\x18\x02 \x01(\tR\bfilename\x122\n" +
|
||||
"\x15disable_attachment_id\x18\x06 \x01(\bR\x13disableAttachmentId\x12\x1e\n" +
|
||||
"\n" +
|
||||
"components\x18\x04 \x03(\tR\n" +
|
||||
"components\x12\x1f\n" +
|
||||
"\vnotebook_id\x18\x03 \x01(\tR\n" +
|
||||
"notebookId\x12\x17\n" +
|
||||
"\acell_id\x18\x05 \x01(\tR\x06cellId\"g\n" +
|
||||
"\x1aNotebookFileUploadResponse\x12\x10\n" +
|
||||
"\x03url\x18\x01 \x01(\tR\x03url\x12\x1a\n" +
|
||||
"\bfilename\x18\x02 \x01(\tR\bfilename\x12\x1b\n" +
|
||||
"\tmime_type\x18\x03 \x01(\tR\bmimeTypeB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_notebooks_proto_rawDescOnce sync.Once
|
||||
file_notebooks_proto_rawDescData = file_notebooks_proto_rawDesc
|
||||
file_notebooks_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_notebooks_proto_rawDescGZIP() []byte {
|
||||
file_notebooks_proto_rawDescOnce.Do(func() {
|
||||
file_notebooks_proto_rawDescData = protoimpl.X.CompressGZIP(file_notebooks_proto_rawDescData)
|
||||
file_notebooks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_notebooks_proto_rawDesc), len(file_notebooks_proto_rawDesc)))
|
||||
})
|
||||
return file_notebooks_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_notebooks_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_notebooks_proto_goTypes = []interface{}{
|
||||
var file_notebooks_proto_goTypes = []any{
|
||||
(*ReformatVQLMessage)(nil), // 0: proto.ReformatVQLMessage
|
||||
(*Env)(nil), // 1: proto.Env
|
||||
(*NotebookExportRequest)(nil), // 2: proto.NotebookExportRequest
|
||||
@@ -1312,133 +1202,11 @@ func file_notebooks_proto_init() {
|
||||
return
|
||||
}
|
||||
file_flows_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_notebooks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ReformatVQLMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Env); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotebookExportRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotebookCellRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotebookContext); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotebookMetadata); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Notebooks); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotebookCell); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotebookFileUploadRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_notebooks_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotebookFileUploadResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_notebooks_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_notebooks_proto_rawDesc), len(file_notebooks_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumExtensions: 0,
|
||||
@@ -1449,7 +1217,6 @@ func file_notebooks_proto_init() {
|
||||
MessageInfos: file_notebooks_proto_msgTypes,
|
||||
}.Build()
|
||||
File_notebooks_proto = out.File
|
||||
file_notebooks_proto_rawDesc = nil
|
||||
file_notebooks_proto_goTypes = nil
|
||||
file_notebooks_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+18
-40
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,21 +19,18 @@ const (
|
||||
)
|
||||
|
||||
type ServerState struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Currently running server state
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ServerState) Reset() {
|
||||
*x = ServerState{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_objects_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_objects_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ServerState) String() string {
|
||||
@@ -43,7 +41,7 @@ func (*ServerState) ProtoMessage() {}
|
||||
|
||||
func (x *ServerState) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_objects_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -67,31 +65,26 @@ func (x *ServerState) GetVersion() string {
|
||||
|
||||
var File_objects_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_objects_proto_rawDesc = []byte{
|
||||
0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||
0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
|
||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42,
|
||||
0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78,
|
||||
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f,
|
||||
0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_objects_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\robjects.proto\x12\x05proto\"'\n" +
|
||||
"\vServerState\x12\x18\n" +
|
||||
"\aversion\x18\x01 \x01(\tR\aversionB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_objects_proto_rawDescOnce sync.Once
|
||||
file_objects_proto_rawDescData = file_objects_proto_rawDesc
|
||||
file_objects_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_objects_proto_rawDescGZIP() []byte {
|
||||
file_objects_proto_rawDescOnce.Do(func() {
|
||||
file_objects_proto_rawDescData = protoimpl.X.CompressGZIP(file_objects_proto_rawDescData)
|
||||
file_objects_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_objects_proto_rawDesc), len(file_objects_proto_rawDesc)))
|
||||
})
|
||||
return file_objects_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_objects_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_objects_proto_goTypes = []interface{}{
|
||||
var file_objects_proto_goTypes = []any{
|
||||
(*ServerState)(nil), // 0: proto.ServerState
|
||||
}
|
||||
var file_objects_proto_depIdxs = []int32{
|
||||
@@ -107,25 +100,11 @@ func file_objects_proto_init() {
|
||||
if File_objects_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_objects_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ServerState); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_objects_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_objects_proto_rawDesc), len(file_objects_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
@@ -136,7 +115,6 @@ func file_objects_proto_init() {
|
||||
MessageInfos: file_objects_proto_msgTypes,
|
||||
}.Build()
|
||||
File_objects_proto = out.File
|
||||
file_objects_proto_rawDesc = nil
|
||||
file_objects_proto_goTypes = nil
|
||||
file_objects_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+25
-46
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,24 +19,21 @@ const (
|
||||
)
|
||||
|
||||
type OrgRecord struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
|
||||
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
|
||||
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// Deprecated do not use
|
||||
OrgId string `protobuf:"bytes,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
OrgId string `protobuf:"bytes,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *OrgRecord) Reset() {
|
||||
*x = OrgRecord{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_orgs_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_orgs_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *OrgRecord) String() string {
|
||||
@@ -46,7 +44,7 @@ func (*OrgRecord) ProtoMessage() {}
|
||||
|
||||
func (x *OrgRecord) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_orgs_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -91,34 +89,30 @@ func (x *OrgRecord) GetOrgId() string {
|
||||
|
||||
var File_orgs_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_orgs_proto_rawDesc = []byte{
|
||||
0x0a, 0x0a, 0x6f, 0x72, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x09, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72,
|
||||
0x67, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49,
|
||||
0x64, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64,
|
||||
0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65,
|
||||
0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_orgs_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\n" +
|
||||
"orgs.proto\x12\x05proto\"\\\n" +
|
||||
"\tOrgRecord\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
|
||||
"\x05nonce\x18\x02 \x01(\tR\x05nonce\x12\x0e\n" +
|
||||
"\x02id\x18\x03 \x01(\tR\x02id\x12\x15\n" +
|
||||
"\x06org_id\x18\x04 \x01(\tR\x05orgIdB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_orgs_proto_rawDescOnce sync.Once
|
||||
file_orgs_proto_rawDescData = file_orgs_proto_rawDesc
|
||||
file_orgs_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_orgs_proto_rawDescGZIP() []byte {
|
||||
file_orgs_proto_rawDescOnce.Do(func() {
|
||||
file_orgs_proto_rawDescData = protoimpl.X.CompressGZIP(file_orgs_proto_rawDescData)
|
||||
file_orgs_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_orgs_proto_rawDesc), len(file_orgs_proto_rawDesc)))
|
||||
})
|
||||
return file_orgs_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_orgs_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_orgs_proto_goTypes = []interface{}{
|
||||
var file_orgs_proto_goTypes = []any{
|
||||
(*OrgRecord)(nil), // 0: proto.OrgRecord
|
||||
}
|
||||
var file_orgs_proto_depIdxs = []int32{
|
||||
@@ -134,25 +128,11 @@ func file_orgs_proto_init() {
|
||||
if File_orgs_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_orgs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*OrgRecord); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_orgs_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_orgs_proto_rawDesc), len(file_orgs_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
@@ -163,7 +143,6 @@ func file_orgs_proto_init() {
|
||||
MessageInfos: file_orgs_proto_msgTypes,
|
||||
}.Build()
|
||||
File_orgs_proto = out.File
|
||||
file_orgs_proto_rawDesc = nil
|
||||
file_orgs_proto_goTypes = nil
|
||||
file_orgs_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+38
-79
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,10 +19,7 @@ const (
|
||||
)
|
||||
|
||||
type ScheduleRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// The queue we want to receive jobs on
|
||||
Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"`
|
||||
// First request must be "register" then for each completed job "completion"
|
||||
@@ -33,16 +31,16 @@ type ScheduleRequest struct {
|
||||
Response string `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"`
|
||||
OrgId string `protobuf:"bytes,7,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
// An error message or "" for no error.
|
||||
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
|
||||
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ScheduleRequest) Reset() {
|
||||
*x = ScheduleRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_scheduler_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_scheduler_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ScheduleRequest) String() string {
|
||||
@@ -53,7 +51,7 @@ func (*ScheduleRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ScheduleRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_scheduler_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -119,25 +117,22 @@ func (x *ScheduleRequest) GetError() string {
|
||||
|
||||
// This represents a job request from the server to the minion,
|
||||
type ScheduleResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// The id must be matched with the response.
|
||||
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"`
|
||||
// A json serialized request suitable for the named queue.
|
||||
Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"`
|
||||
OrgId string `protobuf:"bytes,7,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"`
|
||||
OrgId string `protobuf:"bytes,7,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ScheduleResponse) Reset() {
|
||||
*x = ScheduleResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_scheduler_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_scheduler_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ScheduleResponse) String() string {
|
||||
@@ -148,7 +143,7 @@ func (*ScheduleResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ScheduleResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_scheduler_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -193,46 +188,37 @@ func (x *ScheduleResponse) GetOrgId() string {
|
||||
|
||||
var File_scheduler_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_scheduler_proto_rawDesc = []byte{
|
||||
0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x01, 0x0a, 0x0f, 0x53, 0x63, 0x68,
|
||||
0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65,
|
||||
0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69,
|
||||
0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69,
|
||||
0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15,
|
||||
0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||
0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x61, 0x0a, 0x10, 0x53,
|
||||
0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||
0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||
0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69,
|
||||
0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x42, 0x31,
|
||||
0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e,
|
||||
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63,
|
||||
0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_scheduler_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x0fscheduler.proto\x12\x05proto\"\xb0\x01\n" +
|
||||
"\x0fScheduleRequest\x12\x14\n" +
|
||||
"\x05queue\x18\x01 \x01(\tR\x05queue\x12\x12\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type\x12\x0e\n" +
|
||||
"\x02id\x18\x03 \x01(\x04R\x02id\x12\x1a\n" +
|
||||
"\bpriority\x18\x06 \x01(\x03R\bpriority\x12\x1a\n" +
|
||||
"\bresponse\x18\x04 \x01(\tR\bresponse\x12\x15\n" +
|
||||
"\x06org_id\x18\a \x01(\tR\x05orgId\x12\x14\n" +
|
||||
"\x05error\x18\x05 \x01(\tR\x05error\"a\n" +
|
||||
"\x10ScheduleResponse\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x04R\x02id\x12\x14\n" +
|
||||
"\x05queue\x18\x02 \x01(\tR\x05queue\x12\x10\n" +
|
||||
"\x03job\x18\x03 \x01(\tR\x03job\x12\x15\n" +
|
||||
"\x06org_id\x18\a \x01(\tR\x05orgIdB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_scheduler_proto_rawDescOnce sync.Once
|
||||
file_scheduler_proto_rawDescData = file_scheduler_proto_rawDesc
|
||||
file_scheduler_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_scheduler_proto_rawDescGZIP() []byte {
|
||||
file_scheduler_proto_rawDescOnce.Do(func() {
|
||||
file_scheduler_proto_rawDescData = protoimpl.X.CompressGZIP(file_scheduler_proto_rawDescData)
|
||||
file_scheduler_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_scheduler_proto_rawDesc), len(file_scheduler_proto_rawDesc)))
|
||||
})
|
||||
return file_scheduler_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_scheduler_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_scheduler_proto_goTypes = []interface{}{
|
||||
var file_scheduler_proto_goTypes = []any{
|
||||
(*ScheduleRequest)(nil), // 0: proto.ScheduleRequest
|
||||
(*ScheduleResponse)(nil), // 1: proto.ScheduleResponse
|
||||
}
|
||||
@@ -249,37 +235,11 @@ func file_scheduler_proto_init() {
|
||||
if File_scheduler_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_scheduler_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ScheduleRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_scheduler_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ScheduleResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_scheduler_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_scheduler_proto_rawDesc), len(file_scheduler_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
@@ -290,7 +250,6 @@ func file_scheduler_proto_init() {
|
||||
MessageInfos: file_scheduler_proto_msgTypes,
|
||||
}.Build()
|
||||
File_scheduler_proto = out.File
|
||||
file_scheduler_proto_rawDesc = nil
|
||||
file_scheduler_proto_goTypes = nil
|
||||
file_scheduler_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+84
-178
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,32 +19,29 @@ const (
|
||||
)
|
||||
|
||||
type SecretDefinition struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
|
||||
Verifier string `protobuf:"bytes,2,opt,name=verifier,proto3" json:"verifier,omitempty"`
|
||||
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
|
||||
Verifier string `protobuf:"bytes,2,opt,name=verifier,proto3" json:"verifier,omitempty"`
|
||||
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// The fields that are supported by the secret. These are in a
|
||||
// list to ensure consistent ordering.
|
||||
Fields []string `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"`
|
||||
Template map[string]string `protobuf:"bytes,4,rep,name=template,proto3" json:"template,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Template map[string]string `protobuf:"bytes,4,rep,name=template,proto3" json:"template,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
SecretNames []string `protobuf:"bytes,3,rep,name=secret_names,json=secretNames,proto3" json:"secret_names,omitempty"`
|
||||
// deprecated - all secrets must be built in, no custom templates
|
||||
// can be defined.
|
||||
BuiltIn bool `protobuf:"varint,6,opt,name=built_in,json=builtIn,proto3" json:"built_in,omitempty"`
|
||||
// These fields should be validated with yaml
|
||||
YamlFields []string `protobuf:"bytes,8,rep,name=yaml_fields,json=yamlFields,proto3" json:"yaml_fields,omitempty"`
|
||||
YamlFields []string `protobuf:"bytes,8,rep,name=yaml_fields,json=yamlFields,proto3" json:"yaml_fields,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SecretDefinition) Reset() {
|
||||
*x = SecretDefinition{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_secrets_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_secrets_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SecretDefinition) String() string {
|
||||
@@ -54,7 +52,7 @@ func (*SecretDefinition) ProtoMessage() {}
|
||||
|
||||
func (x *SecretDefinition) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_secrets_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -126,20 +124,17 @@ func (x *SecretDefinition) GetYamlFields() []string {
|
||||
}
|
||||
|
||||
type SecretDefinitionList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Items []*SecretDefinition `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Items []*SecretDefinition `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SecretDefinitionList) Reset() {
|
||||
*x = SecretDefinitionList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_secrets_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_secrets_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SecretDefinitionList) String() string {
|
||||
@@ -150,7 +145,7 @@ func (*SecretDefinitionList) ProtoMessage() {}
|
||||
|
||||
func (x *SecretDefinitionList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_secrets_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -173,33 +168,30 @@ func (x *SecretDefinitionList) GetItems() []*SecretDefinition {
|
||||
}
|
||||
|
||||
type Secret struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
|
||||
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
|
||||
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// The secret is stored as an encrypted json blob in storage. The
|
||||
// blob is encrypted with the DEK derived from
|
||||
// config_obj.Security.secrets_dek
|
||||
EncryptedSecret []byte `protobuf:"bytes,6,opt,name=encrypted_secret,json=encryptedSecret,proto3" json:"encrypted_secret,omitempty"`
|
||||
Secret map[string]string `protobuf:"bytes,3,rep,name=secret,proto3" json:"secret,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Secret map[string]string `protobuf:"bytes,3,rep,name=secret,proto3" json:"secret,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Users []string `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
|
||||
// A list of orgs which can see the secret. Only meaningful for
|
||||
// secrets at the root org.
|
||||
Orgs []string `protobuf:"bytes,7,rep,name=orgs,proto3" json:"orgs,omitempty"`
|
||||
// When true this secret is available to all orgs automatically.
|
||||
VisibleToAllOrgs bool `protobuf:"varint,8,opt,name=visible_to_all_orgs,json=visibleToAllOrgs,proto3" json:"visible_to_all_orgs,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Secret) Reset() {
|
||||
*x = Secret{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_secrets_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_secrets_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Secret) String() string {
|
||||
@@ -210,7 +202,7 @@ func (*Secret) ProtoMessage() {}
|
||||
|
||||
func (x *Secret) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_secrets_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -282,12 +274,9 @@ func (x *Secret) GetVisibleToAllOrgs() bool {
|
||||
}
|
||||
|
||||
type ModifySecretRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// If set the secret will be deleted.
|
||||
Delete bool `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"`
|
||||
AddUsers []string `protobuf:"bytes,4,rep,name=add_users,json=addUsers,proto3" json:"add_users,omitempty"`
|
||||
@@ -298,15 +287,15 @@ type ModifySecretRequest struct {
|
||||
RemoveOrgs []string `protobuf:"bytes,7,rep,name=remove_orgs,json=removeOrgs,proto3" json:"remove_orgs,omitempty"`
|
||||
// When true this secret is available to all orgs automatically.
|
||||
VisibleToAllOrgs bool `protobuf:"varint,8,opt,name=visible_to_all_orgs,json=visibleToAllOrgs,proto3" json:"visible_to_all_orgs,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ModifySecretRequest) Reset() {
|
||||
*x = ModifySecretRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_secrets_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_secrets_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ModifySecretRequest) String() string {
|
||||
@@ -317,7 +306,7 @@ func (*ModifySecretRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ModifySecretRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_secrets_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -390,93 +379,61 @@ func (x *ModifySecretRequest) GetVisibleToAllOrgs() bool {
|
||||
|
||||
var File_secrets_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_secrets_proto_rawDesc = []byte{
|
||||
0x0a, 0x0d, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||
0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe4, 0x02, 0x0a, 0x10, 0x53, 0x65, 0x63, 0x72, 0x65,
|
||||
0x74, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74,
|
||||
0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||
0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x69,
|
||||
0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x65, 0x72, 0x69,
|
||||
0x66, 0x69, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
|
||||
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73,
|
||||
0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x41,
|
||||
0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44,
|
||||
0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
||||
0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
|
||||
0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e,
|
||||
0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x5f, 0x69, 0x6e,
|
||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x12,
|
||||
0x1f, 0x0a, 0x0b, 0x79, 0x61, 0x6d, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x08,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73,
|
||||
0x1a, 0x3b, 0x0a, 0x0d, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72,
|
||||
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x45, 0x0a,
|
||||
0x14, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x63,
|
||||
0x72, 0x65, 0x74, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x69,
|
||||
0x74, 0x65, 0x6d, 0x73, 0x22, 0xcd, 0x02, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
|
||||
0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f,
|
||||
0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x65, 0x6e,
|
||||
0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x31, 0x0a,
|
||||
0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x63,
|
||||
0x72, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52,
|
||||
0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x72, 0x67, 0x73, 0x18, 0x07,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6f, 0x72, 0x67, 0x73, 0x12, 0x2d, 0x0a, 0x13, 0x76, 0x69,
|
||||
0x73, 0x69, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x6f, 0x72, 0x67,
|
||||
0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x6f, 0x41, 0x6c, 0x6c, 0x4f, 0x72, 0x67, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x63,
|
||||
0x72, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x02, 0x0a, 0x13, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x53,
|
||||
0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09,
|
||||
0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64,
|
||||
0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x5f, 0x75, 0x73, 0x65,
|
||||
0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x64, 0x64, 0x55, 0x73, 0x65,
|
||||
0x72, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x75, 0x73, 0x65,
|
||||
0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
||||
0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x64, 0x64, 0x5f, 0x6f, 0x72, 0x67,
|
||||
0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x73,
|
||||
0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x67, 0x73, 0x18,
|
||||
0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67,
|
||||
0x73, 0x12, 0x2d, 0x0a, 0x13, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f,
|
||||
0x61, 0x6c, 0x6c, 0x5f, 0x6f, 0x72, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10,
|
||||
0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x41, 0x6c, 0x6c, 0x4f, 0x72, 0x67, 0x73,
|
||||
0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65,
|
||||
0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c,
|
||||
0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_secrets_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\rsecrets.proto\x12\x05proto\"\xe4\x02\n" +
|
||||
"\x10SecretDefinition\x12\x1b\n" +
|
||||
"\ttype_name\x18\x01 \x01(\tR\btypeName\x12\x1a\n" +
|
||||
"\bverifier\x18\x02 \x01(\tR\bverifier\x12 \n" +
|
||||
"\vdescription\x18\x05 \x01(\tR\vdescription\x12\x16\n" +
|
||||
"\x06fields\x18\a \x03(\tR\x06fields\x12A\n" +
|
||||
"\btemplate\x18\x04 \x03(\v2%.proto.SecretDefinition.TemplateEntryR\btemplate\x12!\n" +
|
||||
"\fsecret_names\x18\x03 \x03(\tR\vsecretNames\x12\x19\n" +
|
||||
"\bbuilt_in\x18\x06 \x01(\bR\abuiltIn\x12\x1f\n" +
|
||||
"\vyaml_fields\x18\b \x03(\tR\n" +
|
||||
"yamlFields\x1a;\n" +
|
||||
"\rTemplateEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"E\n" +
|
||||
"\x14SecretDefinitionList\x12-\n" +
|
||||
"\x05items\x18\x01 \x03(\v2\x17.proto.SecretDefinitionR\x05items\"\xcd\x02\n" +
|
||||
"\x06Secret\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n" +
|
||||
"\ttype_name\x18\x02 \x01(\tR\btypeName\x12 \n" +
|
||||
"\vdescription\x18\x05 \x01(\tR\vdescription\x12)\n" +
|
||||
"\x10encrypted_secret\x18\x06 \x01(\fR\x0fencryptedSecret\x121\n" +
|
||||
"\x06secret\x18\x03 \x03(\v2\x19.proto.Secret.SecretEntryR\x06secret\x12\x14\n" +
|
||||
"\x05users\x18\x04 \x03(\tR\x05users\x12\x12\n" +
|
||||
"\x04orgs\x18\a \x03(\tR\x04orgs\x12-\n" +
|
||||
"\x13visible_to_all_orgs\x18\b \x01(\bR\x10visibleToAllOrgs\x1a9\n" +
|
||||
"\vSecretEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x89\x02\n" +
|
||||
"\x13ModifySecretRequest\x12\x1b\n" +
|
||||
"\ttype_name\x18\x01 \x01(\tR\btypeName\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n" +
|
||||
"\x06delete\x18\x03 \x01(\bR\x06delete\x12\x1b\n" +
|
||||
"\tadd_users\x18\x04 \x03(\tR\baddUsers\x12!\n" +
|
||||
"\fremove_users\x18\x05 \x03(\tR\vremoveUsers\x12\x19\n" +
|
||||
"\badd_orgs\x18\x06 \x03(\tR\aaddOrgs\x12\x1f\n" +
|
||||
"\vremove_orgs\x18\a \x03(\tR\n" +
|
||||
"removeOrgs\x12-\n" +
|
||||
"\x13visible_to_all_orgs\x18\b \x01(\bR\x10visibleToAllOrgsB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_secrets_proto_rawDescOnce sync.Once
|
||||
file_secrets_proto_rawDescData = file_secrets_proto_rawDesc
|
||||
file_secrets_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_secrets_proto_rawDescGZIP() []byte {
|
||||
file_secrets_proto_rawDescOnce.Do(func() {
|
||||
file_secrets_proto_rawDescData = protoimpl.X.CompressGZIP(file_secrets_proto_rawDescData)
|
||||
file_secrets_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_secrets_proto_rawDesc), len(file_secrets_proto_rawDesc)))
|
||||
})
|
||||
return file_secrets_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_secrets_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_secrets_proto_goTypes = []interface{}{
|
||||
var file_secrets_proto_goTypes = []any{
|
||||
(*SecretDefinition)(nil), // 0: proto.SecretDefinition
|
||||
(*SecretDefinitionList)(nil), // 1: proto.SecretDefinitionList
|
||||
(*Secret)(nil), // 2: proto.Secret
|
||||
@@ -500,61 +457,11 @@ func file_secrets_proto_init() {
|
||||
if File_secrets_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_secrets_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SecretDefinition); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_secrets_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SecretDefinitionList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_secrets_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Secret); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_secrets_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ModifySecretRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_secrets_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_secrets_proto_rawDesc), len(file_secrets_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
@@ -565,7 +472,6 @@ func file_secrets_proto_init() {
|
||||
MessageInfos: file_secrets_proto_msgTypes,
|
||||
}.Build()
|
||||
File_secrets_proto = out.File
|
||||
file_secrets_proto_rawDesc = nil
|
||||
file_secrets_proto_goTypes = nil
|
||||
file_secrets_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,20 +19,17 @@ const (
|
||||
)
|
||||
|
||||
type ServerInstallRecord struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
InstallTime uint64 `protobuf:"varint,1,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
InstallTime uint64 `protobuf:"varint,1,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ServerInstallRecord) Reset() {
|
||||
*x = ServerInstallRecord{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_server_state_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_server_state_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ServerInstallRecord) String() string {
|
||||
@@ -42,7 +40,7 @@ func (*ServerInstallRecord) ProtoMessage() {}
|
||||
|
||||
func (x *ServerInstallRecord) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_server_state_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -66,32 +64,26 @@ func (x *ServerInstallRecord) GetInstallTime() uint64 {
|
||||
|
||||
var File_server_state_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_server_state_proto_rawDesc = []byte{
|
||||
0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, 0x13, 0x53,
|
||||
0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f,
|
||||
0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c,
|
||||
0x6c, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c,
|
||||
0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
|
||||
0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61,
|
||||
0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_server_state_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x12server_state.proto\x12\x05proto\"8\n" +
|
||||
"\x13ServerInstallRecord\x12!\n" +
|
||||
"\finstall_time\x18\x01 \x01(\x04R\vinstallTimeB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_server_state_proto_rawDescOnce sync.Once
|
||||
file_server_state_proto_rawDescData = file_server_state_proto_rawDesc
|
||||
file_server_state_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_server_state_proto_rawDescGZIP() []byte {
|
||||
file_server_state_proto_rawDescOnce.Do(func() {
|
||||
file_server_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_state_proto_rawDescData)
|
||||
file_server_state_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_server_state_proto_rawDesc), len(file_server_state_proto_rawDesc)))
|
||||
})
|
||||
return file_server_state_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_server_state_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_server_state_proto_goTypes = []interface{}{
|
||||
var file_server_state_proto_goTypes = []any{
|
||||
(*ServerInstallRecord)(nil), // 0: proto.ServerInstallRecord
|
||||
}
|
||||
var file_server_state_proto_depIdxs = []int32{
|
||||
@@ -107,25 +99,11 @@ func file_server_state_proto_init() {
|
||||
if File_server_state_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_server_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ServerInstallRecord); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_server_state_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_server_state_proto_rawDesc), len(file_server_state_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
@@ -136,7 +114,6 @@ func file_server_state_proto_init() {
|
||||
MessageInfos: file_server_state_proto_msgTypes,
|
||||
}.Build()
|
||||
File_server_state_proto = out.File
|
||||
file_server_state_proto_rawDesc = nil
|
||||
file_server_state_proto_goTypes = nil
|
||||
file_server_state_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,24 +19,21 @@ const (
|
||||
)
|
||||
|
||||
type AnnotationRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
SuperTimeline string `protobuf:"bytes,2,opt,name=super_timeline,json=superTimeline,proto3" json:"super_timeline,omitempty"`
|
||||
NotebookId string `protobuf:"bytes,3,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
|
||||
EventJson string `protobuf:"bytes,5,opt,name=event_json,json=eventJson,proto3" json:"event_json,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
SuperTimeline string `protobuf:"bytes,2,opt,name=super_timeline,json=superTimeline,proto3" json:"super_timeline,omitempty"`
|
||||
NotebookId string `protobuf:"bytes,3,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
|
||||
Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
|
||||
EventJson string `protobuf:"bytes,5,opt,name=event_json,json=eventJson,proto3" json:"event_json,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AnnotationRequest) Reset() {
|
||||
*x = AnnotationRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_timeline_api_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_timeline_api_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AnnotationRequest) String() string {
|
||||
@@ -46,7 +44,7 @@ func (*AnnotationRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AnnotationRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_timeline_api_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -98,40 +96,32 @@ func (x *AnnotationRequest) GetEventJson() string {
|
||||
|
||||
var File_timeline_api_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_timeline_api_proto_rawDesc = []byte{
|
||||
0x0a, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x11,
|
||||
0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12,
|
||||
0x25, 0x0a, 0x0e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x75, 0x70, 0x65, 0x72, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f,
|
||||
0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74,
|
||||
0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4a, 0x73, 0x6f, 0x6e, 0x42, 0x31, 0x5a, 0x2f, 0x77, 0x77,
|
||||
0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72, 0x61, 0x70,
|
||||
0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_timeline_api_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x12timeline_api.proto\x12\x05proto\"\xac\x01\n" +
|
||||
"\x11AnnotationRequest\x12\x1c\n" +
|
||||
"\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12%\n" +
|
||||
"\x0esuper_timeline\x18\x02 \x01(\tR\rsuperTimeline\x12\x1f\n" +
|
||||
"\vnotebook_id\x18\x03 \x01(\tR\n" +
|
||||
"notebookId\x12\x12\n" +
|
||||
"\x04note\x18\x04 \x01(\tR\x04note\x12\x1d\n" +
|
||||
"\n" +
|
||||
"event_json\x18\x05 \x01(\tR\teventJsonB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_timeline_api_proto_rawDescOnce sync.Once
|
||||
file_timeline_api_proto_rawDescData = file_timeline_api_proto_rawDesc
|
||||
file_timeline_api_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_timeline_api_proto_rawDescGZIP() []byte {
|
||||
file_timeline_api_proto_rawDescOnce.Do(func() {
|
||||
file_timeline_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_timeline_api_proto_rawDescData)
|
||||
file_timeline_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_timeline_api_proto_rawDesc), len(file_timeline_api_proto_rawDesc)))
|
||||
})
|
||||
return file_timeline_api_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_timeline_api_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_timeline_api_proto_goTypes = []interface{}{
|
||||
var file_timeline_api_proto_goTypes = []any{
|
||||
(*AnnotationRequest)(nil), // 0: proto.AnnotationRequest
|
||||
}
|
||||
var file_timeline_api_proto_depIdxs = []int32{
|
||||
@@ -147,25 +137,11 @@ func file_timeline_api_proto_init() {
|
||||
if File_timeline_api_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_timeline_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AnnotationRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_timeline_api_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_timeline_api_proto_rawDesc), len(file_timeline_api_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
@@ -176,7 +152,6 @@ func file_timeline_api_proto_init() {
|
||||
MessageInfos: file_timeline_api_proto_msgTypes,
|
||||
}.Build()
|
||||
File_timeline_api_proto = out.File
|
||||
file_timeline_api_proto_rawDesc = nil
|
||||
file_timeline_api_proto_goTypes = nil
|
||||
file_timeline_api_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+268
-651
File diff suppressed because it is too large
Load Diff
+118
-257
@@ -8,6 +8,7 @@ import (
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
proto "www.velocidex.com/golang/velociraptor/actions/proto"
|
||||
)
|
||||
|
||||
@@ -24,16 +25,13 @@ const (
|
||||
// in the flow's collection and this protobuf contains the range of
|
||||
// rows within the collection that refers to this current directory.
|
||||
type VFSListResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Response string `protobuf:"bytes,1,opt,name=Response,proto3" json:"Response,omitempty"`
|
||||
Columns []string `protobuf:"bytes,2,rep,name=Columns,proto3" json:"Columns,omitempty"`
|
||||
Query *proto.VQLRequest `protobuf:"bytes,3,opt,name=Query,proto3" json:"Query,omitempty"`
|
||||
Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
TotalRows uint64 `protobuf:"varint,7,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"`
|
||||
Types []*proto.VQLTypeMap `protobuf:"bytes,8,rep,name=types,proto3" json:"types,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Response string `protobuf:"bytes,1,opt,name=Response,proto3" json:"Response,omitempty"`
|
||||
Columns []string `protobuf:"bytes,2,rep,name=Columns,proto3" json:"Columns,omitempty"`
|
||||
Query *proto.VQLRequest `protobuf:"bytes,3,opt,name=Query,proto3" json:"Query,omitempty"`
|
||||
Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
TotalRows uint64 `protobuf:"varint,7,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"`
|
||||
Types []*proto.VQLTypeMap `protobuf:"bytes,8,rep,name=types,proto3" json:"types,omitempty"`
|
||||
// The actual artifact that contains the data.
|
||||
ClientId string `protobuf:"bytes,9,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
FlowId string `protobuf:"bytes,10,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
||||
@@ -45,15 +43,15 @@ type VFSListResponse struct {
|
||||
// The version number that tracks the total download mutations in
|
||||
// this directory.
|
||||
DownloadVersion uint64 `protobuf:"varint,14,opt,name=download_version,json=downloadVersion,proto3" json:"download_version,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VFSListResponse) Reset() {
|
||||
*x = VFSListResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vfs_api_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vfs_api_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VFSListResponse) String() string {
|
||||
@@ -64,7 +62,7 @@ func (*VFSListResponse) ProtoMessage() {}
|
||||
|
||||
func (x *VFSListResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vfs_api_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -164,22 +162,19 @@ func (x *VFSListResponse) GetDownloadVersion() uint64 {
|
||||
}
|
||||
|
||||
type VFSStatDownloadRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Accessor string `protobuf:"bytes,4,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
Components []string `protobuf:"bytes,6,rep,name=components,proto3" json:"components,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Accessor string `protobuf:"bytes,4,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
Components []string `protobuf:"bytes,6,rep,name=components,proto3" json:"components,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VFSStatDownloadRequest) Reset() {
|
||||
*x = VFSStatDownloadRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vfs_api_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vfs_api_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VFSStatDownloadRequest) String() string {
|
||||
@@ -190,7 +185,7 @@ func (*VFSStatDownloadRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VFSStatDownloadRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vfs_api_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -227,22 +222,19 @@ func (x *VFSStatDownloadRequest) GetComponents() []string {
|
||||
}
|
||||
|
||||
type VFSListRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
RecursionDepth uint64 `protobuf:"varint,3,opt,name=recursion_depth,json=recursionDepth,proto3" json:"recursion_depth,omitempty"`
|
||||
VfsComponents []string `protobuf:"bytes,4,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
RecursionDepth uint64 `protobuf:"varint,3,opt,name=recursion_depth,json=recursionDepth,proto3" json:"recursion_depth,omitempty"`
|
||||
VfsComponents []string `protobuf:"bytes,4,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VFSListRequest) Reset() {
|
||||
*x = VFSListRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vfs_api_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vfs_api_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VFSListRequest) String() string {
|
||||
@@ -253,7 +245,7 @@ func (*VFSListRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VFSListRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vfs_api_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -290,22 +282,19 @@ func (x *VFSListRequest) GetVfsComponents() []string {
|
||||
}
|
||||
|
||||
type VFSListRequestState struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
|
||||
Accessor string `protobuf:"bytes,3,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
Current *proto.VQLResponse `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
|
||||
Accessor string `protobuf:"bytes,3,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
||||
Current *proto.VQLResponse `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VFSListRequestState) Reset() {
|
||||
*x = VFSListRequestState{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vfs_api_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vfs_api_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VFSListRequestState) String() string {
|
||||
@@ -316,7 +305,7 @@ func (*VFSListRequestState) ProtoMessage() {}
|
||||
|
||||
func (x *VFSListRequestState) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vfs_api_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -353,21 +342,18 @@ func (x *VFSListRequestState) GetCurrent() *proto.VQLResponse {
|
||||
}
|
||||
|
||||
type VFSDownloadFileRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
VfsComponents []string `protobuf:"bytes,2,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
VfsComponents []string `protobuf:"bytes,2,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VFSDownloadFileRequest) Reset() {
|
||||
*x = VFSDownloadFileRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vfs_api_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vfs_api_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VFSDownloadFileRequest) String() string {
|
||||
@@ -378,7 +364,7 @@ func (*VFSDownloadFileRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VFSDownloadFileRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vfs_api_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -408,11 +394,8 @@ func (x *VFSDownloadFileRequest) GetVfsComponents() []string {
|
||||
}
|
||||
|
||||
type SearchFileRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
VfsComponents []string `protobuf:"bytes,2,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
VfsComponents []string `protobuf:"bytes,2,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
// If true pad sparse files.
|
||||
Padding bool `protobuf:"varint,7,opt,name=padding,proto3" json:"padding,omitempty"`
|
||||
// The term to search for
|
||||
@@ -423,16 +406,16 @@ type SearchFileRequest struct {
|
||||
Offset uint64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
// If true we search forward otherwise we search backwards from
|
||||
// the offset
|
||||
Forward bool `protobuf:"varint,6,opt,name=forward,proto3" json:"forward,omitempty"`
|
||||
Forward bool `protobuf:"varint,6,opt,name=forward,proto3" json:"forward,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SearchFileRequest) Reset() {
|
||||
*x = SearchFileRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vfs_api_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vfs_api_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SearchFileRequest) String() string {
|
||||
@@ -443,7 +426,7 @@ func (*SearchFileRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SearchFileRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vfs_api_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -501,21 +484,18 @@ func (x *SearchFileRequest) GetForward() bool {
|
||||
}
|
||||
|
||||
type SearchFileResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
VfsComponents []string `protobuf:"bytes,2,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
Hit uint64 `protobuf:"varint,3,opt,name=hit,proto3" json:"hit,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
VfsComponents []string `protobuf:"bytes,2,rep,name=vfs_components,json=vfsComponents,proto3" json:"vfs_components,omitempty"`
|
||||
Hit uint64 `protobuf:"varint,3,opt,name=hit,proto3" json:"hit,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SearchFileResponse) Reset() {
|
||||
*x = SearchFileResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vfs_api_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_vfs_api_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SearchFileResponse) String() string {
|
||||
@@ -526,7 +506,7 @@ func (*SearchFileResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SearchFileResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vfs_api_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -557,100 +537,68 @@ func (x *SearchFileResponse) GetHit() uint64 {
|
||||
|
||||
var File_vfs_api_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_vfs_api_proto_rawDesc = []byte{
|
||||
0x0a, 0x0d, 0x76, 0x66, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||
0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x71, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
||||
0x89, 0x03, 0x0a, 0x0f, 0x56, 0x46, 0x53, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
|
||||
0x52, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x05, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x2e, 0x56, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x05, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x07,
|
||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x73, 0x12,
|
||||
0x27, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x51, 0x4c, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61,
|
||||
0x70, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69,
|
||||
0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64,
|
||||
0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x1a,
|
||||
0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74,
|
||||
0x61, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x78, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73,
|
||||
0x74, 0x61, 0x72, 0x74, 0x49, 0x64, 0x78, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x5f, 0x69,
|
||||
0x64, 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x78,
|
||||
0x12, 0x29, 0x0a, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76, 0x65, 0x72,
|
||||
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x64, 0x6f, 0x77, 0x6e,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x71, 0x0a, 0x16, 0x56,
|
||||
0x46, 0x53, 0x53, 0x74, 0x61, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f,
|
||||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
||||
0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x1e,
|
||||
0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03,
|
||||
0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x7d,
|
||||
0x0a, 0x0e, 0x56, 0x46, 0x53, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x27, 0x0a,
|
||||
0x0f, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f,
|
||||
0x6e, 0x44, 0x65, 0x70, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x66, 0x73, 0x5f, 0x63, 0x6f,
|
||||
0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d,
|
||||
0x76, 0x66, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x7f, 0x0a,
|
||||
0x13, 0x56, 0x46, 0x53, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53,
|
||||
0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e,
|
||||
0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
|
||||
0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72,
|
||||
0x12, 0x2c, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x51, 0x4c, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x5c,
|
||||
0x0a, 0x16, 0x56, 0x46, 0x53, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
|
||||
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69,
|
||||
0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x66, 0x73, 0x5f, 0x63, 0x6f, 0x6d,
|
||||
0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x76,
|
||||
0x66, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x01, 0x0a,
|
||||
0x11, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x66, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
|
||||
0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x76, 0x66, 0x73, 0x43,
|
||||
0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x64,
|
||||
0x64, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x61, 0x64, 0x64,
|
||||
0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f,
|
||||
0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66,
|
||||
0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x18, 0x06,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x22, 0x4d, 0x0a,
|
||||
0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x66, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f,
|
||||
0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x76, 0x66, 0x73,
|
||||
0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x69,
|
||||
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x68, 0x69, 0x74, 0x42, 0x31, 0x5a, 0x2f,
|
||||
0x77, 0x77, 0x77, 0x2e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x72,
|
||||
0x61, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_vfs_api_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\rvfs_api.proto\x12\x05proto\x1a\x17actions/proto/vql.proto\"\x89\x03\n" +
|
||||
"\x0fVFSListResponse\x12\x1a\n" +
|
||||
"\bResponse\x18\x01 \x01(\tR\bResponse\x12\x18\n" +
|
||||
"\aColumns\x18\x02 \x03(\tR\aColumns\x12'\n" +
|
||||
"\x05Query\x18\x03 \x01(\v2\x11.proto.VQLRequestR\x05Query\x12\x1c\n" +
|
||||
"\ttimestamp\x18\x04 \x01(\x04R\ttimestamp\x12\x1d\n" +
|
||||
"\n" +
|
||||
"total_rows\x18\a \x01(\x04R\ttotalRows\x12'\n" +
|
||||
"\x05types\x18\b \x03(\v2\x11.proto.VQLTypeMapR\x05types\x12\x1b\n" +
|
||||
"\tclient_id\x18\t \x01(\tR\bclientId\x12\x17\n" +
|
||||
"\aflow_id\x18\n" +
|
||||
" \x01(\tR\x06flowId\x12\x1a\n" +
|
||||
"\bartifact\x18\r \x01(\tR\bartifact\x12\x1b\n" +
|
||||
"\tstart_idx\x18\v \x01(\x04R\bstartIdx\x12\x17\n" +
|
||||
"\aend_idx\x18\f \x01(\x04R\x06endIdx\x12)\n" +
|
||||
"\x10download_version\x18\x0e \x01(\x04R\x0fdownloadVersion\"q\n" +
|
||||
"\x16VFSStatDownloadRequest\x12\x1b\n" +
|
||||
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12\x1a\n" +
|
||||
"\baccessor\x18\x04 \x01(\tR\baccessor\x12\x1e\n" +
|
||||
"\n" +
|
||||
"components\x18\x06 \x03(\tR\n" +
|
||||
"components\"}\n" +
|
||||
"\x0eVFSListRequest\x12\x1b\n" +
|
||||
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12'\n" +
|
||||
"\x0frecursion_depth\x18\x03 \x01(\x04R\x0erecursionDepth\x12%\n" +
|
||||
"\x0evfs_components\x18\x04 \x03(\tR\rvfsComponents\"\x7f\n" +
|
||||
"\x13VFSListRequestState\x12\x1e\n" +
|
||||
"\n" +
|
||||
"components\x18\x04 \x03(\tR\n" +
|
||||
"components\x12\x1a\n" +
|
||||
"\baccessor\x18\x03 \x01(\tR\baccessor\x12,\n" +
|
||||
"\acurrent\x18\x02 \x01(\v2\x12.proto.VQLResponseR\acurrent\"\\\n" +
|
||||
"\x16VFSDownloadFileRequest\x12\x1b\n" +
|
||||
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12%\n" +
|
||||
"\x0evfs_components\x18\x02 \x03(\tR\rvfsComponents\"\xae\x01\n" +
|
||||
"\x11SearchFileRequest\x12%\n" +
|
||||
"\x0evfs_components\x18\x02 \x03(\tR\rvfsComponents\x12\x18\n" +
|
||||
"\apadding\x18\a \x01(\bR\apadding\x12\x12\n" +
|
||||
"\x04term\x18\x03 \x01(\tR\x04term\x12\x12\n" +
|
||||
"\x04type\x18\x04 \x01(\tR\x04type\x12\x16\n" +
|
||||
"\x06offset\x18\x05 \x01(\x04R\x06offset\x12\x18\n" +
|
||||
"\aforward\x18\x06 \x01(\bR\aforward\"M\n" +
|
||||
"\x12SearchFileResponse\x12%\n" +
|
||||
"\x0evfs_components\x18\x02 \x03(\tR\rvfsComponents\x12\x10\n" +
|
||||
"\x03hit\x18\x03 \x01(\x04R\x03hitB1Z/www.velocidex.com/golang/velociraptor/api/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_vfs_api_proto_rawDescOnce sync.Once
|
||||
file_vfs_api_proto_rawDescData = file_vfs_api_proto_rawDesc
|
||||
file_vfs_api_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_vfs_api_proto_rawDescGZIP() []byte {
|
||||
file_vfs_api_proto_rawDescOnce.Do(func() {
|
||||
file_vfs_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_vfs_api_proto_rawDescData)
|
||||
file_vfs_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vfs_api_proto_rawDesc), len(file_vfs_api_proto_rawDesc)))
|
||||
})
|
||||
return file_vfs_api_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_vfs_api_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_vfs_api_proto_goTypes = []interface{}{
|
||||
var file_vfs_api_proto_goTypes = []any{
|
||||
(*VFSListResponse)(nil), // 0: proto.VFSListResponse
|
||||
(*VFSStatDownloadRequest)(nil), // 1: proto.VFSStatDownloadRequest
|
||||
(*VFSListRequest)(nil), // 2: proto.VFSListRequest
|
||||
@@ -678,97 +626,11 @@ func file_vfs_api_proto_init() {
|
||||
if File_vfs_api_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_vfs_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VFSListResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vfs_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VFSStatDownloadRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vfs_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VFSListRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vfs_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VFSListRequestState); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vfs_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VFSDownloadFileRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vfs_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SearchFileRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vfs_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SearchFileResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_vfs_api_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_vfs_api_proto_rawDesc), len(file_vfs_api_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
@@ -779,7 +641,6 @@ func file_vfs_api_proto_init() {
|
||||
MessageInfos: file_vfs_api_proto_msgTypes,
|
||||
}.Build()
|
||||
File_vfs_api_proto = out.File
|
||||
file_vfs_api_proto_rawDesc = nil
|
||||
file_vfs_api_proto_goTypes = nil
|
||||
file_vfs_api_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
+7
-5
@@ -207,11 +207,13 @@ func (self *replicationTracker) Debug() []*ordereddict.Dict {
|
||||
|
||||
sort.Strings(keys)
|
||||
for _, k := range keys {
|
||||
v, _ := self.currentReplications[k]
|
||||
result = append(result, ordereddict.NewDict().
|
||||
Set("Type", "Replication").
|
||||
Set("Name", k).
|
||||
Set("Stats", v))
|
||||
v, ok := self.currentReplications[k]
|
||||
if ok {
|
||||
result = append(result, ordereddict.NewDict().
|
||||
Set("Type", "Replication").
|
||||
Set("Name", k).
|
||||
Set("Stats", v))
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
+1
-1
@@ -403,7 +403,7 @@ func ConvertRowsToTableResponse(
|
||||
|
||||
json_out := make([]interface{}, 0, len(result.Columns))
|
||||
for _, k := range result.Columns {
|
||||
value, _ := data[k]
|
||||
value := data[k]
|
||||
json_out = append(json_out, value)
|
||||
}
|
||||
serialized, err := json.MarshalWithOptions(json_out, opts)
|
||||
|
||||
@@ -92,7 +92,7 @@ func ConvertTimelineRowsToTableResponse(
|
||||
|
||||
json_out := make([]interface{}, 0, len(result.Columns))
|
||||
for _, k := range result.Columns {
|
||||
value, _ := data[k]
|
||||
value := data[k]
|
||||
json_out = append(json_out, value)
|
||||
}
|
||||
serialized, err := json.MarshalWithOptions(json_out, opts)
|
||||
|
||||
+1
-2
@@ -24,7 +24,6 @@ import (
|
||||
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
|
||||
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
|
||||
"www.velocidex.com/golang/velociraptor/json"
|
||||
vjson "www.velocidex.com/golang/velociraptor/json"
|
||||
"www.velocidex.com/golang/velociraptor/logging"
|
||||
"www.velocidex.com/golang/velociraptor/services"
|
||||
"www.velocidex.com/golang/velociraptor/vql/acl_managers"
|
||||
@@ -74,7 +73,7 @@ func RunVQL(
|
||||
new_row = append(new_row, value)
|
||||
}
|
||||
|
||||
opts := vjson.DefaultEncOpts()
|
||||
opts := json.DefaultEncOpts()
|
||||
serialized, err := json.MarshalWithOptions(new_row, opts)
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
+254
-660
File diff suppressed because it is too large
Load Diff
+3
-6
@@ -177,11 +177,10 @@ func doArtifactCollect() error {
|
||||
defer top_cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
manager, err := services.GetRepositoryManager(config_obj)
|
||||
if err != nil {
|
||||
@@ -353,11 +352,10 @@ func doArtifactShow() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
manager, err := services.GetRepositoryManager(config_obj)
|
||||
if err != nil {
|
||||
@@ -393,11 +391,10 @@ func doArtifactList() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
var name_regex *regexp.Regexp
|
||||
if *artifact_command_list_name != "" {
|
||||
|
||||
+4
-3
@@ -240,8 +240,8 @@ func TestCPULimit(t *testing.T) {
|
||||
}
|
||||
|
||||
var (
|
||||
client_deb_regex = regexp.MustCompile("client.+\\.deb$")
|
||||
server_deb_regex = regexp.MustCompile("server.+\\.deb$")
|
||||
client_deb_regex = regexp.MustCompile(`client.+\.deb$`)
|
||||
server_deb_regex = regexp.MustCompile(`server.+\.deb$`)
|
||||
)
|
||||
|
||||
func TestBuildDeb(t *testing.T) {
|
||||
@@ -381,7 +381,8 @@ func TestGenerateConfigWithMerge(t *testing.T) {
|
||||
cmd.Env = append(os.Environ(),
|
||||
"VELOCIRAPTOR_CONFIG="+config_file.Name(),
|
||||
)
|
||||
out, err = cmd.Output()
|
||||
|
||||
_, err = cmd.Output()
|
||||
require.Error(t, err)
|
||||
|
||||
// Create a tempfile for the repacked binary.
|
||||
|
||||
+1
-1
@@ -140,10 +140,10 @@ func runClientOnce(
|
||||
}
|
||||
|
||||
sm, err := startup.StartClientServices(ctx, config_obj, on_error)
|
||||
defer sm.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
exe, err := executor.NewClientExecutor(ctx, writeback.ClientId, config_obj)
|
||||
if err != nil {
|
||||
|
||||
+1
-2
@@ -36,11 +36,10 @@ func doCSV() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
logger := &LogWriter{config_obj: config_obj}
|
||||
builder := services.ScopeBuilder{
|
||||
|
||||
+1
-2
@@ -41,11 +41,10 @@ func doDeadDisk() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
// Close the file so we can overwrite it with VQL
|
||||
(*deaddisk_command_output).Close()
|
||||
|
||||
+4
-6
@@ -94,11 +94,10 @@ func doServerDeb() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, blank_config)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
if *server_debian_command_binary == "" {
|
||||
*server_debian_command_binary, err = os.Executable()
|
||||
@@ -138,7 +137,7 @@ func doServerDeb() error {
|
||||
config=read_file(filename=ConfigPath, length=1000000),
|
||||
release=Release)`
|
||||
|
||||
err = runQueryWithEnv(query, builder, "json")
|
||||
err = runQueryWithEnv(ctx, query, builder, "json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -174,11 +173,10 @@ func doClientDeb() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, blank_config)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
if *client_debian_command_binary == "" {
|
||||
*client_debian_command_binary, err = os.Executable()
|
||||
@@ -218,7 +216,7 @@ func doClientDeb() error {
|
||||
config=read_file(filename=ConfigPath, length=1000000),
|
||||
release=Release)`
|
||||
|
||||
err = runQueryWithEnv(query, builder, "json")
|
||||
err = runQueryWithEnv(ctx, query, builder, "json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -146,11 +146,10 @@ func doLS(path, accessor string) error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
matches := accessor_reg.FindStringSubmatch(path)
|
||||
if matches != nil {
|
||||
@@ -215,11 +214,10 @@ func doRM(path, accessor string) error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
matches := accessor_reg.FindStringSubmatch(path)
|
||||
if matches != nil {
|
||||
@@ -278,11 +276,10 @@ func doCp(path, accessor string, dump_dir string) error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
matches := accessor_reg.FindStringSubmatch(path)
|
||||
if matches != nil {
|
||||
@@ -383,11 +380,10 @@ func doCat(path, accessor_name string) error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
logger := &LogWriter{config_obj: config_obj}
|
||||
builder := services.ScopeBuilder{
|
||||
|
||||
+1
-2
@@ -74,11 +74,10 @@ func doFuseZip() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
logger := &LogWriter{config_obj: sm.Config}
|
||||
builder := services.ScopeBuilder{
|
||||
|
||||
+1
-2
@@ -360,11 +360,10 @@ func doGolden() error {
|
||||
}
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
var file_paths []string
|
||||
|
||||
|
||||
+2
-4
@@ -68,11 +68,10 @@ func doGrant() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
principal := *grant_command_principal
|
||||
|
||||
@@ -162,11 +161,10 @@ func doShow() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
principal := *show_command_principal
|
||||
|
||||
|
||||
+1
-2
@@ -41,11 +41,10 @@ func doHuntReconstruct() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
logger := &StdoutLogWriter{}
|
||||
builder := services.ScopeBuilder{
|
||||
|
||||
+2
-1
@@ -58,7 +58,8 @@ var (
|
||||
run_as = app.Flag("runas", "Run as this username's ACLs").String()
|
||||
|
||||
artifact_definitions_dir = app.Flag(
|
||||
"definitions", "A directory containing artifact definitions").String()
|
||||
"definitions", "A directory containing artifact definitions").
|
||||
Short('D').String()
|
||||
|
||||
no_color_flag = app.Flag("nocolor", "Disable color output").Bool()
|
||||
|
||||
|
||||
+1
-1
@@ -289,7 +289,7 @@ SELECT * FROM if(condition=Spec.OS, then={
|
||||
)
|
||||
})
|
||||
`
|
||||
err = runQueryWithEnv(query, builder, *collector_format)
|
||||
err = runQueryWithEnv(ctx, query, builder, *collector_format)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -54,11 +54,10 @@ func doCollectorDecrypt() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
filename, err := filepath.Abs(*collector_decrypt_input)
|
||||
if err != nil {
|
||||
@@ -118,7 +117,7 @@ FROM stat(filename=copy(
|
||||
filename=PATHSPEC + "data.zip",
|
||||
accessor="zip", dest=OUTPUT))
|
||||
`
|
||||
return runQueryWithEnv(query, builder, *collector_decrypt_format)
|
||||
return runQueryWithEnv(ctx, query, builder, *collector_decrypt_format)
|
||||
}
|
||||
|
||||
if *collector_decrypt_show_password {
|
||||
|
||||
+3
-4
@@ -281,11 +281,10 @@ func doQuery() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
env := ordereddict.NewDict()
|
||||
for k, v := range *env_map {
|
||||
@@ -401,7 +400,7 @@ func doQuery() error {
|
||||
timed_cancel()
|
||||
case <-timed_ctx.Done():
|
||||
scope.Log("collect: <red>Timeout Error:</> Collection timed out after %v",
|
||||
time.Now().Sub(start))
|
||||
time.Since(start))
|
||||
// Cancel the main context.
|
||||
cancel()
|
||||
timed_cancel()
|
||||
@@ -432,7 +431,7 @@ func doQuery() error {
|
||||
|
||||
start_time := time.Now()
|
||||
defer func() {
|
||||
scope.Log("Completed query in %v", time.Now().Sub(start_time))
|
||||
scope.Log("Completed query in %v", time.Since(start_time))
|
||||
}()
|
||||
|
||||
if *trace_vql_flag {
|
||||
|
||||
+2
-3
@@ -34,11 +34,10 @@ func doReformat() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
logger := logging.GetLogger(config_obj, &logging.ToolComponent)
|
||||
|
||||
@@ -75,7 +74,7 @@ func doReformat() error {
|
||||
AND copy(accessor="data", dest=_value, filename=Result.Artifact))
|
||||
AND FALSE
|
||||
`
|
||||
err = runQueryWithEnv(query, builder, "json")
|
||||
err = runQueryWithEnv(ctx, query, builder, "json")
|
||||
if err != nil {
|
||||
logger.Error("reformat: error running query: %v", query)
|
||||
}
|
||||
|
||||
+1
-2
@@ -115,11 +115,10 @@ func doRepack() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
output_path, err := filepath.Abs(*repack_command_output)
|
||||
if err != nil {
|
||||
|
||||
+4
-6
@@ -73,11 +73,10 @@ func doClientRPM() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, blank_config)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
if *client_rpm_command_binary == "" {
|
||||
*client_rpm_command_binary, err = os.Executable()
|
||||
@@ -123,7 +122,7 @@ func doClientRPM() error {
|
||||
release=Release)
|
||||
`
|
||||
|
||||
err = runQueryWithEnv(query, builder, "json")
|
||||
err = runQueryWithEnv(ctx, query, builder, "json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -160,11 +159,10 @@ func doServerRPM() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, blank_config)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
if *server_rpm_command_binary == "" {
|
||||
*server_rpm_command_binary, err = os.Executable()
|
||||
@@ -210,7 +208,7 @@ func doServerRPM() error {
|
||||
release=Release)
|
||||
`
|
||||
|
||||
err = runQueryWithEnv(query, builder, "json")
|
||||
err = runQueryWithEnv(ctx, query, builder, "json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
+3
-6
@@ -68,11 +68,10 @@ func doThirdPartyShow() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
inventory_manager, err := services.GetInventory(config_obj)
|
||||
if err != nil {
|
||||
@@ -117,11 +116,10 @@ func doThirdPartyRm() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
inventory_manager, err := services.GetInventory(config_obj)
|
||||
if err != nil {
|
||||
@@ -146,11 +144,10 @@ func doThirdPartyUpload() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
filename := *third_party_upload_filename
|
||||
if filename == "" {
|
||||
|
||||
+6
-6
@@ -4,15 +4,13 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
errors "github.com/go-errors/errors"
|
||||
"www.velocidex.com/golang/velociraptor/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
//lint:file-ignore U1000 This flag is handled especially.
|
||||
run_flag = app.Flag("run", "Run an artifact as a CLI tool.").
|
||||
Short('r').String()
|
||||
|
||||
stopError = errors.New("Stop")
|
||||
Short('r').String()
|
||||
)
|
||||
|
||||
type STATE int
|
||||
@@ -158,9 +156,11 @@ func transformArgv(argv []string) ([]string, error) {
|
||||
runmode_args = append(runmode_args, arg)
|
||||
state.Pop()
|
||||
|
||||
// Something went horrible wrong!
|
||||
// Something went horribly wrong!
|
||||
default:
|
||||
break
|
||||
return nil, fmt.Errorf(
|
||||
"Parsing command line failed at arg %v with state %v",
|
||||
arg, state)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+19
-15
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
@@ -56,11 +57,10 @@ func doUnzip() error {
|
||||
|
||||
config_obj.Services = services.GenericToolServices()
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
filename, err := filepath.Abs(*unzip_cmd_file)
|
||||
if err != nil {
|
||||
@@ -86,13 +86,13 @@ func doUnzip() error {
|
||||
}
|
||||
|
||||
if *unzip_cmd_list {
|
||||
err = runUnzipList(builder)
|
||||
err = runUnzipList(ctx, builder)
|
||||
|
||||
} else if *unzip_cmd_print {
|
||||
err = runUnzipPrint(builder)
|
||||
err = runUnzipPrint(ctx, builder)
|
||||
|
||||
} else {
|
||||
err = runUnzipFiles(builder)
|
||||
err = runUnzipFiles(ctx, builder)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -101,7 +101,9 @@ func doUnzip() error {
|
||||
return logger.Error
|
||||
}
|
||||
|
||||
func runUnzipList(builder services.ScopeBuilder) error {
|
||||
func runUnzipList(
|
||||
ctx context.Context,
|
||||
builder services.ScopeBuilder) error {
|
||||
query := `
|
||||
SELECT OSPath.Path AS Filename,
|
||||
Size
|
||||
@@ -114,10 +116,12 @@ func runUnzipList(builder services.ScopeBuilder) error {
|
||||
query += " AND " + *unzip_cmd_filter
|
||||
}
|
||||
|
||||
return runQueryWithEnv(query, builder, *unzip_format)
|
||||
return runQueryWithEnv(ctx, query, builder, *unzip_format)
|
||||
}
|
||||
|
||||
func runUnzipFiles(builder services.ScopeBuilder) error {
|
||||
func runUnzipFiles(
|
||||
ctx context.Context,
|
||||
builder services.ScopeBuilder) error {
|
||||
builder.Uploader = &uploads.FileBasedUploader{
|
||||
UploadDir: *unzip_path,
|
||||
}
|
||||
@@ -135,10 +139,12 @@ func runUnzipFiles(builder services.ScopeBuilder) error {
|
||||
query += " AND " + *unzip_cmd_filter
|
||||
}
|
||||
|
||||
return runQueryWithEnv(query, builder, *unzip_format)
|
||||
return runQueryWithEnv(ctx, query, builder, *unzip_format)
|
||||
}
|
||||
|
||||
func runUnzipPrint(builder services.ScopeBuilder) error {
|
||||
func runUnzipPrint(
|
||||
ctx context.Context,
|
||||
builder services.ScopeBuilder) error {
|
||||
query := `
|
||||
SELECT * FROM foreach(
|
||||
row={
|
||||
@@ -157,11 +163,12 @@ func runUnzipPrint(builder services.ScopeBuilder) error {
|
||||
query += " WHERE " + *unzip_cmd_filter
|
||||
}
|
||||
|
||||
return runQueryWithEnv(query, builder, *unzip_format)
|
||||
return runQueryWithEnv(ctx, query, builder, *unzip_format)
|
||||
}
|
||||
|
||||
func runQueryWithEnv(
|
||||
query string, builder services.ScopeBuilder, format string) error {
|
||||
ctx context.Context, query string,
|
||||
builder services.ScopeBuilder, format string) error {
|
||||
manager, err := services.GetRepositoryManager(builder.Config)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -175,9 +182,6 @@ func runQueryWithEnv(
|
||||
return fmt.Errorf("Unable to parse VQL Query: %w", err)
|
||||
}
|
||||
|
||||
ctx, cancel := InstallSignalHandler(nil, scope)
|
||||
defer cancel()
|
||||
|
||||
for _, vql := range vqls {
|
||||
scope.Log("Running query %v", vfilter.FormatToString(scope, vql))
|
||||
|
||||
|
||||
+1
-2
@@ -38,11 +38,10 @@ func doVerify() error {
|
||||
defer cancel()
|
||||
|
||||
sm, err := startup.StartToolServices(ctx, config_obj)
|
||||
defer sm.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sm.Close()
|
||||
|
||||
manager, err := services.GetRepositoryManager(config_obj)
|
||||
if err != nil {
|
||||
|
||||
+4
-5
@@ -29,8 +29,7 @@ import (
|
||||
"www.velocidex.com/golang/velociraptor/config"
|
||||
"www.velocidex.com/golang/velociraptor/constants"
|
||||
logging "www.velocidex.com/golang/velociraptor/logging"
|
||||
"www.velocidex.com/golang/velociraptor/utils"
|
||||
vutils "www.velocidex.com/golang/velociraptor/utils"
|
||||
utils "www.velocidex.com/golang/velociraptor/utils"
|
||||
vql_subsystem "www.velocidex.com/golang/velociraptor/vql"
|
||||
"www.velocidex.com/golang/vfilter/types"
|
||||
)
|
||||
@@ -231,7 +230,7 @@ func exportAccessors(old_data []*api_proto.Completion) []*api_proto.Completion {
|
||||
new_item.Metadata = metadata
|
||||
}
|
||||
|
||||
if !vutils.InString(new_item.Platforms, platform) {
|
||||
if !utils.InString(new_item.Platforms, platform) {
|
||||
new_item.Platforms = append(new_item.Platforms, platform)
|
||||
sort.Strings(new_item.Platforms)
|
||||
}
|
||||
@@ -340,7 +339,7 @@ func doVQLExport() error {
|
||||
new_item.FreeFormArgs = item.FreeFormArgs
|
||||
}
|
||||
|
||||
if !vutils.InString(new_item.Platforms, platform) {
|
||||
if !utils.InString(new_item.Platforms, platform) {
|
||||
new_item.Platforms = append(new_item.Platforms, platform)
|
||||
sort.Strings(new_item.Platforms)
|
||||
}
|
||||
@@ -388,7 +387,7 @@ func doVQLExport() error {
|
||||
new_item.FreeFormArgs = item.FreeFormArgs
|
||||
}
|
||||
|
||||
if !vutils.InString(new_item.Platforms, platform) {
|
||||
if !utils.InString(new_item.Platforms, platform) {
|
||||
new_item.Platforms = append(new_item.Platforms, platform)
|
||||
sort.Strings(new_item.Platforms)
|
||||
}
|
||||
|
||||
@@ -541,7 +541,5 @@ func read_api_config_from_file(filename string) (*config_proto.Config, error) {
|
||||
}
|
||||
|
||||
func debug(message string, args ...interface{}) {
|
||||
return
|
||||
|
||||
// logging.Prelog(message, args...)
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import (
|
||||
"www.velocidex.com/golang/velociraptor/logging"
|
||||
)
|
||||
|
||||
//lint:file-ignore U1000 func deprecated is unused
|
||||
func deprecated(config_obj *config_proto.Config, name string) {
|
||||
logging.Prelog("Config contains deprecated field %v", name)
|
||||
}
|
||||
|
||||
+885
-2560
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user