UNPKG

kubernetes-models

Version:
20 lines (19 loc) 829 B
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base"; import { addSchema } from "../../_schemas/IoK8sApiAuthenticationV1TokenReview.mjs"; /** * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. */ export class TokenReview extends Model { constructor(data) { super({ apiVersion: TokenReview.apiVersion, kind: TokenReview.kind, ...data }); } } TokenReview.apiVersion = "authentication.k8s.io/v1"; TokenReview.kind = "TokenReview"; TokenReview.is = createTypeMetaGuard(TokenReview); setSchema(TokenReview, "io.k8s.api.authentication.v1.TokenReview", addSchema); export { TokenReview as IoK8sApiAuthenticationV1TokenReview };