Fix : update the name RoleCDS to RoleDiscovery
This commit is contained in:
@@ -104,8 +104,8 @@ const (
|
|||||||
RoleGateway Role = "gateway"
|
RoleGateway Role = "gateway"
|
||||||
// RoleRegistery represents the Registry that maintains network participant details.
|
// RoleRegistery represents the Registry that maintains network participant details.
|
||||||
RoleRegistery Role = "registery"
|
RoleRegistery Role = "registery"
|
||||||
// RoleCDS represents the CDS for that network
|
// RoleDiscovery represents the discovery for that network
|
||||||
RoleCDS Role = "cds"
|
RoleDiscovery Role = "discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
var validRoles = map[Role]bool{
|
var validRoles = map[Role]bool{
|
||||||
@@ -113,7 +113,7 @@ var validRoles = map[Role]bool{
|
|||||||
RoleBPP: true,
|
RoleBPP: true,
|
||||||
RoleGateway: true,
|
RoleGateway: true,
|
||||||
RoleRegistery: true,
|
RoleRegistery: true,
|
||||||
RoleCDS: true,
|
RoleDiscovery: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalYAML implements custom YAML unmarshalling for Role to ensure only valid values are accepted.
|
// UnmarshalYAML implements custom YAML unmarshalling for Role to ensure only valid values are accepted.
|
||||||
|
|||||||
Reference in New Issue
Block a user