api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Condition []ConditionItem `json:"condition"`
}

type ConditionItem

type ConditionItem struct {
	Column   string `json:"column"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

type ErrorBody

type ErrorBody struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type GetMachineData

type GetMachineData struct {
	Machines []GetMachineItem `json:"machines"`
}

type GetMachineItem

type GetMachineItem struct {
	FabricUUID   string               `json:"fabric_uuid"`
	FabricID     int                  `json:"fabric_id"`
	MachineUUID  string               `json:"mach_uuid"`
	MachineID    int                  `json:"mach_id"`
	MachineName  string               `json:"mach_name"`
	TenantUUID   string               `json:"tenant_uuid"`
	Status       int                  `json:"mach_status"`
	StatusDetail string               `json:"mach_status_detail"`
	Resources    []GetMachineResource `json:"resources"`
}

type GetMachineResource

type GetMachineResource struct {
	ResourceUUID string    `json:"res_uuid"`
	ResourceName string    `json:"res_name"`
	Type         string    `json:"res_type"`
	Status       int       `json:"res_status"`
	OptionStatus string    `json:"res_op_status"`
	SerialNum    string    `json:"res_serial_num"`
	Spec         Condition `json:"res_spec"`
}

type GetMachineResponse

type GetMachineResponse struct {
	Data GetMachineData `json:"data"`
}

type ScaleDownBody

type ScaleDownBody struct {
	Tenants ScaleDownTenants `json:"tenants"`
}

type ScaleDownMachineItem

type ScaleDownMachineItem struct {
	MachineUUID string                  `json:"mach_uuid"`
	Resources   []ScaleDownResourceItem `json:"resources"`
}

type ScaleDownResourceItem

type ScaleDownResourceItem struct {
	ResourceSpecs []ScaleDownResourceSpecItem `json:"res_specs"`
}

type ScaleDownResourceSpecItem

type ScaleDownResourceSpecItem struct {
	Type         string `json:"res_type"`
	ResourceUUID string `json:"res_uuid"`
}

type ScaleDownTenants

type ScaleDownTenants struct {
	TenantUUID string                 `json:"tenant_uuid"`
	Machines   []ScaleDownMachineItem `json:"machines"`
}

type ScaleUpBody

type ScaleUpBody struct {
	Tenants ScaleUpTenants `json:"tenants"`
}

type ScaleUpMachineItem

type ScaleUpMachineItem struct {
	MachineUUID string                `json:"mach_uuid"`
	Resources   []ScaleUpResourceItem `json:"resources"`
}

type ScaleUpResourceItem

type ScaleUpResourceItem struct {
	ResourceSpecs []ScaleUpResourceSpecItem `json:"res_specs"`
}

type ScaleUpResourceSpecItem

type ScaleUpResourceSpecItem struct {
	Type string    `json:"res_type"`
	Spec Condition `json:"res_spec"`
	Num  int       `json:"res_num"`
}

type ScaleUpResponse

type ScaleUpResponse struct {
	Data ScaleUpResponseData `json:"data"`
}

type ScaleUpResponseData

type ScaleUpResponseData struct {
	Machines []ScaleUpResponseMachineItem `json:"machines"`
}

type ScaleUpResponseMachineItem

type ScaleUpResponseMachineItem struct {
	FabricUUID  string                        `json:"fabric_uuid"`
	FabricID    int                           `json:"fabric_id"`
	MachineUUID string                        `json:"mach_uuid"`
	MachineID   int                           `json:"mach_id"`
	MachineName string                        `json:"mach_name"`
	TenantUUID  string                        `json:"tenant_uuid"`
	Resources   []ScaleUpResponseResourceItem `json:"resources"`
}

type ScaleUpResponseResourceItem

type ScaleUpResponseResourceItem struct {
	ResourceUUID string    `json:"res_uuid"`
	ResourceName string    `json:"res_name"`
	Type         string    `json:"res_type"`
	Status       int       `json:"res_status"`
	OptionStatus string    `json:"res_op_status"`
	SerialNum    string    `json:"res_serial_num"`
	Spec         Condition `json:"res_spec"`
}

type ScaleUpTenants

type ScaleUpTenants struct {
	TenantUUID string               `json:"tenant_uuid"`
	Machines   []ScaleUpMachineItem `json:"machines"`
}

Jump to

Keyboard shortcuts

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