Documentation
¶
Index ¶
- Constants
- func NewInternallbServiceHandler(svc InternallbServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type InternallbServiceClient
- type InternallbServiceHandler
- type UnimplementedInternallbServiceHandler
- func (UnimplementedInternallbServiceHandler) ConfigureInternalLoadBalancerElement(context.Context, ...) (*connect.Response[v1.ConfigureInternalLoadBalancerElementResponse], error)
- func (UnimplementedInternallbServiceHandler) CreateInternalLoadBalancerElement(context.Context, *connect.Request[v1.CreateInternalLoadBalancerElementRequest]) (*connect.Response[v1.CreateInternalLoadBalancerElementResponse], error)
- func (UnimplementedInternallbServiceHandler) ListInternalLBVMs(context.Context, *connect.Request[v1.ListInternalLBVMsRequest]) (*connect.Response[v1.ListInternalLBVMsResponse], error)
- func (UnimplementedInternallbServiceHandler) ListInternalLoadBalancerElements(context.Context, *connect.Request[v1.ListInternalLoadBalancerElementsRequest]) (*connect.Response[v1.ListInternalLoadBalancerElementsResponse], error)
- func (UnimplementedInternallbServiceHandler) StartInternalLBVM(context.Context, *connect.Request[v1.StartInternalLBVMRequest]) (*connect.Response[v1.StartInternalLBVMResponse], error)
- func (UnimplementedInternallbServiceHandler) StopInternalLBVM(context.Context, *connect.Request[v1.StopInternalLBVMRequest]) (*connect.Response[v1.StopInternalLBVMResponse], error)
Constants ¶
const ( // InternallbServiceConfigureInternalLoadBalancerElementProcedure is the fully-qualified name of the // InternallbService's ConfigureInternalLoadBalancerElement RPC. InternallbServiceConfigureInternalLoadBalancerElementProcedure = "/cloudstack.management.internallb.v1.InternallbService/ConfigureInternalLoadBalancerElement" // InternallbServiceCreateInternalLoadBalancerElementProcedure is the fully-qualified name of the // InternallbService's CreateInternalLoadBalancerElement RPC. InternallbServiceCreateInternalLoadBalancerElementProcedure = "/cloudstack.management.internallb.v1.InternallbService/CreateInternalLoadBalancerElement" // InternallbServiceListInternalLBVMsProcedure is the fully-qualified name of the // InternallbService's ListInternalLBVMs RPC. InternallbServiceListInternalLBVMsProcedure = "/cloudstack.management.internallb.v1.InternallbService/ListInternalLBVMs" // InternallbServiceListInternalLoadBalancerElementsProcedure is the fully-qualified name of the // InternallbService's ListInternalLoadBalancerElements RPC. InternallbServiceListInternalLoadBalancerElementsProcedure = "/cloudstack.management.internallb.v1.InternallbService/ListInternalLoadBalancerElements" // InternallbServiceStartInternalLBVMProcedure is the fully-qualified name of the // InternallbService's StartInternalLBVM RPC. InternallbServiceStartInternalLBVMProcedure = "/cloudstack.management.internallb.v1.InternallbService/StartInternalLBVM" // InternallbServiceStopInternalLBVMProcedure is the fully-qualified name of the InternallbService's // StopInternalLBVM RPC. InternallbServiceStopInternalLBVMProcedure = "/cloudstack.management.internallb.v1.InternallbService/StopInternalLBVM" )
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.
const (
// InternallbServiceName is the fully-qualified name of the InternallbService service.
InternallbServiceName = "cloudstack.management.internallb.v1.InternallbService"
)
Variables ¶
This section is empty.
Functions ¶
func NewInternallbServiceHandler ¶
func NewInternallbServiceHandler(svc InternallbServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewInternallbServiceHandler 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 InternallbServiceClient ¶
type InternallbServiceClient interface {
// ConfigureInternalLoadBalancerElement Configures an Internal Load Balancer element.
ConfigureInternalLoadBalancerElement(context.Context, *connect.Request[v1.ConfigureInternalLoadBalancerElementRequest]) (*connect.Response[v1.ConfigureInternalLoadBalancerElementResponse], error)
// CreateInternalLoadBalancerElement Create an Internal Load Balancer element.
CreateInternalLoadBalancerElement(context.Context, *connect.Request[v1.CreateInternalLoadBalancerElementRequest]) (*connect.Response[v1.CreateInternalLoadBalancerElementResponse], error)
// ListInternalLBVMs List internal LB VMs.
ListInternalLBVMs(context.Context, *connect.Request[v1.ListInternalLBVMsRequest]) (*connect.Response[v1.ListInternalLBVMsResponse], error)
// ListInternalLoadBalancerElements Lists all available Internal Load Balancer elements.
ListInternalLoadBalancerElements(context.Context, *connect.Request[v1.ListInternalLoadBalancerElementsRequest]) (*connect.Response[v1.ListInternalLoadBalancerElementsResponse], error)
// StartInternalLBVM Starts an existing internal lb vm.
StartInternalLBVM(context.Context, *connect.Request[v1.StartInternalLBVMRequest]) (*connect.Response[v1.StartInternalLBVMResponse], error)
// StopInternalLBVM Stops an Internal LB vm.
StopInternalLBVM(context.Context, *connect.Request[v1.StopInternalLBVMRequest]) (*connect.Response[v1.StopInternalLBVMResponse], error)
}
InternallbServiceClient is a client for the cloudstack.management.internallb.v1.InternallbService service.
func NewInternallbServiceClient ¶
func NewInternallbServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) InternallbServiceClient
NewInternallbServiceClient constructs a client for the cloudstack.management.internallb.v1.InternallbService 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 InternallbServiceHandler ¶
type InternallbServiceHandler interface {
// ConfigureInternalLoadBalancerElement Configures an Internal Load Balancer element.
ConfigureInternalLoadBalancerElement(context.Context, *connect.Request[v1.ConfigureInternalLoadBalancerElementRequest]) (*connect.Response[v1.ConfigureInternalLoadBalancerElementResponse], error)
// CreateInternalLoadBalancerElement Create an Internal Load Balancer element.
CreateInternalLoadBalancerElement(context.Context, *connect.Request[v1.CreateInternalLoadBalancerElementRequest]) (*connect.Response[v1.CreateInternalLoadBalancerElementResponse], error)
// ListInternalLBVMs List internal LB VMs.
ListInternalLBVMs(context.Context, *connect.Request[v1.ListInternalLBVMsRequest]) (*connect.Response[v1.ListInternalLBVMsResponse], error)
// ListInternalLoadBalancerElements Lists all available Internal Load Balancer elements.
ListInternalLoadBalancerElements(context.Context, *connect.Request[v1.ListInternalLoadBalancerElementsRequest]) (*connect.Response[v1.ListInternalLoadBalancerElementsResponse], error)
// StartInternalLBVM Starts an existing internal lb vm.
StartInternalLBVM(context.Context, *connect.Request[v1.StartInternalLBVMRequest]) (*connect.Response[v1.StartInternalLBVMResponse], error)
// StopInternalLBVM Stops an Internal LB vm.
StopInternalLBVM(context.Context, *connect.Request[v1.StopInternalLBVMRequest]) (*connect.Response[v1.StopInternalLBVMResponse], error)
}
InternallbServiceHandler is an implementation of the cloudstack.management.internallb.v1.InternallbService service.
type UnimplementedInternallbServiceHandler ¶
type UnimplementedInternallbServiceHandler struct{}
UnimplementedInternallbServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedInternallbServiceHandler) ConfigureInternalLoadBalancerElement ¶
func (UnimplementedInternallbServiceHandler) ConfigureInternalLoadBalancerElement(context.Context, *connect.Request[v1.ConfigureInternalLoadBalancerElementRequest]) (*connect.Response[v1.ConfigureInternalLoadBalancerElementResponse], error)
func (UnimplementedInternallbServiceHandler) CreateInternalLoadBalancerElement ¶
func (UnimplementedInternallbServiceHandler) CreateInternalLoadBalancerElement(context.Context, *connect.Request[v1.CreateInternalLoadBalancerElementRequest]) (*connect.Response[v1.CreateInternalLoadBalancerElementResponse], error)
func (UnimplementedInternallbServiceHandler) ListInternalLBVMs ¶
func (UnimplementedInternallbServiceHandler) ListInternalLBVMs(context.Context, *connect.Request[v1.ListInternalLBVMsRequest]) (*connect.Response[v1.ListInternalLBVMsResponse], error)
func (UnimplementedInternallbServiceHandler) ListInternalLoadBalancerElements ¶
func (UnimplementedInternallbServiceHandler) ListInternalLoadBalancerElements(context.Context, *connect.Request[v1.ListInternalLoadBalancerElementsRequest]) (*connect.Response[v1.ListInternalLoadBalancerElementsResponse], error)
func (UnimplementedInternallbServiceHandler) StartInternalLBVM ¶
func (UnimplementedInternallbServiceHandler) StartInternalLBVM(context.Context, *connect.Request[v1.StartInternalLBVMRequest]) (*connect.Response[v1.StartInternalLBVMResponse], error)
func (UnimplementedInternallbServiceHandler) StopInternalLBVM ¶
func (UnimplementedInternallbServiceHandler) StopInternalLBVM(context.Context, *connect.Request[v1.StopInternalLBVMRequest]) (*connect.Response[v1.StopInternalLBVMResponse], error)