bgpv1connect

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BgpServiceCreateASNRangeProcedure is the fully-qualified name of the BgpService's CreateASNRange
	// RPC.
	BgpServiceCreateASNRangeProcedure = "/cloudstack.management.bgp.v1.BgpService/CreateASNRange"
	// BgpServiceDeleteASNRangeProcedure is the fully-qualified name of the BgpService's DeleteASNRange
	// RPC.
	BgpServiceDeleteASNRangeProcedure = "/cloudstack.management.bgp.v1.BgpService/DeleteASNRange"
	// BgpServiceListASNRangesProcedure is the fully-qualified name of the BgpService's ListASNRanges
	// RPC.
	BgpServiceListASNRangesProcedure = "/cloudstack.management.bgp.v1.BgpService/ListASNRanges"
	// BgpServiceListASNumbersProcedure is the fully-qualified name of the BgpService's ListASNumbers
	// RPC.
	BgpServiceListASNumbersProcedure = "/cloudstack.management.bgp.v1.BgpService/ListASNumbers"
	// BgpServiceReleaseASNumberProcedure is the fully-qualified name of the BgpService's
	// ReleaseASNumber RPC.
	BgpServiceReleaseASNumberProcedure = "/cloudstack.management.bgp.v1.BgpService/ReleaseASNumber"
)

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 (
	// BgpServiceName is the fully-qualified name of the BgpService service.
	BgpServiceName = "cloudstack.management.bgp.v1.BgpService"
)

Variables

This section is empty.

Functions

func NewBgpServiceHandler

func NewBgpServiceHandler(svc BgpServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewBgpServiceHandler 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 BgpServiceClient

type BgpServiceClient interface {
	// CreateASNRange Creates a range of Autonomous Systems for BGP Dynamic Routing
	CreateASNRange(context.Context, *connect.Request[v1.CreateASNRangeRequest]) (*connect.Response[v1.CreateASNRangeResponse], error)
	// DeleteASNRange deletes a range of Autonomous Systems for BGP Dynamic Routing
	DeleteASNRange(context.Context, *connect.Request[v1.DeleteASNRangeRequest]) (*connect.Response[v1.DeleteASNRangeResponse], error)
	// ListASNRanges List Autonomous Systems Number Ranges
	ListASNRanges(context.Context, *connect.Request[v1.ListASNRangesRequest]) (*connect.Response[v1.ListASNRangesResponse], error)
	// ListASNumbers List Autonomous Systems Numbers
	ListASNumbers(context.Context, *connect.Request[v1.ListASNumbersRequest]) (*connect.Response[v1.ListASNumbersResponse], error)
	// ReleaseASNumber Releases an AS Number back to the pool
	ReleaseASNumber(context.Context, *connect.Request[v1.ReleaseASNumberRequest]) (*connect.Response[v1.ReleaseASNumberResponse], error)
}

BgpServiceClient is a client for the cloudstack.management.bgp.v1.BgpService service.

func NewBgpServiceClient

func NewBgpServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) BgpServiceClient

NewBgpServiceClient constructs a client for the cloudstack.management.bgp.v1.BgpService 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 BgpServiceHandler

type BgpServiceHandler interface {
	// CreateASNRange Creates a range of Autonomous Systems for BGP Dynamic Routing
	CreateASNRange(context.Context, *connect.Request[v1.CreateASNRangeRequest]) (*connect.Response[v1.CreateASNRangeResponse], error)
	// DeleteASNRange deletes a range of Autonomous Systems for BGP Dynamic Routing
	DeleteASNRange(context.Context, *connect.Request[v1.DeleteASNRangeRequest]) (*connect.Response[v1.DeleteASNRangeResponse], error)
	// ListASNRanges List Autonomous Systems Number Ranges
	ListASNRanges(context.Context, *connect.Request[v1.ListASNRangesRequest]) (*connect.Response[v1.ListASNRangesResponse], error)
	// ListASNumbers List Autonomous Systems Numbers
	ListASNumbers(context.Context, *connect.Request[v1.ListASNumbersRequest]) (*connect.Response[v1.ListASNumbersResponse], error)
	// ReleaseASNumber Releases an AS Number back to the pool
	ReleaseASNumber(context.Context, *connect.Request[v1.ReleaseASNumberRequest]) (*connect.Response[v1.ReleaseASNumberResponse], error)
}

BgpServiceHandler is an implementation of the cloudstack.management.bgp.v1.BgpService service.

type UnimplementedBgpServiceHandler

type UnimplementedBgpServiceHandler struct{}

UnimplementedBgpServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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