@lansweeper/scanningconfig-grpc 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.useprotoc +0 -0
- package/CHANGELOG.md +11 -0
- package/Lansweeper.ScanningConfig.GRPC.csproj +21 -0
- package/Scanningconfig.cs +2230 -0
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.deps.json +41 -0
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
- package/buf.yaml +22 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +2 -0
- package/gen-proto/index.js +3 -0
- package/gen-proto/scanningconfig_grpc_pb.d.ts +41 -0
- package/gen-proto/scanningconfig_grpc_pb.js +44 -0
- package/gen-proto/scanningconfig_pb.d.ts +293 -0
- package/gen-proto/scanningconfig_pb.js +2125 -0
- package/generated-go/scanningconfig.pb.go +1107 -0
- package/generated-go/scanningconfig_grpc.pb.go +109 -0
- package/go.mod +3 -0
- package/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs +4 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfo.cs +25 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfoInputs.cache +1 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.GeneratedMSBuildEditorConfig.editorconfig +10 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.assets.cache +0 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.AssemblyReference.cache +0 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.CoreCompileInputs.cache +1 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.FileListAbsolute.txt +12 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
- package/obj/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/obj/Debug/net6.0/refint/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.dgspec.json +68 -0
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.props +15 -0
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.targets +2 -0
- package/obj/project.assets.json +113 -0
- package/obj/project.nuget.cache +10 -0
- package/package.json +16 -0
- package/proto/scanningconfig.proto +83 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// - protoc-gen-go-grpc v1.3.0
|
|
4
|
+
// - protoc v3.15.6
|
|
5
|
+
// source: scanningconfig.proto
|
|
6
|
+
|
|
7
|
+
package generated_go
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
context "context"
|
|
11
|
+
grpc "google.golang.org/grpc"
|
|
12
|
+
codes "google.golang.org/grpc/codes"
|
|
13
|
+
status "google.golang.org/grpc/status"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
// This is a compile-time assertion to ensure that this generated file
|
|
17
|
+
// is compatible with the grpc package it is being compiled against.
|
|
18
|
+
// Requires gRPC-Go v1.32.0 or later.
|
|
19
|
+
const _ = grpc.SupportPackageIsVersion7
|
|
20
|
+
|
|
21
|
+
const (
|
|
22
|
+
ScanningConfigService_GetConfigurationsBySource_FullMethodName = "/lansweeper.scanningconfig.v1.ScanningConfigService/GetConfigurationsBySource"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
// ScanningConfigServiceClient is the client API for ScanningConfigService service.
|
|
26
|
+
//
|
|
27
|
+
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
28
|
+
type ScanningConfigServiceClient interface {
|
|
29
|
+
GetConfigurationsBySource(ctx context.Context, in *GetConfigurationsBySourceRequest, opts ...grpc.CallOption) (*GetConfigurationsBySourceResponse, error)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type scanningConfigServiceClient struct {
|
|
33
|
+
cc grpc.ClientConnInterface
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
func NewScanningConfigServiceClient(cc grpc.ClientConnInterface) ScanningConfigServiceClient {
|
|
37
|
+
return &scanningConfigServiceClient{cc}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
func (c *scanningConfigServiceClient) GetConfigurationsBySource(ctx context.Context, in *GetConfigurationsBySourceRequest, opts ...grpc.CallOption) (*GetConfigurationsBySourceResponse, error) {
|
|
41
|
+
out := new(GetConfigurationsBySourceResponse)
|
|
42
|
+
err := c.cc.Invoke(ctx, ScanningConfigService_GetConfigurationsBySource_FullMethodName, in, out, opts...)
|
|
43
|
+
if err != nil {
|
|
44
|
+
return nil, err
|
|
45
|
+
}
|
|
46
|
+
return out, nil
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// ScanningConfigServiceServer is the server API for ScanningConfigService service.
|
|
50
|
+
// All implementations must embed UnimplementedScanningConfigServiceServer
|
|
51
|
+
// for forward compatibility
|
|
52
|
+
type ScanningConfigServiceServer interface {
|
|
53
|
+
GetConfigurationsBySource(context.Context, *GetConfigurationsBySourceRequest) (*GetConfigurationsBySourceResponse, error)
|
|
54
|
+
mustEmbedUnimplementedScanningConfigServiceServer()
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// UnimplementedScanningConfigServiceServer must be embedded to have forward compatible implementations.
|
|
58
|
+
type UnimplementedScanningConfigServiceServer struct {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
func (UnimplementedScanningConfigServiceServer) GetConfigurationsBySource(context.Context, *GetConfigurationsBySourceRequest) (*GetConfigurationsBySourceResponse, error) {
|
|
62
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetConfigurationsBySource not implemented")
|
|
63
|
+
}
|
|
64
|
+
func (UnimplementedScanningConfigServiceServer) mustEmbedUnimplementedScanningConfigServiceServer() {}
|
|
65
|
+
|
|
66
|
+
// UnsafeScanningConfigServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
67
|
+
// Use of this interface is not recommended, as added methods to ScanningConfigServiceServer will
|
|
68
|
+
// result in compilation errors.
|
|
69
|
+
type UnsafeScanningConfigServiceServer interface {
|
|
70
|
+
mustEmbedUnimplementedScanningConfigServiceServer()
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
func RegisterScanningConfigServiceServer(s grpc.ServiceRegistrar, srv ScanningConfigServiceServer) {
|
|
74
|
+
s.RegisterService(&ScanningConfigService_ServiceDesc, srv)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
func _ScanningConfigService_GetConfigurationsBySource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
78
|
+
in := new(GetConfigurationsBySourceRequest)
|
|
79
|
+
if err := dec(in); err != nil {
|
|
80
|
+
return nil, err
|
|
81
|
+
}
|
|
82
|
+
if interceptor == nil {
|
|
83
|
+
return srv.(ScanningConfigServiceServer).GetConfigurationsBySource(ctx, in)
|
|
84
|
+
}
|
|
85
|
+
info := &grpc.UnaryServerInfo{
|
|
86
|
+
Server: srv,
|
|
87
|
+
FullMethod: ScanningConfigService_GetConfigurationsBySource_FullMethodName,
|
|
88
|
+
}
|
|
89
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
90
|
+
return srv.(ScanningConfigServiceServer).GetConfigurationsBySource(ctx, req.(*GetConfigurationsBySourceRequest))
|
|
91
|
+
}
|
|
92
|
+
return interceptor(ctx, in, info, handler)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// ScanningConfigService_ServiceDesc is the grpc.ServiceDesc for ScanningConfigService service.
|
|
96
|
+
// It's only intended for direct use with grpc.RegisterService,
|
|
97
|
+
// and not to be introspected or modified (even as a copy)
|
|
98
|
+
var ScanningConfigService_ServiceDesc = grpc.ServiceDesc{
|
|
99
|
+
ServiceName: "lansweeper.scanningconfig.v1.ScanningConfigService",
|
|
100
|
+
HandlerType: (*ScanningConfigServiceServer)(nil),
|
|
101
|
+
Methods: []grpc.MethodDesc{
|
|
102
|
+
{
|
|
103
|
+
MethodName: "GetConfigurationsBySource",
|
|
104
|
+
Handler: _ScanningConfigService_GetConfigurationsBySource_Handler,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
Streams: []grpc.StreamDesc{},
|
|
108
|
+
Metadata: "scanningconfig.proto",
|
|
109
|
+
}
|
package/go.mod
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//------------------------------------------------------------------------------
|
|
2
|
+
// <auto-generated>
|
|
3
|
+
// This code was generated by a tool.
|
|
4
|
+
//
|
|
5
|
+
// Changes to this file may cause incorrect behavior and will be lost if
|
|
6
|
+
// the code is regenerated.
|
|
7
|
+
// </auto-generated>
|
|
8
|
+
//------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
using System;
|
|
11
|
+
using System.Reflection;
|
|
12
|
+
|
|
13
|
+
[assembly: System.Reflection.AssemblyCompanyAttribute("Lansweeper")]
|
|
14
|
+
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
|
15
|
+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Lansweeper")]
|
|
16
|
+
[assembly: System.Reflection.AssemblyDescriptionAttribute("More Info : http://www.lansweeper.com")]
|
|
17
|
+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.0")]
|
|
18
|
+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.0")]
|
|
19
|
+
[assembly: System.Reflection.AssemblyProductAttribute("Lansweeper ScanningConfig model/proto")]
|
|
20
|
+
[assembly: System.Reflection.AssemblyTitleAttribute("Lansweeper.ScanningConfig.GRPC")]
|
|
21
|
+
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.0.0")]
|
|
22
|
+
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Lansweeper/lansweeperapis")]
|
|
23
|
+
|
|
24
|
+
// Generated by the MSBuild WriteCodeFragment class.
|
|
25
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aab2ce43a9c3388bc0679a8e4181d22e87492831
|
package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.GeneratedMSBuildEditorConfig.editorconfig
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
is_global = true
|
|
2
|
+
build_property.TargetFramework = net6.0
|
|
3
|
+
build_property.TargetPlatformMinVersion =
|
|
4
|
+
build_property.UsingMicrosoftNETSdkWeb =
|
|
5
|
+
build_property.ProjectTypeGuids =
|
|
6
|
+
build_property.InvariantGlobalization =
|
|
7
|
+
build_property.PlatformNeutralAssembly =
|
|
8
|
+
build_property._SupportedPlatformList = Linux,macOS,Windows
|
|
9
|
+
build_property.RootNamespace = Lansweeper.ScanningConfig.GRPC
|
|
10
|
+
build_property.ProjectDir = /home/circleci/project/packages/scanningConfig/grpc/
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
476b81d82543b7ce5c0a1e40cad442fab14784b2
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/home/circleci/project/packages/scanningConfig/grpc/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.deps.json
|
|
2
|
+
/home/circleci/project/packages/scanningConfig/grpc/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll
|
|
3
|
+
/home/circleci/project/packages/scanningConfig/grpc/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb
|
|
4
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.AssemblyReference.cache
|
|
5
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.GeneratedMSBuildEditorConfig.editorconfig
|
|
6
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfoInputs.cache
|
|
7
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfo.cs
|
|
8
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.CoreCompileInputs.cache
|
|
9
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll
|
|
10
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/refint/Lansweeper.ScanningConfig.GRPC.dll
|
|
11
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb
|
|
12
|
+
/home/circleci/project/packages/scanningConfig/grpc/obj/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"restore": {
|
|
4
|
+
"/home/circleci/project/packages/scanningConfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj": {}
|
|
5
|
+
},
|
|
6
|
+
"projects": {
|
|
7
|
+
"/home/circleci/project/packages/scanningConfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj": {
|
|
8
|
+
"version": "0.0.0",
|
|
9
|
+
"restore": {
|
|
10
|
+
"projectUniqueName": "/home/circleci/project/packages/scanningConfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
11
|
+
"projectName": "Lansweeper.ScanningConfig.GRPC",
|
|
12
|
+
"projectPath": "/home/circleci/project/packages/scanningConfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
13
|
+
"packagesPath": "/home/circleci/.nuget/packages/",
|
|
14
|
+
"outputPath": "/home/circleci/project/packages/scanningConfig/grpc/obj/",
|
|
15
|
+
"projectStyle": "PackageReference",
|
|
16
|
+
"crossTargeting": true,
|
|
17
|
+
"configFilePaths": [
|
|
18
|
+
"/home/circleci/.nuget/NuGet/NuGet.Config"
|
|
19
|
+
],
|
|
20
|
+
"originalTargetFrameworks": [
|
|
21
|
+
"net6.0"
|
|
22
|
+
],
|
|
23
|
+
"sources": {
|
|
24
|
+
"https://api.nuget.org/v3/index.json": {}
|
|
25
|
+
},
|
|
26
|
+
"frameworks": {
|
|
27
|
+
"net6.0": {
|
|
28
|
+
"targetAlias": "net6.0",
|
|
29
|
+
"projectReferences": {}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"warningProperties": {
|
|
33
|
+
"warnAsError": [
|
|
34
|
+
"NU1605"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"frameworks": {
|
|
39
|
+
"net6.0": {
|
|
40
|
+
"targetAlias": "net6.0",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"Google.Protobuf": {
|
|
43
|
+
"target": "Package",
|
|
44
|
+
"version": "[3.22.0, )"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"imports": [
|
|
48
|
+
"net461",
|
|
49
|
+
"net462",
|
|
50
|
+
"net47",
|
|
51
|
+
"net471",
|
|
52
|
+
"net472",
|
|
53
|
+
"net48",
|
|
54
|
+
"net481"
|
|
55
|
+
],
|
|
56
|
+
"assetTargetFallback": true,
|
|
57
|
+
"warn": true,
|
|
58
|
+
"frameworkReferences": {
|
|
59
|
+
"Microsoft.NETCore.App": {
|
|
60
|
+
"privateAssets": "all"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.407/RuntimeIdentifierGraph.json"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
|
2
|
+
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
|
4
|
+
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
|
5
|
+
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
|
6
|
+
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
|
7
|
+
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/circleci/.nuget/packages/</NuGetPackageRoot>
|
|
8
|
+
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/circleci/.nuget/packages/</NuGetPackageFolders>
|
|
9
|
+
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
|
10
|
+
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.2</NuGetToolVersion>
|
|
11
|
+
</PropertyGroup>
|
|
12
|
+
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
|
13
|
+
<SourceRoot Include="/home/circleci/.nuget/packages/" />
|
|
14
|
+
</ItemGroup>
|
|
15
|
+
</Project>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"targets": {
|
|
4
|
+
"net6.0": {
|
|
5
|
+
"Google.Protobuf/3.22.0": {
|
|
6
|
+
"type": "package",
|
|
7
|
+
"compile": {
|
|
8
|
+
"lib/net5.0/Google.Protobuf.dll": {
|
|
9
|
+
"related": ".pdb;.xml"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"runtime": {
|
|
13
|
+
"lib/net5.0/Google.Protobuf.dll": {
|
|
14
|
+
"related": ".pdb;.xml"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"libraries": {
|
|
21
|
+
"Google.Protobuf/3.22.0": {
|
|
22
|
+
"sha512": "UE1TRMrBBBmnA8xbqzTvX4sSwn+2W/Xxrs/v5Aws/7C8RD6fY6STi1eAnCu7Ez93oHcPdpyStGnFel/aIB407Q==",
|
|
23
|
+
"type": "package",
|
|
24
|
+
"path": "google.protobuf/3.22.0",
|
|
25
|
+
"files": [
|
|
26
|
+
".nupkg.metadata",
|
|
27
|
+
".signature.p7s",
|
|
28
|
+
"google.protobuf.3.22.0.nupkg.sha512",
|
|
29
|
+
"google.protobuf.nuspec",
|
|
30
|
+
"lib/net45/Google.Protobuf.dll",
|
|
31
|
+
"lib/net45/Google.Protobuf.pdb",
|
|
32
|
+
"lib/net45/Google.Protobuf.xml",
|
|
33
|
+
"lib/net5.0/Google.Protobuf.dll",
|
|
34
|
+
"lib/net5.0/Google.Protobuf.pdb",
|
|
35
|
+
"lib/net5.0/Google.Protobuf.xml",
|
|
36
|
+
"lib/netstandard1.1/Google.Protobuf.dll",
|
|
37
|
+
"lib/netstandard1.1/Google.Protobuf.pdb",
|
|
38
|
+
"lib/netstandard1.1/Google.Protobuf.xml",
|
|
39
|
+
"lib/netstandard2.0/Google.Protobuf.dll",
|
|
40
|
+
"lib/netstandard2.0/Google.Protobuf.pdb",
|
|
41
|
+
"lib/netstandard2.0/Google.Protobuf.xml"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"projectFileDependencyGroups": {
|
|
46
|
+
"net6.0": [
|
|
47
|
+
"Google.Protobuf >= 3.22.0"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"packageFolders": {
|
|
51
|
+
"/home/circleci/.nuget/packages/": {}
|
|
52
|
+
},
|
|
53
|
+
"project": {
|
|
54
|
+
"version": "0.0.0",
|
|
55
|
+
"restore": {
|
|
56
|
+
"projectUniqueName": "/home/circleci/project/packages/scanningConfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
57
|
+
"projectName": "Lansweeper.ScanningConfig.GRPC",
|
|
58
|
+
"projectPath": "/home/circleci/project/packages/scanningConfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
59
|
+
"packagesPath": "/home/circleci/.nuget/packages/",
|
|
60
|
+
"outputPath": "/home/circleci/project/packages/scanningConfig/grpc/obj/",
|
|
61
|
+
"projectStyle": "PackageReference",
|
|
62
|
+
"crossTargeting": true,
|
|
63
|
+
"configFilePaths": [
|
|
64
|
+
"/home/circleci/.nuget/NuGet/NuGet.Config"
|
|
65
|
+
],
|
|
66
|
+
"originalTargetFrameworks": [
|
|
67
|
+
"net6.0"
|
|
68
|
+
],
|
|
69
|
+
"sources": {
|
|
70
|
+
"https://api.nuget.org/v3/index.json": {}
|
|
71
|
+
},
|
|
72
|
+
"frameworks": {
|
|
73
|
+
"net6.0": {
|
|
74
|
+
"targetAlias": "net6.0",
|
|
75
|
+
"projectReferences": {}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"warningProperties": {
|
|
79
|
+
"warnAsError": [
|
|
80
|
+
"NU1605"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"frameworks": {
|
|
85
|
+
"net6.0": {
|
|
86
|
+
"targetAlias": "net6.0",
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"Google.Protobuf": {
|
|
89
|
+
"target": "Package",
|
|
90
|
+
"version": "[3.22.0, )"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"imports": [
|
|
94
|
+
"net461",
|
|
95
|
+
"net462",
|
|
96
|
+
"net47",
|
|
97
|
+
"net471",
|
|
98
|
+
"net472",
|
|
99
|
+
"net48",
|
|
100
|
+
"net481"
|
|
101
|
+
],
|
|
102
|
+
"assetTargetFallback": true,
|
|
103
|
+
"warn": true,
|
|
104
|
+
"frameworkReferences": {
|
|
105
|
+
"Microsoft.NETCore.App": {
|
|
106
|
+
"privateAssets": "all"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.407/RuntimeIdentifierGraph.json"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"dgSpecHash": "to6zr3rJBxbfzc/oZf1oAHdIYGt5um5z1FmFstx+slZYRbnBVttl67fYjAgSyFYl4nYS+9CXCHIWY+hMH8uxgA==",
|
|
4
|
+
"success": true,
|
|
5
|
+
"projectFilePath": "/home/circleci/project/packages/scanningConfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
6
|
+
"expectedPackageFiles": [
|
|
7
|
+
"/home/circleci/.nuget/packages/google.protobuf/3.22.0/google.protobuf.3.22.0.nupkg.sha512"
|
|
8
|
+
],
|
|
9
|
+
"logs": []
|
|
10
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lansweeper/scanningconfig-grpc",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "ScanningConfig grpc",
|
|
5
|
+
"main": "gen-proto/index.js",
|
|
6
|
+
"types": "gen-proto/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"google-protobuf": "^3.17.0"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@grpc/grpc-js": "^1.6.2",
|
|
13
|
+
"@types/google-protobuf": "^3.15.5"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "0b5b564b783e8abedf6b37f0881de26b99fdbeaa"
|
|
16
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.scanningconfig.v1;
|
|
4
|
+
option go_package = "./generated-go";
|
|
5
|
+
|
|
6
|
+
service ScanningConfigService {
|
|
7
|
+
rpc GetConfigurationsBySource(GetConfigurationsBySourceRequest) returns (GetConfigurationsBySourceResponse) {}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message GetConfigurationsBySourceRequest{
|
|
11
|
+
string source_id = 1;
|
|
12
|
+
string site_id = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message GetConfigurationsBySourceResponse{
|
|
16
|
+
repeated Component configs = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message Component {
|
|
20
|
+
enum ComponentType {
|
|
21
|
+
UNSPECIFIED = 0;
|
|
22
|
+
AGENT = 1;
|
|
23
|
+
IT_SENSOR = 2;
|
|
24
|
+
IT_HUB = 3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
string id = 1;
|
|
28
|
+
ComponentType type = 2;
|
|
29
|
+
repeated Action actions = 3;
|
|
30
|
+
optional OperationalConfig op_config = 4;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message AssetRadar{
|
|
34
|
+
bool enabled = 1;
|
|
35
|
+
repeated string excluded_interfaces = 2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message AutoUpdate{
|
|
39
|
+
bool enabled = 1;
|
|
40
|
+
string schedule = 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message OperationalConfig{
|
|
44
|
+
optional AssetRadar asset_radar_config = 1;
|
|
45
|
+
optional AutoUpdate auto_update_config = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message Trigger{
|
|
49
|
+
string cron_expr =1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message Action{
|
|
53
|
+
enum ActionType {
|
|
54
|
+
UNSPECIFIED = 0;
|
|
55
|
+
AGENT = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
repeated Trigger triggers = 1;
|
|
59
|
+
ActionType action_type = 2;
|
|
60
|
+
repeated Credential credentials = 3;
|
|
61
|
+
oneof definition {
|
|
62
|
+
Agent agent = 4;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message Agent{
|
|
67
|
+
enum ScanFocus {
|
|
68
|
+
ALL = 0;
|
|
69
|
+
USERS = 1;
|
|
70
|
+
INVENTORY = 2;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
ScanFocus scan_focus = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message Credential{
|
|
77
|
+
enum CredentialType
|
|
78
|
+
{
|
|
79
|
+
UNSPECIFIED = 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
CredentialType type = 1;
|
|
83
|
+
}
|