Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VHD GetNotifications RPC Changes #296

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions pkg/errors/codes/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const (
MeasurementUnitError
QuotaViolation
IPOutOfRange
VolumeNotFound
VolumeDegraded
VolumeAccessInconsistent

// This is not a valid code, it is used to get the maximum code value.
// Any new codes should be defined above this.
Expand Down
6 changes: 6 additions & 0 deletions pkg/errors/codes/codes_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ func (c MocCode) String() string {
return "QuotaViolation"
case IPOutOfRange:
return "IPOutOfRange"
case VolumeNotFound:
return "VolumeNotFound"
case VolumeDegraded:
return "VolumeDegraded"
case VolumeAccessInconsistent:
return "VolumeAccessInconsistent"
default:
return "MocCode(" + strconv.FormatUint(uint64(c), 10) + ")"
}
Expand Down
183 changes: 112 additions & 71 deletions rpc/nodeagent/storage/moc_nodeagent_virtualharddisk.pb.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ message VirtualHardDisk {
DiskFileFormat diskFileFormat = 23;
}

message DiskNotificationRequest {
string resourceType = 1;
}

service VirtualHardDiskAgent {
rpc Invoke(VirtualHardDiskRequest) returns (VirtualHardDiskResponse) {}
rpc CheckNotification(google.protobuf.Empty) returns (NotificationResponse) {}
}
rpc CheckNotification(DiskNotificationRequest) returns (NotificationResponse) {}
}
Loading