vpnv1connect

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 (
	// VpnServiceAddVpnUserProcedure is the fully-qualified name of the VpnService's AddVpnUser RPC.
	VpnServiceAddVpnUserProcedure = "/cloudstack.management.vpn.v1.VpnService/AddVpnUser"
	// VpnServiceCreateRemoteAccessVpnProcedure is the fully-qualified name of the VpnService's
	// CreateRemoteAccessVpn RPC.
	VpnServiceCreateRemoteAccessVpnProcedure = "/cloudstack.management.vpn.v1.VpnService/CreateRemoteAccessVpn"
	// VpnServiceCreateVpnConnectionProcedure is the fully-qualified name of the VpnService's
	// CreateVpnConnection RPC.
	VpnServiceCreateVpnConnectionProcedure = "/cloudstack.management.vpn.v1.VpnService/CreateVpnConnection"
	// VpnServiceCreateVpnCustomerGatewayProcedure is the fully-qualified name of the VpnService's
	// CreateVpnCustomerGateway RPC.
	VpnServiceCreateVpnCustomerGatewayProcedure = "/cloudstack.management.vpn.v1.VpnService/CreateVpnCustomerGateway"
	// VpnServiceCreateVpnGatewayProcedure is the fully-qualified name of the VpnService's
	// CreateVpnGateway RPC.
	VpnServiceCreateVpnGatewayProcedure = "/cloudstack.management.vpn.v1.VpnService/CreateVpnGateway"
	// VpnServiceDeleteRemoteAccessVpnProcedure is the fully-qualified name of the VpnService's
	// DeleteRemoteAccessVpn RPC.
	VpnServiceDeleteRemoteAccessVpnProcedure = "/cloudstack.management.vpn.v1.VpnService/DeleteRemoteAccessVpn"
	// VpnServiceDeleteVpnConnectionProcedure is the fully-qualified name of the VpnService's
	// DeleteVpnConnection RPC.
	VpnServiceDeleteVpnConnectionProcedure = "/cloudstack.management.vpn.v1.VpnService/DeleteVpnConnection"
	// VpnServiceDeleteVpnCustomerGatewayProcedure is the fully-qualified name of the VpnService's
	// DeleteVpnCustomerGateway RPC.
	VpnServiceDeleteVpnCustomerGatewayProcedure = "/cloudstack.management.vpn.v1.VpnService/DeleteVpnCustomerGateway"
	// VpnServiceDeleteVpnGatewayProcedure is the fully-qualified name of the VpnService's
	// DeleteVpnGateway RPC.
	VpnServiceDeleteVpnGatewayProcedure = "/cloudstack.management.vpn.v1.VpnService/DeleteVpnGateway"
	// VpnServiceListRemoteAccessVpnsProcedure is the fully-qualified name of the VpnService's
	// ListRemoteAccessVpns RPC.
	VpnServiceListRemoteAccessVpnsProcedure = "/cloudstack.management.vpn.v1.VpnService/ListRemoteAccessVpns"
	// VpnServiceListVpnConnectionsProcedure is the fully-qualified name of the VpnService's
	// ListVpnConnections RPC.
	VpnServiceListVpnConnectionsProcedure = "/cloudstack.management.vpn.v1.VpnService/ListVpnConnections"
	// VpnServiceListVpnCustomerGatewaysProcedure is the fully-qualified name of the VpnService's
	// ListVpnCustomerGateways RPC.
	VpnServiceListVpnCustomerGatewaysProcedure = "/cloudstack.management.vpn.v1.VpnService/ListVpnCustomerGateways"
	// VpnServiceListVpnGatewaysProcedure is the fully-qualified name of the VpnService's
	// ListVpnGateways RPC.
	VpnServiceListVpnGatewaysProcedure = "/cloudstack.management.vpn.v1.VpnService/ListVpnGateways"
	// VpnServiceListVpnUsersProcedure is the fully-qualified name of the VpnService's ListVpnUsers RPC.
	VpnServiceListVpnUsersProcedure = "/cloudstack.management.vpn.v1.VpnService/ListVpnUsers"
	// VpnServiceRemoveVpnUserProcedure is the fully-qualified name of the VpnService's RemoveVpnUser
	// RPC.
	VpnServiceRemoveVpnUserProcedure = "/cloudstack.management.vpn.v1.VpnService/RemoveVpnUser"
	// VpnServiceResetVpnConnectionProcedure is the fully-qualified name of the VpnService's
	// ResetVpnConnection RPC.
	VpnServiceResetVpnConnectionProcedure = "/cloudstack.management.vpn.v1.VpnService/ResetVpnConnection"
	// VpnServiceUpdateRemoteAccessVpnProcedure is the fully-qualified name of the VpnService's
	// UpdateRemoteAccessVpn RPC.
	VpnServiceUpdateRemoteAccessVpnProcedure = "/cloudstack.management.vpn.v1.VpnService/UpdateRemoteAccessVpn"
	// VpnServiceUpdateVpnConnectionProcedure is the fully-qualified name of the VpnService's
	// UpdateVpnConnection RPC.
	VpnServiceUpdateVpnConnectionProcedure = "/cloudstack.management.vpn.v1.VpnService/UpdateVpnConnection"
	// VpnServiceUpdateVpnCustomerGatewayProcedure is the fully-qualified name of the VpnService's
	// UpdateVpnCustomerGateway RPC.
	VpnServiceUpdateVpnCustomerGatewayProcedure = "/cloudstack.management.vpn.v1.VpnService/UpdateVpnCustomerGateway"
	// VpnServiceUpdateVpnGatewayProcedure is the fully-qualified name of the VpnService's
	// UpdateVpnGateway RPC.
	VpnServiceUpdateVpnGatewayProcedure = "/cloudstack.management.vpn.v1.VpnService/UpdateVpnGateway"
)

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

Variables

This section is empty.

Functions

func NewVpnServiceHandler

func NewVpnServiceHandler(svc VpnServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewVpnServiceHandler 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 UnimplementedVpnServiceHandler

type UnimplementedVpnServiceHandler struct{}

UnimplementedVpnServiceHandler returns CodeUnimplemented from all methods.

type VpnServiceClient

type VpnServiceClient interface {
	// AddVpnUser Adds vpn users
	AddVpnUser(context.Context, *connect.Request[v1.AddVpnUserRequest]) (*connect.Response[v1.AddVpnUserResponse], error)
	// CreateRemoteAccessVpn Creates a l2tp/ipsec remote access vpn
	CreateRemoteAccessVpn(context.Context, *connect.Request[v1.CreateRemoteAccessVpnRequest]) (*connect.Response[v1.CreateRemoteAccessVpnResponse], error)
	// CreateVpnConnection Create site to site vpn connection
	CreateVpnConnection(context.Context, *connect.Request[v1.CreateVpnConnectionRequest]) (*connect.Response[v1.CreateVpnConnectionResponse], error)
	// CreateVpnCustomerGateway Creates site to site vpn customer gateway
	CreateVpnCustomerGateway(context.Context, *connect.Request[v1.CreateVpnCustomerGatewayRequest]) (*connect.Response[v1.CreateVpnCustomerGatewayResponse], error)
	// CreateVpnGateway Creates site to site vpn local gateway
	CreateVpnGateway(context.Context, *connect.Request[v1.CreateVpnGatewayRequest]) (*connect.Response[v1.CreateVpnGatewayResponse], error)
	// DeleteRemoteAccessVpn Destroys a l2tp/ipsec remote access vpn
	DeleteRemoteAccessVpn(context.Context, *connect.Request[v1.DeleteRemoteAccessVpnRequest]) (*connect.Response[v1.DeleteRemoteAccessVpnResponse], error)
	// DeleteVpnConnection Delete site to site vpn connection
	DeleteVpnConnection(context.Context, *connect.Request[v1.DeleteVpnConnectionRequest]) (*connect.Response[v1.DeleteVpnConnectionResponse], error)
	// DeleteVpnCustomerGateway Delete site to site vpn customer gateway
	DeleteVpnCustomerGateway(context.Context, *connect.Request[v1.DeleteVpnCustomerGatewayRequest]) (*connect.Response[v1.DeleteVpnCustomerGatewayResponse], error)
	// DeleteVpnGateway Delete site to site vpn gateway
	DeleteVpnGateway(context.Context, *connect.Request[v1.DeleteVpnGatewayRequest]) (*connect.Response[v1.DeleteVpnGatewayResponse], error)
	// ListRemoteAccessVpns Lists remote access vpns
	ListRemoteAccessVpns(context.Context, *connect.Request[v1.ListRemoteAccessVpnsRequest]) (*connect.Response[v1.ListRemoteAccessVpnsResponse], error)
	// ListVpnConnections Lists site to site vpn connection gateways
	ListVpnConnections(context.Context, *connect.Request[v1.ListVpnConnectionsRequest]) (*connect.Response[v1.ListVpnConnectionsResponse], error)
	// ListVpnCustomerGateways Lists site to site vpn customer gateways
	ListVpnCustomerGateways(context.Context, *connect.Request[v1.ListVpnCustomerGatewaysRequest]) (*connect.Response[v1.ListVpnCustomerGatewaysResponse], error)
	// ListVpnGateways Lists site 2 site vpn gateways
	ListVpnGateways(context.Context, *connect.Request[v1.ListVpnGatewaysRequest]) (*connect.Response[v1.ListVpnGatewaysResponse], error)
	// ListVpnUsers Lists vpn users
	ListVpnUsers(context.Context, *connect.Request[v1.ListVpnUsersRequest]) (*connect.Response[v1.ListVpnUsersResponse], error)
	// RemoveVpnUser Removes vpn user
	RemoveVpnUser(context.Context, *connect.Request[v1.RemoveVpnUserRequest]) (*connect.Response[v1.RemoveVpnUserResponse], error)
	// ResetVpnConnection Reset site to site vpn connection
	ResetVpnConnection(context.Context, *connect.Request[v1.ResetVpnConnectionRequest]) (*connect.Response[v1.ResetVpnConnectionResponse], error)
	// UpdateRemoteAccessVpn Updates remote access vpn
	UpdateRemoteAccessVpn(context.Context, *connect.Request[v1.UpdateRemoteAccessVpnRequest]) (*connect.Response[v1.UpdateRemoteAccessVpnResponse], error)
	// UpdateVpnConnection Updates site to site vpn connection
	UpdateVpnConnection(context.Context, *connect.Request[v1.UpdateVpnConnectionRequest]) (*connect.Response[v1.UpdateVpnConnectionResponse], error)
	// UpdateVpnCustomerGateway Update site to site vpn customer gateway
	UpdateVpnCustomerGateway(context.Context, *connect.Request[v1.UpdateVpnCustomerGatewayRequest]) (*connect.Response[v1.UpdateVpnCustomerGatewayResponse], error)
	// UpdateVpnGateway Updates site to site vpn local gateway
	UpdateVpnGateway(context.Context, *connect.Request[v1.UpdateVpnGatewayRequest]) (*connect.Response[v1.UpdateVpnGatewayResponse], error)
}

VpnServiceClient is a client for the cloudstack.management.vpn.v1.VpnService service.

func NewVpnServiceClient

func NewVpnServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) VpnServiceClient

NewVpnServiceClient constructs a client for the cloudstack.management.vpn.v1.VpnService 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 VpnServiceHandler

type VpnServiceHandler interface {
	// AddVpnUser Adds vpn users
	AddVpnUser(context.Context, *connect.Request[v1.AddVpnUserRequest]) (*connect.Response[v1.AddVpnUserResponse], error)
	// CreateRemoteAccessVpn Creates a l2tp/ipsec remote access vpn
	CreateRemoteAccessVpn(context.Context, *connect.Request[v1.CreateRemoteAccessVpnRequest]) (*connect.Response[v1.CreateRemoteAccessVpnResponse], error)
	// CreateVpnConnection Create site to site vpn connection
	CreateVpnConnection(context.Context, *connect.Request[v1.CreateVpnConnectionRequest]) (*connect.Response[v1.CreateVpnConnectionResponse], error)
	// CreateVpnCustomerGateway Creates site to site vpn customer gateway
	CreateVpnCustomerGateway(context.Context, *connect.Request[v1.CreateVpnCustomerGatewayRequest]) (*connect.Response[v1.CreateVpnCustomerGatewayResponse], error)
	// CreateVpnGateway Creates site to site vpn local gateway
	CreateVpnGateway(context.Context, *connect.Request[v1.CreateVpnGatewayRequest]) (*connect.Response[v1.CreateVpnGatewayResponse], error)
	// DeleteRemoteAccessVpn Destroys a l2tp/ipsec remote access vpn
	DeleteRemoteAccessVpn(context.Context, *connect.Request[v1.DeleteRemoteAccessVpnRequest]) (*connect.Response[v1.DeleteRemoteAccessVpnResponse], error)
	// DeleteVpnConnection Delete site to site vpn connection
	DeleteVpnConnection(context.Context, *connect.Request[v1.DeleteVpnConnectionRequest]) (*connect.Response[v1.DeleteVpnConnectionResponse], error)
	// DeleteVpnCustomerGateway Delete site to site vpn customer gateway
	DeleteVpnCustomerGateway(context.Context, *connect.Request[v1.DeleteVpnCustomerGatewayRequest]) (*connect.Response[v1.DeleteVpnCustomerGatewayResponse], error)
	// DeleteVpnGateway Delete site to site vpn gateway
	DeleteVpnGateway(context.Context, *connect.Request[v1.DeleteVpnGatewayRequest]) (*connect.Response[v1.DeleteVpnGatewayResponse], error)
	// ListRemoteAccessVpns Lists remote access vpns
	ListRemoteAccessVpns(context.Context, *connect.Request[v1.ListRemoteAccessVpnsRequest]) (*connect.Response[v1.ListRemoteAccessVpnsResponse], error)
	// ListVpnConnections Lists site to site vpn connection gateways
	ListVpnConnections(context.Context, *connect.Request[v1.ListVpnConnectionsRequest]) (*connect.Response[v1.ListVpnConnectionsResponse], error)
	// ListVpnCustomerGateways Lists site to site vpn customer gateways
	ListVpnCustomerGateways(context.Context, *connect.Request[v1.ListVpnCustomerGatewaysRequest]) (*connect.Response[v1.ListVpnCustomerGatewaysResponse], error)
	// ListVpnGateways Lists site 2 site vpn gateways
	ListVpnGateways(context.Context, *connect.Request[v1.ListVpnGatewaysRequest]) (*connect.Response[v1.ListVpnGatewaysResponse], error)
	// ListVpnUsers Lists vpn users
	ListVpnUsers(context.Context, *connect.Request[v1.ListVpnUsersRequest]) (*connect.Response[v1.ListVpnUsersResponse], error)
	// RemoveVpnUser Removes vpn user
	RemoveVpnUser(context.Context, *connect.Request[v1.RemoveVpnUserRequest]) (*connect.Response[v1.RemoveVpnUserResponse], error)
	// ResetVpnConnection Reset site to site vpn connection
	ResetVpnConnection(context.Context, *connect.Request[v1.ResetVpnConnectionRequest]) (*connect.Response[v1.ResetVpnConnectionResponse], error)
	// UpdateRemoteAccessVpn Updates remote access vpn
	UpdateRemoteAccessVpn(context.Context, *connect.Request[v1.UpdateRemoteAccessVpnRequest]) (*connect.Response[v1.UpdateRemoteAccessVpnResponse], error)
	// UpdateVpnConnection Updates site to site vpn connection
	UpdateVpnConnection(context.Context, *connect.Request[v1.UpdateVpnConnectionRequest]) (*connect.Response[v1.UpdateVpnConnectionResponse], error)
	// UpdateVpnCustomerGateway Update site to site vpn customer gateway
	UpdateVpnCustomerGateway(context.Context, *connect.Request[v1.UpdateVpnCustomerGatewayRequest]) (*connect.Response[v1.UpdateVpnCustomerGatewayResponse], error)
	// UpdateVpnGateway Updates site to site vpn local gateway
	UpdateVpnGateway(context.Context, *connect.Request[v1.UpdateVpnGatewayRequest]) (*connect.Response[v1.UpdateVpnGatewayResponse], error)
}

VpnServiceHandler is an implementation of the cloudstack.management.vpn.v1.VpnService service.

Jump to

Keyboard shortcuts

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