Documentation ¶
Overview ¶
Package sgroups is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterSecGroupServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSecGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecGroupServiceClient) error
- func RegisterSecGroupServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSecGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecGroupServiceServer) error
- func RegisterSecGroupServiceServer(s grpc.ServiceRegistrar, srv SecGroupServiceServer)
- type AccPorts
- type FindFqdnRulesReq
- type FindIECidrSgIcmpRulesReq
- func (*FindIECidrSgIcmpRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindIECidrSgIcmpRulesReq) GetSG() []string
- func (*FindIECidrSgIcmpRulesReq) ProtoMessage()
- func (x *FindIECidrSgIcmpRulesReq) ProtoReflect() protoreflect.Message
- func (x *FindIECidrSgIcmpRulesReq) Reset()
- func (x *FindIECidrSgIcmpRulesReq) String() string
- type FindIECidrSgRulesReq
- func (*FindIECidrSgRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindIECidrSgRulesReq) GetSG() []string
- func (*FindIECidrSgRulesReq) ProtoMessage()
- func (x *FindIECidrSgRulesReq) ProtoReflect() protoreflect.Message
- func (x *FindIECidrSgRulesReq) Reset()
- func (x *FindIECidrSgRulesReq) String() string
- type FindIESgSgIcmpRulesReq
- func (*FindIESgSgIcmpRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindIESgSgIcmpRulesReq) GetSG() []string
- func (x *FindIESgSgIcmpRulesReq) GetSgLocal() []string
- func (*FindIESgSgIcmpRulesReq) ProtoMessage()
- func (x *FindIESgSgIcmpRulesReq) ProtoReflect() protoreflect.Message
- func (x *FindIESgSgIcmpRulesReq) Reset()
- func (x *FindIESgSgIcmpRulesReq) String() string
- type FindIESgSgRulesReq
- func (*FindIESgSgRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindIESgSgRulesReq) GetSG() []string
- func (x *FindIESgSgRulesReq) GetSgLocal() []string
- func (*FindIESgSgRulesReq) ProtoMessage()
- func (x *FindIESgSgRulesReq) ProtoReflect() protoreflect.Message
- func (x *FindIESgSgRulesReq) Reset()
- func (x *FindIESgSgRulesReq) String() string
- type FindSgIcmpRulesReq
- func (*FindSgIcmpRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindSgIcmpRulesReq) GetSG() []string
- func (*FindSgIcmpRulesReq) ProtoMessage()
- func (x *FindSgIcmpRulesReq) ProtoReflect() protoreflect.Message
- func (x *FindSgIcmpRulesReq) Reset()
- func (x *FindSgIcmpRulesReq) String() string
- type FindSgSgIcmpRulesReq
- func (*FindSgSgIcmpRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindSgSgIcmpRulesReq) GetSgFrom() []string
- func (x *FindSgSgIcmpRulesReq) GetSgTo() []string
- func (*FindSgSgIcmpRulesReq) ProtoMessage()
- func (x *FindSgSgIcmpRulesReq) ProtoReflect() protoreflect.Message
- func (x *FindSgSgIcmpRulesReq) Reset()
- func (x *FindSgSgIcmpRulesReq) String() string
- type FindSgSgRulesReq
- func (*FindSgSgRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindSgSgRulesReq) GetSgFrom() []string
- func (x *FindSgSgRulesReq) GetSgTo() []string
- func (*FindSgSgRulesReq) ProtoMessage()
- func (x *FindSgSgRulesReq) ProtoReflect() protoreflect.Message
- func (x *FindSgSgRulesReq) Reset()
- func (x *FindSgSgRulesReq) String() string
- type FqdnRule
- func (*FqdnRule) Descriptor() ([]byte, []int)deprecated
- func (x *FqdnRule) GetAction() RuleAction
- func (x *FqdnRule) GetFQDN() string
- func (x *FqdnRule) GetLogs() bool
- func (x *FqdnRule) GetPorts() []*AccPorts
- func (x *FqdnRule) GetPriority() *RulePriority
- func (x *FqdnRule) GetSgFrom() string
- func (x *FqdnRule) GetTransport() common.Networks_NetIP_Transport
- func (*FqdnRule) ProtoMessage()
- func (x *FqdnRule) ProtoReflect() protoreflect.Message
- func (x *FqdnRule) Reset()
- func (x *FqdnRule) String() string
- type FqdnRulesResp
- type GetSecGroupForAddressReq
- func (*GetSecGroupForAddressReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetSecGroupForAddressReq) GetAddress() string
- func (*GetSecGroupForAddressReq) ProtoMessage()
- func (x *GetSecGroupForAddressReq) ProtoReflect() protoreflect.Message
- func (x *GetSecGroupForAddressReq) Reset()
- func (x *GetSecGroupForAddressReq) String() string
- type GetSgSgRulesReq
- func (*GetSgSgRulesReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetSgSgRulesReq) GetSgFrom() string
- func (x *GetSgSgRulesReq) GetSgTo() string
- func (*GetSgSgRulesReq) ProtoMessage()
- func (x *GetSgSgRulesReq) ProtoReflect() protoreflect.Message
- func (x *GetSgSgRulesReq) Reset()
- func (x *GetSgSgRulesReq) String() string
- type GetSgSubnetsReq
- type GetSgSubnetsResp
- type IECidrSgIcmpRule
- func (*IECidrSgIcmpRule) Descriptor() ([]byte, []int)deprecated
- func (x *IECidrSgIcmpRule) GetAction() RuleAction
- func (x *IECidrSgIcmpRule) GetCIDR() string
- func (x *IECidrSgIcmpRule) GetICMP() *common.ICMP
- func (x *IECidrSgIcmpRule) GetLogs() bool
- func (x *IECidrSgIcmpRule) GetPriority() *RulePriority
- func (x *IECidrSgIcmpRule) GetSG() string
- func (x *IECidrSgIcmpRule) GetTrace() bool
- func (x *IECidrSgIcmpRule) GetTraffic() common.Traffic
- func (*IECidrSgIcmpRule) ProtoMessage()
- func (x *IECidrSgIcmpRule) ProtoReflect() protoreflect.Message
- func (x *IECidrSgIcmpRule) Reset()
- func (x *IECidrSgIcmpRule) String() string
- type IECidrSgIcmpRulesResp
- func (*IECidrSgIcmpRulesResp) Descriptor() ([]byte, []int)deprecated
- func (x *IECidrSgIcmpRulesResp) GetRules() []*IECidrSgIcmpRule
- func (*IECidrSgIcmpRulesResp) ProtoMessage()
- func (x *IECidrSgIcmpRulesResp) ProtoReflect() protoreflect.Message
- func (x *IECidrSgIcmpRulesResp) Reset()
- func (x *IECidrSgIcmpRulesResp) String() string
- type IECidrSgRule
- func (*IECidrSgRule) Descriptor() ([]byte, []int)deprecated
- func (x *IECidrSgRule) GetAction() RuleAction
- func (x *IECidrSgRule) GetCIDR() string
- func (x *IECidrSgRule) GetLogs() bool
- func (x *IECidrSgRule) GetPorts() []*AccPorts
- func (x *IECidrSgRule) GetPriority() *RulePriority
- func (x *IECidrSgRule) GetSG() string
- func (x *IECidrSgRule) GetTrace() bool
- func (x *IECidrSgRule) GetTraffic() common.Traffic
- func (x *IECidrSgRule) GetTransport() common.Networks_NetIP_Transport
- func (*IECidrSgRule) ProtoMessage()
- func (x *IECidrSgRule) ProtoReflect() protoreflect.Message
- func (x *IECidrSgRule) Reset()
- func (x *IECidrSgRule) String() string
- type IECidrSgRulesResp
- func (*IECidrSgRulesResp) Descriptor() ([]byte, []int)deprecated
- func (x *IECidrSgRulesResp) GetRules() []*IECidrSgRule
- func (*IECidrSgRulesResp) ProtoMessage()
- func (x *IECidrSgRulesResp) ProtoReflect() protoreflect.Message
- func (x *IECidrSgRulesResp) Reset()
- func (x *IECidrSgRulesResp) String() string
- type IESgSgIcmpRule
- func (*IESgSgIcmpRule) Descriptor() ([]byte, []int)deprecated
- func (x *IESgSgIcmpRule) GetAction() RuleAction
- func (x *IESgSgIcmpRule) GetICMP() *common.ICMP
- func (x *IESgSgIcmpRule) GetLogs() bool
- func (x *IESgSgIcmpRule) GetPriority() *RulePriority
- func (x *IESgSgIcmpRule) GetSG() string
- func (x *IESgSgIcmpRule) GetSgLocal() string
- func (x *IESgSgIcmpRule) GetTrace() bool
- func (x *IESgSgIcmpRule) GetTraffic() common.Traffic
- func (*IESgSgIcmpRule) ProtoMessage()
- func (x *IESgSgIcmpRule) ProtoReflect() protoreflect.Message
- func (x *IESgSgIcmpRule) Reset()
- func (x *IESgSgIcmpRule) String() string
- type IESgSgIcmpRulesResp
- func (*IESgSgIcmpRulesResp) Descriptor() ([]byte, []int)deprecated
- func (x *IESgSgIcmpRulesResp) GetRules() []*IESgSgIcmpRule
- func (*IESgSgIcmpRulesResp) ProtoMessage()
- func (x *IESgSgIcmpRulesResp) ProtoReflect() protoreflect.Message
- func (x *IESgSgIcmpRulesResp) Reset()
- func (x *IESgSgIcmpRulesResp) String() string
- type IESgSgRule
- func (*IESgSgRule) Descriptor() ([]byte, []int)deprecated
- func (x *IESgSgRule) GetAction() RuleAction
- func (x *IESgSgRule) GetLogs() bool
- func (x *IESgSgRule) GetPorts() []*AccPorts
- func (x *IESgSgRule) GetPriority() *RulePriority
- func (x *IESgSgRule) GetSG() string
- func (x *IESgSgRule) GetSgLocal() string
- func (x *IESgSgRule) GetTrace() bool
- func (x *IESgSgRule) GetTraffic() common.Traffic
- func (x *IESgSgRule) GetTransport() common.Networks_NetIP_Transport
- func (*IESgSgRule) ProtoMessage()
- func (x *IESgSgRule) ProtoReflect() protoreflect.Message
- func (x *IESgSgRule) Reset()
- func (x *IESgSgRule) String() string
- type IESgSgRulesResp
- type ListNetworksReq
- type ListNetworksResp
- type ListSecurityGroupsReq
- func (*ListSecurityGroupsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecurityGroupsReq) GetSgNames() []string
- func (*ListSecurityGroupsReq) ProtoMessage()
- func (x *ListSecurityGroupsReq) ProtoReflect() protoreflect.Message
- func (x *ListSecurityGroupsReq) Reset()
- func (x *ListSecurityGroupsReq) String() string
- type ListSecurityGroupsResp
- func (*ListSecurityGroupsResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecurityGroupsResp) GetGroups() []*SecGroup
- func (*ListSecurityGroupsResp) ProtoMessage()
- func (x *ListSecurityGroupsResp) ProtoReflect() protoreflect.Message
- func (x *ListSecurityGroupsResp) Reset()
- func (x *ListSecurityGroupsResp) String() string
- type Network
- type RuleAction
- type RulePriority
- func (*RulePriority) Descriptor() ([]byte, []int)deprecated
- func (x *RulePriority) GetSome() int32
- func (m *RulePriority) GetValue() isRulePriority_Value
- func (*RulePriority) ProtoMessage()
- func (x *RulePriority) ProtoReflect() protoreflect.Message
- func (x *RulePriority) Reset()
- func (x *RulePriority) String() string
- type RulePriority_Some
- type SecGroup
- func (*SecGroup) Descriptor() ([]byte, []int)deprecated
- func (x *SecGroup) GetDefaultAction() SecGroup_DefaultAction
- func (x *SecGroup) GetLogs() bool
- func (x *SecGroup) GetName() string
- func (x *SecGroup) GetNetworks() []string
- func (x *SecGroup) GetTrace() bool
- func (*SecGroup) ProtoMessage()
- func (x *SecGroup) ProtoReflect() protoreflect.Message
- func (x *SecGroup) Reset()
- func (x *SecGroup) String() string
- type SecGroupServiceClient
- type SecGroupServiceServer
- type SecGroupService_SyncStatusesClient
- type SecGroupService_SyncStatusesServer
- type SecGroup_DefaultAction
- func (SecGroup_DefaultAction) Descriptor() protoreflect.EnumDescriptor
- func (x SecGroup_DefaultAction) Enum() *SecGroup_DefaultAction
- func (SecGroup_DefaultAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecGroup_DefaultAction) Number() protoreflect.EnumNumber
- func (x SecGroup_DefaultAction) String() string
- func (SecGroup_DefaultAction) Type() protoreflect.EnumType
- type SgIcmpRule
- func (*SgIcmpRule) Descriptor() ([]byte, []int)deprecated
- func (x *SgIcmpRule) GetAction() RuleAction
- func (x *SgIcmpRule) GetICMP() *common.ICMP
- func (x *SgIcmpRule) GetLogs() bool
- func (x *SgIcmpRule) GetSG() string
- func (x *SgIcmpRule) GetTrace() bool
- func (*SgIcmpRule) ProtoMessage()
- func (x *SgIcmpRule) ProtoReflect() protoreflect.Message
- func (x *SgIcmpRule) Reset()
- func (x *SgIcmpRule) String() string
- type SgIcmpRulesResp
- type SgSgIcmpRule
- func (*SgSgIcmpRule) Descriptor() ([]byte, []int)deprecated
- func (x *SgSgIcmpRule) GetAction() RuleAction
- func (x *SgSgIcmpRule) GetICMP() *common.ICMP
- func (x *SgSgIcmpRule) GetLogs() bool
- func (x *SgSgIcmpRule) GetPriority() *RulePriority
- func (x *SgSgIcmpRule) GetSgFrom() string
- func (x *SgSgIcmpRule) GetSgTo() string
- func (x *SgSgIcmpRule) GetTrace() bool
- func (*SgSgIcmpRule) ProtoMessage()
- func (x *SgSgIcmpRule) ProtoReflect() protoreflect.Message
- func (x *SgSgIcmpRule) Reset()
- func (x *SgSgIcmpRule) String() string
- type SgSgIcmpRulesResp
- func (*SgSgIcmpRulesResp) Descriptor() ([]byte, []int)deprecated
- func (x *SgSgIcmpRulesResp) GetRules() []*SgSgIcmpRule
- func (*SgSgIcmpRulesResp) ProtoMessage()
- func (x *SgSgIcmpRulesResp) ProtoReflect() protoreflect.Message
- func (x *SgSgIcmpRulesResp) Reset()
- func (x *SgSgIcmpRulesResp) String() string
- type SgSgRule
- func (*SgSgRule) Descriptor() ([]byte, []int)deprecated
- func (x *SgSgRule) GetAction() RuleAction
- func (x *SgSgRule) GetLogs() bool
- func (x *SgSgRule) GetPorts() []*AccPorts
- func (x *SgSgRule) GetPriority() *RulePriority
- func (x *SgSgRule) GetSgFrom() string
- func (x *SgSgRule) GetSgTo() string
- func (x *SgSgRule) GetTransport() common.Networks_NetIP_Transport
- func (*SgSgRule) ProtoMessage()
- func (x *SgSgRule) ProtoReflect() protoreflect.Message
- func (x *SgSgRule) Reset()
- func (x *SgSgRule) String() string
- type SgSgRulesResp
- type SyncFqdnRules
- type SyncIECidrSgIcmpRules
- func (*SyncIECidrSgIcmpRules) Descriptor() ([]byte, []int)deprecated
- func (x *SyncIECidrSgIcmpRules) GetRules() []*IECidrSgIcmpRule
- func (*SyncIECidrSgIcmpRules) ProtoMessage()
- func (x *SyncIECidrSgIcmpRules) ProtoReflect() protoreflect.Message
- func (x *SyncIECidrSgIcmpRules) Reset()
- func (x *SyncIECidrSgIcmpRules) String() string
- type SyncIECidrSgRules
- func (*SyncIECidrSgRules) Descriptor() ([]byte, []int)deprecated
- func (x *SyncIECidrSgRules) GetRules() []*IECidrSgRule
- func (*SyncIECidrSgRules) ProtoMessage()
- func (x *SyncIECidrSgRules) ProtoReflect() protoreflect.Message
- func (x *SyncIECidrSgRules) Reset()
- func (x *SyncIECidrSgRules) String() string
- type SyncIESgSgIcmpRules
- func (*SyncIESgSgIcmpRules) Descriptor() ([]byte, []int)deprecated
- func (x *SyncIESgSgIcmpRules) GetRules() []*IESgSgIcmpRule
- func (*SyncIESgSgIcmpRules) ProtoMessage()
- func (x *SyncIESgSgIcmpRules) ProtoReflect() protoreflect.Message
- func (x *SyncIESgSgIcmpRules) Reset()
- func (x *SyncIESgSgIcmpRules) String() string
- type SyncIESgSgRules
- type SyncNetworks
- type SyncReq
- func (*SyncReq) Descriptor() ([]byte, []int)deprecated
- func (x *SyncReq) GetFqdnRules() *SyncFqdnRules
- func (x *SyncReq) GetGroups() *SyncSecurityGroups
- func (x *SyncReq) GetIeCidrSgIcmpRules() *SyncIECidrSgIcmpRules
- func (x *SyncReq) GetIeCidrSgRules() *SyncIECidrSgRules
- func (x *SyncReq) GetIeSgSgIcmpRules() *SyncIESgSgIcmpRules
- func (x *SyncReq) GetIeSgSgRules() *SyncIESgSgRules
- func (x *SyncReq) GetNetworks() *SyncNetworks
- func (x *SyncReq) GetSgIcmpRules() *SyncSgIcmpRules
- func (x *SyncReq) GetSgSgIcmpRules() *SyncSgSgIcmpRules
- func (x *SyncReq) GetSgSgRules() *SyncSgSgRules
- func (m *SyncReq) GetSubject() isSyncReq_Subject
- func (x *SyncReq) GetSyncOp() SyncReq_SyncOp
- func (*SyncReq) ProtoMessage()
- func (x *SyncReq) ProtoReflect() protoreflect.Message
- func (x *SyncReq) Reset()
- func (x *SyncReq) String() string
- type SyncReq_FqdnRules
- type SyncReq_Groups
- type SyncReq_IeCidrSgIcmpRules
- type SyncReq_IeCidrSgRules
- type SyncReq_IeSgSgIcmpRules
- type SyncReq_IeSgSgRules
- type SyncReq_Networks
- type SyncReq_SgIcmpRules
- type SyncReq_SgSgIcmpRules
- type SyncReq_SgSgRules
- type SyncReq_SyncOp
- func (SyncReq_SyncOp) Descriptor() protoreflect.EnumDescriptor
- func (x SyncReq_SyncOp) Enum() *SyncReq_SyncOp
- func (SyncReq_SyncOp) EnumDescriptor() ([]byte, []int)deprecated
- func (x SyncReq_SyncOp) Number() protoreflect.EnumNumber
- func (x SyncReq_SyncOp) String() string
- func (SyncReq_SyncOp) Type() protoreflect.EnumType
- type SyncSecurityGroups
- func (*SyncSecurityGroups) Descriptor() ([]byte, []int)deprecated
- func (x *SyncSecurityGroups) GetGroups() []*SecGroup
- func (*SyncSecurityGroups) ProtoMessage()
- func (x *SyncSecurityGroups) ProtoReflect() protoreflect.Message
- func (x *SyncSecurityGroups) Reset()
- func (x *SyncSecurityGroups) String() string
- type SyncSgIcmpRules
- type SyncSgSgIcmpRules
- func (*SyncSgSgIcmpRules) Descriptor() ([]byte, []int)deprecated
- func (x *SyncSgSgIcmpRules) GetRules() []*SgSgIcmpRule
- func (*SyncSgSgIcmpRules) ProtoMessage()
- func (x *SyncSgSgIcmpRules) ProtoReflect() protoreflect.Message
- func (x *SyncSgSgIcmpRules) Reset()
- func (x *SyncSgSgIcmpRules) String() string
- type SyncSgSgRules
- type SyncStatusResp
- type UnimplementedSecGroupServiceServer
- func (UnimplementedSecGroupServiceServer) FindFqdnRules(context.Context, *FindFqdnRulesReq) (*FqdnRulesResp, error)
- func (UnimplementedSecGroupServiceServer) FindIECidrSgIcmpRules(context.Context, *FindIECidrSgIcmpRulesReq) (*IECidrSgIcmpRulesResp, error)
- func (UnimplementedSecGroupServiceServer) FindIECidrSgRules(context.Context, *FindIECidrSgRulesReq) (*IECidrSgRulesResp, error)
- func (UnimplementedSecGroupServiceServer) FindIESgSgIcmpRules(context.Context, *FindIESgSgIcmpRulesReq) (*IESgSgIcmpRulesResp, error)
- func (UnimplementedSecGroupServiceServer) FindIESgSgRules(context.Context, *FindIESgSgRulesReq) (*IESgSgRulesResp, error)
- func (UnimplementedSecGroupServiceServer) FindSgIcmpRules(context.Context, *FindSgIcmpRulesReq) (*SgIcmpRulesResp, error)
- func (UnimplementedSecGroupServiceServer) FindSgSgIcmpRules(context.Context, *FindSgSgIcmpRulesReq) (*SgSgIcmpRulesResp, error)
- func (UnimplementedSecGroupServiceServer) FindSgSgRules(context.Context, *FindSgSgRulesReq) (*SgSgRulesResp, error)
- func (UnimplementedSecGroupServiceServer) GetSecGroupForAddress(context.Context, *GetSecGroupForAddressReq) (*SecGroup, error)
- func (UnimplementedSecGroupServiceServer) GetSgSubnets(context.Context, *GetSgSubnetsReq) (*GetSgSubnetsResp, error)
- func (UnimplementedSecGroupServiceServer) ListNetworks(context.Context, *ListNetworksReq) (*ListNetworksResp, error)
- func (UnimplementedSecGroupServiceServer) ListSecurityGroups(context.Context, *ListSecurityGroupsReq) (*ListSecurityGroupsResp, error)
- func (UnimplementedSecGroupServiceServer) Sync(context.Context, *SyncReq) (*emptypb.Empty, error)
- func (UnimplementedSecGroupServiceServer) SyncStatus(context.Context, *emptypb.Empty) (*SyncStatusResp, error)
- func (UnimplementedSecGroupServiceServer) SyncStatuses(*emptypb.Empty, SecGroupService_SyncStatusesServer) error
- type UnsafeSecGroupServiceServer
Constants ¶
const ( SecGroupService_Sync_FullMethodName = "/hbf.v2.sgroups.SecGroupService/Sync" SecGroupService_SyncStatus_FullMethodName = "/hbf.v2.sgroups.SecGroupService/SyncStatus" SecGroupService_SyncStatuses_FullMethodName = "/hbf.v2.sgroups.SecGroupService/SyncStatuses" SecGroupService_ListNetworks_FullMethodName = "/hbf.v2.sgroups.SecGroupService/ListNetworks" SecGroupService_ListSecurityGroups_FullMethodName = "/hbf.v2.sgroups.SecGroupService/ListSecurityGroups" SecGroupService_GetSgSubnets_FullMethodName = "/hbf.v2.sgroups.SecGroupService/GetSgSubnets" SecGroupService_FindSgSgRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindSgSgRules" SecGroupService_FindFqdnRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindFqdnRules" SecGroupService_FindSgIcmpRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindSgIcmpRules" SecGroupService_FindSgSgIcmpRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindSgSgIcmpRules" SecGroupService_FindIECidrSgRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindIECidrSgRules" SecGroupService_FindIESgSgRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindIESgSgRules" SecGroupService_FindIESgSgIcmpRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindIESgSgIcmpRules" SecGroupService_FindIECidrSgIcmpRules_FullMethodName = "/hbf.v2.sgroups.SecGroupService/FindIECidrSgIcmpRules" SecGroupService_GetSecGroupForAddress_FullMethodName = "/hbf.v2.sgroups.SecGroupService/GetSecGroupForAddress" )
Variables ¶
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.
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.
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.
var File_sgroups_api_proto protoreflect.FileDescriptor
var SecGroupService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hbf.v2.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: "FindSgSgRules", Handler: _SecGroupService_FindSgSgRules_Handler, }, { MethodName: "FindFqdnRules", Handler: _SecGroupService_FindFqdnRules_Handler, }, { MethodName: "FindSgIcmpRules", Handler: _SecGroupService_FindSgIcmpRules_Handler, }, { MethodName: "FindSgSgIcmpRules", Handler: _SecGroupService_FindSgSgIcmpRules_Handler, }, { MethodName: "FindIECidrSgRules", Handler: _SecGroupService_FindIECidrSgRules_Handler, }, { MethodName: "FindIESgSgRules", Handler: _SecGroupService_FindIESgSgRules_Handler, }, { MethodName: "FindIESgSgIcmpRules", Handler: _SecGroupService_FindIESgSgIcmpRules_Handler, }, { MethodName: "FindIECidrSgIcmpRules", Handler: _SecGroupService_FindIECidrSgIcmpRules_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) ProtoMessage ¶
func (*AccPorts) ProtoMessage()
func (*AccPorts) ProtoReflect ¶
func (x *AccPorts) ProtoReflect() protoreflect.Message
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 FindIECidrSgIcmpRulesReq ¶
type FindIECidrSgIcmpRulesReq struct { // scope SG name item(s) SG []string `protobuf:"bytes,1,rep,name=SG,proto3" json:"SG,omitempty"` // contains filtered or unexported fields }
FindIECidrSgIcmpRulesReq: req to find all CIDR-SG-[INGRESS|EGRESS]:ICMP rules(s) scoped by SG(s) variety
func (*FindIECidrSgIcmpRulesReq) Descriptor
deprecated
func (*FindIECidrSgIcmpRulesReq) Descriptor() ([]byte, []int)
Deprecated: Use FindIECidrSgIcmpRulesReq.ProtoReflect.Descriptor instead.
func (*FindIECidrSgIcmpRulesReq) GetSG ¶
func (x *FindIECidrSgIcmpRulesReq) GetSG() []string
func (*FindIECidrSgIcmpRulesReq) ProtoMessage ¶
func (*FindIECidrSgIcmpRulesReq) ProtoMessage()
func (*FindIECidrSgIcmpRulesReq) ProtoReflect ¶
func (x *FindIECidrSgIcmpRulesReq) ProtoReflect() protoreflect.Message
func (*FindIECidrSgIcmpRulesReq) Reset ¶
func (x *FindIECidrSgIcmpRulesReq) Reset()
func (*FindIECidrSgIcmpRulesReq) String ¶
func (x *FindIECidrSgIcmpRulesReq) String() string
type FindIECidrSgRulesReq ¶
type FindIECidrSgRulesReq struct { // scope GS name item(s) SG []string `protobuf:"bytes,1,rep,name=SG,proto3" json:"SG,omitempty"` // contains filtered or unexported fields }
FindIECidrSgRulesReq: req to find all CIRD-SG-[INGRESS|EGRESS] Rule(s) scoped by SG(s) variety
func (*FindIECidrSgRulesReq) Descriptor
deprecated
func (*FindIECidrSgRulesReq) Descriptor() ([]byte, []int)
Deprecated: Use FindIECidrSgRulesReq.ProtoReflect.Descriptor instead.
func (*FindIECidrSgRulesReq) GetSG ¶
func (x *FindIECidrSgRulesReq) GetSG() []string
func (*FindIECidrSgRulesReq) ProtoMessage ¶
func (*FindIECidrSgRulesReq) ProtoMessage()
func (*FindIECidrSgRulesReq) ProtoReflect ¶
func (x *FindIECidrSgRulesReq) ProtoReflect() protoreflect.Message
func (*FindIECidrSgRulesReq) Reset ¶
func (x *FindIECidrSgRulesReq) Reset()
func (*FindIECidrSgRulesReq) String ¶
func (x *FindIECidrSgRulesReq) 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=sg_local,json=sgLocal,proto3" json:"sg_local,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 FindIESgSgRulesReq ¶
type FindIESgSgRulesReq 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=sg_local,json=sgLocal,proto3" json:"sg_local,omitempty"` // contains filtered or unexported fields }
FindIESgSgRulesReq: req to find all SG-SG-[INGRESS|EGRESS] rule(s)
func (*FindIESgSgRulesReq) Descriptor
deprecated
func (*FindIESgSgRulesReq) Descriptor() ([]byte, []int)
Deprecated: Use FindIESgSgRulesReq.ProtoReflect.Descriptor instead.
func (*FindIESgSgRulesReq) GetSG ¶
func (x *FindIESgSgRulesReq) GetSG() []string
func (*FindIESgSgRulesReq) GetSgLocal ¶
func (x *FindIESgSgRulesReq) GetSgLocal() []string
func (*FindIESgSgRulesReq) ProtoMessage ¶
func (*FindIESgSgRulesReq) ProtoMessage()
func (*FindIESgSgRulesReq) ProtoReflect ¶
func (x *FindIESgSgRulesReq) ProtoReflect() protoreflect.Message
func (*FindIESgSgRulesReq) Reset ¶
func (x *FindIESgSgRulesReq) Reset()
func (*FindIESgSgRulesReq) String ¶
func (x *FindIESgSgRulesReq) 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 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 }
FindSgSgRulesReq: req to find all SecGroup(s) Rule(s) scoped by variety('from') --> variety('to') SG(s)
func (*FindSgSgRulesReq) Descriptor
deprecated
func (*FindSgSgRulesReq) Descriptor() ([]byte, []int)
Deprecated: Use FindSgSgRulesReq.ProtoReflect.Descriptor instead.
func (*FindSgSgRulesReq) GetSgFrom ¶
func (x *FindSgSgRulesReq) GetSgFrom() []string
func (*FindSgSgRulesReq) GetSgTo ¶
func (x *FindSgSgRulesReq) GetSgTo() []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 // repeated string protocols = 6; // action: represents rule action Action RuleAction `protobuf:"varint,7,opt,name=action,proto3,enum=hbf.v2.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) GetAction ¶
func (x *FqdnRule) GetAction() RuleAction
func (*FqdnRule) GetPriority ¶
func (x *FqdnRule) GetPriority() *RulePriority
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
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 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 GetSgSgRulesReq ¶
type GetSgSgRulesReq 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 }
GetSgSgRulesReq; req to get Rules scoped by SecGroup pair 'from' --> 'to'
func (*GetSgSgRulesReq) Descriptor
deprecated
func (*GetSgSgRulesReq) Descriptor() ([]byte, []int)
Deprecated: Use GetSgSgRulesReq.ProtoReflect.Descriptor instead.
func (*GetSgSgRulesReq) GetSgFrom ¶
func (x *GetSgSgRulesReq) GetSgFrom() string
func (*GetSgSgRulesReq) GetSgTo ¶
func (x *GetSgSgRulesReq) GetSgTo() string
func (*GetSgSgRulesReq) ProtoMessage ¶
func (*GetSgSgRulesReq) ProtoMessage()
func (*GetSgSgRulesReq) ProtoReflect ¶
func (x *GetSgSgRulesReq) ProtoReflect() protoreflect.Message
func (*GetSgSgRulesReq) Reset ¶
func (x *GetSgSgRulesReq) Reset()
func (*GetSgSgRulesReq) String ¶
func (x *GetSgSgRulesReq) 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 IECidrSgIcmpRule ¶
type IECidrSgIcmpRule 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.v2.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 (*IECidrSgIcmpRule) Descriptor
deprecated
func (*IECidrSgIcmpRule) Descriptor() ([]byte, []int)
Deprecated: Use IECidrSgIcmpRule.ProtoReflect.Descriptor instead.
func (*IECidrSgIcmpRule) GetAction ¶
func (x *IECidrSgIcmpRule) GetAction() RuleAction
func (*IECidrSgIcmpRule) GetCIDR ¶
func (x *IECidrSgIcmpRule) GetCIDR() string
func (*IECidrSgIcmpRule) GetICMP ¶
func (x *IECidrSgIcmpRule) GetICMP() *common.ICMP
func (*IECidrSgIcmpRule) GetLogs ¶
func (x *IECidrSgIcmpRule) GetLogs() bool
func (*IECidrSgIcmpRule) GetPriority ¶
func (x *IECidrSgIcmpRule) GetPriority() *RulePriority
func (*IECidrSgIcmpRule) GetSG ¶
func (x *IECidrSgIcmpRule) GetSG() string
func (*IECidrSgIcmpRule) GetTrace ¶
func (x *IECidrSgIcmpRule) GetTrace() bool
func (*IECidrSgIcmpRule) GetTraffic ¶
func (x *IECidrSgIcmpRule) GetTraffic() common.Traffic
func (*IECidrSgIcmpRule) ProtoMessage ¶
func (*IECidrSgIcmpRule) ProtoMessage()
func (*IECidrSgIcmpRule) ProtoReflect ¶
func (x *IECidrSgIcmpRule) ProtoReflect() protoreflect.Message
func (*IECidrSgIcmpRule) Reset ¶
func (x *IECidrSgIcmpRule) Reset()
func (*IECidrSgIcmpRule) String ¶
func (x *IECidrSgIcmpRule) String() string
type IECidrSgIcmpRulesResp ¶
type IECidrSgIcmpRulesResp struct { // IECidrSgIcmpRule rule item(s) Rules []*IECidrSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
IECidrSgIcmpRulesResp: CIDR-SG-[INGRESS|EGRESS]:ICMP rules(s) resp
func (*IECidrSgIcmpRulesResp) Descriptor
deprecated
func (*IECidrSgIcmpRulesResp) Descriptor() ([]byte, []int)
Deprecated: Use IECidrSgIcmpRulesResp.ProtoReflect.Descriptor instead.
func (*IECidrSgIcmpRulesResp) GetRules ¶
func (x *IECidrSgIcmpRulesResp) GetRules() []*IECidrSgIcmpRule
func (*IECidrSgIcmpRulesResp) ProtoMessage ¶
func (*IECidrSgIcmpRulesResp) ProtoMessage()
func (*IECidrSgIcmpRulesResp) ProtoReflect ¶
func (x *IECidrSgIcmpRulesResp) ProtoReflect() protoreflect.Message
func (*IECidrSgIcmpRulesResp) Reset ¶
func (x *IECidrSgIcmpRulesResp) Reset()
func (*IECidrSgIcmpRulesResp) String ¶
func (x *IECidrSgIcmpRulesResp) String() string
type IECidrSgRule ¶
type IECidrSgRule 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.v2.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 (*IECidrSgRule) Descriptor
deprecated
func (*IECidrSgRule) Descriptor() ([]byte, []int)
Deprecated: Use IECidrSgRule.ProtoReflect.Descriptor instead.
func (*IECidrSgRule) GetAction ¶
func (x *IECidrSgRule) GetAction() RuleAction
func (*IECidrSgRule) GetCIDR ¶
func (x *IECidrSgRule) GetCIDR() string
func (*IECidrSgRule) GetLogs ¶
func (x *IECidrSgRule) GetLogs() bool
func (*IECidrSgRule) GetPorts ¶
func (x *IECidrSgRule) GetPorts() []*AccPorts
func (*IECidrSgRule) GetPriority ¶
func (x *IECidrSgRule) GetPriority() *RulePriority
func (*IECidrSgRule) GetSG ¶
func (x *IECidrSgRule) GetSG() string
func (*IECidrSgRule) GetTrace ¶
func (x *IECidrSgRule) GetTrace() bool
func (*IECidrSgRule) GetTraffic ¶
func (x *IECidrSgRule) GetTraffic() common.Traffic
func (*IECidrSgRule) GetTransport ¶
func (x *IECidrSgRule) GetTransport() common.Networks_NetIP_Transport
func (*IECidrSgRule) ProtoMessage ¶
func (*IECidrSgRule) ProtoMessage()
func (*IECidrSgRule) ProtoReflect ¶
func (x *IECidrSgRule) ProtoReflect() protoreflect.Message
func (*IECidrSgRule) Reset ¶
func (x *IECidrSgRule) Reset()
func (*IECidrSgRule) String ¶
func (x *IECidrSgRule) String() string
type IECidrSgRulesResp ¶
type IECidrSgRulesResp struct { // СidrSgRules rule item(s) Rules []*IECidrSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
СidrSgRulesResp: CIDR-SG-[INGRESS, EGRESS] rule(s) resp
func (*IECidrSgRulesResp) Descriptor
deprecated
func (*IECidrSgRulesResp) Descriptor() ([]byte, []int)
Deprecated: Use IECidrSgRulesResp.ProtoReflect.Descriptor instead.
func (*IECidrSgRulesResp) GetRules ¶
func (x *IECidrSgRulesResp) GetRules() []*IECidrSgRule
func (*IECidrSgRulesResp) ProtoMessage ¶
func (*IECidrSgRulesResp) ProtoMessage()
func (*IECidrSgRulesResp) ProtoReflect ¶
func (x *IECidrSgRulesResp) ProtoReflect() protoreflect.Message
func (*IECidrSgRulesResp) Reset ¶
func (x *IECidrSgRulesResp) Reset()
func (*IECidrSgRulesResp) String ¶
func (x *IECidrSgRulesResp) 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=sg_local,json=sgLocal,proto3" json:"sg_local,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.v2.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 IESgSgRule ¶
type IESgSgRule 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=sg_local,json=sgLocal,proto3" json:"sg_local,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.v2.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 (*IESgSgRule) Descriptor
deprecated
func (*IESgSgRule) Descriptor() ([]byte, []int)
Deprecated: Use IESgSgRule.ProtoReflect.Descriptor instead.
func (*IESgSgRule) GetAction ¶
func (x *IESgSgRule) GetAction() RuleAction
func (*IESgSgRule) GetLogs ¶
func (x *IESgSgRule) GetLogs() bool
func (*IESgSgRule) GetPorts ¶
func (x *IESgSgRule) GetPorts() []*AccPorts
func (*IESgSgRule) GetPriority ¶
func (x *IESgSgRule) GetPriority() *RulePriority
func (*IESgSgRule) GetSG ¶
func (x *IESgSgRule) GetSG() string
func (*IESgSgRule) GetSgLocal ¶
func (x *IESgSgRule) GetSgLocal() string
func (*IESgSgRule) GetTrace ¶
func (x *IESgSgRule) GetTrace() bool
func (*IESgSgRule) GetTraffic ¶
func (x *IESgSgRule) GetTraffic() common.Traffic
func (*IESgSgRule) GetTransport ¶
func (x *IESgSgRule) GetTransport() common.Networks_NetIP_Transport
func (*IESgSgRule) ProtoMessage ¶
func (*IESgSgRule) ProtoMessage()
func (*IESgSgRule) ProtoReflect ¶
func (x *IESgSgRule) ProtoReflect() protoreflect.Message
func (*IESgSgRule) Reset ¶
func (x *IESgSgRule) Reset()
func (*IESgSgRule) String ¶
func (x *IESgSgRule) String() string
type IESgSgRulesResp ¶
type IESgSgRulesResp struct { // IESgSgRule rule item(s) Rules []*IESgSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
IESgSgRulesResp: SG-SG-[INGRESS, EGRESS] rule(s) resp
func (*IESgSgRulesResp) Descriptor
deprecated
func (*IESgSgRulesResp) Descriptor() ([]byte, []int)
Deprecated: Use IESgSgRulesResp.ProtoReflect.Descriptor instead.
func (*IESgSgRulesResp) GetRules ¶
func (x *IESgSgRulesResp) GetRules() []*IESgSgRule
func (*IESgSgRulesResp) ProtoMessage ¶
func (*IESgSgRulesResp) ProtoMessage()
func (*IESgSgRulesResp) ProtoReflect ¶
func (x *IESgSgRulesResp) ProtoReflect() protoreflect.Message
func (*IESgSgRulesResp) Reset ¶
func (x *IESgSgRulesResp) Reset()
func (*IESgSgRulesResp) String ¶
func (x *IESgSgRulesResp) String() string
type ListNetworksReq ¶
type ListNetworksReq struct { // network names scope; if none then list all netrworks NetworkNames []string `protobuf:"bytes,1,rep,name=network_names,json=networkNames,proto3" json:"network_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) GetNetworkNames ¶
func (x *ListNetworksReq) GetNetworkNames() []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) GetNetwork ¶
func (x *Network) GetNetwork() *common.Networks_NetIP
func (*Network) ProtoMessage ¶
func (*Network) ProtoMessage()
func (*Network) ProtoReflect ¶
func (x *Network) ProtoReflect() protoreflect.Message
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 ¶
func (RuleAction) Type() protoreflect.EnumType
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 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) GetDefaultAction ¶
func (x *SecGroup) GetDefaultAction() SecGroup_DefaultAction
func (*SecGroup) GetNetworks ¶
func (*SecGroup) ProtoMessage ¶
func (*SecGroup) ProtoMessage()
func (*SecGroup) ProtoReflect ¶
func (x *SecGroup) ProtoReflect() protoreflect.Message
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) FindSgSgRules(ctx context.Context, in *FindSgSgRulesReq, opts ...grpc.CallOption) (*SgSgRulesResp, 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) FindIECidrSgRules(ctx context.Context, in *FindIECidrSgRulesReq, opts ...grpc.CallOption) (*IECidrSgRulesResp, error) FindIESgSgRules(ctx context.Context, in *FindIESgSgRulesReq, opts ...grpc.CallOption) (*IESgSgRulesResp, error) FindIESgSgIcmpRules(ctx context.Context, in *FindIESgSgIcmpRulesReq, opts ...grpc.CallOption) (*IESgSgIcmpRulesResp, error) FindIECidrSgIcmpRules(ctx context.Context, in *FindIECidrSgIcmpRulesReq, opts ...grpc.CallOption) (*IECidrSgIcmpRulesResp, 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.
func NewSecGroupServiceClient ¶
func NewSecGroupServiceClient(cc grpc.ClientConnInterface) SecGroupServiceClient
type SecGroupServiceServer ¶
type SecGroupServiceServer interface { Sync(context.Context, *SyncReq) (*emptypb.Empty, error) SyncStatus(context.Context, *emptypb.Empty) (*SyncStatusResp, error) SyncStatuses(*emptypb.Empty, SecGroupService_SyncStatusesServer) error ListNetworks(context.Context, *ListNetworksReq) (*ListNetworksResp, error) ListSecurityGroups(context.Context, *ListSecurityGroupsReq) (*ListSecurityGroupsResp, error) GetSgSubnets(context.Context, *GetSgSubnetsReq) (*GetSgSubnetsResp, error) FindSgSgRules(context.Context, *FindSgSgRulesReq) (*SgSgRulesResp, error) FindFqdnRules(context.Context, *FindFqdnRulesReq) (*FqdnRulesResp, error) FindSgIcmpRules(context.Context, *FindSgIcmpRulesReq) (*SgIcmpRulesResp, error) FindSgSgIcmpRules(context.Context, *FindSgSgIcmpRulesReq) (*SgSgIcmpRulesResp, error) FindIECidrSgRules(context.Context, *FindIECidrSgRulesReq) (*IECidrSgRulesResp, error) FindIESgSgRules(context.Context, *FindIESgSgRulesReq) (*IESgSgRulesResp, error) FindIESgSgIcmpRules(context.Context, *FindIESgSgIcmpRulesReq) (*IESgSgIcmpRulesResp, error) FindIECidrSgIcmpRules(context.Context, *FindIECidrSgIcmpRulesReq) (*IECidrSgIcmpRulesResp, error) GetSecGroupForAddress(context.Context, *GetSecGroupForAddressReq) (*SecGroup, error) // contains filtered or unexported methods }
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) Descriptor() protoreflect.EnumDescriptor
func (SecGroup_DefaultAction) Enum ¶
func (x SecGroup_DefaultAction) Enum() *SecGroup_DefaultAction
func (SecGroup_DefaultAction) EnumDescriptor
deprecated
func (SecGroup_DefaultAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecGroup_DefaultAction.Descriptor instead.
func (SecGroup_DefaultAction) Number ¶
func (x SecGroup_DefaultAction) Number() protoreflect.EnumNumber
func (SecGroup_DefaultAction) String ¶
func (x SecGroup_DefaultAction) String() string
func (SecGroup_DefaultAction) Type ¶
func (SecGroup_DefaultAction) Type() protoreflect.EnumType
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.v2.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.v2.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 { // 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.v2.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 }
SgSgRule: represents Security Groups Rule
func (*SgSgRule) Descriptor
deprecated
func (*SgSgRule) GetAction ¶
func (x *SgSgRule) GetAction() RuleAction
func (*SgSgRule) GetPriority ¶
func (x *SgSgRule) GetPriority() *RulePriority
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
type SgSgRulesResp ¶
type SgSgRulesResp struct { // SG rule(s) items Rules []*SgSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
SgSgRulesResp: Security Group(s) 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 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 SyncIECidrSgIcmpRules ¶
type SyncIECidrSgIcmpRules struct { // CIDR-SG icmp rules Rules []*IECidrSgIcmpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
SyncIECidrSgIcmpRules: subject of CIDR-SG-[INGRESS|EGRESS]:ICMP to Sync
func (*SyncIECidrSgIcmpRules) Descriptor
deprecated
func (*SyncIECidrSgIcmpRules) Descriptor() ([]byte, []int)
Deprecated: Use SyncIECidrSgIcmpRules.ProtoReflect.Descriptor instead.
func (*SyncIECidrSgIcmpRules) GetRules ¶
func (x *SyncIECidrSgIcmpRules) GetRules() []*IECidrSgIcmpRule
func (*SyncIECidrSgIcmpRules) ProtoMessage ¶
func (*SyncIECidrSgIcmpRules) ProtoMessage()
func (*SyncIECidrSgIcmpRules) ProtoReflect ¶
func (x *SyncIECidrSgIcmpRules) ProtoReflect() protoreflect.Message
func (*SyncIECidrSgIcmpRules) Reset ¶
func (x *SyncIECidrSgIcmpRules) Reset()
func (*SyncIECidrSgIcmpRules) String ¶
func (x *SyncIECidrSgIcmpRules) String() string
type SyncIECidrSgRules ¶
type SyncIECidrSgRules struct { Rules []*IECidrSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
SyncIECidrSgRules: subject of CIDR-SG-[INGRESS|EGRESS] to Sync
func (*SyncIECidrSgRules) Descriptor
deprecated
func (*SyncIECidrSgRules) Descriptor() ([]byte, []int)
Deprecated: Use SyncIECidrSgRules.ProtoReflect.Descriptor instead.
func (*SyncIECidrSgRules) GetRules ¶
func (x *SyncIECidrSgRules) GetRules() []*IECidrSgRule
func (*SyncIECidrSgRules) ProtoMessage ¶
func (*SyncIECidrSgRules) ProtoMessage()
func (*SyncIECidrSgRules) ProtoReflect ¶
func (x *SyncIECidrSgRules) ProtoReflect() protoreflect.Message
func (*SyncIECidrSgRules) Reset ¶
func (x *SyncIECidrSgRules) Reset()
func (*SyncIECidrSgRules) String ¶
func (x *SyncIECidrSgRules) 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 SyncIESgSgRules ¶
type SyncIESgSgRules struct { // SG-SG rules Rules []*IESgSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
SyncIESgSgRules: subject of SG-SG-[INGRESS|EGRESS] to Sync
func (*SyncIESgSgRules) Descriptor
deprecated
func (*SyncIESgSgRules) Descriptor() ([]byte, []int)
Deprecated: Use SyncIESgSgRules.ProtoReflect.Descriptor instead.
func (*SyncIESgSgRules) GetRules ¶
func (x *SyncIESgSgRules) GetRules() []*IESgSgRule
func (*SyncIESgSgRules) ProtoMessage ¶
func (*SyncIESgSgRules) ProtoMessage()
func (*SyncIESgSgRules) ProtoReflect ¶
func (x *SyncIESgSgRules) ProtoReflect() protoreflect.Message
func (*SyncIESgSgRules) Reset ¶
func (x *SyncIESgSgRules) Reset()
func (*SyncIESgSgRules) String ¶
func (x *SyncIESgSgRules) 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.v2.sgroups.SyncReq_SyncOp" json:"sync_op,omitempty"` // one of subject // // Types that are assignable to Subject: // // *SyncReq_Groups // *SyncReq_Networks // *SyncReq_SgSgRules // *SyncReq_FqdnRules // *SyncReq_SgIcmpRules // *SyncReq_SgSgIcmpRules // *SyncReq_IeCidrSgRules // *SyncReq_IeSgSgRules // *SyncReq_IeSgSgIcmpRules // *SyncReq_IeCidrSgIcmpRules 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) GetFqdnRules ¶
func (x *SyncReq) GetFqdnRules() *SyncFqdnRules
func (*SyncReq) GetGroups ¶
func (x *SyncReq) GetGroups() *SyncSecurityGroups
func (*SyncReq) GetIeCidrSgIcmpRules ¶
func (x *SyncReq) GetIeCidrSgIcmpRules() *SyncIECidrSgIcmpRules
func (*SyncReq) GetIeCidrSgRules ¶
func (x *SyncReq) GetIeCidrSgRules() *SyncIECidrSgRules
func (*SyncReq) GetIeSgSgIcmpRules ¶
func (x *SyncReq) GetIeSgSgIcmpRules() *SyncIESgSgIcmpRules
func (*SyncReq) GetIeSgSgRules ¶
func (x *SyncReq) GetIeSgSgRules() *SyncIESgSgRules
func (*SyncReq) GetNetworks ¶
func (x *SyncReq) GetNetworks() *SyncNetworks
func (*SyncReq) GetSgIcmpRules ¶
func (x *SyncReq) GetSgIcmpRules() *SyncSgIcmpRules
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
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,2,opt,name=groups,proto3,oneof"` }
type SyncReq_IeCidrSgIcmpRules ¶
type SyncReq_IeCidrSgIcmpRules struct { // subject of CIDR-SG-[INGRESS|EGRESS]:ICMP rule(s) IeCidrSgIcmpRules *SyncIECidrSgIcmpRules `protobuf:"bytes,11,opt,name=ie_cidr_sg_icmp_rules,json=ieCidrSgIcmpRules,proto3,oneof"` }
type SyncReq_IeCidrSgRules ¶
type SyncReq_IeCidrSgRules struct { // subject of CIDR-SG-[INGERSS,EGRESS] rule(s) IeCidrSgRules *SyncIECidrSgRules `protobuf:"bytes,8,opt,name=ie_cidr_sg_rules,json=ieCidrSgRules,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_IeSgSgRules ¶
type SyncReq_IeSgSgRules struct { // subject of SG-SG-[INGERSS,EGRESS] rule(s) IeSgSgRules *SyncIESgSgRules `protobuf:"bytes,9,opt,name=ie_sg_sg_rules,json=ieSgSgRules,proto3,oneof"` }
type SyncReq_Networks ¶
type SyncReq_Networks struct { // subject of Network(s) Networks *SyncNetworks `protobuf:"bytes,3,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_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 Security Grpup(s) rule(s) SgSgRules *SyncSgSgRules `protobuf:"bytes,4,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) Descriptor() protoreflect.EnumDescriptor
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 (x SyncReq_SyncOp) Number() protoreflect.EnumNumber
func (SyncReq_SyncOp) String ¶
func (x SyncReq_SyncOp) String() string
func (SyncReq_SyncOp) Type ¶
func (SyncReq_SyncOp) Type() protoreflect.EnumType
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 { // security group rules items Rules []*SgSgRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
SyncSgSgRules: subject of Security Group Rules 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) FindFqdnRules ¶
func (UnimplementedSecGroupServiceServer) FindFqdnRules(context.Context, *FindFqdnRulesReq) (*FqdnRulesResp, error)
func (UnimplementedSecGroupServiceServer) FindIECidrSgIcmpRules ¶
func (UnimplementedSecGroupServiceServer) FindIECidrSgIcmpRules(context.Context, *FindIECidrSgIcmpRulesReq) (*IECidrSgIcmpRulesResp, error)
func (UnimplementedSecGroupServiceServer) FindIECidrSgRules ¶
func (UnimplementedSecGroupServiceServer) FindIECidrSgRules(context.Context, *FindIECidrSgRulesReq) (*IECidrSgRulesResp, error)
func (UnimplementedSecGroupServiceServer) FindIESgSgIcmpRules ¶
func (UnimplementedSecGroupServiceServer) FindIESgSgIcmpRules(context.Context, *FindIESgSgIcmpRulesReq) (*IESgSgIcmpRulesResp, error)
func (UnimplementedSecGroupServiceServer) FindIESgSgRules ¶
func (UnimplementedSecGroupServiceServer) FindIESgSgRules(context.Context, *FindIESgSgRulesReq) (*IESgSgRulesResp, error)
func (UnimplementedSecGroupServiceServer) FindSgIcmpRules ¶
func (UnimplementedSecGroupServiceServer) FindSgIcmpRules(context.Context, *FindSgIcmpRulesReq) (*SgIcmpRulesResp, error)
func (UnimplementedSecGroupServiceServer) FindSgSgIcmpRules ¶
func (UnimplementedSecGroupServiceServer) FindSgSgIcmpRules(context.Context, *FindSgSgIcmpRulesReq) (*SgSgIcmpRulesResp, error)
func (UnimplementedSecGroupServiceServer) FindSgSgRules ¶
func (UnimplementedSecGroupServiceServer) FindSgSgRules(context.Context, *FindSgSgRulesReq) (*SgSgRulesResp, error)
func (UnimplementedSecGroupServiceServer) GetSecGroupForAddress ¶
func (UnimplementedSecGroupServiceServer) GetSecGroupForAddress(context.Context, *GetSecGroupForAddressReq) (*SecGroup, error)
func (UnimplementedSecGroupServiceServer) GetSgSubnets ¶
func (UnimplementedSecGroupServiceServer) GetSgSubnets(context.Context, *GetSgSubnetsReq) (*GetSgSubnetsResp, error)
func (UnimplementedSecGroupServiceServer) ListNetworks ¶
func (UnimplementedSecGroupServiceServer) ListNetworks(context.Context, *ListNetworksReq) (*ListNetworksResp, error)
func (UnimplementedSecGroupServiceServer) ListSecurityGroups ¶
func (UnimplementedSecGroupServiceServer) ListSecurityGroups(context.Context, *ListSecurityGroupsReq) (*ListSecurityGroupsResp, error)
func (UnimplementedSecGroupServiceServer) SyncStatus ¶
func (UnimplementedSecGroupServiceServer) SyncStatus(context.Context, *emptypb.Empty) (*SyncStatusResp, error)
func (UnimplementedSecGroupServiceServer) SyncStatuses ¶
func (UnimplementedSecGroupServiceServer) SyncStatuses(*emptypb.Empty, SecGroupService_SyncStatusesServer) error
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.