vmgroupv1connect

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 (
	// VmgroupServiceCreateVMGroupProcedure is the fully-qualified name of the VmgroupService's
	// CreateVMGroup RPC.
	VmgroupServiceCreateVMGroupProcedure = "/cloudstack.management.vmgroup.v1.VmgroupService/CreateVMGroup"
	// VmgroupServiceDeleteVMGroupProcedure is the fully-qualified name of the VmgroupService's
	// DeleteVMGroup RPC.
	VmgroupServiceDeleteVMGroupProcedure = "/cloudstack.management.vmgroup.v1.VmgroupService/DeleteVMGroup"
	// VmgroupServiceListVMGroupsProcedure is the fully-qualified name of the VmgroupService's
	// ListVMGroups RPC.
	VmgroupServiceListVMGroupsProcedure = "/cloudstack.management.vmgroup.v1.VmgroupService/ListVMGroups"
	// VmgroupServiceUpdateVMGroupProcedure is the fully-qualified name of the VmgroupService's
	// UpdateVMGroup RPC.
	VmgroupServiceUpdateVMGroupProcedure = "/cloudstack.management.vmgroup.v1.VmgroupService/UpdateVMGroup"
)

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

Variables

This section is empty.

Functions

func NewVmgroupServiceHandler

func NewVmgroupServiceHandler(svc VmgroupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewVmgroupServiceHandler 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 UnimplementedVmgroupServiceHandler

type UnimplementedVmgroupServiceHandler struct{}

UnimplementedVmgroupServiceHandler returns CodeUnimplemented from all methods.

type VmgroupServiceClient

type VmgroupServiceClient interface {
	// CreateVMGroup Creates a vm group
	CreateVMGroup(context.Context, *connect.Request[v1.CreateVMGroupRequest]) (*connect.Response[v1.CreateVMGroupResponse], error)
	// DeleteVMGroup Deletes a vm group
	DeleteVMGroup(context.Context, *connect.Request[v1.DeleteVMGroupRequest]) (*connect.Response[v1.DeleteVMGroupResponse], error)
	// ListVMGroups Lists vm groups
	ListVMGroups(context.Context, *connect.Request[v1.ListVMGroupsRequest]) (*connect.Response[v1.ListVMGroupsResponse], error)
	// UpdateVMGroup Updates a vm group
	UpdateVMGroup(context.Context, *connect.Request[v1.UpdateVMGroupRequest]) (*connect.Response[v1.UpdateVMGroupResponse], error)
}

VmgroupServiceClient is a client for the cloudstack.management.vmgroup.v1.VmgroupService service.

func NewVmgroupServiceClient

func NewVmgroupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) VmgroupServiceClient

NewVmgroupServiceClient constructs a client for the cloudstack.management.vmgroup.v1.VmgroupService 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 VmgroupServiceHandler

type VmgroupServiceHandler interface {
	// CreateVMGroup Creates a vm group
	CreateVMGroup(context.Context, *connect.Request[v1.CreateVMGroupRequest]) (*connect.Response[v1.CreateVMGroupResponse], error)
	// DeleteVMGroup Deletes a vm group
	DeleteVMGroup(context.Context, *connect.Request[v1.DeleteVMGroupRequest]) (*connect.Response[v1.DeleteVMGroupResponse], error)
	// ListVMGroups Lists vm groups
	ListVMGroups(context.Context, *connect.Request[v1.ListVMGroupsRequest]) (*connect.Response[v1.ListVMGroupsResponse], error)
	// UpdateVMGroup Updates a vm group
	UpdateVMGroup(context.Context, *connect.Request[v1.UpdateVMGroupRequest]) (*connect.Response[v1.UpdateVMGroupResponse], error)
}

VmgroupServiceHandler is an implementation of the cloudstack.management.vmgroup.v1.VmgroupService service.

Jump to

Keyboard shortcuts

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