disks

package
v0.0.1-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateReq

type CreateReq struct {
	ID     uint   `json:"id"`     // 实例ID
	Size   uint   `json:"size"`   // 磁盘大小(G)
	Driver string `json:"driver"` // 驱动(ide,virtio,sata,scsi)
	Cache  string `json:"cache"`  // 缓存(none,writethrough,writeback,directsync)
	Io     string `json:"io"`     // IO(native,threads)
	Store  uint   `json:"store"`  // 存储ID
}

func (*CreateReq) Body

func (r *CreateReq) Body() any

func (*CreateReq) Form

func (r *CreateReq) Form() (form url.Values)

func (*CreateReq) Header

func (r *CreateReq) Header() http.Header

func (*CreateReq) Method

func (r *CreateReq) Method() string

func (*CreateReq) Url

func (r *CreateReq) Url() string

func (*CreateReq) Values

func (r *CreateReq) Values() (values url.Values)

type CreateResp

type CreateResp struct{}

func Create

func Create(ctx *cloudplatform.Context, req *CreateReq) (*CreateResp, error)

type UpdateReq

type UpdateReq struct {
	ID     uint   `json:"id"`     // 磁盘ID
	Size   uint   `json:"size"`   // 磁盘大小(G)
	Driver string `json:"driver"` // 驱动(ide,virtio,sata,scsi)
	Cache  string `json:"cache"`  // 缓存(none,writethrough,writeback,directsync)
	Io     string `json:"io"`     // IO(native,threads)

}

func (*UpdateReq) Body

func (r *UpdateReq) Body() any

func (*UpdateReq) Form

func (r *UpdateReq) Form() (form url.Values)

func (*UpdateReq) Header

func (r *UpdateReq) Header() http.Header

func (*UpdateReq) Method

func (r *UpdateReq) Method() string

func (*UpdateReq) Url

func (r *UpdateReq) Url() string

func (*UpdateReq) Values

func (r *UpdateReq) Values() (values url.Values)

type UpdateResp

type UpdateResp struct{}

func Update

func Update(ctx *cloudplatform.Context, req *UpdateReq) (*UpdateResp, error)

Jump to

Keyboard shortcuts

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