Documentation
¶
Index ¶
- Variables
- type AuditRule
- type AuthzMode
- type AuthzRule
- func (*AuthzRule) Descriptor() ([]byte, []int)deprecated
- func (x *AuthzRule) GetAction() string
- func (x *AuthzRule) GetAudience() string
- func (x *AuthzRule) GetMode() AuthzMode
- func (x *AuthzRule) GetResource() string
- func (*AuthzRule) ProtoMessage()
- func (x *AuthzRule) ProtoReflect() protoreflect.Message
- func (x *AuthzRule) Reset()
- func (x *AuthzRule) String() string
- type CapabilityRule
- func (*CapabilityRule) Descriptor() ([]byte, []int)deprecated
- func (x *CapabilityRule) GetGroup() string
- func (x *CapabilityRule) GetName() string
- func (*CapabilityRule) ProtoMessage()
- func (x *CapabilityRule) ProtoReflect() protoreflect.Message
- func (x *CapabilityRule) Reset()
- func (x *CapabilityRule) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AuthzMode_name = map[int32]string{ 0: "AUTHZ_MODE_UNSPECIFIED", 1: "CHECK_ONLY", 2: "SCOPED_TOKEN", 3: "SELF_CHECK", } AuthzMode_value = map[string]int32{ "AUTHZ_MODE_UNSPECIFIED": 0, "CHECK_ONLY": 1, "SCOPED_TOKEN": 2, "SELF_CHECK": 3, } )
Enum value maps for AuthzMode.
View Source
var ( // optional aisphere.options.v1.AuthzRule authz = 51001; E_Authz = &file_api_aisphere_options_v1_authz_proto_extTypes[0] // optional aisphere.options.v1.AuditRule audit = 51002; E_Audit = &file_api_aisphere_options_v1_authz_proto_extTypes[1] // optional aisphere.options.v1.CapabilityRule capability = 51003; E_Capability = &file_api_aisphere_options_v1_authz_proto_extTypes[2] )
Extension fields to descriptorpb.MethodOptions.
View Source
var File_api_aisphere_options_v1_authz_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuditRule ¶
type AuditRule struct {
Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
Risk string `protobuf:"bytes,2,opt,name=risk,proto3" json:"risk,omitempty"`
// contains filtered or unexported fields
}
func (*AuditRule) Descriptor
deprecated
func (*AuditRule) ProtoMessage ¶
func (*AuditRule) ProtoMessage()
func (*AuditRule) ProtoReflect ¶
func (x *AuditRule) ProtoReflect() protoreflect.Message
type AuthzMode ¶
type AuthzMode int32
func (AuthzMode) Descriptor ¶
func (AuthzMode) Descriptor() protoreflect.EnumDescriptor
func (AuthzMode) EnumDescriptor
deprecated
func (AuthzMode) Number ¶
func (x AuthzMode) Number() protoreflect.EnumNumber
func (AuthzMode) Type ¶
func (AuthzMode) Type() protoreflect.EnumType
type AuthzRule ¶
type AuthzRule struct {
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"`
Mode AuthzMode `protobuf:"varint,4,opt,name=mode,proto3,enum=aisphere.options.v1.AuthzMode" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*AuthzRule) Descriptor
deprecated
func (*AuthzRule) GetAudience ¶
func (*AuthzRule) GetResource ¶
func (*AuthzRule) ProtoMessage ¶
func (*AuthzRule) ProtoMessage()
func (*AuthzRule) ProtoReflect ¶
func (x *AuthzRule) ProtoReflect() protoreflect.Message
type CapabilityRule ¶
type CapabilityRule struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
// contains filtered or unexported fields
}
func (*CapabilityRule) Descriptor
deprecated
func (*CapabilityRule) Descriptor() ([]byte, []int)
Deprecated: Use CapabilityRule.ProtoReflect.Descriptor instead.
func (*CapabilityRule) GetGroup ¶
func (x *CapabilityRule) GetGroup() string
func (*CapabilityRule) GetName ¶
func (x *CapabilityRule) GetName() string
func (*CapabilityRule) ProtoMessage ¶
func (*CapabilityRule) ProtoMessage()
func (*CapabilityRule) ProtoReflect ¶
func (x *CapabilityRule) ProtoReflect() protoreflect.Message
func (*CapabilityRule) Reset ¶
func (x *CapabilityRule) Reset()
func (*CapabilityRule) String ¶
func (x *CapabilityRule) String() string
Click to show internal directories.
Click to hide internal directories.