1 Star 0 Fork 0

wgq11225/gkeyauth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
policy.pb.go 18.13 KB
一键复制 编辑 原始数据 按行查看 历史
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.2
// protoc v3.20.3
// source: apps/policy/pb/policy.proto
package policy
import (
request "github.com/infraboard/mcube/http/request"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 鉴权请求:用户能不发操作该资源
type ValidatePermissionRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 用户名
// @gotags: json:"username" bson:"username"
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username" bson:"username"`
// 空间
// @gotags: json:"namespace" bson:"namespace"
Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
// 服务
// @gotags: json:"service" bson:"service"
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service" bson:"service"`
// 资源
// @gotags: json:"resource" bson:"resource"
Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource" bson:"resource"`
// 操作
// @gotags: json:"action" bson:"action"
Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action" bson:"action"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ValidatePermissionRequest) Reset() {
*x = ValidatePermissionRequest{}
mi := &file_apps_policy_pb_policy_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ValidatePermissionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ValidatePermissionRequest) ProtoMessage() {}
func (x *ValidatePermissionRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_policy_pb_policy_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ValidatePermissionRequest.ProtoReflect.Descriptor instead.
func (*ValidatePermissionRequest) Descriptor() ([]byte, []int) {
return file_apps_policy_pb_policy_proto_rawDescGZIP(), []int{0}
}
func (x *ValidatePermissionRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *ValidatePermissionRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *ValidatePermissionRequest) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *ValidatePermissionRequest) GetResource() string {
if x != nil {
return x.Resource
}
return ""
}
func (x *ValidatePermissionRequest) GetAction() string {
if x != nil {
return x.Action
}
return ""
}
type QueryPolicyRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 分页参数
// @gotags: json:"page"
Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"`
// 用户名
// @gotags: json:"username"
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username"`
// 空间
// @gotags: json:"namespace"
Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace"`
// 角色名称
// @gotags: json:"role"
Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryPolicyRequest) Reset() {
*x = QueryPolicyRequest{}
mi := &file_apps_policy_pb_policy_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryPolicyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryPolicyRequest) ProtoMessage() {}
func (x *QueryPolicyRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_policy_pb_policy_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QueryPolicyRequest.ProtoReflect.Descriptor instead.
func (*QueryPolicyRequest) Descriptor() ([]byte, []int) {
return file_apps_policy_pb_policy_proto_rawDescGZIP(), []int{1}
}
func (x *QueryPolicyRequest) GetPage() *request.PageRequest {
if x != nil {
return x.Page
}
return nil
}
func (x *QueryPolicyRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *QueryPolicyRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *QueryPolicyRequest) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
type PolicySet struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 总量
// @gotags: json:"id" bson:"_id"
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"id" bson:"_id"`
// 列表
// @gotags: json:"items" bson:"items"
Items []*Policy `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PolicySet) Reset() {
*x = PolicySet{}
mi := &file_apps_policy_pb_policy_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PolicySet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PolicySet) ProtoMessage() {}
func (x *PolicySet) ProtoReflect() protoreflect.Message {
mi := &file_apps_policy_pb_policy_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PolicySet.ProtoReflect.Descriptor instead.
func (*PolicySet) Descriptor() ([]byte, []int) {
return file_apps_policy_pb_policy_proto_rawDescGZIP(), []int{2}
}
func (x *PolicySet) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *PolicySet) GetItems() []*Policy {
if x != nil {
return x.Items
}
return nil
}
// 策略定义
type Policy struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 角色id
// @gotags: json:"id" bson:"_id"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
// 角色创建时间
// @gotags: json:"create_at" bson:"create_at"
CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
// 策略定义
// @gotags: json:"spec" bson:"spec"
Spec *CreatePolicyRequest `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec" bson:"spec"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Policy) Reset() {
*x = Policy{}
mi := &file_apps_policy_pb_policy_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Policy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Policy) ProtoMessage() {}
func (x *Policy) ProtoReflect() protoreflect.Message {
mi := &file_apps_policy_pb_policy_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Policy.ProtoReflect.Descriptor instead.
func (*Policy) Descriptor() ([]byte, []int) {
return file_apps_policy_pb_policy_proto_rawDescGZIP(), []int{3}
}
func (x *Policy) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Policy) GetCreateAt() int64 {
if x != nil {
return x.CreateAt
}
return 0
}
func (x *Policy) GetSpec() *CreatePolicyRequest {
if x != nil {
return x.Spec
}
return nil
}
// PRBAC 这里也可以基于ID操作,使用用户名的原因是没有传用户ID,只能使用用户名
type CreatePolicyRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 用户名
// @gotags: json:"username" bson:"username" validate:"required"
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username" bson:"username" validate:"required"`
// 角色名称
// @gotags: json:"role" bson:"role" validate:"required"
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role" bson:"role" validate:"required"`
// 空间
// @gotags: json:"namespace" bson:"namespace"
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreatePolicyRequest) Reset() {
*x = CreatePolicyRequest{}
mi := &file_apps_policy_pb_policy_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreatePolicyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreatePolicyRequest) ProtoMessage() {}
func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_policy_pb_policy_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreatePolicyRequest.ProtoReflect.Descriptor instead.
func (*CreatePolicyRequest) Descriptor() ([]byte, []int) {
return file_apps_policy_pb_policy_proto_rawDescGZIP(), []int{4}
}
func (x *CreatePolicyRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *CreatePolicyRequest) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *CreatePolicyRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
var File_apps_policy_pb_policy_proto protoreflect.FileDescriptor
var file_apps_policy_pb_policy_proto_rawDesc = []byte{
0x0a, 0x1b, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x70, 0x62,
0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67,
0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x2e,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61,
0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x70,
0x61, 0x67, 0x65, 0x2f, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3,
0x01, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08,
0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x70,
0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x66, 0x72,
0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x61, 0x67,
0x65, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70,
0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a,
0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c,
0x65, 0x22, 0x50, 0x0a, 0x09, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x12, 0x14,
0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74,
0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70,
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x05, 0x69, 0x74,
0x65, 0x6d, 0x73, 0x22, 0x6f, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x0e, 0x0a,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a,
0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x73, 0x70,
0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6b, 0x65, 0x79, 0x61,
0x75, 0x74, 0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04,
0x73, 0x70, 0x65, 0x63, 0x22, 0x63, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75,
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x32, 0xb0, 0x01, 0x0a, 0x03, 0x52, 0x50,
0x43, 0x12, 0x59, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x67, 0x6b, 0x65, 0x79, 0x61, 0x75,
0x74, 0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70,
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4e, 0x0a, 0x0b,
0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x23, 0x2e, 0x67, 0x6b,
0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1a, 0x2e, 0x67, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69,
0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x42, 0x29, 0x5a, 0x27,
0x67, 0x69, 0x74, 0x65, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x67, 0x71, 0x31, 0x31, 0x32,
0x32, 0x35, 0x2f, 0x67, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73,
0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_apps_policy_pb_policy_proto_rawDescOnce sync.Once
file_apps_policy_pb_policy_proto_rawDescData = file_apps_policy_pb_policy_proto_rawDesc
)
func file_apps_policy_pb_policy_proto_rawDescGZIP() []byte {
file_apps_policy_pb_policy_proto_rawDescOnce.Do(func() {
file_apps_policy_pb_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_policy_pb_policy_proto_rawDescData)
})
return file_apps_policy_pb_policy_proto_rawDescData
}
var file_apps_policy_pb_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_apps_policy_pb_policy_proto_goTypes = []any{
(*ValidatePermissionRequest)(nil), // 0: gkeyauth.policy.ValidatePermissionRequest
(*QueryPolicyRequest)(nil), // 1: gkeyauth.policy.QueryPolicyRequest
(*PolicySet)(nil), // 2: gkeyauth.policy.PolicySet
(*Policy)(nil), // 3: gkeyauth.policy.Policy
(*CreatePolicyRequest)(nil), // 4: gkeyauth.policy.CreatePolicyRequest
(*request.PageRequest)(nil), // 5: infraboard.mcube.page.PageRequest
}
var file_apps_policy_pb_policy_proto_depIdxs = []int32{
5, // 0: gkeyauth.policy.QueryPolicyRequest.page:type_name -> infraboard.mcube.page.PageRequest
3, // 1: gkeyauth.policy.PolicySet.items:type_name -> gkeyauth.policy.Policy
4, // 2: gkeyauth.policy.Policy.spec:type_name -> gkeyauth.policy.CreatePolicyRequest
0, // 3: gkeyauth.policy.RPC.ValidatePermission:input_type -> gkeyauth.policy.ValidatePermissionRequest
1, // 4: gkeyauth.policy.RPC.QueryPolicy:input_type -> gkeyauth.policy.QueryPolicyRequest
3, // 5: gkeyauth.policy.RPC.ValidatePermission:output_type -> gkeyauth.policy.Policy
2, // 6: gkeyauth.policy.RPC.QueryPolicy:output_type -> gkeyauth.policy.PolicySet
5, // [5:7] is the sub-list for method output_type
3, // [3:5] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_apps_policy_pb_policy_proto_init() }
func file_apps_policy_pb_policy_proto_init() {
if File_apps_policy_pb_policy_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_apps_policy_pb_policy_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_apps_policy_pb_policy_proto_goTypes,
DependencyIndexes: file_apps_policy_pb_policy_proto_depIdxs,
MessageInfos: file_apps_policy_pb_policy_proto_msgTypes,
}.Build()
File_apps_policy_pb_policy_proto = out.File
file_apps_policy_pb_policy_proto_rawDesc = nil
file_apps_policy_pb_policy_proto_goTypes = nil
file_apps_policy_pb_policy_proto_depIdxs = nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wgq11225/gkeyauth.git
git@gitee.com:wgq11225/gkeyauth.git
wgq11225
gkeyauth
gkeyauth
v0.0.8

搜索帮助