v1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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 请求状态

type UserInfo

type UserInfo struct {
	Username string `json:"username,omitempty" yaml:"username,omitempty"`
}

UserInfo 用户信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL