Skip to content
Open
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/grpc/mpi/v1/files.pb.go

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

2 changes: 1 addition & 1 deletion api/grpc/mpi/v1/files.proto
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ message FileMeta {
// The hash of the file contents sha256, hex encoded
string hash = 2;
// Last modified time of the file (created time if never modified)
google.protobuf.Timestamp modified_time = 3 [(buf.validate.field).timestamp.lt_now = true];
google.protobuf.Timestamp modified_time = 3;
// The permission set associated with a particular file
string permissions = 4 [(buf.validate.field).string.pattern = "0[0-7]{3}"];
// The size of the file in bytes
Expand Down
2 changes: 0 additions & 2 deletions internal/bus/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
package bus

const (
AddInstancesTopic = "add-instances"
UpdatedInstancesTopic = "updated-instances"
DeletedInstancesTopic = "deleted-instances"
ResourceUpdateTopic = "resource-update"
NginxConfigUpdateTopic = "nginx-config-update"
InstanceHealthTopic = "instance-health"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.

package resource
package nginx

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.

package resource
package nginx

import (
"bytes"
Expand All @@ -16,7 +16,7 @@ import (
"time"

"github.com/nginx/agent/v3/internal/config"
"github.com/nginx/agent/v3/internal/resource/resourcefakes"
"github.com/nginx/agent/v3/internal/nginx/nginxfakes"
"github.com/nginx/agent/v3/pkg/nginxprocess"
"github.com/nginx/agent/v3/test/stub"

Expand Down Expand Up @@ -393,7 +393,7 @@ func TestInstanceOperator_checkWorkers(t *testing.T) {
mockExec.RunCmdReturnsOnCall(2, bytes.NewBufferString(nginxVersionCommandOutput), nil)
mockExec.RunCmdReturnsOnCall(3, bytes.NewBufferString(nginxVersionCommandOutput), nil)

mockProcessOp := &resourcefakes.FakeProcessOperator{}
mockProcessOp := &nginxfakes.FakeProcessOperator{}
allProcesses := slices.Concat(test.workers, test.masterProcess)
mockProcessOp.FindNginxProcessesReturnsOnCall(0, allProcesses, nil)
mockProcessOp.NginxWorkerProcessesReturnsOnCall(0, test.workers)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.

package resource
package nginx

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.

package resource
package nginx

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.

package resource
package nginx

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.

package resource
package nginx

import (
"bytes"
Expand Down
Loading
Loading