Skip to content

Commit

Permalink
chore: update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
arxeiss committed Jun 18, 2024
1 parent 6a06915 commit c9d8bad
Show file tree
Hide file tree
Showing 40 changed files with 4,715 additions and 6,477 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-lint-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: golangci/golangci-lint-action@v5
with:
# Required: the version of golangci-lint is required and must be specified without patch version.
version: v1.55.2
version: v1.59

# Optional: working directory, useful for monorepos
# working-directory: ./...
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ jobs:
name: Integration Test
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
contents: read
id-token: write
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Authenticate to Google Cloud
uses: 'google-github-actions/[email protected]'
uses: google-github-actions/[email protected]
with:
workload_identity_provider: 'projects/699926043561/locations/global/workloadIdentityPools/github-dev/providers/github-dev-provider'
service_account: '[email protected]'
workload_identity_provider: projects/699926043561/locations/global/workloadIdentityPools/github-dev/providers/github-dev-provider
service_account: [email protected]

- name: Set up Go
uses: actions/setup-go@v5
Expand Down
36 changes: 20 additions & 16 deletions config/config_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,22 +207,6 @@ func (x *NodeRequest) WithEmailNotificationConfig(v *configpb.EmailServiceConfig
return x
}

func (x *NodeRequest) WithAuthFlowConfig(v *configpb.AuthFlowConfig) *NodeRequest {
switch {
case x.create != nil:
x.create.Config = nil
if v != nil {
x.create.Config = &configpb.CreateConfigNodeRequest_AuthFlowConfig{AuthFlowConfig: v}
}
case x.update != nil:
x.update.Config = nil
if v != nil {
x.update.Config = &configpb.UpdateConfigNodeRequest_AuthFlowConfig{AuthFlowConfig: v}
}
}
return x
}

func (x *NodeRequest) WithAuthorizationPolicyConfig(v *configpb.AuthorizationPolicyConfig) *NodeRequest {
switch {
case x.create != nil:
Expand Down Expand Up @@ -295,6 +279,26 @@ func (x *NodeRequest) WithAuditSinkConfig(v *configpb.AuditSinkConfig) *NodeRequ
return x
}

func (x *NodeRequest) WithTokenIntrospectConfig(v *configpb.TokenIntrospectConfig) *NodeRequest {
switch {
case x.create != nil:
x.create.Config = nil
if v != nil {
x.create.Config = &configpb.CreateConfigNodeRequest_TokenIntrospectConfig{
TokenIntrospectConfig: v,
}
}
case x.update != nil:
x.update.Config = nil
if v != nil {
x.update.Config = &configpb.UpdateConfigNodeRequest_TokenIntrospectConfig{
TokenIntrospectConfig: v,
}
}
}
return x
}

func (x *NodeRequest) WithVersion(version int64) *NodeRequest {
if x.read != nil {
x.read.Version = version
Expand Down
1 change: 0 additions & 1 deletion errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ func FromError(err error) *StatusError {
if s, ok := err.(*ClientError); ok {
return &StatusError{grpcStatus: status.New(s.code, s.msg), origin: s.cause}
}
//nolint:errorlint // TODO: Should be fixed, but also heavily tested
if se, ok := err.(interface {
GRPCStatus() *status.Status
}); ok {
Expand Down
2 changes: 1 addition & 1 deletion examples/tda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
`INDYKITE_APPLICATION_CREDENTIALS_FILE`

Populate the environment variable above with the path to your application credential `.json` file.
This will be used to authenticate with the IndyKite platform and ingest or read data from the correct project and application.
This will be used to authenticate with the IndyKite platform and ingest or read data from the correct project and application.
12 changes: 6 additions & 6 deletions gen/indykite/auditsink/v1beta1/ai.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c9d8bad

Please sign in to comment.