accessv1

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Exposure_name = map[int32]string{
		0: "EXPOSURE_UNSPECIFIED",
		1: "PUBLIC",
		2: "AUTHENTICATED",
		3: "AUTHORIZED",
		4: "INTERNAL",
		5: "SYSTEM",
	}
	Exposure_value = map[string]int32{
		"EXPOSURE_UNSPECIFIED": 0,
		"PUBLIC":               1,
		"AUTHENTICATED":        2,
		"AUTHORIZED":           3,
		"INTERNAL":             4,
		"SYSTEM":               5,
	}
)

Enum value maps for Exposure.

View Source
var (
	Backend_name = map[int32]string{
		0: "BACKEND_UNSPECIFIED",
		1: "MEMORY",
		2: "REDIS",
		3: "EXTERNAL",
	}
	Backend_value = map[string]int32{
		"BACKEND_UNSPECIFIED": 0,
		"MEMORY":              1,
		"REDIS":               2,
		"EXTERNAL":            3,
	}
)

Enum value maps for Backend.

View Source
var (
	// optional aisphere.access.v1.AccessPolicy policy = 51010;
	E_Policy = &file_api_aisphere_access_v1_access_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_api_aisphere_access_v1_access_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessPolicy

type AccessPolicy struct {
	Exposure  Exposure   `protobuf:"varint,1,opt,name=exposure,proto3,enum=aisphere.access.v1.Exposure" json:"exposure,omitempty"`
	Authz     *Authz     `protobuf:"bytes,2,opt,name=authz,proto3" json:"authz,omitempty"`
	Audit     *Audit     `protobuf:"bytes,3,opt,name=audit,proto3" json:"audit,omitempty"`
	RateLimit *RateLimit `protobuf:"bytes,4,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"`
	Breaker   *Breaker   `protobuf:"bytes,5,opt,name=breaker,proto3" json:"breaker,omitempty"`
	Reason    string     `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

AccessPolicy is Kernel's contract-level gateway policy for an exposed RPC. Every externally exposed RPC should declare exactly one policy. Public and system endpoints are explicit policies, not silent bypasses.

func (*AccessPolicy) Descriptor deprecated

func (*AccessPolicy) Descriptor() ([]byte, []int)

Deprecated: Use AccessPolicy.ProtoReflect.Descriptor instead.

func (*AccessPolicy) GetAudit

func (x *AccessPolicy) GetAudit() *Audit

func (*AccessPolicy) GetAuthz

func (x *AccessPolicy) GetAuthz() *Authz

func (*AccessPolicy) GetBreaker

func (x *AccessPolicy) GetBreaker() *Breaker

func (*AccessPolicy) GetExposure

func (x *AccessPolicy) GetExposure() Exposure

func (*AccessPolicy) GetRateLimit

func (x *AccessPolicy) GetRateLimit() *RateLimit

func (*AccessPolicy) GetReason

func (x *AccessPolicy) GetReason() string

func (*AccessPolicy) ProtoMessage

func (*AccessPolicy) ProtoMessage()

func (*AccessPolicy) ProtoReflect

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

func (*AccessPolicy) Reset

func (x *AccessPolicy) Reset()

func (*AccessPolicy) String

func (x *AccessPolicy) String() string

type Audit

type Audit struct {
	Enabled bool   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Event   string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	Risk    string `protobuf:"bytes,3,opt,name=risk,proto3" json:"risk,omitempty"`
	// contains filtered or unexported fields
}

func (*Audit) Descriptor deprecated

func (*Audit) Descriptor() ([]byte, []int)

Deprecated: Use Audit.ProtoReflect.Descriptor instead.

func (*Audit) GetEnabled

func (x *Audit) GetEnabled() bool

func (*Audit) GetEvent

func (x *Audit) GetEvent() string

func (*Audit) GetRisk

func (x *Audit) GetRisk() string

func (*Audit) ProtoMessage

func (*Audit) ProtoMessage()

func (*Audit) ProtoReflect

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

func (*Audit) Reset

func (x *Audit) Reset()

func (*Audit) String

func (x *Audit) String() string

type Authz

type Authz 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     v1.AuthzMode `protobuf:"varint,4,opt,name=mode,proto3,enum=aisphere.options.v1.AuthzMode" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*Authz) Descriptor deprecated

func (*Authz) Descriptor() ([]byte, []int)

Deprecated: Use Authz.ProtoReflect.Descriptor instead.

func (*Authz) GetAction

func (x *Authz) GetAction() string

func (*Authz) GetAudience

func (x *Authz) GetAudience() string

func (*Authz) GetMode

func (x *Authz) GetMode() v1.AuthzMode

func (*Authz) GetResource

func (x *Authz) GetResource() string

func (*Authz) ProtoMessage

func (*Authz) ProtoMessage()

func (*Authz) ProtoReflect

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

func (*Authz) Reset

func (x *Authz) Reset()

func (*Authz) String

func (x *Authz) String() string

type Backend

type Backend int32
const (
	Backend_BACKEND_UNSPECIFIED Backend = 0
	Backend_MEMORY              Backend = 1
	Backend_REDIS               Backend = 2
	Backend_EXTERNAL            Backend = 3
)

func (Backend) Descriptor

func (Backend) Descriptor() protoreflect.EnumDescriptor

func (Backend) Enum

func (x Backend) Enum() *Backend

func (Backend) EnumDescriptor deprecated

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

Deprecated: Use Backend.Descriptor instead.

func (Backend) Number

func (x Backend) Number() protoreflect.EnumNumber

func (Backend) String

func (x Backend) String() string

func (Backend) Type

func (Backend) Type() protoreflect.EnumType

type Breaker

type Breaker struct {
	Enabled bool   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Breaker) Descriptor deprecated

func (*Breaker) Descriptor() ([]byte, []int)

Deprecated: Use Breaker.ProtoReflect.Descriptor instead.

func (*Breaker) GetEnabled

func (x *Breaker) GetEnabled() bool

func (*Breaker) GetName

func (x *Breaker) GetName() string

func (*Breaker) ProtoMessage

func (*Breaker) ProtoMessage()

func (*Breaker) ProtoReflect

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

func (*Breaker) Reset

func (x *Breaker) Reset()

func (*Breaker) String

func (x *Breaker) String() string

type Exposure

type Exposure int32
const (
	Exposure_EXPOSURE_UNSPECIFIED Exposure = 0
	Exposure_PUBLIC               Exposure = 1
	Exposure_AUTHENTICATED        Exposure = 2
	Exposure_AUTHORIZED           Exposure = 3
	Exposure_INTERNAL             Exposure = 4
	Exposure_SYSTEM               Exposure = 5
)

func (Exposure) Descriptor

func (Exposure) Descriptor() protoreflect.EnumDescriptor

func (Exposure) Enum

func (x Exposure) Enum() *Exposure

func (Exposure) EnumDescriptor deprecated

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

Deprecated: Use Exposure.Descriptor instead.

func (Exposure) Number

func (x Exposure) Number() protoreflect.EnumNumber

func (Exposure) String

func (x Exposure) String() string

func (Exposure) Type

type RateLimit

type RateLimit struct {
	Enabled bool    `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Key     string  `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Qps     float64 `protobuf:"fixed64,3,opt,name=qps,proto3" json:"qps,omitempty"`
	Burst   int32   `protobuf:"varint,4,opt,name=burst,proto3" json:"burst,omitempty"`
	Backend Backend `protobuf:"varint,5,opt,name=backend,proto3,enum=aisphere.access.v1.Backend" json:"backend,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLimit) Descriptor deprecated

func (*RateLimit) Descriptor() ([]byte, []int)

Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.

func (*RateLimit) GetBackend

func (x *RateLimit) GetBackend() Backend

func (*RateLimit) GetBurst

func (x *RateLimit) GetBurst() int32

func (*RateLimit) GetEnabled

func (x *RateLimit) GetEnabled() bool

func (*RateLimit) GetKey

func (x *RateLimit) GetKey() string

func (*RateLimit) GetQps

func (x *RateLimit) GetQps() float64

func (*RateLimit) ProtoMessage

func (*RateLimit) ProtoMessage()

func (*RateLimit) ProtoReflect

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

func (*RateLimit) Reset

func (x *RateLimit) Reset()

func (*RateLimit) String

func (x *RateLimit) String() string

Jump to

Keyboard shortcuts

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