You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add String() methods to DN and its subtypes (#386)
* Add String() methods to DN and its subtypes
This patch adds `String() string` methods to each of the following types:
- DN
- RelativeDN
- AttributeTypeAndValue
So that a `*DN` implements the `fmt.Stringer` interface. These methods also
produce normalized strings: Attribute Type and Value are lowercased and joined
with a "=" character while multiple attributes of a Relative DN are sorted
lexicographically before being joined witha "+" character.
This allows one to use the string representation of a DN as a map key and
ensure that two DNs which `Equal()` eachother would have the same `String()`
value.
Docker-DCO-1.1-Signed-off-by: Josh Hawn <[email protected]> (github: jlhawn)
* Mirror DN String() methods to v3 folder
Co-authored-by: Josh Hawn <[email protected]>
0 commit comments