// NewDefaultNodeIdentifier returns a default NodeIdentifier implementation, // which returns isNode=true if the user groups contain the system:nodes group // and the user name matches the format system:node:<nodeName>, and populates // nodeName if isNode is true func NewDefaultNodeIdentifier() NodeIdentifier { … } type defaultNodeIdentifier … const nodeUserNamePrefix … // NodeIdentity returns isNode=true if the user groups contain the system:nodes // group and the user name matches the format system:node:<nodeName>, and // populates nodeName if isNode is true func (defaultNodeIdentifier) NodeIdentity(u user.Info) (string, bool) { … }