561 lines
19 KiB
Go
561 lines
19 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc (unknown)
|
|
// source: conf/v1/kratos_conf_authz.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
_ "google.golang.org/protobuf/types/known/durationpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 Authorization struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
Casbin *Authorization_Casbin `protobuf:"bytes,2,opt,name=casbin,proto3" json:"casbin,omitempty"` // casbin
|
|
Opa *Authorization_OPA `protobuf:"bytes,3,opt,name=opa,proto3" json:"opa,omitempty"` // OPA
|
|
Zanzibar *Authorization_Zanzibar `protobuf:"bytes,4,opt,name=zanzibar,proto3" json:"zanzibar,omitempty"` // zanzibar
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authorization) Reset() {
|
|
*x = Authorization{}
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authorization) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authorization) ProtoMessage() {}
|
|
|
|
func (x *Authorization) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_authz_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 Authorization.ProtoReflect.Descriptor instead.
|
|
func (*Authorization) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Authorization) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization) GetCasbin() *Authorization_Casbin {
|
|
if x != nil {
|
|
return x.Casbin
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Authorization) GetOpa() *Authorization_OPA {
|
|
if x != nil {
|
|
return x.Opa
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Authorization) GetZanzibar() *Authorization_Zanzibar {
|
|
if x != nil {
|
|
return x.Zanzibar
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Authorization_Casbin struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ModelPath *string `protobuf:"bytes,1,opt,name=model_path,json=modelPath,proto3,oneof" json:"model_path,omitempty"` // casbin 模型文件路径
|
|
PolicyPath *string `protobuf:"bytes,2,opt,name=policy_path,json=policyPath,proto3,oneof" json:"policy_path,omitempty"` // casbin 策略文件路径
|
|
Policies []string `protobuf:"bytes,10,rep,name=policies,proto3" json:"policies,omitempty"` // 策略列表
|
|
Model *string `protobuf:"bytes,11,opt,name=model,proto3,oneof" json:"model,omitempty"` // 模型内容
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authorization_Casbin) Reset() {
|
|
*x = Authorization_Casbin{}
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authorization_Casbin) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authorization_Casbin) ProtoMessage() {}
|
|
|
|
func (x *Authorization_Casbin) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_authz_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 Authorization_Casbin.ProtoReflect.Descriptor instead.
|
|
func (*Authorization_Casbin) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
func (x *Authorization_Casbin) GetModelPath() string {
|
|
if x != nil && x.ModelPath != nil {
|
|
return *x.ModelPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Casbin) GetPolicyPath() string {
|
|
if x != nil && x.PolicyPath != nil {
|
|
return *x.PolicyPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Casbin) GetPolicies() []string {
|
|
if x != nil {
|
|
return x.Policies
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Authorization_Casbin) GetModel() string {
|
|
if x != nil && x.Model != nil {
|
|
return *x.Model
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Authorization_OPA struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Policies map[string]string `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // OPA 策略列表
|
|
Roles map[string]*Authorization_OPA_RoleActions `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authorization_OPA) Reset() {
|
|
*x = Authorization_OPA{}
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authorization_OPA) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authorization_OPA) ProtoMessage() {}
|
|
|
|
func (x *Authorization_OPA) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_authz_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 Authorization_OPA.ProtoReflect.Descriptor instead.
|
|
func (*Authorization_OPA) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescGZIP(), []int{0, 1}
|
|
}
|
|
|
|
func (x *Authorization_OPA) GetPolicies() map[string]string {
|
|
if x != nil {
|
|
return x.Policies
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Authorization_OPA) GetRoles() map[string]*Authorization_OPA_RoleActions {
|
|
if x != nil {
|
|
return x.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Authorization_Zanzibar struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // zanzibar 类型
|
|
Keto *Authorization_Zanzibar_Keto `protobuf:"bytes,2,opt,name=keto,proto3,oneof" json:"keto,omitempty"` // Keto 配置
|
|
OpenFga *Authorization_Zanzibar_OpenFga `protobuf:"bytes,3,opt,name=open_fga,json=openFga,proto3,oneof" json:"open_fga,omitempty"` // OpenFGA 配置
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar) Reset() {
|
|
*x = Authorization_Zanzibar{}
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authorization_Zanzibar) ProtoMessage() {}
|
|
|
|
func (x *Authorization_Zanzibar) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_authz_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 Authorization_Zanzibar.ProtoReflect.Descriptor instead.
|
|
func (*Authorization_Zanzibar) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescGZIP(), []int{0, 2}
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar) GetKeto() *Authorization_Zanzibar_Keto {
|
|
if x != nil {
|
|
return x.Keto
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar) GetOpenFga() *Authorization_Zanzibar_OpenFga {
|
|
if x != nil {
|
|
return x.OpenFga
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Authorization_OPA_RoleActions struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Actions []string `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` // 角色对应的操作列表 {
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authorization_OPA_RoleActions) Reset() {
|
|
*x = Authorization_OPA_RoleActions{}
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authorization_OPA_RoleActions) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authorization_OPA_RoleActions) ProtoMessage() {}
|
|
|
|
func (x *Authorization_OPA_RoleActions) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_authz_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 Authorization_OPA_RoleActions.ProtoReflect.Descriptor instead.
|
|
func (*Authorization_OPA_RoleActions) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescGZIP(), []int{0, 1, 0}
|
|
}
|
|
|
|
func (x *Authorization_OPA_RoleActions) GetActions() []string {
|
|
if x != nil {
|
|
return x.Actions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Authorization_Zanzibar_Keto struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WriteUrl string `protobuf:"bytes,1,opt,name=write_url,json=writeUrl,proto3" json:"write_url,omitempty"` // 写入 URL
|
|
ReadUrl string `protobuf:"bytes,2,opt,name=read_url,json=readUrl,proto3" json:"read_url,omitempty"` // 读取 URL
|
|
UseGrpc bool `protobuf:"varint,3,opt,name=use_grpc,json=useGrpc,proto3" json:"use_grpc,omitempty"` // 是否使用 gRPC
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_Keto) Reset() {
|
|
*x = Authorization_Zanzibar_Keto{}
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_Keto) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authorization_Zanzibar_Keto) ProtoMessage() {}
|
|
|
|
func (x *Authorization_Zanzibar_Keto) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[7]
|
|
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 Authorization_Zanzibar_Keto.ProtoReflect.Descriptor instead.
|
|
func (*Authorization_Zanzibar_Keto) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescGZIP(), []int{0, 2, 0}
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_Keto) GetWriteUrl() string {
|
|
if x != nil {
|
|
return x.WriteUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_Keto) GetReadUrl() string {
|
|
if x != nil {
|
|
return x.ReadUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_Keto) GetUseGrpc() bool {
|
|
if x != nil {
|
|
return x.UseGrpc
|
|
}
|
|
return false
|
|
}
|
|
|
|
type Authorization_Zanzibar_OpenFga struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ApiUrl string `protobuf:"bytes,1,opt,name=api_url,json=apiUrl,proto3" json:"api_url,omitempty"` // OpenFGA API URL
|
|
StoreId string `protobuf:"bytes,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` // OpenFGA 存储 ID
|
|
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // OpenFGA 访问令牌
|
|
ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // OpenFGA 客户端 ID
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_OpenFga) Reset() {
|
|
*x = Authorization_Zanzibar_OpenFga{}
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_OpenFga) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authorization_Zanzibar_OpenFga) ProtoMessage() {}
|
|
|
|
func (x *Authorization_Zanzibar_OpenFga) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[8]
|
|
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 Authorization_Zanzibar_OpenFga.ProtoReflect.Descriptor instead.
|
|
func (*Authorization_Zanzibar_OpenFga) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescGZIP(), []int{0, 2, 1}
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_OpenFga) GetApiUrl() string {
|
|
if x != nil {
|
|
return x.ApiUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_OpenFga) GetStoreId() string {
|
|
if x != nil {
|
|
return x.StoreId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_OpenFga) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authorization_Zanzibar_OpenFga) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_conf_v1_kratos_conf_authz_proto protoreflect.FileDescriptor
|
|
|
|
const file_conf_v1_kratos_conf_authz_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1fconf/v1/kratos_conf_authz.proto\x12\x04conf\x1a\x1egoogle/protobuf/duration.proto\"\xc1\b\n" +
|
|
"\rAuthorization\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x122\n" +
|
|
"\x06casbin\x18\x02 \x01(\v2\x1a.conf.Authorization.CasbinR\x06casbin\x12)\n" +
|
|
"\x03opa\x18\x03 \x01(\v2\x17.conf.Authorization.OPAR\x03opa\x128\n" +
|
|
"\bzanzibar\x18\x04 \x01(\v2\x1c.conf.Authorization.ZanzibarR\bzanzibar\x1a\xb2\x01\n" +
|
|
"\x06Casbin\x12\"\n" +
|
|
"\n" +
|
|
"model_path\x18\x01 \x01(\tH\x00R\tmodelPath\x88\x01\x01\x12$\n" +
|
|
"\vpolicy_path\x18\x02 \x01(\tH\x01R\n" +
|
|
"policyPath\x88\x01\x01\x12\x1a\n" +
|
|
"\bpolicies\x18\n" +
|
|
" \x03(\tR\bpolicies\x12\x19\n" +
|
|
"\x05model\x18\v \x01(\tH\x02R\x05model\x88\x01\x01B\r\n" +
|
|
"\v_model_pathB\x0e\n" +
|
|
"\f_policy_pathB\b\n" +
|
|
"\x06_model\x1a\xc7\x02\n" +
|
|
"\x03OPA\x12A\n" +
|
|
"\bpolicies\x18\x01 \x03(\v2%.conf.Authorization.OPA.PoliciesEntryR\bpolicies\x128\n" +
|
|
"\x05roles\x18\x02 \x03(\v2\".conf.Authorization.OPA.RolesEntryR\x05roles\x1a'\n" +
|
|
"\vRoleActions\x12\x18\n" +
|
|
"\aactions\x18\x01 \x03(\tR\aactions\x1a;\n" +
|
|
"\rPoliciesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a]\n" +
|
|
"\n" +
|
|
"RolesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x129\n" +
|
|
"\x05value\x18\x02 \x01(\v2#.conf.Authorization.OPA.RoleActionsR\x05value:\x028\x01\x1a\x83\x03\n" +
|
|
"\bZanzibar\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12:\n" +
|
|
"\x04keto\x18\x02 \x01(\v2!.conf.Authorization.Zanzibar.KetoH\x00R\x04keto\x88\x01\x01\x12D\n" +
|
|
"\bopen_fga\x18\x03 \x01(\v2$.conf.Authorization.Zanzibar.OpenFgaH\x01R\aopenFga\x88\x01\x01\x1aY\n" +
|
|
"\x04Keto\x12\x1b\n" +
|
|
"\twrite_url\x18\x01 \x01(\tR\bwriteUrl\x12\x19\n" +
|
|
"\bread_url\x18\x02 \x01(\tR\areadUrl\x12\x19\n" +
|
|
"\buse_grpc\x18\x03 \x01(\bR\auseGrpc\x1ap\n" +
|
|
"\aOpenFga\x12\x17\n" +
|
|
"\aapi_url\x18\x01 \x01(\tR\x06apiUrl\x12\x19\n" +
|
|
"\bstore_id\x18\x02 \x01(\tR\astoreId\x12\x14\n" +
|
|
"\x05token\x18\x03 \x01(\tR\x05token\x12\x1b\n" +
|
|
"\tclient_id\x18\x04 \x01(\tR\bclientIdB\a\n" +
|
|
"\x05_ketoB\v\n" +
|
|
"\t_open_fgaB\x86\x01\n" +
|
|
"\bcom.confB\x14KratosConfAuthzProtoP\x01Z4github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1\xa2\x02\x03CXX\xaa\x02\x04Conf\xca\x02\x04Conf\xe2\x02\x10Conf\\GPBMetadata\xea\x02\x04Confb\x06proto3"
|
|
|
|
var (
|
|
file_conf_v1_kratos_conf_authz_proto_rawDescOnce sync.Once
|
|
file_conf_v1_kratos_conf_authz_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_conf_v1_kratos_conf_authz_proto_rawDescGZIP() []byte {
|
|
file_conf_v1_kratos_conf_authz_proto_rawDescOnce.Do(func() {
|
|
file_conf_v1_kratos_conf_authz_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authz_proto_rawDesc), len(file_conf_v1_kratos_conf_authz_proto_rawDesc)))
|
|
})
|
|
return file_conf_v1_kratos_conf_authz_proto_rawDescData
|
|
}
|
|
|
|
var file_conf_v1_kratos_conf_authz_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
var file_conf_v1_kratos_conf_authz_proto_goTypes = []any{
|
|
(*Authorization)(nil), // 0: conf.Authorization
|
|
(*Authorization_Casbin)(nil), // 1: conf.Authorization.Casbin
|
|
(*Authorization_OPA)(nil), // 2: conf.Authorization.OPA
|
|
(*Authorization_Zanzibar)(nil), // 3: conf.Authorization.Zanzibar
|
|
(*Authorization_OPA_RoleActions)(nil), // 4: conf.Authorization.OPA.RoleActions
|
|
nil, // 5: conf.Authorization.OPA.PoliciesEntry
|
|
nil, // 6: conf.Authorization.OPA.RolesEntry
|
|
(*Authorization_Zanzibar_Keto)(nil), // 7: conf.Authorization.Zanzibar.Keto
|
|
(*Authorization_Zanzibar_OpenFga)(nil), // 8: conf.Authorization.Zanzibar.OpenFga
|
|
}
|
|
var file_conf_v1_kratos_conf_authz_proto_depIdxs = []int32{
|
|
1, // 0: conf.Authorization.casbin:type_name -> conf.Authorization.Casbin
|
|
2, // 1: conf.Authorization.opa:type_name -> conf.Authorization.OPA
|
|
3, // 2: conf.Authorization.zanzibar:type_name -> conf.Authorization.Zanzibar
|
|
5, // 3: conf.Authorization.OPA.policies:type_name -> conf.Authorization.OPA.PoliciesEntry
|
|
6, // 4: conf.Authorization.OPA.roles:type_name -> conf.Authorization.OPA.RolesEntry
|
|
7, // 5: conf.Authorization.Zanzibar.keto:type_name -> conf.Authorization.Zanzibar.Keto
|
|
8, // 6: conf.Authorization.Zanzibar.open_fga:type_name -> conf.Authorization.Zanzibar.OpenFga
|
|
4, // 7: conf.Authorization.OPA.RolesEntry.value:type_name -> conf.Authorization.OPA.RoleActions
|
|
8, // [8:8] is the sub-list for method output_type
|
|
8, // [8:8] is the sub-list for method input_type
|
|
8, // [8:8] is the sub-list for extension type_name
|
|
8, // [8:8] is the sub-list for extension extendee
|
|
0, // [0:8] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_conf_v1_kratos_conf_authz_proto_init() }
|
|
func file_conf_v1_kratos_conf_authz_proto_init() {
|
|
if File_conf_v1_kratos_conf_authz_proto != nil {
|
|
return
|
|
}
|
|
file_conf_v1_kratos_conf_authz_proto_msgTypes[1].OneofWrappers = []any{}
|
|
file_conf_v1_kratos_conf_authz_proto_msgTypes[3].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authz_proto_rawDesc), len(file_conf_v1_kratos_conf_authz_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 9,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_conf_v1_kratos_conf_authz_proto_goTypes,
|
|
DependencyIndexes: file_conf_v1_kratos_conf_authz_proto_depIdxs,
|
|
MessageInfos: file_conf_v1_kratos_conf_authz_proto_msgTypes,
|
|
}.Build()
|
|
File_conf_v1_kratos_conf_authz_proto = out.File
|
|
file_conf_v1_kratos_conf_authz_proto_goTypes = nil
|
|
file_conf_v1_kratos_conf_authz_proto_depIdxs = nil
|
|
}
|