Kibotos
API 参考kibotos.ctrl.v1

VolumeService

本页列出 kibotos.ctrl.v1 中 VolumeService 的方法及每个方法用到的消息与枚举,由 ctrl.proto 及其注释生成,注释保持英文。多个服务共用的消息与枚举见 kibotos.ctrl.v1 类型。

ctrl API使用 Operator 证书调用。调用方式

VolumeService owns the Native logical Volume lifecycle. Storage profile and host implementation details remain private to the runtime.

CreateVolume

POST/kibotos.ctrl.v1.VolumeService/CreateVolume一元调用
请求CreateVolumeRequest
响应CreateVolumeResponse

GetVolume

POST/kibotos.ctrl.v1.VolumeService/GetVolume一元调用
请求GetVolumeRequest
响应GetVolumeResponse

ListVolumes

POST/kibotos.ctrl.v1.VolumeService/ListVolumes一元调用
请求ListVolumesRequest
  • page_sizeuint32= 1

    Zero selects the server default. Values above the server maximum are rejected rather than silently changed.

  • page_tokenstring= 2

    Opaque cursor returned by the preceding page.

  • By default, Volumes whose deletion has completed are omitted.

  • label_selectormap<string, string>= 4

    When non-empty, return only Volumes that carry every entry as a label with exactly that value. Keys and values must satisfy the label rules. A page token is only valid with the selector it was issued for.

响应ListVolumesResponse

ResizeVolume

ResizeVolume enlarges a Volume that is not mounted anywhere. The Volume keeps its ID, binding, mount path, and data; only its capacity moves, and only upward. A target equal to the current capacity is idempotent, a smaller one is invalid_argument, and a Volume that is still attached, or bound to a Workspace that holds an execution, is failed_precondition.

POST/kibotos.ctrl.v1.VolumeService/ResizeVolume一元调用
请求ResizeVolumeRequest
  • volume_idstring= 2
  • The capacity the Volume must have when this call succeeds. It is an absolute target, not a delta, and it must be at least the capacity the Volume already has. It is required: a resize never resolves its own target from the storage profile.

响应ResizeVolumeResponse

DeleteVolume

POST/kibotos.ctrl.v1.VolumeService/DeleteVolume一元调用
请求DeleteVolumeRequest
响应DeleteVolumeResponse

GetVolumeCommand

GetVolumeCommand returns the durable record of one Volume command: whether it is still processing and, once completed, its historical result. It is the query entry for a mutation whose response was lost.

POST/kibotos.ctrl.v1.VolumeService/GetVolumeCommand一元调用
请求GetVolumeCommandRequest
响应GetVolumeCommandResponse

VolumeCommand

VolumeCommandStatus

  • VOLUME_COMMAND_STATUS_UNSPECIFIED= 0
  • VOLUME_COMMAND_STATUS_PROCESSING= 1
  • VOLUME_COMMAND_STATUS_COMPLETED= 2

UpdateVolumeLabels

UpdateVolumeLabels and UpdateVolumeAnnotations follow the rules of their Workspace counterparts.

POST/kibotos.ctrl.v1.VolumeService/UpdateVolumeLabels一元调用
请求UpdateVolumeLabelsRequest
响应UpdateVolumeLabelsResponse

UpdateVolumeAnnotations

POST/kibotos.ctrl.v1.VolumeService/UpdateVolumeAnnotations一元调用
请求UpdateVolumeAnnotationsRequest
响应UpdateVolumeAnnotationsResponse

本页内容