Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeIdentifier ¶
type NodeIdentifier interface { // IdentifyNode determines node information from the given user.Info. // nodeName is the name of the Node API object associated with the user.Info, // and may be empty if a specific node cannot be determined. // isNode is true if the user.Info represents an identity issued to a node. NodeIdentity(user.Info) (nodeName string, isNode bool) }
NodeIdentifier determines node information from a given user
func NewDefaultNodeIdentifier ¶
func NewDefaultNodeIdentifier() NodeIdentifier
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
Click to show internal directories.
Click to hide internal directories.