swarmkit
swarmkit copied to clipboard
proto: Consistent enums
We have a few inconsistencies in our various enums.
We should make sure they all conform to our reference TaskState:
enum Foo {
option (gogoproto.goproto_enum_prefix) = false;
option (gogoproto.enum_customname) = "Foo";
BAR = 0 [(gogoproto.enumvalue_customname)="FooBar"];
}
Some of our enums don't use the right set of gogo options while others use FOO_BAR rather than BAR.
/cc @docker/fiesta-cucaracha-maintainers
@aluzzardi My recommendations here are the following:
- All Enum values should have
enumvalue_customname. - All Enums should have
goproto_enum_prefix= false. - Protobuf enum values should be namespaced in a consistent manner.
This is a backward compatible change - tentatively setting it as P3/1.13
/cc @stevvooe
Thanks for opening this issue. We haven’t seen any recent activity, so I’m closing it for now.
If it’s still relevant, feel free to reopen it or open a new issue with additional details. Thanks!