Documentation
¶
Index ¶
- Constants
- func NewSystemvmServiceHandler(svc SystemvmServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type SystemvmServiceClient
- type SystemvmServiceHandler
- type UnimplementedSystemvmServiceHandler
- func (UnimplementedSystemvmServiceHandler) DestroySystemVm(context.Context, *connect.Request[v1.DestroySystemVmRequest]) (*connect.Response[v1.DestroySystemVmResponse], error)
- func (UnimplementedSystemvmServiceHandler) ListSystemVMs(context.Context, *connect.Request[v1.ListSystemVMsRequest]) (*connect.Response[v1.ListSystemVMsResponse], error)
- func (UnimplementedSystemvmServiceHandler) MigrateSystemVM(context.Context, *connect.Request[v1.MigrateSystemVMRequest]) (*connect.Response[v1.MigrateSystemVMResponse], error)
- func (UnimplementedSystemvmServiceHandler) PatchSystemVM(context.Context, *connect.Request[v1.PatchSystemVMRequest]) (*connect.Response[v1.PatchSystemVMResponse], error)
- func (UnimplementedSystemvmServiceHandler) RebootSystemVm(context.Context, *connect.Request[v1.RebootSystemVmRequest]) (*connect.Response[v1.RebootSystemVmResponse], error)
- func (UnimplementedSystemvmServiceHandler) ScaleSystemVM(context.Context, *connect.Request[v1.ScaleSystemVMRequest]) (*connect.Response[v1.ScaleSystemVMResponse], error)
- func (UnimplementedSystemvmServiceHandler) StartSystemVM(context.Context, *connect.Request[v1.StartSystemVMRequest]) (*connect.Response[v1.StartSystemVMResponse], error)
- func (UnimplementedSystemvmServiceHandler) StopSystemVm(context.Context, *connect.Request[v1.StopSystemVmRequest]) (*connect.Response[v1.StopSystemVmResponse], error)
- func (UnimplementedSystemvmServiceHandler) UpgradeSystemVM(context.Context, *connect.Request[v1.UpgradeSystemVMRequest]) (*connect.Response[v1.UpgradeSystemVMResponse], error)
Constants ¶
const ( // SystemvmServiceDestroySystemVmProcedure is the fully-qualified name of the SystemvmService's // DestroySystemVm RPC. SystemvmServiceDestroySystemVmProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/DestroySystemVm" // SystemvmServiceListSystemVMsProcedure is the fully-qualified name of the SystemvmService's // ListSystemVMs RPC. SystemvmServiceListSystemVMsProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/ListSystemVMs" // SystemvmServiceMigrateSystemVMProcedure is the fully-qualified name of the SystemvmService's // MigrateSystemVM RPC. SystemvmServiceMigrateSystemVMProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/MigrateSystemVM" // SystemvmServicePatchSystemVMProcedure is the fully-qualified name of the SystemvmService's // PatchSystemVM RPC. SystemvmServicePatchSystemVMProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/PatchSystemVM" // SystemvmServiceRebootSystemVmProcedure is the fully-qualified name of the SystemvmService's // RebootSystemVm RPC. SystemvmServiceRebootSystemVmProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/RebootSystemVm" // SystemvmServiceScaleSystemVMProcedure is the fully-qualified name of the SystemvmService's // ScaleSystemVM RPC. SystemvmServiceScaleSystemVMProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/ScaleSystemVM" // SystemvmServiceStartSystemVMProcedure is the fully-qualified name of the SystemvmService's // StartSystemVM RPC. SystemvmServiceStartSystemVMProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/StartSystemVM" // SystemvmServiceStopSystemVmProcedure is the fully-qualified name of the SystemvmService's // StopSystemVm RPC. SystemvmServiceStopSystemVmProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/StopSystemVm" // SystemvmServiceUpgradeSystemVMProcedure is the fully-qualified name of the SystemvmService's // UpgradeSystemVM RPC. SystemvmServiceUpgradeSystemVMProcedure = "/cloudstack.management.systemvm.v1.SystemvmService/UpgradeSystemVM" )
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 (
// SystemvmServiceName is the fully-qualified name of the SystemvmService service.
SystemvmServiceName = "cloudstack.management.systemvm.v1.SystemvmService"
)
Variables ¶
This section is empty.
Functions ¶
func NewSystemvmServiceHandler ¶
func NewSystemvmServiceHandler(svc SystemvmServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewSystemvmServiceHandler 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 SystemvmServiceClient ¶
type SystemvmServiceClient interface { // DestroySystemVm Destroys a system virtual machine. DestroySystemVm(context.Context, *connect.Request[v1.DestroySystemVmRequest]) (*connect.Response[v1.DestroySystemVmResponse], error) // ListSystemVMs List system virtual machines. ListSystemVMs(context.Context, *connect.Request[v1.ListSystemVMsRequest]) (*connect.Response[v1.ListSystemVMsResponse], error) // MigrateSystemVM Attempts Migration of a system virtual machine to the host specified. MigrateSystemVM(context.Context, *connect.Request[v1.MigrateSystemVMRequest]) (*connect.Response[v1.MigrateSystemVMResponse], error) // PatchSystemVM Attempts to live patch systemVMs - CPVM, SSVM PatchSystemVM(context.Context, *connect.Request[v1.PatchSystemVMRequest]) (*connect.Response[v1.PatchSystemVMResponse], error) // RebootSystemVm Reboots a system VM. RebootSystemVm(context.Context, *connect.Request[v1.RebootSystemVmRequest]) (*connect.Response[v1.RebootSystemVmResponse], error) // ScaleSystemVM Scale the service offering for a system vm (console proxy or secondary storage). The system vm must be in a "Stopped" state for this command to take effect. ScaleSystemVM(context.Context, *connect.Request[v1.ScaleSystemVMRequest]) (*connect.Response[v1.ScaleSystemVMResponse], error) // StartSystemVM Starts a system virtual machine. StartSystemVM(context.Context, *connect.Request[v1.StartSystemVMRequest]) (*connect.Response[v1.StartSystemVMResponse], error) // StopSystemVm Stops a system VM. StopSystemVm(context.Context, *connect.Request[v1.StopSystemVmRequest]) (*connect.Response[v1.StopSystemVmResponse], error) // UpgradeSystemVM Changes the service offering for a system vm (console proxy or secondary storage). The system vm must be in a "Stopped" state for this command to take effect. UpgradeSystemVM(context.Context, *connect.Request[v1.UpgradeSystemVMRequest]) (*connect.Response[v1.UpgradeSystemVMResponse], error) }
SystemvmServiceClient is a client for the cloudstack.management.systemvm.v1.SystemvmService service.
func NewSystemvmServiceClient ¶
func NewSystemvmServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SystemvmServiceClient
NewSystemvmServiceClient constructs a client for the cloudstack.management.systemvm.v1.SystemvmService 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 SystemvmServiceHandler ¶
type SystemvmServiceHandler interface { // DestroySystemVm Destroys a system virtual machine. DestroySystemVm(context.Context, *connect.Request[v1.DestroySystemVmRequest]) (*connect.Response[v1.DestroySystemVmResponse], error) // ListSystemVMs List system virtual machines. ListSystemVMs(context.Context, *connect.Request[v1.ListSystemVMsRequest]) (*connect.Response[v1.ListSystemVMsResponse], error) // MigrateSystemVM Attempts Migration of a system virtual machine to the host specified. MigrateSystemVM(context.Context, *connect.Request[v1.MigrateSystemVMRequest]) (*connect.Response[v1.MigrateSystemVMResponse], error) // PatchSystemVM Attempts to live patch systemVMs - CPVM, SSVM PatchSystemVM(context.Context, *connect.Request[v1.PatchSystemVMRequest]) (*connect.Response[v1.PatchSystemVMResponse], error) // RebootSystemVm Reboots a system VM. RebootSystemVm(context.Context, *connect.Request[v1.RebootSystemVmRequest]) (*connect.Response[v1.RebootSystemVmResponse], error) // ScaleSystemVM Scale the service offering for a system vm (console proxy or secondary storage). The system vm must be in a "Stopped" state for this command to take effect. ScaleSystemVM(context.Context, *connect.Request[v1.ScaleSystemVMRequest]) (*connect.Response[v1.ScaleSystemVMResponse], error) // StartSystemVM Starts a system virtual machine. StartSystemVM(context.Context, *connect.Request[v1.StartSystemVMRequest]) (*connect.Response[v1.StartSystemVMResponse], error) // StopSystemVm Stops a system VM. StopSystemVm(context.Context, *connect.Request[v1.StopSystemVmRequest]) (*connect.Response[v1.StopSystemVmResponse], error) // UpgradeSystemVM Changes the service offering for a system vm (console proxy or secondary storage). The system vm must be in a "Stopped" state for this command to take effect. UpgradeSystemVM(context.Context, *connect.Request[v1.UpgradeSystemVMRequest]) (*connect.Response[v1.UpgradeSystemVMResponse], error) }
SystemvmServiceHandler is an implementation of the cloudstack.management.systemvm.v1.SystemvmService service.
type UnimplementedSystemvmServiceHandler ¶
type UnimplementedSystemvmServiceHandler struct{}
UnimplementedSystemvmServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedSystemvmServiceHandler) DestroySystemVm ¶
func (UnimplementedSystemvmServiceHandler) DestroySystemVm(context.Context, *connect.Request[v1.DestroySystemVmRequest]) (*connect.Response[v1.DestroySystemVmResponse], error)
func (UnimplementedSystemvmServiceHandler) ListSystemVMs ¶
func (UnimplementedSystemvmServiceHandler) ListSystemVMs(context.Context, *connect.Request[v1.ListSystemVMsRequest]) (*connect.Response[v1.ListSystemVMsResponse], error)
func (UnimplementedSystemvmServiceHandler) MigrateSystemVM ¶
func (UnimplementedSystemvmServiceHandler) MigrateSystemVM(context.Context, *connect.Request[v1.MigrateSystemVMRequest]) (*connect.Response[v1.MigrateSystemVMResponse], error)
func (UnimplementedSystemvmServiceHandler) PatchSystemVM ¶
func (UnimplementedSystemvmServiceHandler) PatchSystemVM(context.Context, *connect.Request[v1.PatchSystemVMRequest]) (*connect.Response[v1.PatchSystemVMResponse], error)
func (UnimplementedSystemvmServiceHandler) RebootSystemVm ¶
func (UnimplementedSystemvmServiceHandler) RebootSystemVm(context.Context, *connect.Request[v1.RebootSystemVmRequest]) (*connect.Response[v1.RebootSystemVmResponse], error)
func (UnimplementedSystemvmServiceHandler) ScaleSystemVM ¶
func (UnimplementedSystemvmServiceHandler) ScaleSystemVM(context.Context, *connect.Request[v1.ScaleSystemVMRequest]) (*connect.Response[v1.ScaleSystemVMResponse], error)
func (UnimplementedSystemvmServiceHandler) StartSystemVM ¶
func (UnimplementedSystemvmServiceHandler) StartSystemVM(context.Context, *connect.Request[v1.StartSystemVMRequest]) (*connect.Response[v1.StartSystemVMResponse], error)
func (UnimplementedSystemvmServiceHandler) StopSystemVm ¶
func (UnimplementedSystemvmServiceHandler) StopSystemVm(context.Context, *connect.Request[v1.StopSystemVmRequest]) (*connect.Response[v1.StopSystemVmResponse], error)
func (UnimplementedSystemvmServiceHandler) UpgradeSystemVM ¶
func (UnimplementedSystemvmServiceHandler) UpgradeSystemVM(context.Context, *connect.Request[v1.UpgradeSystemVMRequest]) (*connect.Response[v1.UpgradeSystemVMResponse], error)