sgroupsconnect

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SecGroupServiceSyncProcedure is the fully-qualified name of the SecGroupService's Sync RPC.
	SecGroupServiceSyncProcedure = "/hbf.v1.sgroups.SecGroupService/Sync"
	// SecGroupServiceSyncStatusProcedure is the fully-qualified name of the SecGroupService's
	// SyncStatus RPC.
	SecGroupServiceSyncStatusProcedure = "/hbf.v1.sgroups.SecGroupService/SyncStatus"
	// SecGroupServiceSyncStatusesProcedure is the fully-qualified name of the SecGroupService's
	// SyncStatuses RPC.
	SecGroupServiceSyncStatusesProcedure = "/hbf.v1.sgroups.SecGroupService/SyncStatuses"
	// SecGroupServiceListNetworksProcedure is the fully-qualified name of the SecGroupService's
	// ListNetworks RPC.
	SecGroupServiceListNetworksProcedure = "/hbf.v1.sgroups.SecGroupService/ListNetworks"
	// SecGroupServiceListSecurityGroupsProcedure is the fully-qualified name of the SecGroupService's
	// ListSecurityGroups RPC.
	SecGroupServiceListSecurityGroupsProcedure = "/hbf.v1.sgroups.SecGroupService/ListSecurityGroups"
	// SecGroupServiceListHostsProcedure is the fully-qualified name of the SecGroupService's ListHosts
	// RPC.
	SecGroupServiceListHostsProcedure = "/hbf.v1.sgroups.SecGroupService/ListHosts"
	// SecGroupServiceListServicesProcedure is the fully-qualified name of the SecGroupService's
	// ListServices RPC.
	SecGroupServiceListServicesProcedure = "/hbf.v1.sgroups.SecGroupService/ListServices"
	// SecGroupServiceListSvcSvcRulesProcedure is the fully-qualified name of the SecGroupService's
	// ListSvcSvcRules RPC.
	SecGroupServiceListSvcSvcRulesProcedure = "/hbf.v1.sgroups.SecGroupService/ListSvcSvcRules"
	// SecGroupServiceListSvcFqdnRulesProcedure is the fully-qualified name of the SecGroupService's
	// ListSvcFqdnRules RPC.
	SecGroupServiceListSvcFqdnRulesProcedure = "/hbf.v1.sgroups.SecGroupService/ListSvcFqdnRules"
	// SecGroupServiceListIECidrSvcRulesProcedure is the fully-qualified name of the SecGroupService's
	// ListIECidrSvcRules RPC.
	SecGroupServiceListIECidrSvcRulesProcedure = "/hbf.v1.sgroups.SecGroupService/ListIECidrSvcRules"
	// SecGroupServiceGetSgSubnetsProcedure is the fully-qualified name of the SecGroupService's
	// GetSgSubnets RPC.
	SecGroupServiceGetSgSubnetsProcedure = "/hbf.v1.sgroups.SecGroupService/GetSgSubnets"
	// SecGroupServiceGetSecGroupForAddressProcedure is the fully-qualified name of the
	// SecGroupService's GetSecGroupForAddress RPC.
	SecGroupServiceGetSecGroupForAddressProcedure = "/hbf.v1.sgroups.SecGroupService/GetSecGroupForAddress"
	// SecGroupServiceGetSecGroupForHostProcedure is the fully-qualified name of the SecGroupService's
	// GetSecGroupForHost RPC.
	SecGroupServiceGetSecGroupForHostProcedure = "/hbf.v1.sgroups.SecGroupService/GetSecGroupForHost"
	// SecGroupServiceFindSgSgRulesProcedure is the fully-qualified name of the SecGroupService's
	// FindSgSgRules RPC.
	SecGroupServiceFindSgSgRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindSgSgRules"
	// SecGroupServiceFindFqdnRulesProcedure is the fully-qualified name of the SecGroupService's
	// FindFqdnRules RPC.
	SecGroupServiceFindFqdnRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindFqdnRules"
	// SecGroupServiceFindSgIcmpRulesProcedure is the fully-qualified name of the SecGroupService's
	// FindSgIcmpRules RPC.
	SecGroupServiceFindSgIcmpRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindSgIcmpRules"
	// SecGroupServiceFindSgSgIcmpRulesProcedure is the fully-qualified name of the SecGroupService's
	// FindSgSgIcmpRules RPC.
	SecGroupServiceFindSgSgIcmpRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindSgSgIcmpRules"
	// SecGroupServiceFindIECidrSgRulesProcedure is the fully-qualified name of the SecGroupService's
	// FindIECidrSgRules RPC.
	SecGroupServiceFindIECidrSgRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindIECidrSgRules"
	// SecGroupServiceFindIESgSgRulesProcedure is the fully-qualified name of the SecGroupService's
	// FindIESgSgRules RPC.
	SecGroupServiceFindIESgSgRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindIESgSgRules"
	// SecGroupServiceFindIESgSgIcmpRulesProcedure is the fully-qualified name of the SecGroupService's
	// FindIESgSgIcmpRules RPC.
	SecGroupServiceFindIESgSgIcmpRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindIESgSgIcmpRules"
	// SecGroupServiceFindIECidrSgIcmpRulesProcedure is the fully-qualified name of the
	// SecGroupService's FindIECidrSgIcmpRules RPC.
	SecGroupServiceFindIECidrSgIcmpRulesProcedure = "/hbf.v1.sgroups.SecGroupService/FindIECidrSgIcmpRules"
	// SecGroupServiceUpdHostIPSetProcedure is the fully-qualified name of the SecGroupService's
	// UpdHostIPSet RPC.
	SecGroupServiceUpdHostIPSetProcedure = "/hbf.v1.sgroups.SecGroupService/UpdHostIPSet"
	// SecGroupServiceUpdHostInfoProcedure is the fully-qualified name of the SecGroupService's
	// UpdHostInfo RPC.
	SecGroupServiceUpdHostInfoProcedure = "/hbf.v1.sgroups.SecGroupService/UpdHostInfo"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// SecGroupServiceName is the fully-qualified name of the SecGroupService service.
	SecGroupServiceName = "hbf.v1.sgroups.SecGroupService"
)

Variables

This section is empty.

Functions

func NewSecGroupServiceHandler

func NewSecGroupServiceHandler(svc SecGroupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSecGroupServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type SecGroupServiceClient

type SecGroupServiceClient interface {
	Sync(context.Context, *connect.Request[sgroups.SyncReq]) (*connect.Response[empty.Empty], error)
	SyncStatus(context.Context, *connect.Request[empty.Empty]) (*connect.Response[sgroups.SyncStatusResp], error)
	SyncStatuses(context.Context, *connect.Request[empty.Empty]) (*connect.ServerStreamForClient[sgroups.SyncStatusResp], error)
	ListNetworks(context.Context, *connect.Request[sgroups.ListNetworksReq]) (*connect.Response[sgroups.ListNetworksResp], error)
	ListSecurityGroups(context.Context, *connect.Request[sgroups.ListSecurityGroupsReq]) (*connect.Response[sgroups.ListSecurityGroupsResp], error)
	ListHosts(context.Context, *connect.Request[sgroups.ListHostsReq]) (*connect.Response[sgroups.ListHostsResp], error)
	ListServices(context.Context, *connect.Request[sgroups.ListServicesReq]) (*connect.Response[sgroups.ListServicesResp], error)
	ListSvcSvcRules(context.Context, *connect.Request[sgroups.ListSvcSvcRulesReq]) (*connect.Response[sgroups.ListSvcSvcRulesResp], error)
	ListSvcFqdnRules(context.Context, *connect.Request[sgroups.ListSvcFqdnRulesReq]) (*connect.Response[sgroups.ListSvcFqdnRulesResp], error)
	ListIECidrSvcRules(context.Context, *connect.Request[sgroups.ListIECidrSvcRulesReq]) (*connect.Response[sgroups.ListIECidrSvcRulesResp], error)
	GetSgSubnets(context.Context, *connect.Request[sgroups.GetSgSubnetsReq]) (*connect.Response[sgroups.GetSgSubnetsResp], error)
	GetSecGroupForAddress(context.Context, *connect.Request[sgroups.GetSecGroupForAddressReq]) (*connect.Response[sgroups.SecGroup], error)
	GetSecGroupForHost(context.Context, *connect.Request[sgroups.GetSecGroupForHostReq]) (*connect.Response[sgroups.SecGroup], error)
	FindSgSgRules(context.Context, *connect.Request[sgroups.FindSgSgRulesReq]) (*connect.Response[sgroups.SgSgRulesResp], error)
	FindFqdnRules(context.Context, *connect.Request[sgroups.FindFqdnRulesReq]) (*connect.Response[sgroups.FqdnRulesResp], error)
	FindSgIcmpRules(context.Context, *connect.Request[sgroups.FindSgIcmpRulesReq]) (*connect.Response[sgroups.SgIcmpRulesResp], error)
	FindSgSgIcmpRules(context.Context, *connect.Request[sgroups.FindSgSgIcmpRulesReq]) (*connect.Response[sgroups.SgSgIcmpRulesResp], error)
	FindIECidrSgRules(context.Context, *connect.Request[sgroups.FindIECidrSgRulesReq]) (*connect.Response[sgroups.IECidrSgRulesResp], error)
	FindIESgSgRules(context.Context, *connect.Request[sgroups.FindIESgSgRulesReq]) (*connect.Response[sgroups.IESgSgRulesResp], error)
	FindIESgSgIcmpRules(context.Context, *connect.Request[sgroups.FindIESgSgIcmpRulesReq]) (*connect.Response[sgroups.IESgSgIcmpRulesResp], error)
	FindIECidrSgIcmpRules(context.Context, *connect.Request[sgroups.FindIECidrSgIcmpRulesReq]) (*connect.Response[sgroups.IECidrSgIcmpRulesResp], error)
	UpdHostIPSet(context.Context, *connect.Request[sgroups.UpdHostIPSetReq]) (*connect.Response[empty.Empty], error)
	UpdHostInfo(context.Context, *connect.Request[sgroups.UpdHostInfoReq]) (*connect.Response[empty.Empty], error)
}

SecGroupServiceClient is a client for the hbf.v1.sgroups.SecGroupService service.

func NewSecGroupServiceClient

func NewSecGroupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SecGroupServiceClient

NewSecGroupServiceClient constructs a client for the hbf.v1.sgroups.SecGroupService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type SecGroupServiceHandler

type SecGroupServiceHandler interface {
	Sync(context.Context, *connect.Request[sgroups.SyncReq]) (*connect.Response[empty.Empty], error)
	SyncStatus(context.Context, *connect.Request[empty.Empty]) (*connect.Response[sgroups.SyncStatusResp], error)
	SyncStatuses(context.Context, *connect.Request[empty.Empty], *connect.ServerStream[sgroups.SyncStatusResp]) error
	ListNetworks(context.Context, *connect.Request[sgroups.ListNetworksReq]) (*connect.Response[sgroups.ListNetworksResp], error)
	ListSecurityGroups(context.Context, *connect.Request[sgroups.ListSecurityGroupsReq]) (*connect.Response[sgroups.ListSecurityGroupsResp], error)
	ListHosts(context.Context, *connect.Request[sgroups.ListHostsReq]) (*connect.Response[sgroups.ListHostsResp], error)
	ListServices(context.Context, *connect.Request[sgroups.ListServicesReq]) (*connect.Response[sgroups.ListServicesResp], error)
	ListSvcSvcRules(context.Context, *connect.Request[sgroups.ListSvcSvcRulesReq]) (*connect.Response[sgroups.ListSvcSvcRulesResp], error)
	ListSvcFqdnRules(context.Context, *connect.Request[sgroups.ListSvcFqdnRulesReq]) (*connect.Response[sgroups.ListSvcFqdnRulesResp], error)
	ListIECidrSvcRules(context.Context, *connect.Request[sgroups.ListIECidrSvcRulesReq]) (*connect.Response[sgroups.ListIECidrSvcRulesResp], error)
	GetSgSubnets(context.Context, *connect.Request[sgroups.GetSgSubnetsReq]) (*connect.Response[sgroups.GetSgSubnetsResp], error)
	GetSecGroupForAddress(context.Context, *connect.Request[sgroups.GetSecGroupForAddressReq]) (*connect.Response[sgroups.SecGroup], error)
	GetSecGroupForHost(context.Context, *connect.Request[sgroups.GetSecGroupForHostReq]) (*connect.Response[sgroups.SecGroup], error)
	FindSgSgRules(context.Context, *connect.Request[sgroups.FindSgSgRulesReq]) (*connect.Response[sgroups.SgSgRulesResp], error)
	FindFqdnRules(context.Context, *connect.Request[sgroups.FindFqdnRulesReq]) (*connect.Response[sgroups.FqdnRulesResp], error)
	FindSgIcmpRules(context.Context, *connect.Request[sgroups.FindSgIcmpRulesReq]) (*connect.Response[sgroups.SgIcmpRulesResp], error)
	FindSgSgIcmpRules(context.Context, *connect.Request[sgroups.FindSgSgIcmpRulesReq]) (*connect.Response[sgroups.SgSgIcmpRulesResp], error)
	FindIECidrSgRules(context.Context, *connect.Request[sgroups.FindIECidrSgRulesReq]) (*connect.Response[sgroups.IECidrSgRulesResp], error)
	FindIESgSgRules(context.Context, *connect.Request[sgroups.FindIESgSgRulesReq]) (*connect.Response[sgroups.IESgSgRulesResp], error)
	FindIESgSgIcmpRules(context.Context, *connect.Request[sgroups.FindIESgSgIcmpRulesReq]) (*connect.Response[sgroups.IESgSgIcmpRulesResp], error)
	FindIECidrSgIcmpRules(context.Context, *connect.Request[sgroups.FindIECidrSgIcmpRulesReq]) (*connect.Response[sgroups.IECidrSgIcmpRulesResp], error)
	UpdHostIPSet(context.Context, *connect.Request[sgroups.UpdHostIPSetReq]) (*connect.Response[empty.Empty], error)
	UpdHostInfo(context.Context, *connect.Request[sgroups.UpdHostInfoReq]) (*connect.Response[empty.Empty], error)
}

SecGroupServiceHandler is an implementation of the hbf.v1.sgroups.SecGroupService service.

type UnimplementedSecGroupServiceHandler

type UnimplementedSecGroupServiceHandler struct{}

UnimplementedSecGroupServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSecGroupServiceHandler) ListIECidrSvcRules added in v1.0.4

func (UnimplementedSecGroupServiceHandler) Sync

func (UnimplementedSecGroupServiceHandler) SyncStatus

func (UnimplementedSecGroupServiceHandler) UpdHostIPSet added in v1.0.3

func (UnimplementedSecGroupServiceHandler) UpdHostInfo added in v1.0.4

Jump to

Keyboard shortcuts

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