kubernetes-models
Version:
39 lines (38 loc) • 2.03 kB
TypeScript
import { IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta";
import { IIoK8sApiAuthenticationV1TokenReviewSpec } from "./TokenReviewSpec";
import { IIoK8sApiAuthenticationV1TokenReviewStatus } from "./TokenReviewStatus";
import { ModelData, TypeMeta, Model } from "@kubernetes-models/base";
/**
* 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 interface ITokenReview extends TypeMeta {
"apiVersion": "authentication.k8s.io/v1";
"kind": "TokenReview";
/**
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*/
"metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta;
/**
* Spec holds information about the request being evaluated
*/
"spec": IIoK8sApiAuthenticationV1TokenReviewSpec;
/**
* Status is filled in by the server and indicates whether the request can be authenticated.
*/
"status"?: IIoK8sApiAuthenticationV1TokenReviewStatus;
}
/**
* 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 declare class TokenReview extends Model<ITokenReview> implements ITokenReview {
"apiVersion": ITokenReview["apiVersion"];
"kind": ITokenReview["kind"];
"metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta;
"spec": IIoK8sApiAuthenticationV1TokenReviewSpec;
"status"?: IIoK8sApiAuthenticationV1TokenReviewStatus;
static apiVersion: ITokenReview["apiVersion"];
static kind: ITokenReview["kind"];
static is: import("@kubernetes-models/base").TypeMetaGuard<ITokenReview>;
constructor(data?: ModelData<ITokenReview>);
}
export { ITokenReview as IIoK8sApiAuthenticationV1TokenReview, TokenReview as IoK8sApiAuthenticationV1TokenReview };