Documentation ¶
Index ¶
- Variables
- type Direction
- type RuleResponse
- func (*RuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RuleResponse) GetAllowed() bool
- func (x *RuleResponse) GetChain() string
- func (x *RuleResponse) GetDPort() int32
- func (x *RuleResponse) GetDirection() Direction
- func (x *RuleResponse) GetDstList() []*RuleResponse_SetInfo
- func (x *RuleResponse) GetProtocol() string
- func (x *RuleResponse) GetSPort() int32
- func (x *RuleResponse) GetSrcList() []*RuleResponse_SetInfo
- func (x *RuleResponse) GetUnsortedIpset() map[string]string
- func (*RuleResponse) ProtoMessage()
- func (x *RuleResponse) ProtoReflect() protoreflect.Message
- func (x *RuleResponse) Reset()
- func (x *RuleResponse) String() string
- type RuleResponse_SetInfo
- func (*RuleResponse_SetInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RuleResponse_SetInfo) GetContents() []string
- func (x *RuleResponse_SetInfo) GetHashedSetName() string
- func (x *RuleResponse_SetInfo) GetIncluded() bool
- func (x *RuleResponse_SetInfo) GetName() string
- func (x *RuleResponse_SetInfo) GetType() SetType
- func (*RuleResponse_SetInfo) ProtoMessage()
- func (x *RuleResponse_SetInfo) ProtoReflect() protoreflect.Message
- func (x *RuleResponse_SetInfo) Reset()
- func (x *RuleResponse_SetInfo) String() string
- type SetType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SetType_name = map[int32]string{ 0: "NAMESPACE", 1: "KEYLABELOFNAMESPACE", 2: "KEYVALUELABELOFNAMESPACE", 3: "KEYLABELOFPOD", 4: "KEYVALUELABELOFPOD", 5: "NAMEDPORTS", 6: "NESTEDLABELOFPOD", 7: "CIDRBLOCKS", } SetType_value = map[string]int32{ "NAMESPACE": 0, "KEYLABELOFNAMESPACE": 1, "KEYVALUELABELOFNAMESPACE": 2, "KEYLABELOFPOD": 3, "KEYVALUELABELOFPOD": 4, "NAMEDPORTS": 5, "NESTEDLABELOFPOD": 6, "CIDRBLOCKS": 7, } )
Enum value maps for SetType.
View Source
var ( Direction_name = map[int32]string{ 0: "UNDEFINED", 1: "EGRESS", 2: "INGRESS", } Direction_value = map[string]int32{ "UNDEFINED": 0, "EGRESS": 1, "INGRESS": 2, } )
Enum value maps for Direction.
View Source
var File_rule_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Direction ¶
type Direction int32
func (Direction) Descriptor ¶
func (Direction) Descriptor() protoreflect.EnumDescriptor
func (Direction) EnumDescriptor
deprecated
func (Direction) Number ¶
func (x Direction) Number() protoreflect.EnumNumber
func (Direction) Type ¶
func (Direction) Type() protoreflect.EnumType
type RuleResponse ¶
type RuleResponse struct { Chain string `protobuf:"bytes,1,opt,name=Chain,proto3" json:"Chain,omitempty"` SrcList []*RuleResponse_SetInfo `protobuf:"bytes,2,rep,name=SrcList,proto3" json:"SrcList,omitempty"` DstList []*RuleResponse_SetInfo `protobuf:"bytes,3,rep,name=DstList,proto3" json:"DstList,omitempty"` Protocol string `protobuf:"bytes,4,opt,name=Protocol,proto3" json:"Protocol,omitempty"` DPort int32 `protobuf:"varint,5,opt,name=DPort,proto3" json:"DPort,omitempty"` SPort int32 `protobuf:"varint,6,opt,name=SPort,proto3" json:"SPort,omitempty"` Allowed bool `protobuf:"varint,7,opt,name=Allowed,proto3" json:"Allowed,omitempty"` Direction Direction `protobuf:"varint,8,opt,name=Direction,proto3,enum=pb.Direction" json:"Direction,omitempty"` UnsortedIpset map[string]string `` /* 167-byte string literal not displayed */ JumpTo string Comment string // contains filtered or unexported fields }
func (*RuleResponse) Descriptor
deprecated
func (*RuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use RuleResponse.ProtoReflect.Descriptor instead.
func (*RuleResponse) GetAllowed ¶
func (x *RuleResponse) GetAllowed() bool
func (*RuleResponse) GetChain ¶
func (x *RuleResponse) GetChain() string
func (*RuleResponse) GetDPort ¶
func (x *RuleResponse) GetDPort() int32
func (*RuleResponse) GetDirection ¶
func (x *RuleResponse) GetDirection() Direction
func (*RuleResponse) GetDstList ¶
func (x *RuleResponse) GetDstList() []*RuleResponse_SetInfo
func (*RuleResponse) GetProtocol ¶
func (x *RuleResponse) GetProtocol() string
func (*RuleResponse) GetSPort ¶
func (x *RuleResponse) GetSPort() int32
func (*RuleResponse) GetSrcList ¶
func (x *RuleResponse) GetSrcList() []*RuleResponse_SetInfo
func (*RuleResponse) GetUnsortedIpset ¶
func (x *RuleResponse) GetUnsortedIpset() map[string]string
func (*RuleResponse) ProtoMessage ¶
func (*RuleResponse) ProtoMessage()
func (*RuleResponse) ProtoReflect ¶
func (x *RuleResponse) ProtoReflect() protoreflect.Message
func (*RuleResponse) Reset ¶
func (x *RuleResponse) Reset()
func (*RuleResponse) String ¶
func (x *RuleResponse) String() string
type RuleResponse_SetInfo ¶
type RuleResponse_SetInfo struct { Type SetType `protobuf:"varint,1,opt,name=Type,proto3,enum=pb.SetType" json:"Type,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` HashedSetName string `protobuf:"bytes,3,opt,name=HashedSetName,proto3" json:"HashedSetName,omitempty"` Contents []string `protobuf:"bytes,4,rep,name=Contents,proto3" json:"Contents,omitempty"` Included bool `protobuf:"varint,5,opt,name=Included,proto3" json:"Included,omitempty"` // contains filtered or unexported fields }
func (*RuleResponse_SetInfo) Descriptor
deprecated
func (*RuleResponse_SetInfo) Descriptor() ([]byte, []int)
Deprecated: Use RuleResponse_SetInfo.ProtoReflect.Descriptor instead.
func (*RuleResponse_SetInfo) GetContents ¶
func (x *RuleResponse_SetInfo) GetContents() []string
func (*RuleResponse_SetInfo) GetHashedSetName ¶
func (x *RuleResponse_SetInfo) GetHashedSetName() string
func (*RuleResponse_SetInfo) GetIncluded ¶
func (x *RuleResponse_SetInfo) GetIncluded() bool
func (*RuleResponse_SetInfo) GetName ¶
func (x *RuleResponse_SetInfo) GetName() string
func (*RuleResponse_SetInfo) GetType ¶
func (x *RuleResponse_SetInfo) GetType() SetType
func (*RuleResponse_SetInfo) ProtoMessage ¶
func (*RuleResponse_SetInfo) ProtoMessage()
func (*RuleResponse_SetInfo) ProtoReflect ¶
func (x *RuleResponse_SetInfo) ProtoReflect() protoreflect.Message
func (*RuleResponse_SetInfo) Reset ¶
func (x *RuleResponse_SetInfo) Reset()
func (*RuleResponse_SetInfo) String ¶
func (x *RuleResponse_SetInfo) String() string
type SetType ¶
type SetType int32
const ( SetType_NAMESPACE SetType = 0 SetType_KEYLABELOFNAMESPACE SetType = 1 SetType_KEYVALUELABELOFNAMESPACE SetType = 2 SetType_KEYLABELOFPOD SetType = 3 SetType_KEYVALUELABELOFPOD SetType = 4 SetType_NAMEDPORTS SetType = 5 SetType_NESTEDLABELOFPOD SetType = 6 SetType_CIDRBLOCKS SetType = 7 SetType_UNKNOWN SetType = 8 )
func (SetType) Descriptor ¶
func (SetType) Descriptor() protoreflect.EnumDescriptor
func (SetType) EnumDescriptor
deprecated
func (SetType) Number ¶
func (x SetType) Number() protoreflect.EnumNumber
func (SetType) Type ¶
func (SetType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.