Documentation ¶
Overview ¶
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Code generated by protoc-json-shim. DO NOT EDIT.
Index ¶
- Variables
- type OperationCategory
- func (OperationCategory) Descriptor() protoreflect.EnumDescriptor
- func (x OperationCategory) Enum() *OperationCategory
- func (OperationCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationCategory) Number() protoreflect.EnumNumber
- func (x OperationCategory) String() string
- func (OperationCategory) Type() protoreflect.EnumType
- type OperationType
- func (OperationType) Descriptor() protoreflect.EnumDescriptor
- func (x OperationType) Enum() *OperationType
- func (OperationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationType) Number() protoreflect.EnumNumber
- func (x OperationType) String() string
- func (OperationType) Type() protoreflect.EnumType
- type Spec
- func (in *Spec) DeepCopy() *Spec
- func (in *Spec) DeepCopyInterface() interface{}
- func (in *Spec) DeepCopyInto(out *Spec)
- func (*Spec) Descriptor() ([]byte, []int)deprecated
- func (x *Spec) GetOperationCategory() OperationCategory
- func (x *Spec) GetOperationType() OperationType
- func (msg *Spec) MarshalBinary() ([]byte, error)
- func (this *Spec) MarshalJSON() ([]byte, error)
- func (*Spec) ProtoMessage()
- func (x *Spec) ProtoReflect() protoreflect.Message
- func (x *Spec) Reset()
- func (x *Spec) String() string
- func (msg *Spec) UnmarshalBinary(b []byte) error
- func (this *Spec) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( OperationType_name = map[int32]string{ 0: "OPERATION_TYPE_UNSPECIFIED", 1: "OPERATION_TYPE_EXEMPT", 2: "OPERATION_TYPE_READ", 3: "OPERATION_TYPE_WRITE", } OperationType_value = map[string]int32{ "OPERATION_TYPE_UNSPECIFIED": 0, "OPERATION_TYPE_EXEMPT": 1, "OPERATION_TYPE_READ": 2, "OPERATION_TYPE_WRITE": 3, } )
Enum value maps for OperationType.
var ( OperationCategory_name = map[int32]string{ 0: "OPERATION_CATEGORY_UNSPECIFIED", 1: "OPERATION_CATEGORY_ACL", 2: "OPERATION_CATEGORY_PEER_STREAM", 3: "OPERATION_CATEGORY_CONNECT_CA", 4: "OPERATION_CATEGORY_PARTITION", 5: "OPERATION_CATEGORY_PEERING", 6: "OPERATION_CATEGORY_SERVER_DISCOVERY", 7: "OPERATION_CATEGORY_DATAPLANE", 8: "OPERATION_CATEGORY_DNS", 9: "OPERATION_CATEGORY_SUBSCRIBE", 10: "OPERATION_CATEGORY_OPERATOR", 11: "OPERATION_CATEGORY_RESOURCE", 12: "OPERATION_CATEGORY_CONFIGENTRY", } OperationCategory_value = map[string]int32{ "OPERATION_CATEGORY_UNSPECIFIED": 0, "OPERATION_CATEGORY_ACL": 1, "OPERATION_CATEGORY_PEER_STREAM": 2, "OPERATION_CATEGORY_CONNECT_CA": 3, "OPERATION_CATEGORY_PARTITION": 4, "OPERATION_CATEGORY_PEERING": 5, "OPERATION_CATEGORY_SERVER_DISCOVERY": 6, "OPERATION_CATEGORY_DATAPLANE": 7, "OPERATION_CATEGORY_DNS": 8, "OPERATION_CATEGORY_SUBSCRIBE": 9, "OPERATION_CATEGORY_OPERATOR": 10, "OPERATION_CATEGORY_RESOURCE": 11, "OPERATION_CATEGORY_CONFIGENTRY": 12, } )
Enum value maps for OperationCategory.
var ( RatelimitMarshaler = &protojson.MarshalOptions{} RatelimitUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false} )
var (
// optional hashicorp.consul.internal.ratelimit.Spec spec = 8300;
E_Spec = &file_annotations_ratelimit_ratelimit_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
var File_annotations_ratelimit_ratelimit_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OperationCategory ¶ added in v0.4.0
type OperationCategory int32
const ( OperationCategory_OPERATION_CATEGORY_UNSPECIFIED OperationCategory = 0 OperationCategory_OPERATION_CATEGORY_ACL OperationCategory = 1 OperationCategory_OPERATION_CATEGORY_PEER_STREAM OperationCategory = 2 OperationCategory_OPERATION_CATEGORY_CONNECT_CA OperationCategory = 3 OperationCategory_OPERATION_CATEGORY_PARTITION OperationCategory = 4 OperationCategory_OPERATION_CATEGORY_PEERING OperationCategory = 5 OperationCategory_OPERATION_CATEGORY_SERVER_DISCOVERY OperationCategory = 6 OperationCategory_OPERATION_CATEGORY_DATAPLANE OperationCategory = 7 OperationCategory_OPERATION_CATEGORY_DNS OperationCategory = 8 OperationCategory_OPERATION_CATEGORY_SUBSCRIBE OperationCategory = 9 OperationCategory_OPERATION_CATEGORY_OPERATOR OperationCategory = 10 OperationCategory_OPERATION_CATEGORY_RESOURCE OperationCategory = 11 OperationCategory_OPERATION_CATEGORY_CONFIGENTRY OperationCategory = 12 )
func (OperationCategory) Descriptor ¶ added in v0.4.0
func (OperationCategory) Descriptor() protoreflect.EnumDescriptor
func (OperationCategory) Enum ¶ added in v0.4.0
func (x OperationCategory) Enum() *OperationCategory
func (OperationCategory) EnumDescriptor
deprecated
added in
v0.4.0
func (OperationCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationCategory.Descriptor instead.
func (OperationCategory) Number ¶ added in v0.4.0
func (x OperationCategory) Number() protoreflect.EnumNumber
func (OperationCategory) String ¶ added in v0.4.0
func (x OperationCategory) String() string
func (OperationCategory) Type ¶ added in v0.4.0
func (OperationCategory) Type() protoreflect.EnumType
type OperationType ¶
type OperationType int32
OperationType determines the kind of rate limit that will be applied to this RPC (i.e. read or write).
const ( OperationType_OPERATION_TYPE_UNSPECIFIED OperationType = 0 OperationType_OPERATION_TYPE_EXEMPT OperationType = 1 OperationType_OPERATION_TYPE_READ OperationType = 2 OperationType_OPERATION_TYPE_WRITE OperationType = 3 )
func (OperationType) Descriptor ¶
func (OperationType) Descriptor() protoreflect.EnumDescriptor
func (OperationType) Enum ¶
func (x OperationType) Enum() *OperationType
func (OperationType) EnumDescriptor
deprecated
func (OperationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationType.Descriptor instead.
func (OperationType) Number ¶
func (x OperationType) Number() protoreflect.EnumNumber
func (OperationType) String ¶
func (x OperationType) String() string
func (OperationType) Type ¶
func (OperationType) Type() protoreflect.EnumType
type Spec ¶
type Spec struct { OperationType OperationType `` /* 156-byte string literal not displayed */ OperationCategory OperationCategory `` /* 172-byte string literal not displayed */ // contains filtered or unexported fields }
Spec describes the kind of rate limit that will be applied to this RPC.
func (*Spec) DeepCopy ¶ added in v0.5.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.
func (*Spec) DeepCopyInterface ¶ added in v0.5.1
func (in *Spec) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.
func (*Spec) DeepCopyInto ¶ added in v0.5.1
DeepCopyInto supports using Spec within kubernetes types, where deepcopy-gen is used.
func (*Spec) Descriptor
deprecated
func (*Spec) GetOperationCategory ¶ added in v0.4.0
func (x *Spec) GetOperationCategory() OperationCategory
func (*Spec) GetOperationType ¶
func (x *Spec) GetOperationType() OperationType
func (*Spec) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Spec) MarshalJSON ¶ added in v0.5.1
MarshalJSON is a custom marshaler for Spec
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
func (*Spec) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*Spec) UnmarshalJSON ¶ added in v0.5.1
UnmarshalJSON is a custom unmarshaler for Spec