vpcv1connect

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 (
	// VpcServiceCreatePrivateGatewayProcedure is the fully-qualified name of the VpcService's
	// CreatePrivateGateway RPC.
	VpcServiceCreatePrivateGatewayProcedure = "/cloudstack.management.vpc.v1.VpcService/CreatePrivateGateway"
	// VpcServiceCreatePrivateGatewayByAdminProcedure is the fully-qualified name of the VpcService's
	// CreatePrivateGatewayByAdmin RPC.
	VpcServiceCreatePrivateGatewayByAdminProcedure = "/cloudstack.management.vpc.v1.VpcService/CreatePrivateGatewayByAdmin"
	// VpcServiceCreateStaticRouteProcedure is the fully-qualified name of the VpcService's
	// CreateStaticRoute RPC.
	VpcServiceCreateStaticRouteProcedure = "/cloudstack.management.vpc.v1.VpcService/CreateStaticRoute"
	// VpcServiceCreateVPCProcedure is the fully-qualified name of the VpcService's CreateVPC RPC.
	VpcServiceCreateVPCProcedure = "/cloudstack.management.vpc.v1.VpcService/CreateVPC"
	// VpcServiceCreateVPCCmdByAdminProcedure is the fully-qualified name of the VpcService's
	// CreateVPCCmdByAdmin RPC.
	VpcServiceCreateVPCCmdByAdminProcedure = "/cloudstack.management.vpc.v1.VpcService/CreateVPCCmdByAdmin"
	// VpcServiceCreateVPCOfferingProcedure is the fully-qualified name of the VpcService's
	// CreateVPCOffering RPC.
	VpcServiceCreateVPCOfferingProcedure = "/cloudstack.management.vpc.v1.VpcService/CreateVPCOffering"
	// VpcServiceDeletePrivateGatewayProcedure is the fully-qualified name of the VpcService's
	// DeletePrivateGateway RPC.
	VpcServiceDeletePrivateGatewayProcedure = "/cloudstack.management.vpc.v1.VpcService/DeletePrivateGateway"
	// VpcServiceDeleteStaticRouteProcedure is the fully-qualified name of the VpcService's
	// DeleteStaticRoute RPC.
	VpcServiceDeleteStaticRouteProcedure = "/cloudstack.management.vpc.v1.VpcService/DeleteStaticRoute"
	// VpcServiceDeleteVPCProcedure is the fully-qualified name of the VpcService's DeleteVPC RPC.
	VpcServiceDeleteVPCProcedure = "/cloudstack.management.vpc.v1.VpcService/DeleteVPC"
	// VpcServiceDeleteVPCOfferingProcedure is the fully-qualified name of the VpcService's
	// DeleteVPCOffering RPC.
	VpcServiceDeleteVPCOfferingProcedure = "/cloudstack.management.vpc.v1.VpcService/DeleteVPCOffering"
	// VpcServiceListPrivateGatewaysProcedure is the fully-qualified name of the VpcService's
	// ListPrivateGateways RPC.
	VpcServiceListPrivateGatewaysProcedure = "/cloudstack.management.vpc.v1.VpcService/ListPrivateGateways"
	// VpcServiceListPrivateGatewaysCmdByAdminProcedure is the fully-qualified name of the VpcService's
	// ListPrivateGatewaysCmdByAdmin RPC.
	VpcServiceListPrivateGatewaysCmdByAdminProcedure = "/cloudstack.management.vpc.v1.VpcService/ListPrivateGatewaysCmdByAdmin"
	// VpcServiceListStaticRoutesProcedure is the fully-qualified name of the VpcService's
	// ListStaticRoutes RPC.
	VpcServiceListStaticRoutesProcedure = "/cloudstack.management.vpc.v1.VpcService/ListStaticRoutes"
	// VpcServiceListVPCOfferingsProcedure is the fully-qualified name of the VpcService's
	// ListVPCOfferings RPC.
	VpcServiceListVPCOfferingsProcedure = "/cloudstack.management.vpc.v1.VpcService/ListVPCOfferings"
	// VpcServiceListVPCsProcedure is the fully-qualified name of the VpcService's ListVPCs RPC.
	VpcServiceListVPCsProcedure = "/cloudstack.management.vpc.v1.VpcService/ListVPCs"
	// VpcServiceListVPCsCmdByAdminProcedure is the fully-qualified name of the VpcService's
	// ListVPCsCmdByAdmin RPC.
	VpcServiceListVPCsCmdByAdminProcedure = "/cloudstack.management.vpc.v1.VpcService/ListVPCsCmdByAdmin"
	// VpcServiceRestartVPCProcedure is the fully-qualified name of the VpcService's RestartVPC RPC.
	VpcServiceRestartVPCProcedure = "/cloudstack.management.vpc.v1.VpcService/RestartVPC"
	// VpcServiceUpdateVPCProcedure is the fully-qualified name of the VpcService's UpdateVPC RPC.
	VpcServiceUpdateVPCProcedure = "/cloudstack.management.vpc.v1.VpcService/UpdateVPC"
	// VpcServiceUpdateVPCCmdByAdminProcedure is the fully-qualified name of the VpcService's
	// UpdateVPCCmdByAdmin RPC.
	VpcServiceUpdateVPCCmdByAdminProcedure = "/cloudstack.management.vpc.v1.VpcService/UpdateVPCCmdByAdmin"
	// VpcServiceUpdateVPCOfferingProcedure is the fully-qualified name of the VpcService's
	// UpdateVPCOffering RPC.
	VpcServiceUpdateVPCOfferingProcedure = "/cloudstack.management.vpc.v1.VpcService/UpdateVPCOffering"
)

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

Variables

This section is empty.

Functions

func NewVpcServiceHandler

func NewVpcServiceHandler(svc VpcServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewVpcServiceHandler 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 UnimplementedVpcServiceHandler

type UnimplementedVpcServiceHandler struct{}

UnimplementedVpcServiceHandler returns CodeUnimplemented from all methods.

type VpcServiceClient

type VpcServiceClient interface {
	// CreatePrivateGateway Creates a private gateway
	CreatePrivateGateway(context.Context, *connect.Request[v1.CreatePrivateGatewayRequest]) (*connect.Response[v1.CreatePrivateGatewayResponse], error)
	// CreatePrivateGatewayByAdmin Creates a private gateway
	CreatePrivateGatewayByAdmin(context.Context, *connect.Request[v1.CreatePrivateGatewayByAdminRequest]) (*connect.Response[v1.CreatePrivateGatewayByAdminResponse], error)
	// CreateStaticRoute Creates a static route
	CreateStaticRoute(context.Context, *connect.Request[v1.CreateStaticRouteRequest]) (*connect.Response[v1.CreateStaticRouteResponse], error)
	// CreateVPC Creates a VPC
	CreateVPC(context.Context, *connect.Request[v1.CreateVPCRequest]) (*connect.Response[v1.CreateVPCResponse], error)
	// CreateVPCCmdByAdmin Creates a VPC
	CreateVPCCmdByAdmin(context.Context, *connect.Request[v1.CreateVPCCmdByAdminRequest]) (*connect.Response[v1.CreateVPCCmdByAdminResponse], error)
	// CreateVPCOffering Creates VPC offering
	CreateVPCOffering(context.Context, *connect.Request[v1.CreateVPCOfferingRequest]) (*connect.Response[v1.CreateVPCOfferingResponse], error)
	// DeletePrivateGateway Deletes a Private gateway
	DeletePrivateGateway(context.Context, *connect.Request[v1.DeletePrivateGatewayRequest]) (*connect.Response[v1.DeletePrivateGatewayResponse], error)
	// DeleteStaticRoute Deletes a static route
	DeleteStaticRoute(context.Context, *connect.Request[v1.DeleteStaticRouteRequest]) (*connect.Response[v1.DeleteStaticRouteResponse], error)
	// DeleteVPC Deletes a VPC
	DeleteVPC(context.Context, *connect.Request[v1.DeleteVPCRequest]) (*connect.Response[v1.DeleteVPCResponse], error)
	// DeleteVPCOffering Deletes VPC offering
	DeleteVPCOffering(context.Context, *connect.Request[v1.DeleteVPCOfferingRequest]) (*connect.Response[v1.DeleteVPCOfferingResponse], error)
	// ListPrivateGateways List private gateways
	ListPrivateGateways(context.Context, *connect.Request[v1.ListPrivateGatewaysRequest]) (*connect.Response[v1.ListPrivateGatewaysResponse], error)
	// ListPrivateGatewaysCmdByAdmin List private gateways
	ListPrivateGatewaysCmdByAdmin(context.Context, *connect.Request[v1.ListPrivateGatewaysCmdByAdminRequest]) (*connect.Response[v1.ListPrivateGatewaysCmdByAdminResponse], error)
	// ListStaticRoutes Lists all static routes
	ListStaticRoutes(context.Context, *connect.Request[v1.ListStaticRoutesRequest]) (*connect.Response[v1.ListStaticRoutesResponse], error)
	// ListVPCOfferings Lists VPC offerings
	ListVPCOfferings(context.Context, *connect.Request[v1.ListVPCOfferingsRequest]) (*connect.Response[v1.ListVPCOfferingsResponse], error)
	// ListVPCs Lists VPCs
	ListVPCs(context.Context, *connect.Request[v1.ListVPCsRequest]) (*connect.Response[v1.ListVPCsResponse], error)
	// ListVPCsCmdByAdmin Lists VPCs
	ListVPCsCmdByAdmin(context.Context, *connect.Request[v1.ListVPCsCmdByAdminRequest]) (*connect.Response[v1.ListVPCsCmdByAdminResponse], error)
	// RestartVPC Restarts a VPC
	RestartVPC(context.Context, *connect.Request[v1.RestartVPCRequest]) (*connect.Response[v1.RestartVPCResponse], error)
	// UpdateVPC Updates a VPC
	UpdateVPC(context.Context, *connect.Request[v1.UpdateVPCRequest]) (*connect.Response[v1.UpdateVPCResponse], error)
	// UpdateVPCCmdByAdmin Updates a VPC
	UpdateVPCCmdByAdmin(context.Context, *connect.Request[v1.UpdateVPCCmdByAdminRequest]) (*connect.Response[v1.UpdateVPCCmdByAdminResponse], error)
	// UpdateVPCOffering Updates VPC offering
	UpdateVPCOffering(context.Context, *connect.Request[v1.UpdateVPCOfferingRequest]) (*connect.Response[v1.UpdateVPCOfferingResponse], error)
}

VpcServiceClient is a client for the cloudstack.management.vpc.v1.VpcService service.

func NewVpcServiceClient

func NewVpcServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) VpcServiceClient

NewVpcServiceClient constructs a client for the cloudstack.management.vpc.v1.VpcService 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 VpcServiceHandler

type VpcServiceHandler interface {
	// CreatePrivateGateway Creates a private gateway
	CreatePrivateGateway(context.Context, *connect.Request[v1.CreatePrivateGatewayRequest]) (*connect.Response[v1.CreatePrivateGatewayResponse], error)
	// CreatePrivateGatewayByAdmin Creates a private gateway
	CreatePrivateGatewayByAdmin(context.Context, *connect.Request[v1.CreatePrivateGatewayByAdminRequest]) (*connect.Response[v1.CreatePrivateGatewayByAdminResponse], error)
	// CreateStaticRoute Creates a static route
	CreateStaticRoute(context.Context, *connect.Request[v1.CreateStaticRouteRequest]) (*connect.Response[v1.CreateStaticRouteResponse], error)
	// CreateVPC Creates a VPC
	CreateVPC(context.Context, *connect.Request[v1.CreateVPCRequest]) (*connect.Response[v1.CreateVPCResponse], error)
	// CreateVPCCmdByAdmin Creates a VPC
	CreateVPCCmdByAdmin(context.Context, *connect.Request[v1.CreateVPCCmdByAdminRequest]) (*connect.Response[v1.CreateVPCCmdByAdminResponse], error)
	// CreateVPCOffering Creates VPC offering
	CreateVPCOffering(context.Context, *connect.Request[v1.CreateVPCOfferingRequest]) (*connect.Response[v1.CreateVPCOfferingResponse], error)
	// DeletePrivateGateway Deletes a Private gateway
	DeletePrivateGateway(context.Context, *connect.Request[v1.DeletePrivateGatewayRequest]) (*connect.Response[v1.DeletePrivateGatewayResponse], error)
	// DeleteStaticRoute Deletes a static route
	DeleteStaticRoute(context.Context, *connect.Request[v1.DeleteStaticRouteRequest]) (*connect.Response[v1.DeleteStaticRouteResponse], error)
	// DeleteVPC Deletes a VPC
	DeleteVPC(context.Context, *connect.Request[v1.DeleteVPCRequest]) (*connect.Response[v1.DeleteVPCResponse], error)
	// DeleteVPCOffering Deletes VPC offering
	DeleteVPCOffering(context.Context, *connect.Request[v1.DeleteVPCOfferingRequest]) (*connect.Response[v1.DeleteVPCOfferingResponse], error)
	// ListPrivateGateways List private gateways
	ListPrivateGateways(context.Context, *connect.Request[v1.ListPrivateGatewaysRequest]) (*connect.Response[v1.ListPrivateGatewaysResponse], error)
	// ListPrivateGatewaysCmdByAdmin List private gateways
	ListPrivateGatewaysCmdByAdmin(context.Context, *connect.Request[v1.ListPrivateGatewaysCmdByAdminRequest]) (*connect.Response[v1.ListPrivateGatewaysCmdByAdminResponse], error)
	// ListStaticRoutes Lists all static routes
	ListStaticRoutes(context.Context, *connect.Request[v1.ListStaticRoutesRequest]) (*connect.Response[v1.ListStaticRoutesResponse], error)
	// ListVPCOfferings Lists VPC offerings
	ListVPCOfferings(context.Context, *connect.Request[v1.ListVPCOfferingsRequest]) (*connect.Response[v1.ListVPCOfferingsResponse], error)
	// ListVPCs Lists VPCs
	ListVPCs(context.Context, *connect.Request[v1.ListVPCsRequest]) (*connect.Response[v1.ListVPCsResponse], error)
	// ListVPCsCmdByAdmin Lists VPCs
	ListVPCsCmdByAdmin(context.Context, *connect.Request[v1.ListVPCsCmdByAdminRequest]) (*connect.Response[v1.ListVPCsCmdByAdminResponse], error)
	// RestartVPC Restarts a VPC
	RestartVPC(context.Context, *connect.Request[v1.RestartVPCRequest]) (*connect.Response[v1.RestartVPCResponse], error)
	// UpdateVPC Updates a VPC
	UpdateVPC(context.Context, *connect.Request[v1.UpdateVPCRequest]) (*connect.Response[v1.UpdateVPCResponse], error)
	// UpdateVPCCmdByAdmin Updates a VPC
	UpdateVPCCmdByAdmin(context.Context, *connect.Request[v1.UpdateVPCCmdByAdminRequest]) (*connect.Response[v1.UpdateVPCCmdByAdminResponse], error)
	// UpdateVPCOffering Updates VPC offering
	UpdateVPCOffering(context.Context, *connect.Request[v1.UpdateVPCOfferingRequest]) (*connect.Response[v1.UpdateVPCOfferingResponse], error)
}

VpcServiceHandler is an implementation of the cloudstack.management.vpc.v1.VpcService service.

Jump to

Keyboard shortcuts

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