{"modulePath":"github.com/UnityTech/client-go","version":"v2.0.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package user\n\nPackage user contains utilities for dealing with simple user exchange in the auth packages. The user.Info interface defines an interface for exchanging that info.\n\n## Constants\n\n```go\nconst (\n\tSystemPrivilegedGroup = \"system:masters\"\n\tNodesGroup            = \"system:nodes\"\n\tAllUnauthenticated    = \"system:unauthenticated\"\n\tAllAuthenticated      = \"system:authenticated\"\n\n\tAnonymous     = \"system:anonymous\"\n\tAPIServerUser = \"system:apiserver\"\n)\n```\nwell-known user and group names\n\n## Types\n\n```go\ntype DefaultInfo struct {\n\tName   string\n\tUID    string\n\tGroups []string\n\tExtra  map[string][]string\n}\n```\nDefaultInfo provides a simple user information exchange object for components that implement the UserInfo interface.\n\n```go\nfunc (i *DefaultInfo) GetExtra() map[string][]string\n```\n\n```go\nfunc (i *DefaultInfo) GetGroups() []string\n```\n\n```go\nfunc (i *DefaultInfo) GetName() string\n```\n\n```go\nfunc (i *DefaultInfo) GetUID() string\n```\n\n```go\ntype Info interface {\n\t// GetName returns the name that uniquely identifies this user among all\n\t// other active users.\n\tGetName() string\n\t// GetUID returns a unique value for a particular user that will change\n\t// if the user is removed from the system and another user is added with\n\t// the same name.\n\tGetUID() string\n\t// GetGroups returns the names of the groups the user is a member of\n\tGetGroups() []string\n\n\t// GetExtra can contain any additional information that the authenticator\n\t// thought was interesting.  One example would be scopes on a token.\n\t// Keys in this map should be namespaced to the authenticator or\n\t// authenticator/authorizer pair making use of them.\n\t// For instance: \"example.org/foo\" instead of \"foo\"\n\t// This is a map[string][]string because it needs to be serializeable into\n\t// a SubjectAccessReviewSpec.authorization.k8s.io for proper authorization\n\t// delegation flows\n\t// In order to faithfully round-trip through an impersonation flow, these keys\n\t// MUST be lowercase.\n\tGetExtra() map[string][]string\n}\n```\nInfo describes a user that has been authenticated to the system.\n\n","path":"github.com/UnityTech/client-go/pkg/auth/user","name":"user","synopsis":"Package user contains utilities for dealing with simple user exchange in the auth packages.","isRedistributable":true}
