mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-25 18:14:21 +01:00
Use CLH branch stable/v0.5.x, and also re-generate the openAPI client code with the new 'cloud-hypervisor.yaml'. Fixes: #2488 Signed-off-by: Bo Chen <chen.bo@intel.com>
Go API client for openapi
Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.
Overview
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 0.3.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Installation
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional
Put the package under your project folder and add the following in import:
import "./openapi"
Documentation for API Endpoints
All URIs are relative to http://localhost/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | BootVM | Put /vm.boot | Boot the previously created VM instance. |
| DefaultApi | CreateVM | Put /vm.create | Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, only created. |
| DefaultApi | DeleteVM | Put /vm.delete | Delete the cloud-hypervisor Virtual Machine (VM) instance. |
| DefaultApi | PauseVM | Put /vm.pause | Pause a previously booted VM instance. |
| DefaultApi | RebootVM | Put /vm.reboot | Reboot the VM instance. |
| DefaultApi | ResumeVM | Put /vm.resume | Resume a previously paused VM instance. |
| DefaultApi | ShutdownVM | Put /vm.shutdown | Shut the VM instance down. |
| DefaultApi | ShutdownVMM | Put /vmm.shutdown | Shuts the cloud-hypervisor VMM. |
| DefaultApi | VmInfoGet | Get /vm.info | Returns general information about the cloud-hypervisor Virtual Machine (VM) instance. |
| DefaultApi | VmResizePut | Put /vm.resize | Resize the VM |
| DefaultApi | VmmPingGet | Get /vmm.ping | Ping the VMM to check for API server availability |
Documentation For Models
- CmdLineConfig
- ConsoleConfig
- CpusConfig
- DeviceConfig
- DiskConfig
- FsConfig
- KernelConfig
- MemoryConfig
- NetConfig
- PmemConfig
- RngConfig
- VhostUserBlkConfig
- VhostUserNetConfig
- VmConfig
- VmInfo
- VmResize
- VmmPingResponse
- VsockConfig
Documentation For Authorization
Endpoints do not require authorization.