Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCSelfSubjectReview ¶
func NewGRPCSelfSubjectReview(in *SelfSubjectReview) *authnv1grpc.SelfSubjectReview
NewGRPCSelfSubjectReview 基于 *SelfSubjectReview 创建 *authnv1grpc.SelfSubjectReview
func NewGRPCTokenRequest ¶
func NewGRPCTokenRequest(in *TokenRequest) *authnv1grpc.TokenRequest
NewGRPCTokenRequest 基于 *TokenRequest 创建 *authnv1grpc.TokenRequest
Types ¶
type SelfSubjectReview ¶
type SelfSubjectReview struct { metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Status SelfSubjectReviewStatus `json:"status,omitempty" yaml:"status,omitempty"` }
SelfSubjectReview 检查自身身份
func NewSelfSubjectReviewFromGRPC ¶
func NewSelfSubjectReviewFromGRPC(in *authnv1grpc.SelfSubjectReview) *SelfSubjectReview
NewSelfSubjectReviewFromGRPC 基于 *authnv1grpc.SelfSubjectReview 创建 *SelfSubjectReview
type SelfSubjectReviewStatus ¶
type SelfSubjectReviewStatus struct {
UserInfo UserInfo `json:"userInfo,omitempty" yaml:"userInfo,omitempty"`
}
SelfSubjectReviewStatus 检查自身身份状态
type TokenRequest ¶
type TokenRequest struct { metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Status TokenRequestStatus `json:"status,omitempty" yaml:"status,omitempty"` }
TokenRequest Token 请求
func NewTokenRequestFromGRPC ¶
func NewTokenRequestFromGRPC(in *authnv1grpc.TokenRequest) *TokenRequest
NewTokenRequestFromGRPC 基于 *authnv1grpc.TokenRequest 创建 *TokenRequest
type TokenRequestStatus ¶
type TokenRequestStatus struct {
Token string `json:"token,omitempty" yaml:"token,omitempty"`
}
TokenRequestStatus Token 请求状态
Click to show internal directories.
Click to hide internal directories.