optionsv1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use AuditRule.ProtoReflect.Descriptor instead.

func (*AuditRule) GetEvent

func (x *AuditRule) GetEvent() string

func (*AuditRule) GetRisk

func (x *AuditRule) GetRisk() string

func (*AuditRule) ProtoMessage

func (*AuditRule) ProtoMessage()

func (*AuditRule) ProtoReflect

func (x *AuditRule) ProtoReflect() protoreflect.Message

func (*AuditRule) Reset

func (x *AuditRule) Reset()

func (*AuditRule) String

func (x *AuditRule) String() string

type AuthzMode

type AuthzMode int32
const (
	AuthzMode_AUTHZ_MODE_UNSPECIFIED AuthzMode = 0
	AuthzMode_CHECK_ONLY             AuthzMode = 1
	AuthzMode_SCOPED_TOKEN           AuthzMode = 2
	AuthzMode_SELF_CHECK             AuthzMode = 3
)

func (AuthzMode) Descriptor

func (AuthzMode) Descriptor() protoreflect.EnumDescriptor

func (AuthzMode) Enum

func (x AuthzMode) Enum() *AuthzMode

func (AuthzMode) EnumDescriptor deprecated

func (AuthzMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthzMode.Descriptor instead.

func (AuthzMode) Number

func (x AuthzMode) Number() protoreflect.EnumNumber

func (AuthzMode) String

func (x AuthzMode) String() string

func (AuthzMode) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use AuthzRule.ProtoReflect.Descriptor instead.

func (*AuthzRule) GetAction

func (x *AuthzRule) GetAction() string

func (*AuthzRule) GetAudience

func (x *AuthzRule) GetAudience() string

func (*AuthzRule) GetMode

func (x *AuthzRule) GetMode() AuthzMode

func (*AuthzRule) GetResource

func (x *AuthzRule) GetResource() string

func (*AuthzRule) ProtoMessage

func (*AuthzRule) ProtoMessage()

func (*AuthzRule) ProtoReflect

func (x *AuthzRule) ProtoReflect() protoreflect.Message

func (*AuthzRule) Reset

func (x *AuthzRule) Reset()

func (*AuthzRule) String

func (x *AuthzRule) String() string

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

Jump to

Keyboard shortcuts

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