sgroups

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 20 Imported by: 2

Documentation

Overview

Package sgroups is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	SecGroupService_Sync_FullMethodName                  = "/hbf.v1.sgroups.SecGroupService/Sync"
	SecGroupService_SyncStatus_FullMethodName            = "/hbf.v1.sgroups.SecGroupService/SyncStatus"
	SecGroupService_SyncStatuses_FullMethodName          = "/hbf.v1.sgroups.SecGroupService/SyncStatuses"
	SecGroupService_ListNetworks_FullMethodName          = "/hbf.v1.sgroups.SecGroupService/ListNetworks"
	SecGroupService_ListSecurityGroups_FullMethodName    = "/hbf.v1.sgroups.SecGroupService/ListSecurityGroups"
	SecGroupService_GetSgSubnets_FullMethodName          = "/hbf.v1.sgroups.SecGroupService/GetSgSubnets"
	SecGroupService_GetRules_FullMethodName              = "/hbf.v1.sgroups.SecGroupService/GetRules"
	SecGroupService_FindRules_FullMethodName             = "/hbf.v1.sgroups.SecGroupService/FindRules"
	SecGroupService_FindFqdnRules_FullMethodName         = "/hbf.v1.sgroups.SecGroupService/FindFqdnRules"
	SecGroupService_FindSgIcmpRules_FullMethodName       = "/hbf.v1.sgroups.SecGroupService/FindSgIcmpRules"
	SecGroupService_FindSgSgIcmpRules_FullMethodName     = "/hbf.v1.sgroups.SecGroupService/FindSgSgIcmpRules"
	SecGroupService_FindCidrSgRules_FullMethodName       = "/hbf.v1.sgroups.SecGroupService/FindCidrSgRules"
	SecGroupService_FindSgSgRules_FullMethodName         = "/hbf.v1.sgroups.SecGroupService/FindSgSgRules"
	SecGroupService_FindIESgSgIcmpRules_FullMethodName   = "/hbf.v1.sgroups.SecGroupService/FindIESgSgIcmpRules"
	SecGroupService_FindCidrSgIcmpRules_FullMethodName   = "/hbf.v1.sgroups.SecGroupService/FindCidrSgIcmpRules"
	SecGroupService_GetSecGroupForAddress_FullMethodName = "/hbf.v1.sgroups.SecGroupService/GetSecGroupForAddress"
)

Variables

View Source
var (
	RuleAction_name = map[int32]string{
		0: "UNDEF",
		1: "DROP",
		2: "ACCEPT",
	}
	RuleAction_value = map[string]int32{
		"UNDEF":  0,
		"DROP":   1,
		"ACCEPT": 2,
	}
)

Enum value maps for RuleAction.

View Source
var (
	SecGroup_DefaultAction_name = map[int32]string{
		0: "DEFAULT",
		1: "DROP",
		2: "ACCEPT",
	}
	SecGroup_DefaultAction_value = map[string]int32{
		"DEFAULT": 0,
		"DROP":    1,
		"ACCEPT":  2,
	}
)

Enum value maps for SecGroup_DefaultAction.

View Source
var (
	SyncReq_SyncOp_name = map[int32]string{
		0: "NoOp",
		4: "FullSync",
		5: "Upsert",
		6: "Delete",
	}
	SyncReq_SyncOp_value = map[string]int32{
		"NoOp":     0,
		"FullSync": 4,
		"Upsert":   5,
		"Delete":   6,
	}
)

Enum value maps for SyncReq_SyncOp.

View Source
var File_sgroups_api_proto protoreflect.FileDescriptor
View Source
var SecGroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hbf.v1.sgroups.SecGroupService",
	HandlerType: (*SecGroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Sync",
			Handler:    _SecGroupService_Sync_Handler,
		},
		{
			MethodName: "SyncStatus",
			Handler:    _SecGroupService_SyncStatus_Handler,
		},
		{
			MethodName: "ListNetworks",
			Handler:    _SecGroupService_ListNetworks_Handler,
		},
		{
			MethodName: "ListSecurityGroups",
			Handler:    _SecGroupService_ListSecurityGroups_Handler,
		},
		{
			MethodName: "GetSgSubnets",
			Handler:    _SecGroupService_GetSgSubnets_Handler,
		},
		{
			MethodName: "GetRules",
			Handler:    _SecGroupService_GetRules_Handler,
		},
		{
			MethodName: "FindRules",
			Handler:    _SecGroupService_FindRules_Handler,
		},
		{
			MethodName: "FindFqdnRules",
			Handler:    _SecGroupService_FindFqdnRules_Handler,
		},
		{
			MethodName: "FindSgIcmpRules",
			Handler:    _SecGroupService_FindSgIcmpRules_Handler,
		},
		{
			MethodName: "FindSgSgIcmpRules",
			Handler:    _SecGroupService_FindSgSgIcmpRules_Handler,
		},
		{
			MethodName: "FindCidrSgRules",
			Handler:    _SecGroupService_FindCidrSgRules_Handler,
		},
		{
			MethodName: "FindSgSgRules",
			Handler:    _SecGroupService_FindSgSgRules_Handler,
		},
		{
			MethodName: "FindIESgSgIcmpRules",
			Handler:    _SecGroupService_FindIESgSgIcmpRules_Handler,
		},
		{
			MethodName: "FindCidrSgIcmpRules",
			Handler:    _SecGroupService_FindCidrSgIcmpRules_Handler,
		},
		{
			MethodName: "GetSecGroupForAddress",
			Handler:    _SecGroupService_GetSecGroupForAddress_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SyncStatuses",
			Handler:       _SecGroupService_SyncStatuses_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "sgroups/api.proto",
}

SecGroupService_ServiceDesc is the grpc.ServiceDesc for SecGroupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSecGroupServiceHandler

func RegisterSecGroupServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSecGroupServiceHandler registers the http handlers for service SecGroupService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSecGroupServiceHandlerClient

func RegisterSecGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecGroupServiceClient) error

RegisterSecGroupServiceHandlerClient registers the http handlers for service SecGroupService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SecGroupServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SecGroupServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SecGroupServiceClient" to call the correct interceptors.

func RegisterSecGroupServiceHandlerFromEndpoint

func RegisterSecGroupServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSecGroupServiceHandlerFromEndpoint is same as RegisterSecGroupServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSecGroupServiceHandlerServer

func RegisterSecGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecGroupServiceServer) error

RegisterSecGroupServiceHandlerServer registers the http handlers for service SecGroupService to "mux". UnaryRPC :call SecGroupServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSecGroupServiceHandlerFromEndpoint instead.

func RegisterSecGroupServiceServer

func RegisterSecGroupServiceServer(s grpc.ServiceRegistrar, srv SecGroupServiceServer)

Types

type AccPorts

type AccPorts struct {

	// source port "num" or port range "num1-num2"
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// destination  port "num" or port range "num1-num2"
	D string `protobuf:"bytes,2,opt,name=d,proto3" json:"d,omitempty"`
	// contains filtered or unexported fields
}

AccPorts: represents Security Group Rule access source-dest ports

func (*AccPorts) Descriptor deprecated

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

Deprecated: Use AccPorts.ProtoReflect.Descriptor instead.

func (*AccPorts) GetD

func (x *AccPorts) GetD() string

func (*AccPorts) GetS

func (x *AccPorts) GetS() string

func (*AccPorts) ProtoMessage

func (*AccPorts) ProtoMessage()

func (*AccPorts) ProtoReflect

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

func (*AccPorts) Reset

func (x *AccPorts) Reset()

func (*AccPorts) String

func (x *AccPorts) String() string

type CidrSgIcmpRule

type CidrSgIcmpRule struct {

	// CIDR subnetwork IPv4|IPv6
	CIDR string `protobuf:"bytes,1,opt,name=CIDR,proto3" json:"CIDR,omitempty"`
	// SG security group name
	SG string `protobuf:"bytes,2,opt,name=SG,proto3" json:"SG,omitempty"`
	// traffic direction [INGERSS, EGRESS]
	Traffic common.Traffic `protobuf:"varint,3,opt,name=traffic,proto3,enum=common.Traffic" json:"traffic,omitempty"`
	// ICMP spec
	ICMP *common.ICMP `protobuf:"bytes,4,opt,name=ICMP,proto3" json:"ICMP,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,6,opt,name=logs,proto3" json:"logs,omitempty"`
	// trace: switch-{ON|OFF} logs in rules
	Trace bool `protobuf:"varint,7,opt,name=trace,proto3" json:"trace,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,8,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// priority: rule priority affects on rule pos in its rule list
	Priority *RulePriority `protobuf:"bytes,9,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

CIDR-SG ICMP <in|e>gress type rule

func (*CidrSgIcmpRule) Descriptor deprecated

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

Deprecated: Use CidrSgIcmpRule.ProtoReflect.Descriptor instead.

func (*CidrSgIcmpRule) GetAction

func (x *CidrSgIcmpRule) GetAction() RuleAction

func (*CidrSgIcmpRule) GetCIDR

func (x *CidrSgIcmpRule) GetCIDR() string

func (*CidrSgIcmpRule) GetICMP

func (x *CidrSgIcmpRule) GetICMP() *common.ICMP

func (*CidrSgIcmpRule) GetLogs

func (x *CidrSgIcmpRule) GetLogs() bool

func (*CidrSgIcmpRule) GetPriority

func (x *CidrSgIcmpRule) GetPriority() *RulePriority

func (*CidrSgIcmpRule) GetSG

func (x *CidrSgIcmpRule) GetSG() string

func (*CidrSgIcmpRule) GetTrace

func (x *CidrSgIcmpRule) GetTrace() bool

func (*CidrSgIcmpRule) GetTraffic

func (x *CidrSgIcmpRule) GetTraffic() common.Traffic

func (*CidrSgIcmpRule) ProtoMessage

func (*CidrSgIcmpRule) ProtoMessage()

func (*CidrSgIcmpRule) ProtoReflect

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

func (*CidrSgIcmpRule) Reset

func (x *CidrSgIcmpRule) Reset()

func (*CidrSgIcmpRule) String

func (x *CidrSgIcmpRule) String() string

type CidrSgIcmpRulesResp

type CidrSgIcmpRulesResp struct {

	// CidrSgIcmpRule rule item(s)
	Rules []*CidrSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

CidrSgIcmpRulesResp: CIDR-SG-[INGRESS|EGRESS]:ICMP rules(s) resp

func (*CidrSgIcmpRulesResp) Descriptor deprecated

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

Deprecated: Use CidrSgIcmpRulesResp.ProtoReflect.Descriptor instead.

func (*CidrSgIcmpRulesResp) GetRules

func (x *CidrSgIcmpRulesResp) GetRules() []*CidrSgIcmpRule

func (*CidrSgIcmpRulesResp) ProtoMessage

func (*CidrSgIcmpRulesResp) ProtoMessage()

func (*CidrSgIcmpRulesResp) ProtoReflect

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

func (*CidrSgIcmpRulesResp) Reset

func (x *CidrSgIcmpRulesResp) Reset()

func (*CidrSgIcmpRulesResp) String

func (x *CidrSgIcmpRulesResp) String() string

type CidrSgRule

type CidrSgRule struct {

	// ip net transport [TCP, UDP]
	Transport common.Networks_NetIP_Transport `protobuf:"varint,1,opt,name=transport,proto3,enum=common.Networks_NetIP_Transport" json:"transport,omitempty"`
	// CIDR subnetwork IPv4|IPv6
	CIDR string `protobuf:"bytes,2,opt,name=CIDR,proto3" json:"CIDR,omitempty"`
	// SG security group name
	SG string `protobuf:"bytes,3,opt,name=SG,proto3" json:"SG,omitempty"`
	// traffic direction [INGERSS, EGRESS]
	Traffic common.Traffic `protobuf:"varint,4,opt,name=traffic,proto3,enum=common.Traffic" json:"traffic,omitempty"`
	// AccPorts: access port set(s)
	Ports []*AccPorts `protobuf:"bytes,5,rep,name=ports,proto3" json:"ports,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,6,opt,name=logs,proto3" json:"logs,omitempty"`
	// trace: switch-{ON|OFF} logs in rules
	Trace bool `protobuf:"varint,7,opt,name=trace,proto3" json:"trace,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,8,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// priority: rule priority affects on rule pos in its rule list
	Priority *RulePriority `protobuf:"bytes,9,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

CIDR-SG NET-SG Ingress Egress type rule

func (*CidrSgRule) Descriptor deprecated

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

Deprecated: Use CidrSgRule.ProtoReflect.Descriptor instead.

func (*CidrSgRule) GetAction

func (x *CidrSgRule) GetAction() RuleAction

func (*CidrSgRule) GetCIDR

func (x *CidrSgRule) GetCIDR() string

func (*CidrSgRule) GetLogs

func (x *CidrSgRule) GetLogs() bool

func (*CidrSgRule) GetPorts

func (x *CidrSgRule) GetPorts() []*AccPorts

func (*CidrSgRule) GetPriority

func (x *CidrSgRule) GetPriority() *RulePriority

func (*CidrSgRule) GetSG

func (x *CidrSgRule) GetSG() string

func (*CidrSgRule) GetTrace

func (x *CidrSgRule) GetTrace() bool

func (*CidrSgRule) GetTraffic

func (x *CidrSgRule) GetTraffic() common.Traffic

func (*CidrSgRule) GetTransport

func (x *CidrSgRule) GetTransport() common.Networks_NetIP_Transport

func (*CidrSgRule) ProtoMessage

func (*CidrSgRule) ProtoMessage()

func (*CidrSgRule) ProtoReflect

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

func (*CidrSgRule) Reset

func (x *CidrSgRule) Reset()

func (*CidrSgRule) String

func (x *CidrSgRule) String() string

type CidrSgRulesResp

type CidrSgRulesResp struct {

	// СidrSgRules rule item(s)
	Rules []*CidrSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

СidrSgRulesResp: CIDR-SG-[INGRESS, EGRESS] rule(s) resp

func (*CidrSgRulesResp) Descriptor deprecated

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

Deprecated: Use CidrSgRulesResp.ProtoReflect.Descriptor instead.

func (*CidrSgRulesResp) GetRules

func (x *CidrSgRulesResp) GetRules() []*CidrSgRule

func (*CidrSgRulesResp) ProtoMessage

func (*CidrSgRulesResp) ProtoMessage()

func (*CidrSgRulesResp) ProtoReflect

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

func (*CidrSgRulesResp) Reset

func (x *CidrSgRulesResp) Reset()

func (*CidrSgRulesResp) String

func (x *CidrSgRulesResp) String() string

type FindCidrSgIcmpRulesReq

type FindCidrSgIcmpRulesReq struct {

	// scope SG name item(s)
	Sg []string `protobuf:"bytes,1,rep,name=sg,proto3" json:"sg,omitempty"`
	// contains filtered or unexported fields
}

FindCidrSgIcmpRulesReq: req to find all CIDR-SG-[INGRESS|EGRESS]:ICMP rules(s) scoped by SG(s) variety

func (*FindCidrSgIcmpRulesReq) Descriptor deprecated

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

Deprecated: Use FindCidrSgIcmpRulesReq.ProtoReflect.Descriptor instead.

func (*FindCidrSgIcmpRulesReq) GetSg

func (x *FindCidrSgIcmpRulesReq) GetSg() []string

func (*FindCidrSgIcmpRulesReq) ProtoMessage

func (*FindCidrSgIcmpRulesReq) ProtoMessage()

func (*FindCidrSgIcmpRulesReq) ProtoReflect

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

func (*FindCidrSgIcmpRulesReq) Reset

func (x *FindCidrSgIcmpRulesReq) Reset()

func (*FindCidrSgIcmpRulesReq) String

func (x *FindCidrSgIcmpRulesReq) String() string

type FindCidrSgRulesReq

type FindCidrSgRulesReq struct {

	// scope GS name item(s)
	Sg []string `protobuf:"bytes,1,rep,name=sg,proto3" json:"sg,omitempty"`
	// contains filtered or unexported fields
}

FindCidrSgRulesReq: req to find all CIRD-SG-[INGRESS|EGRESS] Rule(s) scoped by SG(s) variety

func (*FindCidrSgRulesReq) Descriptor deprecated

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

Deprecated: Use FindCidrSgRulesReq.ProtoReflect.Descriptor instead.

func (*FindCidrSgRulesReq) GetSg

func (x *FindCidrSgRulesReq) GetSg() []string

func (*FindCidrSgRulesReq) ProtoMessage

func (*FindCidrSgRulesReq) ProtoMessage()

func (*FindCidrSgRulesReq) ProtoReflect

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

func (*FindCidrSgRulesReq) Reset

func (x *FindCidrSgRulesReq) Reset()

func (*FindCidrSgRulesReq) String

func (x *FindCidrSgRulesReq) String() string

type FindFqdnRulesReq

type FindFqdnRulesReq struct {

	// scope GS name 'from' items
	SgFrom []string `protobuf:"bytes,1,rep,name=sg_from,json=sgFrom,proto3" json:"sg_from,omitempty"`
	// contains filtered or unexported fields
}

FindFqdnRulesReq: req to find all FQDN Rule(s) scoped by variety 'from' SG(s)

func (*FindFqdnRulesReq) Descriptor deprecated

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

Deprecated: Use FindFqdnRulesReq.ProtoReflect.Descriptor instead.

func (*FindFqdnRulesReq) GetSgFrom

func (x *FindFqdnRulesReq) GetSgFrom() []string

func (*FindFqdnRulesReq) ProtoMessage

func (*FindFqdnRulesReq) ProtoMessage()

func (*FindFqdnRulesReq) ProtoReflect

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

func (*FindFqdnRulesReq) Reset

func (x *FindFqdnRulesReq) Reset()

func (*FindFqdnRulesReq) String

func (x *FindFqdnRulesReq) String() string

type FindIESgSgIcmpRulesReq

type FindIESgSgIcmpRulesReq struct {

	// scope Sg name item(s)
	Sg []string `protobuf:"bytes,1,rep,name=Sg,proto3" json:"Sg,omitempty"`
	// scope SgLocal name item(s)
	SgLocal []string `protobuf:"bytes,2,rep,name=SgLocal,proto3" json:"SgLocal,omitempty"`
	// contains filtered or unexported fields
}

FindIESgSgIcmpRulesReq: req to find all SG-SG-[INGRESS|EGRESS]:ICMP rule(s)

func (*FindIESgSgIcmpRulesReq) Descriptor deprecated

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

Deprecated: Use FindIESgSgIcmpRulesReq.ProtoReflect.Descriptor instead.

func (*FindIESgSgIcmpRulesReq) GetSg

func (x *FindIESgSgIcmpRulesReq) GetSg() []string

func (*FindIESgSgIcmpRulesReq) GetSgLocal

func (x *FindIESgSgIcmpRulesReq) GetSgLocal() []string

func (*FindIESgSgIcmpRulesReq) ProtoMessage

func (*FindIESgSgIcmpRulesReq) ProtoMessage()

func (*FindIESgSgIcmpRulesReq) ProtoReflect

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

func (*FindIESgSgIcmpRulesReq) Reset

func (x *FindIESgSgIcmpRulesReq) Reset()

func (*FindIESgSgIcmpRulesReq) String

func (x *FindIESgSgIcmpRulesReq) String() string

type FindRulesReq

type FindRulesReq struct {

	// scope GS name 'from' items
	SgFrom []string `protobuf:"bytes,1,rep,name=sg_from,json=sgFrom,proto3" json:"sg_from,omitempty"`
	// scope  GS name 'to' items
	SgTo []string `protobuf:"bytes,2,rep,name=sg_to,json=sgTo,proto3" json:"sg_to,omitempty"`
	// contains filtered or unexported fields
}

FindRulesReq: req to find all SecGroup(s) Rule(s) scoped by variety('from') --> variety('to') SG(s)

func (*FindRulesReq) Descriptor deprecated

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

Deprecated: Use FindRulesReq.ProtoReflect.Descriptor instead.

func (*FindRulesReq) GetSgFrom

func (x *FindRulesReq) GetSgFrom() []string

func (*FindRulesReq) GetSgTo

func (x *FindRulesReq) GetSgTo() []string

func (*FindRulesReq) ProtoMessage

func (*FindRulesReq) ProtoMessage()

func (*FindRulesReq) ProtoReflect

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

func (*FindRulesReq) Reset

func (x *FindRulesReq) Reset()

func (*FindRulesReq) String

func (x *FindRulesReq) String() string

type FindSgIcmpRulesReq

type FindSgIcmpRulesReq struct {

	// scope GS name item(s)
	Sg []string `protobuf:"bytes,1,rep,name=sg,proto3" json:"sg,omitempty"`
	// contains filtered or unexported fields
}

FindSgIcmpRulesReq: req to find all SG:ICMP Rule(s) scoped by SG(s) variety

func (*FindSgIcmpRulesReq) Descriptor deprecated

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

Deprecated: Use FindSgIcmpRulesReq.ProtoReflect.Descriptor instead.

func (*FindSgIcmpRulesReq) GetSg

func (x *FindSgIcmpRulesReq) GetSg() []string

func (*FindSgIcmpRulesReq) ProtoMessage

func (*FindSgIcmpRulesReq) ProtoMessage()

func (*FindSgIcmpRulesReq) ProtoReflect

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

func (*FindSgIcmpRulesReq) Reset

func (x *FindSgIcmpRulesReq) Reset()

func (*FindSgIcmpRulesReq) String

func (x *FindSgIcmpRulesReq) String() string

type FindSgSgIcmpRulesReq

type FindSgSgIcmpRulesReq struct {

	// scope GS-from name item(s)
	SgFrom []string `protobuf:"bytes,1,rep,name=sg_from,json=sgFrom,proto3" json:"sg_from,omitempty"`
	// scope GS-to name item(s)
	SgTo []string `protobuf:"bytes,2,rep,name=sg_to,json=sgTo,proto3" json:"sg_to,omitempty"`
	// contains filtered or unexported fields
}

FindSgSgIcmpRulesReq: req to find all SG-SG:ICMP Rule(s) scoped by SG(s) variety

func (*FindSgSgIcmpRulesReq) Descriptor deprecated

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

Deprecated: Use FindSgSgIcmpRulesReq.ProtoReflect.Descriptor instead.

func (*FindSgSgIcmpRulesReq) GetSgFrom

func (x *FindSgSgIcmpRulesReq) GetSgFrom() []string

func (*FindSgSgIcmpRulesReq) GetSgTo

func (x *FindSgSgIcmpRulesReq) GetSgTo() []string

func (*FindSgSgIcmpRulesReq) ProtoMessage

func (*FindSgSgIcmpRulesReq) ProtoMessage()

func (*FindSgSgIcmpRulesReq) ProtoReflect

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

func (*FindSgSgIcmpRulesReq) Reset

func (x *FindSgSgIcmpRulesReq) Reset()

func (*FindSgSgIcmpRulesReq) String

func (x *FindSgSgIcmpRulesReq) String() string

type FindSgSgRulesReq

type FindSgSgRulesReq struct {

	// scope Sg name item(s)
	Sg []string `protobuf:"bytes,1,rep,name=Sg,proto3" json:"Sg,omitempty"`
	// scope SgLocal name item(s)
	SgLocal []string `protobuf:"bytes,2,rep,name=SgLocal,proto3" json:"SgLocal,omitempty"`
	// contains filtered or unexported fields
}

FindSgSgRulesReq: req to find all SG-SG-[INGRESS|EGRESS] rule(s)

func (*FindSgSgRulesReq) Descriptor deprecated

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

Deprecated: Use FindSgSgRulesReq.ProtoReflect.Descriptor instead.

func (*FindSgSgRulesReq) GetSg

func (x *FindSgSgRulesReq) GetSg() []string

func (*FindSgSgRulesReq) GetSgLocal

func (x *FindSgSgRulesReq) GetSgLocal() []string

func (*FindSgSgRulesReq) ProtoMessage

func (*FindSgSgRulesReq) ProtoMessage()

func (*FindSgSgRulesReq) ProtoReflect

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

func (*FindSgSgRulesReq) Reset

func (x *FindSgSgRulesReq) Reset()

func (*FindSgSgRulesReq) String

func (x *FindSgSgRulesReq) String() string

type FqdnRule

type FqdnRule struct {

	// security group at client
	SgFrom string `protobuf:"bytes,1,opt,name=sg_from,json=sgFrom,proto3" json:"sg_from,omitempty"`
	// FQDN full qualified domain name portable for DNS queries
	FQDN string `protobuf:"bytes,2,opt,name=FQDN,proto3" json:"FQDN,omitempty"`
	// ip net transport
	Transport common.Networks_NetIP_Transport `protobuf:"varint,3,opt,name=transport,proto3,enum=common.Networks_NetIP_Transport" json:"transport,omitempty"`
	// access ports set
	Ports []*AccPorts `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,5,opt,name=logs,proto3" json:"logs,omitempty"`
	// protocols: L7 protocol list
	Protocols []string `protobuf:"bytes,6,rep,name=protocols,proto3" json:"protocols,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,7,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// priority: rule priority affects on rule pos in its rule list
	Priority *RulePriority `protobuf:"bytes,8,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

FqdnRule: represents Security Groups Rule

func (*FqdnRule) Descriptor deprecated

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

Deprecated: Use FqdnRule.ProtoReflect.Descriptor instead.

func (*FqdnRule) GetAction

func (x *FqdnRule) GetAction() RuleAction

func (*FqdnRule) GetFQDN

func (x *FqdnRule) GetFQDN() string

func (*FqdnRule) GetLogs

func (x *FqdnRule) GetLogs() bool

func (*FqdnRule) GetPorts

func (x *FqdnRule) GetPorts() []*AccPorts

func (*FqdnRule) GetPriority

func (x *FqdnRule) GetPriority() *RulePriority

func (*FqdnRule) GetProtocols

func (x *FqdnRule) GetProtocols() []string

func (*FqdnRule) GetSgFrom

func (x *FqdnRule) GetSgFrom() string

func (*FqdnRule) GetTransport

func (x *FqdnRule) GetTransport() common.Networks_NetIP_Transport

func (*FqdnRule) ProtoMessage

func (*FqdnRule) ProtoMessage()

func (*FqdnRule) ProtoReflect

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

func (*FqdnRule) Reset

func (x *FqdnRule) Reset()

func (*FqdnRule) String

func (x *FqdnRule) String() string

type FqdnRulesResp

type FqdnRulesResp struct {

	// FQDN rule(s) items
	Rules []*FqdnRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

FqdnRulesResp: FQDN Rule(s) resp

func (*FqdnRulesResp) Descriptor deprecated

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

Deprecated: Use FqdnRulesResp.ProtoReflect.Descriptor instead.

func (*FqdnRulesResp) GetRules

func (x *FqdnRulesResp) GetRules() []*FqdnRule

func (*FqdnRulesResp) ProtoMessage

func (*FqdnRulesResp) ProtoMessage()

func (*FqdnRulesResp) ProtoReflect

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

func (*FqdnRulesResp) Reset

func (x *FqdnRulesResp) Reset()

func (*FqdnRulesResp) String

func (x *FqdnRulesResp) String() string

type GetRulesReq

type GetRulesReq struct {

	// name of security groups 'from'
	SgFrom string `protobuf:"bytes,1,opt,name=sg_from,json=sgFrom,proto3" json:"sg_from,omitempty"`
	// name of security groups 'to'
	SgTo string `protobuf:"bytes,2,opt,name=sg_to,json=sgTo,proto3" json:"sg_to,omitempty"`
	// contains filtered or unexported fields
}

GetRulesReq; req to get Rules scoped by SecGroup pair 'from' --> 'to'

func (*GetRulesReq) Descriptor deprecated

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

Deprecated: Use GetRulesReq.ProtoReflect.Descriptor instead.

func (*GetRulesReq) GetSgFrom

func (x *GetRulesReq) GetSgFrom() string

func (*GetRulesReq) GetSgTo

func (x *GetRulesReq) GetSgTo() string

func (*GetRulesReq) ProtoMessage

func (*GetRulesReq) ProtoMessage()

func (*GetRulesReq) ProtoReflect

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

func (*GetRulesReq) Reset

func (x *GetRulesReq) Reset()

func (*GetRulesReq) String

func (x *GetRulesReq) String() string

type GetSecGroupForAddressReq

type GetSecGroupForAddressReq struct {

	// an IP or CIDR
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

GetSecGroupForAddressReq: req to get Security Group by IP or CIDR

func (*GetSecGroupForAddressReq) Descriptor deprecated

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

Deprecated: Use GetSecGroupForAddressReq.ProtoReflect.Descriptor instead.

func (*GetSecGroupForAddressReq) GetAddress

func (x *GetSecGroupForAddressReq) GetAddress() string

func (*GetSecGroupForAddressReq) ProtoMessage

func (*GetSecGroupForAddressReq) ProtoMessage()

func (*GetSecGroupForAddressReq) ProtoReflect

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

func (*GetSecGroupForAddressReq) Reset

func (x *GetSecGroupForAddressReq) Reset()

func (*GetSecGroupForAddressReq) String

func (x *GetSecGroupForAddressReq) String() string

type GetSgSubnetsReq

type GetSgSubnetsReq struct {

	// security group name
	SgName string `protobuf:"bytes,1,opt,name=sg_name,json=sgName,proto3" json:"sg_name,omitempty"`
	// contains filtered or unexported fields
}

GetSgSubnetsReq: req to get Networks related to Security Group

func (*GetSgSubnetsReq) Descriptor deprecated

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

Deprecated: Use GetSgSubnetsReq.ProtoReflect.Descriptor instead.

func (*GetSgSubnetsReq) GetSgName

func (x *GetSgSubnetsReq) GetSgName() string

func (*GetSgSubnetsReq) ProtoMessage

func (*GetSgSubnetsReq) ProtoMessage()

func (*GetSgSubnetsReq) ProtoReflect

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

func (*GetSgSubnetsReq) Reset

func (x *GetSgSubnetsReq) Reset()

func (*GetSgSubnetsReq) String

func (x *GetSgSubnetsReq) String() string

type GetSgSubnetsResp

type GetSgSubnetsResp struct {

	// network items
	Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

GetSgSubnetsResp: Networks related to Security Group resp

func (*GetSgSubnetsResp) Descriptor deprecated

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

Deprecated: Use GetSgSubnetsResp.ProtoReflect.Descriptor instead.

func (*GetSgSubnetsResp) GetNetworks

func (x *GetSgSubnetsResp) GetNetworks() []*Network

func (*GetSgSubnetsResp) ProtoMessage

func (*GetSgSubnetsResp) ProtoMessage()

func (*GetSgSubnetsResp) ProtoReflect

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

func (*GetSgSubnetsResp) Reset

func (x *GetSgSubnetsResp) Reset()

func (*GetSgSubnetsResp) String

func (x *GetSgSubnetsResp) String() string

type IESgSgIcmpRule

type IESgSgIcmpRule struct {

	// Security group name
	Sg string `protobuf:"bytes,1,opt,name=Sg,proto3" json:"Sg,omitempty"`
	// Security group name
	SgLocal string `protobuf:"bytes,2,opt,name=SgLocal,proto3" json:"SgLocal,omitempty"`
	// traffic direction [INGERSS, EGRESS]
	Traffic common.Traffic `protobuf:"varint,3,opt,name=traffic,proto3,enum=common.Traffic" json:"traffic,omitempty"`
	// ICMP spec
	ICMP *common.ICMP `protobuf:"bytes,4,opt,name=ICMP,proto3" json:"ICMP,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,5,opt,name=logs,proto3" json:"logs,omitempty"`
	// trace: switch-{ON|OFF} trace in rules
	Trace bool `protobuf:"varint,6,opt,name=trace,proto3" json:"trace,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,7,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// priority: rule priority affects on rule pos in its rule list
	Priority *RulePriority `protobuf:"bytes,8,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

SG-SG:ICMP <in|e>gress type rule

func (*IESgSgIcmpRule) Descriptor deprecated

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

Deprecated: Use IESgSgIcmpRule.ProtoReflect.Descriptor instead.

func (*IESgSgIcmpRule) GetAction

func (x *IESgSgIcmpRule) GetAction() RuleAction

func (*IESgSgIcmpRule) GetICMP

func (x *IESgSgIcmpRule) GetICMP() *common.ICMP

func (*IESgSgIcmpRule) GetLogs

func (x *IESgSgIcmpRule) GetLogs() bool

func (*IESgSgIcmpRule) GetPriority

func (x *IESgSgIcmpRule) GetPriority() *RulePriority

func (*IESgSgIcmpRule) GetSg

func (x *IESgSgIcmpRule) GetSg() string

func (*IESgSgIcmpRule) GetSgLocal

func (x *IESgSgIcmpRule) GetSgLocal() string

func (*IESgSgIcmpRule) GetTrace

func (x *IESgSgIcmpRule) GetTrace() bool

func (*IESgSgIcmpRule) GetTraffic

func (x *IESgSgIcmpRule) GetTraffic() common.Traffic

func (*IESgSgIcmpRule) ProtoMessage

func (*IESgSgIcmpRule) ProtoMessage()

func (*IESgSgIcmpRule) ProtoReflect

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

func (*IESgSgIcmpRule) Reset

func (x *IESgSgIcmpRule) Reset()

func (*IESgSgIcmpRule) String

func (x *IESgSgIcmpRule) String() string

type IESgSgIcmpRulesResp

type IESgSgIcmpRulesResp struct {

	// IESgSgRule rule item(s)
	Rules []*IESgSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

IESgSgIcmpRulesResp: SG-SG-[INGRESS|EGRESS]:ICMP rule(s) resp

func (*IESgSgIcmpRulesResp) Descriptor deprecated

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

Deprecated: Use IESgSgIcmpRulesResp.ProtoReflect.Descriptor instead.

func (*IESgSgIcmpRulesResp) GetRules

func (x *IESgSgIcmpRulesResp) GetRules() []*IESgSgIcmpRule

func (*IESgSgIcmpRulesResp) ProtoMessage

func (*IESgSgIcmpRulesResp) ProtoMessage()

func (*IESgSgIcmpRulesResp) ProtoReflect

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

func (*IESgSgIcmpRulesResp) Reset

func (x *IESgSgIcmpRulesResp) Reset()

func (*IESgSgIcmpRulesResp) String

func (x *IESgSgIcmpRulesResp) String() string

type ListNetworksReq

type ListNetworksReq struct {

	// network names scope; if none then list all netrworks
	NeteworkNames []string `protobuf:"bytes,1,rep,name=netework_names,json=neteworkNames,proto3" json:"netework_names,omitempty"`
	// contains filtered or unexported fields
}

ListNetworksReq: req to list Networks

func (*ListNetworksReq) Descriptor deprecated

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

Deprecated: Use ListNetworksReq.ProtoReflect.Descriptor instead.

func (*ListNetworksReq) GetNeteworkNames

func (x *ListNetworksReq) GetNeteworkNames() []string

func (*ListNetworksReq) ProtoMessage

func (*ListNetworksReq) ProtoMessage()

func (*ListNetworksReq) ProtoReflect

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

func (*ListNetworksReq) Reset

func (x *ListNetworksReq) Reset()

func (*ListNetworksReq) String

func (x *ListNetworksReq) String() string

type ListNetworksResp

type ListNetworksResp struct {

	// network items
	Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

ListNetworksResp: Network list resp

func (*ListNetworksResp) Descriptor deprecated

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

Deprecated: Use ListNetworksResp.ProtoReflect.Descriptor instead.

func (*ListNetworksResp) GetNetworks

func (x *ListNetworksResp) GetNetworks() []*Network

func (*ListNetworksResp) ProtoMessage

func (*ListNetworksResp) ProtoMessage()

func (*ListNetworksResp) ProtoReflect

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

func (*ListNetworksResp) Reset

func (x *ListNetworksResp) Reset()

func (*ListNetworksResp) String

func (x *ListNetworksResp) String() string

type ListSecurityGroupsReq

type ListSecurityGroupsReq struct {

	// SG names scope; if none then list all SGs
	SgNames []string `protobuf:"bytes,1,rep,name=sg_names,json=sgNames,proto3" json:"sg_names,omitempty"`
	// contains filtered or unexported fields
}

ListSecurityGroupsReq: req to list Seocurity Groups

func (*ListSecurityGroupsReq) Descriptor deprecated

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

Deprecated: Use ListSecurityGroupsReq.ProtoReflect.Descriptor instead.

func (*ListSecurityGroupsReq) GetSgNames

func (x *ListSecurityGroupsReq) GetSgNames() []string

func (*ListSecurityGroupsReq) ProtoMessage

func (*ListSecurityGroupsReq) ProtoMessage()

func (*ListSecurityGroupsReq) ProtoReflect

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

func (*ListSecurityGroupsReq) Reset

func (x *ListSecurityGroupsReq) Reset()

func (*ListSecurityGroupsReq) String

func (x *ListSecurityGroupsReq) String() string

type ListSecurityGroupsResp

type ListSecurityGroupsResp struct {

	// security group items
	Groups []*SecGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

ListSecurityGroupsResp: Security Groups list resp

func (*ListSecurityGroupsResp) Descriptor deprecated

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

Deprecated: Use ListSecurityGroupsResp.ProtoReflect.Descriptor instead.

func (*ListSecurityGroupsResp) GetGroups

func (x *ListSecurityGroupsResp) GetGroups() []*SecGroup

func (*ListSecurityGroupsResp) ProtoMessage

func (*ListSecurityGroupsResp) ProtoMessage()

func (*ListSecurityGroupsResp) ProtoReflect

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

func (*ListSecurityGroupsResp) Reset

func (x *ListSecurityGroupsResp) Reset()

func (*ListSecurityGroupsResp) String

func (x *ListSecurityGroupsResp) String() string

type Network

type Network struct {

	// the name of network
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// network in CIDR form
	Network *common.Networks_NetIP `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

Network: represents a named IP network

func (*Network) Descriptor deprecated

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

Deprecated: Use Network.ProtoReflect.Descriptor instead.

func (*Network) GetName

func (x *Network) GetName() string

func (*Network) GetNetwork

func (x *Network) GetNetwork() *common.Networks_NetIP

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) ProtoReflect

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

func (*Network) Reset

func (x *Network) Reset()

func (*Network) String

func (x *Network) String() string

type Rule

type Rule struct {

	// security group at client
	SgFrom string `protobuf:"bytes,1,opt,name=sg_from,json=sgFrom,proto3" json:"sg_from,omitempty"`
	// security group at server
	SgTo string `protobuf:"bytes,2,opt,name=sg_to,json=sgTo,proto3" json:"sg_to,omitempty"`
	// ip net transport
	Transport common.Networks_NetIP_Transport `protobuf:"varint,3,opt,name=transport,proto3,enum=common.Networks_NetIP_Transport" json:"transport,omitempty"`
	// access ports set
	Ports []*AccPorts `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,5,opt,name=logs,proto3" json:"logs,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,6,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// priority: rule priority affects on rule pos in its rule list
	Priority *RulePriority `protobuf:"bytes,7,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

Rule: represents Security Groups Rule

func (*Rule) Descriptor deprecated

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetAction

func (x *Rule) GetAction() RuleAction

func (*Rule) GetLogs

func (x *Rule) GetLogs() bool

func (*Rule) GetPorts

func (x *Rule) GetPorts() []*AccPorts

func (*Rule) GetPriority

func (x *Rule) GetPriority() *RulePriority

func (*Rule) GetSgFrom

func (x *Rule) GetSgFrom() string

func (*Rule) GetSgTo

func (x *Rule) GetSgTo() string

func (*Rule) GetTransport

func (x *Rule) GetTransport() common.Networks_NetIP_Transport

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

type RuleAction

type RuleAction int32

RuleAction: represents verdict action for rules

const (
	// Undefined verdict action
	RuleAction_UNDEF RuleAction = 0
	// Drops net packet
	RuleAction_DROP RuleAction = 1
	// Accepts net packet
	RuleAction_ACCEPT RuleAction = 2
)

func (RuleAction) Descriptor

func (RuleAction) Descriptor() protoreflect.EnumDescriptor

func (RuleAction) Enum

func (x RuleAction) Enum() *RuleAction

func (RuleAction) EnumDescriptor deprecated

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

Deprecated: Use RuleAction.Descriptor instead.

func (RuleAction) Number

func (x RuleAction) Number() protoreflect.EnumNumber

func (RuleAction) String

func (x RuleAction) String() string

func (RuleAction) Type

type RulePriority

type RulePriority struct {

	// Types that are assignable to Value:
	//
	//	*RulePriority_Some
	Value isRulePriority_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

RulePriority: represents rule priority or none if we no need use it

func (*RulePriority) Descriptor deprecated

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

Deprecated: Use RulePriority.ProtoReflect.Descriptor instead.

func (*RulePriority) GetSome

func (x *RulePriority) GetSome() int32

func (*RulePriority) GetValue

func (m *RulePriority) GetValue() isRulePriority_Value

func (*RulePriority) ProtoMessage

func (*RulePriority) ProtoMessage()

func (*RulePriority) ProtoReflect

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

func (*RulePriority) Reset

func (x *RulePriority) Reset()

func (*RulePriority) String

func (x *RulePriority) String() string

type RulePriority_Some

type RulePriority_Some struct {
	Some int32 `protobuf:"varint,1,opt,name=some,proto3,oneof"`
}

type RulesResp

type RulesResp struct {

	// SG rule(s) items
	Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

RulesResp: Security Group(s) Rule(s) resp

func (*RulesResp) Descriptor deprecated

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

Deprecated: Use RulesResp.ProtoReflect.Descriptor instead.

func (*RulesResp) GetRules

func (x *RulesResp) GetRules() []*Rule

func (*RulesResp) ProtoMessage

func (*RulesResp) ProtoMessage()

func (*RulesResp) ProtoReflect

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

func (*RulesResp) Reset

func (x *RulesResp) Reset()

func (*RulesResp) String

func (x *RulesResp) String() string

type SecGroup

type SecGroup struct {

	// name of security group
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// related to security gpoup network(s)
	Networks []string `protobuf:"bytes,2,rep,name=networks,proto3" json:"networks,omitempty"`
	// default_action: represents default rula action
	DefaultAction SecGroup_DefaultAction `` /* 144-byte string literal not displayed */
	// trace: set or unset 'nftrace' flag
	Trace bool `protobuf:"varint,4,opt,name=trace,proto3" json:"trace,omitempty"`
	// logs: switch-{ON|OFF} logs in chain
	Logs bool `protobuf:"varint,5,opt,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

SecGroup: represents a security group

func (*SecGroup) Descriptor deprecated

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

Deprecated: Use SecGroup.ProtoReflect.Descriptor instead.

func (*SecGroup) GetDefaultAction

func (x *SecGroup) GetDefaultAction() SecGroup_DefaultAction

func (*SecGroup) GetLogs

func (x *SecGroup) GetLogs() bool

func (*SecGroup) GetName

func (x *SecGroup) GetName() string

func (*SecGroup) GetNetworks

func (x *SecGroup) GetNetworks() []string

func (*SecGroup) GetTrace

func (x *SecGroup) GetTrace() bool

func (*SecGroup) ProtoMessage

func (*SecGroup) ProtoMessage()

func (*SecGroup) ProtoReflect

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

func (*SecGroup) Reset

func (x *SecGroup) Reset()

func (*SecGroup) String

func (x *SecGroup) String() string

type SecGroupServiceClient

type SecGroupServiceClient interface {
	Sync(ctx context.Context, in *SyncReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SyncStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SyncStatusResp, error)
	SyncStatuses(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (SecGroupService_SyncStatusesClient, error)
	ListNetworks(ctx context.Context, in *ListNetworksReq, opts ...grpc.CallOption) (*ListNetworksResp, error)
	ListSecurityGroups(ctx context.Context, in *ListSecurityGroupsReq, opts ...grpc.CallOption) (*ListSecurityGroupsResp, error)
	GetSgSubnets(ctx context.Context, in *GetSgSubnetsReq, opts ...grpc.CallOption) (*GetSgSubnetsResp, error)
	GetRules(ctx context.Context, in *GetRulesReq, opts ...grpc.CallOption) (*RulesResp, error)
	FindRules(ctx context.Context, in *FindRulesReq, opts ...grpc.CallOption) (*RulesResp, error)
	FindFqdnRules(ctx context.Context, in *FindFqdnRulesReq, opts ...grpc.CallOption) (*FqdnRulesResp, error)
	FindSgIcmpRules(ctx context.Context, in *FindSgIcmpRulesReq, opts ...grpc.CallOption) (*SgIcmpRulesResp, error)
	FindSgSgIcmpRules(ctx context.Context, in *FindSgSgIcmpRulesReq, opts ...grpc.CallOption) (*SgSgIcmpRulesResp, error)
	FindCidrSgRules(ctx context.Context, in *FindCidrSgRulesReq, opts ...grpc.CallOption) (*CidrSgRulesResp, error)
	FindSgSgRules(ctx context.Context, in *FindSgSgRulesReq, opts ...grpc.CallOption) (*SgSgRulesResp, error)
	FindIESgSgIcmpRules(ctx context.Context, in *FindIESgSgIcmpRulesReq, opts ...grpc.CallOption) (*IESgSgIcmpRulesResp, error)
	FindCidrSgIcmpRules(ctx context.Context, in *FindCidrSgIcmpRulesReq, opts ...grpc.CallOption) (*CidrSgIcmpRulesResp, error)
	GetSecGroupForAddress(ctx context.Context, in *GetSecGroupForAddressReq, opts ...grpc.CallOption) (*SecGroup, error)
}

SecGroupServiceClient is the client API for SecGroupService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SecGroupServiceServer

SecGroupServiceServer is the server API for SecGroupService service. All implementations must embed UnimplementedSecGroupServiceServer for forward compatibility

type SecGroupService_SyncStatusesClient

type SecGroupService_SyncStatusesClient interface {
	Recv() (*SyncStatusResp, error)
	grpc.ClientStream
}

type SecGroupService_SyncStatusesServer

type SecGroupService_SyncStatusesServer interface {
	Send(*SyncStatusResp) error
	grpc.ServerStream
}

type SecGroup_DefaultAction

type SecGroup_DefaultAction int32

DefaultAction: represents default action at end of chains for Security Gpoup

const (
	// Default is default action in [DROP|ACCEPT]
	SecGroup_DEFAULT SecGroup_DefaultAction = 0
	// Drops net packet
	SecGroup_DROP SecGroup_DefaultAction = 1
	// Accepts net packet
	SecGroup_ACCEPT SecGroup_DefaultAction = 2
)

func (SecGroup_DefaultAction) Descriptor

func (SecGroup_DefaultAction) Enum

func (SecGroup_DefaultAction) EnumDescriptor deprecated

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

Deprecated: Use SecGroup_DefaultAction.Descriptor instead.

func (SecGroup_DefaultAction) Number

func (SecGroup_DefaultAction) String

func (x SecGroup_DefaultAction) String() string

func (SecGroup_DefaultAction) Type

type SgIcmpRule

type SgIcmpRule struct {

	// Security group name
	Sg string `protobuf:"bytes,1,opt,name=Sg,proto3" json:"Sg,omitempty"`
	// ICMP spec
	ICMP *common.ICMP `protobuf:"bytes,2,opt,name=ICMP,proto3" json:"ICMP,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,3,opt,name=logs,proto3" json:"logs,omitempty"`
	// trace: switch-{ON|OFF} trace in rules
	Trace bool `protobuf:"varint,4,opt,name=trace,proto3" json:"trace,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,5,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

SG:ICMP type rule

func (*SgIcmpRule) Descriptor deprecated

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

Deprecated: Use SgIcmpRule.ProtoReflect.Descriptor instead.

func (*SgIcmpRule) GetAction

func (x *SgIcmpRule) GetAction() RuleAction

func (*SgIcmpRule) GetICMP

func (x *SgIcmpRule) GetICMP() *common.ICMP

func (*SgIcmpRule) GetLogs

func (x *SgIcmpRule) GetLogs() bool

func (*SgIcmpRule) GetSg

func (x *SgIcmpRule) GetSg() string

func (*SgIcmpRule) GetTrace

func (x *SgIcmpRule) GetTrace() bool

func (*SgIcmpRule) ProtoMessage

func (*SgIcmpRule) ProtoMessage()

func (*SgIcmpRule) ProtoReflect

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

func (*SgIcmpRule) Reset

func (x *SgIcmpRule) Reset()

func (*SgIcmpRule) String

func (x *SgIcmpRule) String() string

type SgIcmpRulesResp

type SgIcmpRulesResp struct {

	// SgIcmp rule item(s)
	Rules []*SgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

FindSgIcmpRulesResp: SG:ICMP Rule(s) resp

func (*SgIcmpRulesResp) Descriptor deprecated

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

Deprecated: Use SgIcmpRulesResp.ProtoReflect.Descriptor instead.

func (*SgIcmpRulesResp) GetRules

func (x *SgIcmpRulesResp) GetRules() []*SgIcmpRule

func (*SgIcmpRulesResp) ProtoMessage

func (*SgIcmpRulesResp) ProtoMessage()

func (*SgIcmpRulesResp) ProtoReflect

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

func (*SgIcmpRulesResp) Reset

func (x *SgIcmpRulesResp) Reset()

func (*SgIcmpRulesResp) String

func (x *SgIcmpRulesResp) String() string

type SgSgIcmpRule

type SgSgIcmpRule struct {

	// Security group name
	SgFrom string `protobuf:"bytes,1,opt,name=SgFrom,proto3" json:"SgFrom,omitempty"`
	// Security group name
	SgTo string `protobuf:"bytes,2,opt,name=SgTo,proto3" json:"SgTo,omitempty"`
	// ICMP spec
	ICMP *common.ICMP `protobuf:"bytes,3,opt,name=ICMP,proto3" json:"ICMP,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,4,opt,name=logs,proto3" json:"logs,omitempty"`
	// trace: switch-{ON|OFF} trace in rules
	Trace bool `protobuf:"varint,5,opt,name=trace,proto3" json:"trace,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,6,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// priority: rule priority affects on rule pos in its rule list
	Priority *RulePriority `protobuf:"bytes,7,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

SG-SG:ICMP type rule

func (*SgSgIcmpRule) Descriptor deprecated

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

Deprecated: Use SgSgIcmpRule.ProtoReflect.Descriptor instead.

func (*SgSgIcmpRule) GetAction

func (x *SgSgIcmpRule) GetAction() RuleAction

func (*SgSgIcmpRule) GetICMP

func (x *SgSgIcmpRule) GetICMP() *common.ICMP

func (*SgSgIcmpRule) GetLogs

func (x *SgSgIcmpRule) GetLogs() bool

func (*SgSgIcmpRule) GetPriority

func (x *SgSgIcmpRule) GetPriority() *RulePriority

func (*SgSgIcmpRule) GetSgFrom

func (x *SgSgIcmpRule) GetSgFrom() string

func (*SgSgIcmpRule) GetSgTo

func (x *SgSgIcmpRule) GetSgTo() string

func (*SgSgIcmpRule) GetTrace

func (x *SgSgIcmpRule) GetTrace() bool

func (*SgSgIcmpRule) ProtoMessage

func (*SgSgIcmpRule) ProtoMessage()

func (*SgSgIcmpRule) ProtoReflect

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

func (*SgSgIcmpRule) Reset

func (x *SgSgIcmpRule) Reset()

func (*SgSgIcmpRule) String

func (x *SgSgIcmpRule) String() string

type SgSgIcmpRulesResp

type SgSgIcmpRulesResp struct {

	// SgSgIcmp rule item(s)
	Rules []*SgSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SgSgIcmpRulesResp: SG-SG:ICMP Rule(s) resp

func (*SgSgIcmpRulesResp) Descriptor deprecated

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

Deprecated: Use SgSgIcmpRulesResp.ProtoReflect.Descriptor instead.

func (*SgSgIcmpRulesResp) GetRules

func (x *SgSgIcmpRulesResp) GetRules() []*SgSgIcmpRule

func (*SgSgIcmpRulesResp) ProtoMessage

func (*SgSgIcmpRulesResp) ProtoMessage()

func (*SgSgIcmpRulesResp) ProtoReflect

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

func (*SgSgIcmpRulesResp) Reset

func (x *SgSgIcmpRulesResp) Reset()

func (*SgSgIcmpRulesResp) String

func (x *SgSgIcmpRulesResp) String() string

type SgSgRule

type SgSgRule struct {

	// ip net transport [TCP, UDP]
	Transport common.Networks_NetIP_Transport `protobuf:"varint,1,opt,name=transport,proto3,enum=common.Networks_NetIP_Transport" json:"transport,omitempty"`
	// Security group name which will be src/dst of traffic when ingress/egress option chosen
	Sg string `protobuf:"bytes,2,opt,name=Sg,proto3" json:"Sg,omitempty"`
	// Security group name which will be src when egress chosen, and dst when ingress
	SgLocal string `protobuf:"bytes,3,opt,name=SgLocal,proto3" json:"SgLocal,omitempty"`
	// traffic direction [INGERSS, EGRESS]
	Traffic common.Traffic `protobuf:"varint,4,opt,name=traffic,proto3,enum=common.Traffic" json:"traffic,omitempty"`
	// AccPorts: access port set(s)
	Ports []*AccPorts `protobuf:"bytes,5,rep,name=ports,proto3" json:"ports,omitempty"`
	// logs: switch-{ON|OFF} logs in rules
	Logs bool `protobuf:"varint,6,opt,name=logs,proto3" json:"logs,omitempty"`
	// trace: switch-{ON|OFF} logs in rules
	Trace bool `protobuf:"varint,7,opt,name=trace,proto3" json:"trace,omitempty"`
	// action: represents rule action
	Action RuleAction `protobuf:"varint,8,opt,name=action,proto3,enum=hbf.v1.sgroups.RuleAction" json:"action,omitempty"`
	// priority: rule priority affects on rule pos in its rule list
	Priority *RulePriority `protobuf:"bytes,9,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

SG-SG <in|e>gress type rule

func (*SgSgRule) Descriptor deprecated

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

Deprecated: Use SgSgRule.ProtoReflect.Descriptor instead.

func (*SgSgRule) GetAction

func (x *SgSgRule) GetAction() RuleAction

func (*SgSgRule) GetLogs

func (x *SgSgRule) GetLogs() bool

func (*SgSgRule) GetPorts

func (x *SgSgRule) GetPorts() []*AccPorts

func (*SgSgRule) GetPriority

func (x *SgSgRule) GetPriority() *RulePriority

func (*SgSgRule) GetSg

func (x *SgSgRule) GetSg() string

func (*SgSgRule) GetSgLocal

func (x *SgSgRule) GetSgLocal() string

func (*SgSgRule) GetTrace

func (x *SgSgRule) GetTrace() bool

func (*SgSgRule) GetTraffic

func (x *SgSgRule) GetTraffic() common.Traffic

func (*SgSgRule) GetTransport

func (x *SgSgRule) GetTransport() common.Networks_NetIP_Transport

func (*SgSgRule) ProtoMessage

func (*SgSgRule) ProtoMessage()

func (*SgSgRule) ProtoReflect

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

func (*SgSgRule) Reset

func (x *SgSgRule) Reset()

func (*SgSgRule) String

func (x *SgSgRule) String() string

type SgSgRulesResp

type SgSgRulesResp struct {

	// SgSgRule rule item(s)
	Rules []*SgSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SgSgRulesResp: SG-SG-[INGRESS, EGRESS] rule(s) resp

func (*SgSgRulesResp) Descriptor deprecated

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

Deprecated: Use SgSgRulesResp.ProtoReflect.Descriptor instead.

func (*SgSgRulesResp) GetRules

func (x *SgSgRulesResp) GetRules() []*SgSgRule

func (*SgSgRulesResp) ProtoMessage

func (*SgSgRulesResp) ProtoMessage()

func (*SgSgRulesResp) ProtoReflect

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

func (*SgSgRulesResp) Reset

func (x *SgSgRulesResp) Reset()

func (*SgSgRulesResp) String

func (x *SgSgRulesResp) String() string

type SyncCidrSgIcmpRules

type SyncCidrSgIcmpRules struct {

	// CIDR-SG icmp rules
	Rules []*CidrSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncCidrSgIcmpRules: subject of CIDR-SG-[INGRESS|EGRESS]:ICMP to Sync

func (*SyncCidrSgIcmpRules) Descriptor deprecated

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

Deprecated: Use SyncCidrSgIcmpRules.ProtoReflect.Descriptor instead.

func (*SyncCidrSgIcmpRules) GetRules

func (x *SyncCidrSgIcmpRules) GetRules() []*CidrSgIcmpRule

func (*SyncCidrSgIcmpRules) ProtoMessage

func (*SyncCidrSgIcmpRules) ProtoMessage()

func (*SyncCidrSgIcmpRules) ProtoReflect

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

func (*SyncCidrSgIcmpRules) Reset

func (x *SyncCidrSgIcmpRules) Reset()

func (*SyncCidrSgIcmpRules) String

func (x *SyncCidrSgIcmpRules) String() string

type SyncCidrSgRules

type SyncCidrSgRules struct {
	Rules []*CidrSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncCidrSgRules: subject of CIDR-SG-[INGRESS|EGRESS] to Sync

func (*SyncCidrSgRules) Descriptor deprecated

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

Deprecated: Use SyncCidrSgRules.ProtoReflect.Descriptor instead.

func (*SyncCidrSgRules) GetRules

func (x *SyncCidrSgRules) GetRules() []*CidrSgRule

func (*SyncCidrSgRules) ProtoMessage

func (*SyncCidrSgRules) ProtoMessage()

func (*SyncCidrSgRules) ProtoReflect

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

func (*SyncCidrSgRules) Reset

func (x *SyncCidrSgRules) Reset()

func (*SyncCidrSgRules) String

func (x *SyncCidrSgRules) String() string

type SyncFqdnRules

type SyncFqdnRules struct {

	// fqdn rules items
	Rules []*FqdnRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncFqdnRules: subject of Security Group Rules to Sync

func (*SyncFqdnRules) Descriptor deprecated

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

Deprecated: Use SyncFqdnRules.ProtoReflect.Descriptor instead.

func (*SyncFqdnRules) GetRules

func (x *SyncFqdnRules) GetRules() []*FqdnRule

func (*SyncFqdnRules) ProtoMessage

func (*SyncFqdnRules) ProtoMessage()

func (*SyncFqdnRules) ProtoReflect

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

func (*SyncFqdnRules) Reset

func (x *SyncFqdnRules) Reset()

func (*SyncFqdnRules) String

func (x *SyncFqdnRules) String() string

type SyncIESgSgIcmpRules

type SyncIESgSgIcmpRules struct {

	// SG-SG icmp rules
	Rules []*IESgSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncIESgSgIcmpRules: subject of SG-SG-[INGRESS|EGRESS]:ICMP to Sync

func (*SyncIESgSgIcmpRules) Descriptor deprecated

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

Deprecated: Use SyncIESgSgIcmpRules.ProtoReflect.Descriptor instead.

func (*SyncIESgSgIcmpRules) GetRules

func (x *SyncIESgSgIcmpRules) GetRules() []*IESgSgIcmpRule

func (*SyncIESgSgIcmpRules) ProtoMessage

func (*SyncIESgSgIcmpRules) ProtoMessage()

func (*SyncIESgSgIcmpRules) ProtoReflect

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

func (*SyncIESgSgIcmpRules) Reset

func (x *SyncIESgSgIcmpRules) Reset()

func (*SyncIESgSgIcmpRules) String

func (x *SyncIESgSgIcmpRules) String() string

type SyncNetworks

type SyncNetworks struct {

	// network items
	Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

SyncNetworks: subject of Networks to Sync

func (*SyncNetworks) Descriptor deprecated

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

Deprecated: Use SyncNetworks.ProtoReflect.Descriptor instead.

func (*SyncNetworks) GetNetworks

func (x *SyncNetworks) GetNetworks() []*Network

func (*SyncNetworks) ProtoMessage

func (*SyncNetworks) ProtoMessage()

func (*SyncNetworks) ProtoReflect

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

func (*SyncNetworks) Reset

func (x *SyncNetworks) Reset()

func (*SyncNetworks) String

func (x *SyncNetworks) String() string

type SyncReq

type SyncReq struct {

	// sync operation to apply to
	SyncOp SyncReq_SyncOp `protobuf:"varint,1,opt,name=sync_op,json=syncOp,proto3,enum=hbf.v1.sgroups.SyncReq_SyncOp" json:"sync_op,omitempty"`
	// one of subject
	//
	// Types that are assignable to Subject:
	//
	//	*SyncReq_SgRules
	//	*SyncReq_Groups
	//	*SyncReq_Networks
	//	*SyncReq_FqdnRules
	//	*SyncReq_SgIcmpRules
	//	*SyncReq_SgSgIcmpRules
	//	*SyncReq_CidrSgRules
	//	*SyncReq_SgSgRules
	//	*SyncReq_IeSgSgIcmpRules
	//	*SyncReq_CidrSgIcmpRules
	Subject isSyncReq_Subject `protobuf_oneof:"subject"`
	// contains filtered or unexported fields
}

SyncReq: request to apply changes in DB for one of subject [Networks|Sucurity Groups|Security Grpups Rules]

func (*SyncReq) Descriptor deprecated

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

Deprecated: Use SyncReq.ProtoReflect.Descriptor instead.

func (*SyncReq) GetCidrSgIcmpRules

func (x *SyncReq) GetCidrSgIcmpRules() *SyncCidrSgIcmpRules

func (*SyncReq) GetCidrSgRules

func (x *SyncReq) GetCidrSgRules() *SyncCidrSgRules

func (*SyncReq) GetFqdnRules

func (x *SyncReq) GetFqdnRules() *SyncFqdnRules

func (*SyncReq) GetGroups

func (x *SyncReq) GetGroups() *SyncSecurityGroups

func (*SyncReq) GetIeSgSgIcmpRules

func (x *SyncReq) GetIeSgSgIcmpRules() *SyncIESgSgIcmpRules

func (*SyncReq) GetNetworks

func (x *SyncReq) GetNetworks() *SyncNetworks

func (*SyncReq) GetSgIcmpRules

func (x *SyncReq) GetSgIcmpRules() *SyncSgIcmpRules

func (*SyncReq) GetSgRules

func (x *SyncReq) GetSgRules() *SyncSGRules

func (*SyncReq) GetSgSgIcmpRules

func (x *SyncReq) GetSgSgIcmpRules() *SyncSgSgIcmpRules

func (*SyncReq) GetSgSgRules

func (x *SyncReq) GetSgSgRules() *SyncSgSgRules

func (*SyncReq) GetSubject

func (m *SyncReq) GetSubject() isSyncReq_Subject

func (*SyncReq) GetSyncOp

func (x *SyncReq) GetSyncOp() SyncReq_SyncOp

func (*SyncReq) ProtoMessage

func (*SyncReq) ProtoMessage()

func (*SyncReq) ProtoReflect

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

func (*SyncReq) Reset

func (x *SyncReq) Reset()

func (*SyncReq) String

func (x *SyncReq) String() string

type SyncReq_CidrSgIcmpRules

type SyncReq_CidrSgIcmpRules struct {
	// subject of CIDR-SG-[INGRESS|EGRESS]:ICMP rule(s)
	CidrSgIcmpRules *SyncCidrSgIcmpRules `protobuf:"bytes,11,opt,name=cidr_sg_icmp_rules,json=cidrSgIcmpRules,proto3,oneof"`
}

type SyncReq_CidrSgRules

type SyncReq_CidrSgRules struct {
	// subject of CIDR-SG-[INGERSS,EGRESS] rule(s)
	CidrSgRules *SyncCidrSgRules `protobuf:"bytes,8,opt,name=cidr_sg_rules,json=cidrSgRules,proto3,oneof"`
}

type SyncReq_FqdnRules

type SyncReq_FqdnRules struct {
	// subject of FQDN rule(s)
	FqdnRules *SyncFqdnRules `protobuf:"bytes,5,opt,name=fqdn_rules,json=fqdnRules,proto3,oneof"`
}

type SyncReq_Groups

type SyncReq_Groups struct {
	// subject of Security Grpup(s)
	Groups *SyncSecurityGroups `protobuf:"bytes,3,opt,name=groups,proto3,oneof"`
}

type SyncReq_IeSgSgIcmpRules

type SyncReq_IeSgSgIcmpRules struct {
	// subject of SG-SG-[INGRESS,EGRESS]:ICMP rule(s)
	IeSgSgIcmpRules *SyncIESgSgIcmpRules `protobuf:"bytes,10,opt,name=ie_sg_sg_icmp_rules,json=ieSgSgIcmpRules,proto3,oneof"`
}

type SyncReq_Networks

type SyncReq_Networks struct {
	// subject of Network(s)
	Networks *SyncNetworks `protobuf:"bytes,4,opt,name=networks,proto3,oneof"`
}

type SyncReq_SgIcmpRules

type SyncReq_SgIcmpRules struct {
	// subject of SG:ICMP rule(s)
	SgIcmpRules *SyncSgIcmpRules `protobuf:"bytes,6,opt,name=sg_icmp_rules,json=sgIcmpRules,proto3,oneof"`
}

type SyncReq_SgRules

type SyncReq_SgRules struct {
	// subject of Security Grpup(s) rule(s)
	SgRules *SyncSGRules `protobuf:"bytes,2,opt,name=sg_rules,json=sgRules,proto3,oneof"`
}

type SyncReq_SgSgIcmpRules

type SyncReq_SgSgIcmpRules struct {
	// subject of SG-SG:ICMP rule(s)
	SgSgIcmpRules *SyncSgSgIcmpRules `protobuf:"bytes,7,opt,name=sg_sg_icmp_rules,json=sgSgIcmpRules,proto3,oneof"`
}

type SyncReq_SgSgRules

type SyncReq_SgSgRules struct {
	// subject of SG-SG-[INGERSS,EGRESS] rule(s)
	SgSgRules *SyncSgSgRules `protobuf:"bytes,9,opt,name=sg_sg_rules,json=sgSgRules,proto3,oneof"`
}

type SyncReq_SyncOp

type SyncReq_SyncOp int32

SyncOp: sync operation

const (
	// NoOp: it meand there is no operation defined as default
	SyncReq_NoOp SyncReq_SyncOp = 0
	// FullSync: Delete+Insert+Update operations (default)
	SyncReq_FullSync SyncReq_SyncOp = 4
	// Upsert: Insert+Update operations
	SyncReq_Upsert SyncReq_SyncOp = 5
	// Delete: Delete operation
	SyncReq_Delete SyncReq_SyncOp = 6
)

func (SyncReq_SyncOp) Descriptor

func (SyncReq_SyncOp) Enum

func (x SyncReq_SyncOp) Enum() *SyncReq_SyncOp

func (SyncReq_SyncOp) EnumDescriptor deprecated

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

Deprecated: Use SyncReq_SyncOp.Descriptor instead.

func (SyncReq_SyncOp) Number

func (SyncReq_SyncOp) String

func (x SyncReq_SyncOp) String() string

func (SyncReq_SyncOp) Type

type SyncSGRules

type SyncSGRules struct {

	// security group rules items
	Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncSGRules: subject of Security Group Rules to Sync

func (*SyncSGRules) Descriptor deprecated

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

Deprecated: Use SyncSGRules.ProtoReflect.Descriptor instead.

func (*SyncSGRules) GetRules

func (x *SyncSGRules) GetRules() []*Rule

func (*SyncSGRules) ProtoMessage

func (*SyncSGRules) ProtoMessage()

func (*SyncSGRules) ProtoReflect

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

func (*SyncSGRules) Reset

func (x *SyncSGRules) Reset()

func (*SyncSGRules) String

func (x *SyncSGRules) String() string

type SyncSecurityGroups

type SyncSecurityGroups struct {

	// security group items
	Groups []*SecGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

SyncSecurityGroups: subject of Security Groups to Sync

func (*SyncSecurityGroups) Descriptor deprecated

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

Deprecated: Use SyncSecurityGroups.ProtoReflect.Descriptor instead.

func (*SyncSecurityGroups) GetGroups

func (x *SyncSecurityGroups) GetGroups() []*SecGroup

func (*SyncSecurityGroups) ProtoMessage

func (*SyncSecurityGroups) ProtoMessage()

func (*SyncSecurityGroups) ProtoReflect

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

func (*SyncSecurityGroups) Reset

func (x *SyncSecurityGroups) Reset()

func (*SyncSecurityGroups) String

func (x *SyncSecurityGroups) String() string

type SyncSgIcmpRules

type SyncSgIcmpRules struct {
	Rules []*SgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncSgIcmpRules: subject of SG:ICMP to Sync

func (*SyncSgIcmpRules) Descriptor deprecated

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

Deprecated: Use SyncSgIcmpRules.ProtoReflect.Descriptor instead.

func (*SyncSgIcmpRules) GetRules

func (x *SyncSgIcmpRules) GetRules() []*SgIcmpRule

func (*SyncSgIcmpRules) ProtoMessage

func (*SyncSgIcmpRules) ProtoMessage()

func (*SyncSgIcmpRules) ProtoReflect

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

func (*SyncSgIcmpRules) Reset

func (x *SyncSgIcmpRules) Reset()

func (*SyncSgIcmpRules) String

func (x *SyncSgIcmpRules) String() string

type SyncSgSgIcmpRules

type SyncSgSgIcmpRules struct {
	Rules []*SgSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncSgSgIcmpRules: subject of SG-SG:ICMP to Sync

func (*SyncSgSgIcmpRules) Descriptor deprecated

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

Deprecated: Use SyncSgSgIcmpRules.ProtoReflect.Descriptor instead.

func (*SyncSgSgIcmpRules) GetRules

func (x *SyncSgSgIcmpRules) GetRules() []*SgSgIcmpRule

func (*SyncSgSgIcmpRules) ProtoMessage

func (*SyncSgSgIcmpRules) ProtoMessage()

func (*SyncSgSgIcmpRules) ProtoReflect

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

func (*SyncSgSgIcmpRules) Reset

func (x *SyncSgSgIcmpRules) Reset()

func (*SyncSgSgIcmpRules) String

func (x *SyncSgSgIcmpRules) String() string

type SyncSgSgRules

type SyncSgSgRules struct {

	// SG-SG rules
	Rules []*SgSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

SyncSgSgRules: subject of SG-SG-[INGRESS|EGRESS] to Sync

func (*SyncSgSgRules) Descriptor deprecated

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

Deprecated: Use SyncSgSgRules.ProtoReflect.Descriptor instead.

func (*SyncSgSgRules) GetRules

func (x *SyncSgSgRules) GetRules() []*SgSgRule

func (*SyncSgSgRules) ProtoMessage

func (*SyncSgSgRules) ProtoMessage()

func (*SyncSgSgRules) ProtoReflect

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

func (*SyncSgSgRules) Reset

func (x *SyncSgSgRules) Reset()

func (*SyncSgSgRules) String

func (x *SyncSgSgRules) String() string

type SyncStatusResp

type SyncStatusResp struct {

	// last succeeded updated DB timestamp
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

SyncStatusResp: db status after last succeeded Sync

func (*SyncStatusResp) Descriptor deprecated

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

Deprecated: Use SyncStatusResp.ProtoReflect.Descriptor instead.

func (*SyncStatusResp) GetUpdatedAt

func (x *SyncStatusResp) GetUpdatedAt() *timestamppb.Timestamp

func (*SyncStatusResp) ProtoMessage

func (*SyncStatusResp) ProtoMessage()

func (*SyncStatusResp) ProtoReflect

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

func (*SyncStatusResp) Reset

func (x *SyncStatusResp) Reset()

func (*SyncStatusResp) String

func (x *SyncStatusResp) String() string

type UnimplementedSecGroupServiceServer

type UnimplementedSecGroupServiceServer struct {
}

UnimplementedSecGroupServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSecGroupServiceServer) FindCidrSgIcmpRules

func (UnimplementedSecGroupServiceServer) FindCidrSgRules

func (UnimplementedSecGroupServiceServer) FindFqdnRules

func (UnimplementedSecGroupServiceServer) FindIESgSgIcmpRules

func (UnimplementedSecGroupServiceServer) FindRules

func (UnimplementedSecGroupServiceServer) FindSgIcmpRules

func (UnimplementedSecGroupServiceServer) FindSgSgIcmpRules

func (UnimplementedSecGroupServiceServer) FindSgSgRules

func (UnimplementedSecGroupServiceServer) GetRules

func (UnimplementedSecGroupServiceServer) GetSecGroupForAddress

func (UnimplementedSecGroupServiceServer) GetSgSubnets

func (UnimplementedSecGroupServiceServer) ListNetworks

func (UnimplementedSecGroupServiceServer) ListSecurityGroups

func (UnimplementedSecGroupServiceServer) Sync

func (UnimplementedSecGroupServiceServer) SyncStatus

func (UnimplementedSecGroupServiceServer) SyncStatuses

type UnsafeSecGroupServiceServer

type UnsafeSecGroupServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSecGroupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecGroupServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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