image

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 ListReq

type ListReq struct {
	ImageGroupId string `url:"image_group_id,omitempty"` // 镜像组id
	Rescue       string `url:"rescue,omitempty"`         // 是否救援系统(0不包含救援系统,1救援系统)

	Page    string `url:"page,omitempty"`
	PerPage string `url:"per_page,omitempty"`
	Orderby string `url:"orderby,omitempty"` // 排序(id,name,use,image_group_id,status)
	Sort    string `url:"sort,omitempty"`
}

func (*ListReq) Body

func (r *ListReq) Body() any

func (*ListReq) Form

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

func (*ListReq) Header

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

func (*ListReq) Method

func (r *ListReq) Method() string

func (*ListReq) Url

func (r *ListReq) Url() string

func (*ListReq) Values

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

type ListResp

type ListResp struct {
	Data []struct {
		Id                int           `json:"id"`
		ImageGroupId      int           `json:"image_group_id"`
		Name              string        `json:"name"`
		Filename          string        `json:"filename"`
		StoreId           []interface{} `json:"store_id"`
		Status            int           `json:"status"`
		Type              int           `json:"type"`
		BootType          string        `json:"boot_type"`
		Url               string        `json:"url"`
		UploadType        int           `json:"upload_type"`
		OnScript          string        `json:"on_script"`
		DiskDriver        string        `json:"disk_driver"`
		CpuModel          int           `json:"cpu_model"`
		Console           int           `json:"console"`
		LastUpdateTime    string        `json:"last_update_time"`
		Size              string        `json:"size"`
		Key               string        `json:"key"`
		ClientHidden      int           `json:"client_hidden"`
		ExternalExpansion int           `json:"external_expansion"`
		Use               int           `json:"use"`
		Info              []struct {
			NodeId     int    `json:"node_id"`
			StoreId    int    `json:"store_id"`
			StoreName  string `json:"store_name"`
			Status     int    `json:"status"`
			HistoryNum int    `json:"history_num"`
			CanImport  int    `json:"can_import"`
		} `json:"info"`
		RealPath []string `json:"real_path"`
		Group    struct {
			Id   int    `json:"id"`
			Name string `json:"name"`
			Svg  int    `json:"svg"`
		} `json:"group"`
	} `json:"data"`
	Meta struct {
		Total     int `json:"total"`
		TotalPage int `json:"total_page"`
		PerPage   int `json:"per_page"`
		Page      int `json:"page"`
	} `json:"meta"`
	Area []struct {
		Id   int    `json:"id"`
		Name string `json:"name"`
		Node []struct {
			Id   int    `json:"id"`
			Name string `json:"name"`
			Type string `json:"type"`
		} `json:"node"`
	} `json:"area"`
}

func List

func List(ctx *cputil.Context, req *ListReq) (*ListResp, error)

List 实例列表

Jump to

Keyboard shortcuts

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