Skip to content

Commit 6003635

Browse files
authored
Naming change (#24)
1 parent 589c5d4 commit 6003635

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.4
1+
2.0.5

sdk/go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.0
44

55
require (
66
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.33.0-20240401165935-b983156c5e99.1 // indirect
7-
buf.build/gen/go/formal/core/connectrpc/go v1.16.0-20240415234248-6e140f7286cc.1 // indirect
8-
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240415234248-6e140f7286cc.1 // indirect
9-
connectrpc.com/connect v1.16.0 // indirect
7+
buf.build/gen/go/formal/core/connectrpc/go v1.16.1-20240424031542-92b286ad7f8b.1 // indirect
8+
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240424031542-92b286ad7f8b.1 // indirect
9+
connectrpc.com/connect v1.16.1 // indirect
1010
google.golang.org/protobuf v1.33.0 // indirect
1111
)

sdk/go.sum

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ buf.build/gen/go/formal/core/connectrpc/go v1.16.0-20240415104927-e011f022840f.1
1212
buf.build/gen/go/formal/core/connectrpc/go v1.16.0-20240415104927-e011f022840f.1/go.mod h1:vvKoBVKN35FA52y074IjaN/81tvZ+Yy3jI5PgaIZ78w=
1313
buf.build/gen/go/formal/core/connectrpc/go v1.16.0-20240415234248-6e140f7286cc.1 h1:8iE71Q0ZGFPOiAOygXIb1bs53phVsBw259KXMEKWqtE=
1414
buf.build/gen/go/formal/core/connectrpc/go v1.16.0-20240415234248-6e140f7286cc.1/go.mod h1:k6f23Ezr/FS5SmLtVqFsqFyLE5uELEd7ev6MAekTETE=
15+
buf.build/gen/go/formal/core/connectrpc/go v1.16.1-20240424031542-92b286ad7f8b.1 h1:G6Ts7yvGJO2HQYwbjiVCe6PmWfzILzs0NxUS94mFhiQ=
16+
buf.build/gen/go/formal/core/connectrpc/go v1.16.1-20240424031542-92b286ad7f8b.1/go.mod h1:EkSUWBSMIrtqvIRvZT3NUCnmFYSaz6Gb+XyYB2RxJc8=
1517
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240325021114-a12d8b513eb0.1 h1:FF7w18PdpRGAJ0oOMrJysrLLDhHyQv4j84aMGEFgtxA=
1618
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240325021114-a12d8b513eb0.1/go.mod h1:KtxCb4xltxpHkSj5t5HRYHuGIeeQqUxixGOL6r47WeQ=
1719
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240407121336-cbbe0e6ff599.1 h1:884x9XYEq6Qr+UDhcOBzA1Q0Gz5FTD8outOlDAzzjAo=
@@ -24,8 +26,12 @@ buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240415104927-e011f0228
2426
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240415104927-e011f022840f.1/go.mod h1:KtxCb4xltxpHkSj5t5HRYHuGIeeQqUxixGOL6r47WeQ=
2527
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240415234248-6e140f7286cc.1 h1:a6u9Z50LXWepSsYUJOug8fxemT5FhOE56iMpsb1KkRA=
2628
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240415234248-6e140f7286cc.1/go.mod h1:KtxCb4xltxpHkSj5t5HRYHuGIeeQqUxixGOL6r47WeQ=
29+
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240424031542-92b286ad7f8b.1 h1:9fxCjCU3wnhNrXIQC9WSQ21AAeBmPoaqLUFSI4f5T7Q=
30+
buf.build/gen/go/formal/core/protocolbuffers/go v1.33.0-20240424031542-92b286ad7f8b.1/go.mod h1:KtxCb4xltxpHkSj5t5HRYHuGIeeQqUxixGOL6r47WeQ=
2731
connectrpc.com/connect v1.16.0 h1:rdtfQjZ0OyFkWPTegBNcH7cwquGAN1WzyJy80oFNibg=
2832
connectrpc.com/connect v1.16.0/go.mod h1:XpZAduBQUySsb4/KO5JffORVkDI4B6/EYPi7N8xpNZw=
33+
connectrpc.com/connect v1.16.1 h1:rOdrK/RTI/7TVnn3JsVxt3n028MlTRwmK5Q4heSpjis=
34+
connectrpc.com/connect v1.16.1/go.mod h1:XpZAduBQUySsb4/KO5JffORVkDI4B6/EYPi7N8xpNZw=
2935
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
3036
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
3137
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=

sdk/sdk.go

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
package sdk
22

33
import (
4-
corev1connect "buf.build/gen/go/formal/core/connectrpc/go/core/v1/corev1connect"
54
"net/http"
5+
6+
corev1connect "buf.build/gen/go/formal/core/connectrpc/go/core/v1/corev1connect"
67
)
78

89
const (
910
FORMAL_HOST_URL string = "https://v2api.formalcloud.net"
1011
)
1112

1213
type FormalSDK struct {
13-
AuditServiceClient corev1connect.AuditServiceClient
14+
LogsServiceClient corev1connect.LogsServiceClient
1415
GroupServiceClient corev1connect.GroupServiceClient
1516
IntegrationBIServiceClient corev1connect.IntegrationBIServiceClient
1617
IntegrationCloudServiceClient corev1connect.IntegrationCloudServiceClient
1718
IntegrationDataCatalogServiceClient corev1connect.IntegrationDataCatalogServiceClient
1819
IntegrationsLogServiceClient corev1connect.IntegrationsLogServiceClient
1920
IntegrationMfaServiceClient corev1connect.IntegrationMfaServiceClient
2021
InventoryServiceClient corev1connect.InventoryServiceClient
21-
PolicyServiceClient corev1connect.PolicyServiceClient
22+
PoliciesServiceClient corev1connect.PoliciesServiceClient
2223
ResourceServiceClient corev1connect.ResourceServiceClient
2324
SatelliteServiceClient corev1connect.SatelliteServiceClient
2425
SessionServiceClient corev1connect.SessionServiceClient
2526
SidecarServiceClient corev1connect.SidecarServiceClient
26-
RowLevelTrackerServiceClient corev1connect.RowLevelTrackerServiceClient
27+
TrackersServiceClient corev1connect.TrackersServiceClient
2728
UserServiceClient corev1connect.UserServiceClient
2829
}
2930

@@ -33,17 +34,17 @@ func New(apiKey string) *FormalSDK {
3334
underlyingTransport: http.DefaultTransport,
3435
}}
3536
return &FormalSDK{
36-
AuditServiceClient: corev1connect.NewAuditServiceClient(httpClient, FORMAL_HOST_URL),
37+
LogsServiceClient: corev1connect.NewLogsServiceClient(httpClient, FORMAL_HOST_URL),
3738
GroupServiceClient: corev1connect.NewGroupServiceClient(httpClient, FORMAL_HOST_URL),
3839
IntegrationBIServiceClient: corev1connect.NewIntegrationBIServiceClient(httpClient, FORMAL_HOST_URL),
3940
IntegrationCloudServiceClient: corev1connect.NewIntegrationCloudServiceClient(httpClient, FORMAL_HOST_URL),
4041
IntegrationDataCatalogServiceClient: corev1connect.NewIntegrationDataCatalogServiceClient(httpClient, FORMAL_HOST_URL),
4142
IntegrationMfaServiceClient: corev1connect.NewIntegrationMfaServiceClient(httpClient, FORMAL_HOST_URL),
4243
IntegrationsLogServiceClient: corev1connect.NewIntegrationsLogServiceClient(httpClient, FORMAL_HOST_URL),
4344
InventoryServiceClient: corev1connect.NewInventoryServiceClient(httpClient, FORMAL_HOST_URL),
44-
PolicyServiceClient: corev1connect.NewPolicyServiceClient(httpClient, FORMAL_HOST_URL),
45+
PoliciesServiceClient: corev1connect.NewPoliciesServiceClient(httpClient, FORMAL_HOST_URL),
4546
ResourceServiceClient: corev1connect.NewResourceServiceClient(httpClient, FORMAL_HOST_URL),
46-
RowLevelTrackerServiceClient: corev1connect.NewRowLevelTrackerServiceClient(httpClient, FORMAL_HOST_URL),
47+
TrackersServiceClient: corev1connect.NewTrackersServiceClient(httpClient, FORMAL_HOST_URL),
4748
SatelliteServiceClient: corev1connect.NewSatelliteServiceClient(httpClient, FORMAL_HOST_URL),
4849
SessionServiceClient: corev1connect.NewSessionServiceClient(httpClient, FORMAL_HOST_URL),
4950
SidecarServiceClient: corev1connect.NewSidecarServiceClient(httpClient, FORMAL_HOST_URL),
@@ -57,17 +58,17 @@ func NewWithUrl(apiKey string, url string) *FormalSDK {
5758
underlyingTransport: http.DefaultTransport,
5859
}}
5960
return &FormalSDK{
60-
AuditServiceClient: corev1connect.NewAuditServiceClient(httpClient, url),
61+
LogsServiceClient: corev1connect.NewLogsServiceClient(httpClient, url),
6162
GroupServiceClient: corev1connect.NewGroupServiceClient(httpClient, url),
6263
IntegrationBIServiceClient: corev1connect.NewIntegrationBIServiceClient(httpClient, url),
6364
IntegrationCloudServiceClient: corev1connect.NewIntegrationCloudServiceClient(httpClient, url),
6465
IntegrationDataCatalogServiceClient: corev1connect.NewIntegrationDataCatalogServiceClient(httpClient, url),
6566
IntegrationMfaServiceClient: corev1connect.NewIntegrationMfaServiceClient(httpClient, url),
6667
IntegrationsLogServiceClient: corev1connect.NewIntegrationsLogServiceClient(httpClient, url),
6768
InventoryServiceClient: corev1connect.NewInventoryServiceClient(httpClient, url),
68-
PolicyServiceClient: corev1connect.NewPolicyServiceClient(httpClient, url),
69+
PoliciesServiceClient: corev1connect.NewPoliciesServiceClient(httpClient, url),
6970
ResourceServiceClient: corev1connect.NewResourceServiceClient(httpClient, url),
70-
RowLevelTrackerServiceClient: corev1connect.NewRowLevelTrackerServiceClient(httpClient, url),
71+
TrackersServiceClient: corev1connect.NewTrackersServiceClient(httpClient, url),
7172
SatelliteServiceClient: corev1connect.NewSatelliteServiceClient(httpClient, url),
7273
SessionServiceClient: corev1connect.NewSessionServiceClient(httpClient, url),
7374
SidecarServiceClient: corev1connect.NewSidecarServiceClient(httpClient, url),

0 commit comments

Comments
 (0)