nodeidentifier

package
v1.31.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 136

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeIdentifier

type NodeIdentifier interface {
	// NodeIdentity 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL