pb

package
v1.4.25 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

Functions

This section is empty.

Types

type Direction

type Direction int32
const (
	Direction_UNDEFINED Direction = 0
	Direction_EGRESS    Direction = 1
	Direction_INGRESS   Direction = 2
)

func (Direction) Descriptor

func (Direction) Descriptor() protoreflect.EnumDescriptor

func (Direction) Enum

func (x Direction) Enum() *Direction

func (Direction) EnumDescriptor deprecated

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

Deprecated: Use Direction.Descriptor instead.

func (Direction) Number

func (x Direction) Number() protoreflect.EnumNumber

func (Direction) String

func (x Direction) String() string

func (Direction) Type

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 */
	// 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
)

func (SetType) Descriptor

func (SetType) Descriptor() protoreflect.EnumDescriptor

func (SetType) Enum

func (x SetType) Enum() *SetType

func (SetType) EnumDescriptor deprecated

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

Deprecated: Use SetType.Descriptor instead.

func (SetType) Number

func (x SetType) Number() protoreflect.EnumNumber

func (SetType) String

func (x SetType) String() string

func (SetType) Type

func (SetType) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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