{"modulePath":"github.com/UnityTech/client-go","version":"v4.0.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package authentication\n\n\\+groupName=authentication.k8s.io\n\n## Constants\n\n```go\nconst (\n\t// ImpersonateUserHeader is used to impersonate a particular user during an API server request\n\tImpersonateUserHeader = \"Impersonate-User\"\n\n\t// ImpersonateGroupHeader is used to impersonate a particular group during an API server request.\n\t// It can be repeated multiplied times for multiple groups.\n\tImpersonateGroupHeader = \"Impersonate-Group\"\n\n\t// ImpersonateUserExtraHeaderPrefix is a prefix for any header used to impersonate an entry in the\n\t// extra map[string][]string for user.Info.  The key will be every after the prefix.\n\t// It can be repeated multiplied times for multiple map keys and the same key can be repeated multiple\n\t// times to have multiple elements in the slice under a single key\n\tImpersonateUserExtraHeaderPrefix = \"Impersonate-Extra-\"\n)\n```\n\n```go\nconst GroupName = \"authentication.k8s.io\"\n```\nGroupName is the group name use in this package\n\n## Variables\n\n```go\nvar (\n\tSchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)\n\tAddToScheme   = SchemeBuilder.AddToScheme\n)\n```\n\n```go\nvar SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}\n```\nSchemeGroupVersion is group version used to register these objects\n\n## Functions\n\n```go\nfunc DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_authentication\\_TokenReview is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_authentication_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_authentication\\_TokenReviewSpec is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_authentication_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_authentication\\_TokenReviewStatus is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_authentication\\_UserInfo is an autogenerated deepcopy function.\n\n```go\nfunc Kind(kind string) schema.GroupKind\n```\nKind takes an unqualified kind and returns a Group qualified GroupKind\n\n```go\nfunc RegisterDeepCopies(scheme *runtime.Scheme) error\n```\nRegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.\n\n```go\nfunc Resource(resource string) schema.GroupResource\n```\nResource takes an unqualified resource and returns a Group qualified GroupResource\n\n## Types\n\n```go\ntype ExtraValue []string\n```\nExtraValue masks the value so protobuf can generate\n\n```go\ntype TokenReview struct {\n\tmetav1.TypeMeta\n\t// ObjectMeta fulfills the metav1.ObjectMetaAccessor interface so that the stock\n\t// REST handler paths work\n\tmetav1.ObjectMeta\n\n\t// Spec holds information about the request being evaluated\n\tSpec TokenReviewSpec\n\n\t// Status is filled in by the server and indicates whether the request can be authenticated.\n\tStatus TokenReviewStatus\n}\n```\nTokenReview attempts to authenticate a token to a known user.\n\n```go\ntype TokenReviewSpec struct {\n\t// Token is the opaque bearer token.\n\tToken string\n}\n```\nTokenReviewSpec is a description of the token authentication request.\n\n```go\ntype TokenReviewStatus struct {\n\t// Authenticated indicates that the token was associated with a known user.\n\tAuthenticated bool\n\t// User is the UserInfo associated with the provided token.\n\tUser UserInfo\n\t// Error indicates that the token couldn't be checked\n\tError string\n}\n```\nTokenReviewStatus is the result of the token authentication request. This type mirrors the authentication.Token interface\n\n```go\ntype UserInfo struct {\n\t// The name that uniquely identifies this user among all active users.\n\tUsername string\n\t// A unique value that identifies this user across time. If this user is\n\t// deleted and another user by the same name is added, they will have\n\t// different UIDs.\n\tUID string\n\t// The names of groups this user is a part of.\n\tGroups []string\n\t// Any additional information provided by the authenticator.\n\tExtra map[string]ExtraValue\n}\n```\nUserInfo holds the information about the user needed to implement the user.Info interface.\n\n","path":"github.com/UnityTech/client-go/pkg/apis/authentication","name":"authentication","synopsis":"+groupName=authentication.k8s.io","isRedistributable":true}
