logic

package
v0.0.0-...-e7edaba Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSecurityGroupToServerLogic

type AddSecurityGroupToServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewAddSecurityGroupToServerLogic

func NewAddSecurityGroupToServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddSecurityGroupToServerLogic

func (*AddSecurityGroupToServerLogic) AddSecurityGroupToServer

type Address

type Address struct {
	OSEXTIPSMACMacAddr string `json:"OS-EXT-IPS-MAC:mac_addr"`
	Version            int    `json:"version"`
	Addr               string `json:"addr"`
	OSEXTIPSType       string `json:"OS-EXT-IPS:type"`
}

type Addresses

type Addresses map[string][]Address

Addresses 结构体表示网络地址的集合

type BulkCreateNetworksLogic

type BulkCreateNetworksLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewBulkCreateNetworksLogic

func NewBulkCreateNetworksLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BulkCreateNetworksLogic

func (*BulkCreateNetworksLogic) BulkCreateNetworks

批量创建网络

type ChangeAdministrativePasswordLogic

type ChangeAdministrativePasswordLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewChangeAdministrativePasswordLogic

func NewChangeAdministrativePasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChangeAdministrativePasswordLogic

type CreateFirewallGroupLogic

type CreateFirewallGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateFirewallGroupLogic

func NewCreateFirewallGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateFirewallGroupLogic

func (*CreateFirewallGroupLogic) CreateFirewallGroup

type CreateFirewallPolicyLogic

type CreateFirewallPolicyLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateFirewallPolicyLogic

func NewCreateFirewallPolicyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateFirewallPolicyLogic

func (*CreateFirewallPolicyLogic) CreateFirewallPolicy

type CreateFirewallRuleLogic

type CreateFirewallRuleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateFirewallRuleLogic

func NewCreateFirewallRuleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateFirewallRuleLogic

func (*CreateFirewallRuleLogic) CreateFirewallRule

type CreateFlavorLogic

type CreateFlavorLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateFlavorLogic

func NewCreateFlavorLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateFlavorLogic

func (*CreateFlavorLogic) CreateFlavor

type CreateFloatingIPLogic

type CreateFloatingIPLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateFloatingIPLogic

func NewCreateFloatingIPLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateFloatingIPLogic

func (*CreateFloatingIPLogic) CreateFloatingIP

type CreateImageLogic

type CreateImageLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateImageLogic

func NewCreateImageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateImageLogic

func (*CreateImageLogic) CreateImage

Images from glance

type CreateNetworkLogic

type CreateNetworkLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateNetworkLogic

func NewCreateNetworkLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateNetworkLogic

func (*CreateNetworkLogic) CreateNetwork

type CreateNetworkSegmentRangeLogic

type CreateNetworkSegmentRangeLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateNetworkSegmentRangeLogic

func NewCreateNetworkSegmentRangeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateNetworkSegmentRangeLogic

func (*CreateNetworkSegmentRangeLogic) CreateNetworkSegmentRange

网段

type CreateNodeLogic

type CreateNodeLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateNodeLogic

func NewCreateNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateNodeLogic

func (*CreateNodeLogic) CreateNode

type CreatePortLogic

type CreatePortLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreatePortLogic

func NewCreatePortLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreatePortLogic

func (*CreatePortLogic) CreatePort

端口

type CreateRouterLogic

type CreateRouterLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateRouterLogic

func NewCreateRouterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateRouterLogic

func (*CreateRouterLogic) CreateRouter

路由

type CreateSecurityGroupLogic

type CreateSecurityGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateSecurityGroupLogic

func NewCreateSecurityGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateSecurityGroupLogic

func (*CreateSecurityGroupLogic) CreateSecurityGroup

type CreateSecurityGroupRuleLogic

type CreateSecurityGroupRuleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateSecurityGroupRuleLogic

func NewCreateSecurityGroupRuleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateSecurityGroupRuleLogic

func (*CreateSecurityGroupRuleLogic) CreateSecurityGroupRule

type CreateServerLogic

type CreateServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateServerLogic

func NewCreateServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateServerLogic

func (*CreateServerLogic) CreateServer

type CreateSubnetLogic

type CreateSubnetLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateSubnetLogic

func NewCreateSubnetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateSubnetLogic

func (*CreateSubnetLogic) CreateSubnet

type CreateVolumeLogic

type CreateVolumeLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateVolumeLogic

func NewCreateVolumeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateVolumeLogic

func (*CreateVolumeLogic) CreateVolume

type CreateVolumeTypesLogic

type CreateVolumeTypesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateVolumeTypesLogic

func NewCreateVolumeTypesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateVolumeTypesLogic

func (*CreateVolumeTypesLogic) CreateVolumeTypes

type DeleteFirewallGroupLogic

type DeleteFirewallGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteFirewallGroupLogic

func NewDeleteFirewallGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteFirewallGroupLogic

func (*DeleteFirewallGroupLogic) DeleteFirewallGroup

type DeleteFirewallPolicyLogic

type DeleteFirewallPolicyLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteFirewallPolicyLogic

func NewDeleteFirewallPolicyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteFirewallPolicyLogic

func (*DeleteFirewallPolicyLogic) DeleteFirewallPolicy

type DeleteFirewallRuleLogic

type DeleteFirewallRuleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteFirewallRuleLogic

func NewDeleteFirewallRuleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteFirewallRuleLogic

func (*DeleteFirewallRuleLogic) DeleteFirewallRule

type DeleteFlavorLogic

type DeleteFlavorLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteFlavorLogic

func NewDeleteFlavorLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteFlavorLogic

func (*DeleteFlavorLogic) DeleteFlavor

type DeleteFloatingIPLogic

type DeleteFloatingIPLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteFloatingIPLogic

func NewDeleteFloatingIPLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteFloatingIPLogic

func (*DeleteFloatingIPLogic) DeleteFloatingIP

type DeleteImageLogic

type DeleteImageLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteImageLogic

func NewDeleteImageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteImageLogic

func (*DeleteImageLogic) DeleteImage

type DeleteNetworkLogic

type DeleteNetworkLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteNetworkLogic

func NewDeleteNetworkLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteNetworkLogic

func (*DeleteNetworkLogic) DeleteNetwork

type DeleteNetworkSegmentRangesLogic

type DeleteNetworkSegmentRangesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteNetworkSegmentRangesLogic

func NewDeleteNetworkSegmentRangesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteNetworkSegmentRangesLogic

func (*DeleteNetworkSegmentRangesLogic) DeleteNetworkSegmentRanges

type DeleteNodeLogic

type DeleteNodeLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteNodeLogic

func NewDeleteNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteNodeLogic

func (*DeleteNodeLogic) DeleteNode

type DeletePortLogic

type DeletePortLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeletePortLogic

func NewDeletePortLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeletePortLogic

func (*DeletePortLogic) DeletePort

type DeleteRouterLogic

type DeleteRouterLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteRouterLogic

func NewDeleteRouterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteRouterLogic

func (*DeleteRouterLogic) DeleteRouter

type DeleteSecurityGroupLogic

type DeleteSecurityGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteSecurityGroupLogic

func NewDeleteSecurityGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteSecurityGroupLogic

func (*DeleteSecurityGroupLogic) DeleteSecurityGroup

type DeleteSecurityGroupRuleLogic

type DeleteSecurityGroupRuleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteSecurityGroupRuleLogic

func NewDeleteSecurityGroupRuleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteSecurityGroupRuleLogic

func (*DeleteSecurityGroupRuleLogic) DeleteSecurityGroupRule

type DeleteServerLogic

type DeleteServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteServerLogic

func NewDeleteServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteServerLogic

func (*DeleteServerLogic) DeleteServer

type DeleteSubnetLogic

type DeleteSubnetLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteSubnetLogic

func NewDeleteSubnetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteSubnetLogic

func (*DeleteSubnetLogic) DeleteSubnet

type DeleteVolumeLogic

type DeleteVolumeLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteVolumeLogic

func NewDeleteVolumeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteVolumeLogic

func (*DeleteVolumeLogic) DeleteVolume

type DeleteVolumeTypesLogic

type DeleteVolumeTypesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteVolumeTypesLogic

func NewDeleteVolumeTypesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteVolumeTypesLogic

func (*DeleteVolumeTypesLogic) DeleteVolumeTypes

type Flavor

type Flavor struct {
	Id    string  `json:"id"`
	Links []Links `json:"links"`
}

type GetComputeLimitsLogic

type GetComputeLimitsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetComputeLimitsLogic

func NewGetComputeLimitsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetComputeLimitsLogic

func (*GetComputeLimitsLogic) GetComputeLimits

type GetServersDetailedByIdLogic

type GetServersDetailedByIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetServersDetailedByIdLogic

func NewGetServersDetailedByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetServersDetailedByIdLogic

func (*GetServersDetailedByIdLogic) GetServersDetailedById

type GetVolumeDetailedByIdLogic

type GetVolumeDetailedByIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetVolumeDetailedByIdLogic

func NewGetVolumeDetailedByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetVolumeDetailedByIdLogic

func (*GetVolumeDetailedByIdLogic) GetVolumeDetailedById

type GetVolumeLimitsLogic

type GetVolumeLimitsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetVolumeLimitsLogic

func NewGetVolumeLimitsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetVolumeLimitsLogic

func (*GetVolumeLimitsLogic) GetVolumeLimits

type Image

type Image struct {
	Id    string `json:"id"`
	Links []Link `json:"links"`
}
type Link struct {
	Href string `json:"href"`
	Rel  string `json:"rel"`
}
type Links struct {
	Href string `json:"href"`
	Rel  string `json:"rel"`
}

type ListFirewallGroupsLogic

type ListFirewallGroupsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFirewallGroupsLogic

func NewListFirewallGroupsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFirewallGroupsLogic

func (*ListFirewallGroupsLogic) ListFirewallGroups

防火墙

type ListFirewallPoliciesLogic

type ListFirewallPoliciesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFirewallPoliciesLogic

func NewListFirewallPoliciesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFirewallPoliciesLogic

func (*ListFirewallPoliciesLogic) ListFirewallPolicies

type ListFirewallRulesLogic

type ListFirewallRulesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFirewallRulesLogic

func NewListFirewallRulesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFirewallRulesLogic

func (*ListFirewallRulesLogic) ListFirewallRules

type ListFlavorsDetailLogic

type ListFlavorsDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFlavorsDetailLogic

func NewListFlavorsDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFlavorsDetailLogic

func (*ListFlavorsDetailLogic) ListFlavorsDetail

type ListFloatingIPsLogic

type ListFloatingIPsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFloatingIPsLogic

func NewListFloatingIPsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFloatingIPsLogic

func (*ListFloatingIPsLogic) ListFloatingIPs

浮动IP

type ListImagesLogic

type ListImagesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListImagesLogic

func NewListImagesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListImagesLogic

func (*ListImagesLogic) ListImages

type ListNetworkSegmentRangesLogic

type ListNetworkSegmentRangesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListNetworkSegmentRangesLogic

func NewListNetworkSegmentRangesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListNetworkSegmentRangesLogic

func (*ListNetworkSegmentRangesLogic) ListNetworkSegmentRanges

type ListNetworksLogic

type ListNetworksLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListNetworksLogic

func NewListNetworksLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListNetworksLogic

func (*ListNetworksLogic) ListNetworks

type ListNodesLogic

type ListNodesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListNodesLogic

func NewListNodesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListNodesLogic

func (*ListNodesLogic) ListNodes

Bare Metal

type ListPortsLogic

type ListPortsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListPortsLogic

func NewListPortsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListPortsLogic

func (*ListPortsLogic) ListPorts

type ListRoutersLogic

type ListRoutersLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListRoutersLogic

func NewListRoutersLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListRoutersLogic

func (*ListRoutersLogic) ListRouters

type ListSecurityGroupRulesLogic

type ListSecurityGroupRulesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListSecurityGroupRulesLogic

func NewListSecurityGroupRulesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListSecurityGroupRulesLogic

func (*ListSecurityGroupRulesLogic) ListSecurityGroupRules

安全组规则

type ListSecurityGroupsLogic

type ListSecurityGroupsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListSecurityGroupsLogic

func NewListSecurityGroupsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListSecurityGroupsLogic

func (*ListSecurityGroupsLogic) ListSecurityGroups

安全组

type ListServersDetailedLogic

type ListServersDetailedLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListServersDetailedLogic

func NewListServersDetailedLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListServersDetailedLogic

func (*ListServersDetailedLogic) ListServersDetailed

type ListServersLogic

type ListServersLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListServersLogic

func NewListServersLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListServersLogic

func (*ListServersLogic) ListServers

type ListSubnetsLogic

type ListSubnetsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListSubnetsLogic

func NewListSubnetsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListSubnetsLogic

func (*ListSubnetsLogic) ListSubnets

type ListVolumeTypesLogic

type ListVolumeTypesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListVolumeTypesLogic

func NewListVolumeTypesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListVolumeTypesLogic

func (*ListVolumeTypesLogic) ListVolumeTypes

type ListVolumesDetailLogic

type ListVolumesDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListVolumesDetailLogic

func NewListVolumesDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListVolumesDetailLogic

func (*ListVolumesDetailLogic) ListVolumesDetail

type ListVolumesLogic

type ListVolumesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListVolumesLogic

func NewListVolumesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListVolumesLogic

func (*ListVolumesLogic) ListVolumes

cinder(block storage) volumes

type Metadata

type Metadata struct {
}

type MigrateServerLogic

type MigrateServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewMigrateServerLogic

func NewMigrateServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MigrateServerLogic

func (*MigrateServerLogic) MigrateServer

type PauseServerLogic

type PauseServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPauseServerLogic

func NewPauseServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PauseServerLogic

func (*PauseServerLogic) PauseServer

type Private

type Private struct {
}

type RebootServerLogic

type RebootServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRebootServerLogic

func NewRebootServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RebootServerLogic

func (*RebootServerLogic) RebootServer

type RebuildServerLogic

type RebuildServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRebuildServerLogic

func NewRebuildServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RebuildServerLogic

func (*RebuildServerLogic) RebuildServer

type RemoveSecurityGroupLogic

type RemoveSecurityGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRemoveSecurityGroupLogic

func NewRemoveSecurityGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveSecurityGroupLogic

func (*RemoveSecurityGroupLogic) RemoveSecurityGroup

type RescueServerLogic

type RescueServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRescueServerLogic

func NewRescueServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RescueServerLogic

func (*RescueServerLogic) RescueServer

type ResizeServerLogic

type ResizeServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewResizeServerLogic

func NewResizeServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ResizeServerLogic

func (*ResizeServerLogic) ResizeServer

type Security_groups

type Security_groups struct {
	Name string `json:"name"`
}

type ServersData

type ServersData struct {
	OSTaskState                          string            `json:"OS-EXT-STS:task_state"`
	VmState                              string            `json:"OS-EXT-STS:vm_state"`
	InstanceName                         string            `json:"OS-EXT-SRV-ATTR:instance_name"`
	OS_SRV_USG_Launched_At               string            `json:"OS-SRV-USG:launched_at"`
	OS_DCF_DiskConfig                    string            `json:"OS-DCF:diskConfig"`
	OS_EXT_STS_Power_State               int32             `json:"OS-EXT-SRV-ATTR:power_state"`
	OS_EXT_AZ_availability_zone          string            `json:"OS-EXT-AZ:availability_zone"`
	OS_EXT_SRV_ATTR_Host                 string            `json:"OS-EXT-SRV-ATTR:host"`
	OS_SRV_USG_Terminated_At             string            `json:"OS-SRV-USG:terminated_at"`
	Os_extended_volumes_volumes_attached []string          `json:"os-extended-volumes:volumes_attached"`
	OS_EXT_SRV_ATTR_Hypervisor_Hostname  string            `json:"OS-EXT-SRV-ATTR:hypervisor_hostname"`
	AccessIPv4                           string            `json:"accessIPv4"`
	AccessIPv6                           string            `json:"accessIPv6"`
	Addresses                            Addresses         `json:"addresses"`
	Config_drive                         string            `json:"config_drive"`
	Description                          string            `json:"description"`
	Flavor                               Flavor            `json:"flavor"`
	HostId                               string            `json:"hostId"`
	Host_status                          string            `json:"host_status"`
	Id                                   string            `json:"id"`
	Image                                Image             `json:"image"`
	Key_name                             string            `json:"key_name"`
	Links                                []Links           `json:"links"`
	Locked                               bool              `json:"locked"`
	Locked_reason                        string            `json:"locked_reason"`
	Metadata                             Metadata          `json:"metadata"`
	Name                                 string            `json:"name"`
	Created                              string            `json:"created"`
	Progress                             uint32            `json:"progress"`
	Security_groups                      []Security_groups `json:"security_groups"`
	Status                               string            `json:"status"`
	Tags                                 []string          `json:"tags"`
	Trusted_image_certificates           string            `json:"trusted_image_certificates"`
	Updated                              string            `json:"updated"`
	User_id                              string            `json:"user_id"`
}

type ServersDetailed

type ServersDetailed struct {
	// 其他字段...
	OSTaskState                   string `json:"OSTaskState"`
	Status                        string `json:"status"`
	VmState                       string `json:"VmState"`
	OS_EXT_SRV_ATTR_Instance_Name string `json:"OS_EXT_SRV_ATTR_Instance_Name"`
	Created                       string `json:"Created"`
	Updated                       string `json:"Updated"`
	HostId                        string `json:"HostId"`
	Ip                            string `json:"Ip"`
	Image                         string `json:"Image"`
	Flavor                        string `json:"Flavor"`
	Id                            string `json:"Id"`
	Name                          string `json:"Name"`
	Key_name                      string `json:"Key_name"`
	Survival_time                 int32  `json:"Survival_time"`
}

type ServersDetailedResp

type ServersDetailedResp struct {
	Servers   []ServersData `json:"servers"`
	Code      int32         `json:"code"`
	Msg       string        `json:"msg"`
	Error_msg string        `json:"error_msg"`
}

type ServersWrapper

type ServersWrapper struct {
	// 其他字段...
	Servers []ServersDetailed `json:"servers"`
}

type ShelveServerLogic

type ShelveServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShelveServerLogic

func NewShelveServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShelveServerLogic

func (*ShelveServerLogic) ShelveServer

type ShowFirewallGroupDetailsLogic

type ShowFirewallGroupDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowFirewallGroupDetailsLogic

func NewShowFirewallGroupDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowFirewallGroupDetailsLogic

func (*ShowFirewallGroupDetailsLogic) ShowFirewallGroupDetails

type ShowFirewallPolicyDetailsLogic

type ShowFirewallPolicyDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowFirewallPolicyDetailsLogic

func NewShowFirewallPolicyDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowFirewallPolicyDetailsLogic

func (*ShowFirewallPolicyDetailsLogic) ShowFirewallPolicyDetails

type ShowFirewallRuleDetailsLogic

type ShowFirewallRuleDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowFirewallRuleDetailsLogic

func NewShowFirewallRuleDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowFirewallRuleDetailsLogic

func (*ShowFirewallRuleDetailsLogic) ShowFirewallRuleDetails

type ShowFloatingIPDetailsLogic

type ShowFloatingIPDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowFloatingIPDetailsLogic

func NewShowFloatingIPDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowFloatingIPDetailsLogic

func (*ShowFloatingIPDetailsLogic) ShowFloatingIPDetails

type ShowNetworkDetailsLogic

type ShowNetworkDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowNetworkDetailsLogic

func NewShowNetworkDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowNetworkDetailsLogic

func (*ShowNetworkDetailsLogic) ShowNetworkDetails

network

type ShowNetworkSegmentRangeDetailsLogic

type ShowNetworkSegmentRangeDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowNetworkSegmentRangeDetailsLogic

func NewShowNetworkSegmentRangeDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowNetworkSegmentRangeDetailsLogic

type ShowNodeDetailsLogic

type ShowNodeDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowNodeDetailsLogic

func NewShowNodeDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowNodeDetailsLogic

func (*ShowNodeDetailsLogic) ShowNodeDetails

type ShowPortDetailsLogic

type ShowPortDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowPortDetailsLogic

func NewShowPortDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowPortDetailsLogic

func (*ShowPortDetailsLogic) ShowPortDetails

type ShowRouterDetailsLogic

type ShowRouterDetailsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowRouterDetailsLogic

func NewShowRouterDetailsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowRouterDetailsLogic

func (*ShowRouterDetailsLogic) ShowRouterDetails

type ShowSecurityGroupLogic

type ShowSecurityGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowSecurityGroupLogic

func NewShowSecurityGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowSecurityGroupLogic

func (*ShowSecurityGroupLogic) ShowSecurityGroup

type ShowSecurityGroupRuleLogic

type ShowSecurityGroupRuleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewShowSecurityGroupRuleLogic

func NewShowSecurityGroupRuleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ShowSecurityGroupRuleLogic

func (*ShowSecurityGroupRuleLogic) ShowSecurityGroupRule

type StartServerLogic

type StartServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewStartServerLogic

func NewStartServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StartServerLogic

func (*StartServerLogic) StartServer

type StopServerLogic

type StopServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewStopServerLogic

func NewStopServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StopServerLogic

func (*StopServerLogic) StopServer

type SuspendServerLogic

type SuspendServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSuspendServerLogic

func NewSuspendServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SuspendServerLogic

func (*SuspendServerLogic) SuspendServer

type UnRescueLogic

type UnRescueLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUnRescueLogic

func NewUnRescueLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnRescueLogic

func (*UnRescueLogic) UnRescue

type UnpauseServerLogic

type UnpauseServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUnpauseServerLogic

func NewUnpauseServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnpauseServerLogic

func (*UnpauseServerLogic) UnpauseServer

type UnshelveServerLogic

type UnshelveServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUnshelveServerLogic

func NewUnshelveServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnshelveServerLogic

func (*UnshelveServerLogic) UnshelveServer

type UpdateFirewallGroupLogic

type UpdateFirewallGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateFirewallGroupLogic

func NewUpdateFirewallGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateFirewallGroupLogic

func (*UpdateFirewallGroupLogic) UpdateFirewallGroup

type UpdateFloatingIPLogic

type UpdateFloatingIPLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateFloatingIPLogic

func NewUpdateFloatingIPLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateFloatingIPLogic

func (*UpdateFloatingIPLogic) UpdateFloatingIP

type UpdateNetworkLogic

type UpdateNetworkLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateNetworkLogic

func NewUpdateNetworkLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateNetworkLogic

func (*UpdateNetworkLogic) UpdateNetwork

type UpdateNetworkSegmentRangesLogic

type UpdateNetworkSegmentRangesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateNetworkSegmentRangesLogic

func NewUpdateNetworkSegmentRangesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateNetworkSegmentRangesLogic

func (*UpdateNetworkSegmentRangesLogic) UpdateNetworkSegmentRanges

type UpdatePortLogic

type UpdatePortLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdatePortLogic

func NewUpdatePortLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdatePortLogic

func (*UpdatePortLogic) UpdatePort

type UpdateRouterLogic

type UpdateRouterLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateRouterLogic

func NewUpdateRouterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateRouterLogic

func (*UpdateRouterLogic) UpdateRouter

type UpdateSecurityGroupLogic

type UpdateSecurityGroupLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateSecurityGroupLogic

func NewUpdateSecurityGroupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateSecurityGroupLogic

func (*UpdateSecurityGroupLogic) UpdateSecurityGroup

type UpdateServerLogic

type UpdateServerLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateServerLogic

func NewUpdateServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateServerLogic

func (*UpdateServerLogic) UpdateServer

type UpdateSubnetLogic

type UpdateSubnetLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateSubnetLogic

func NewUpdateSubnetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateSubnetLogic

func (*UpdateSubnetLogic) UpdateSubnet

type UpdateVolumeLogic

type UpdateVolumeLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateVolumeLogic

func NewUpdateVolumeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateVolumeLogic

func (*UpdateVolumeLogic) UpdateVolume

type UploadImageLogic

type UploadImageLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUploadImageLogic

func NewUploadImageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UploadImageLogic

func (*UploadImageLogic) UploadImage

Source Files

Jump to

Keyboard shortcuts

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