diffbase

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AZ

type AZ struct {
	DiffBase
	Name         string `json:"name"`
	Label        string `json:"label"`
	RegionLcuuid string `json:"region_lcuuid"`
}

func (*AZ) Update

func (a *AZ) Update(cloudItem *cloudmodel.AZ)

type CEN

type CEN struct {
	DiffBase
	Name       string   `json:"name"`
	VPCLcuuids []string `json:"vpc_lcuuids"`
}

func (*CEN) Update

func (c *CEN) Update(cloudItem *cloudmodel.CEN)

type DHCPPort

type DHCPPort struct {
	DiffBase
	Name         string `json:"name"`
	RegionLcuuid string `json:"region_lcuuid"`
	AZLcuuid     string `json:"az_lcuuid"`
	VPCLcuuid    string `json:"vpc_lcuuid"`
}

func (*DHCPPort) Update

func (d *DHCPPort) Update(cloudItem *cloudmodel.DHCPPort)

type DataSet

type DataSet struct {
	LogController

	Regions                map[string]*Region
	AZs                    map[string]*AZ
	SubDomains             map[string]*SubDomain
	Hosts                  map[string]*Host
	VMs                    map[string]*VM
	VPCs                   map[string]*VPC
	Networks               map[string]*Network
	Subnets                map[string]*Subnet
	VRouters               map[string]*VRouter
	RoutingTables          map[string]*RoutingTable
	DHCPPorts              map[string]*DHCPPort
	VInterfaces            map[string]*VInterface
	WANIPs                 map[string]*WANIP
	LANIPs                 map[string]*LANIP
	FloatingIPs            map[string]*FloatingIP
	NATGateways            map[string]*NATGateway
	NATVMConnections       map[string]*NATVMConnection
	NATRules               map[string]*NATRule
	LBs                    map[string]*LB
	LBVMConnections        map[string]*LBVMConnection
	LBListeners            map[string]*LBListener
	LBTargetServers        map[string]*LBTargetServer
	PeerConnections        map[string]*PeerConnection
	CENs                   map[string]*CEN
	RDSInstances           map[string]*RDSInstance
	RedisInstances         map[string]*RedisInstance
	PodClusters            map[string]*PodCluster
	PodNodes               map[string]*PodNode
	VMPodNodeConnections   map[string]*VMPodNodeConnection
	PodNamespaces          map[string]*PodNamespace
	PodIngresses           map[string]*PodIngress
	PodIngressRules        map[string]*PodIngressRule
	PodIngressRuleBackends map[string]*PodIngressRuleBackend
	PodServices            map[string]*PodService
	PodServicePorts        map[string]*PodServicePort
	PodGroups              map[string]*PodGroup
	PodGroupPorts          map[string]*PodGroupPort
	PodReplicaSets         map[string]*PodReplicaSet
	Pods                   map[string]*Pod
	Process                map[string]*Process
	VIP                    map[string]*VIP
	// contains filtered or unexported fields
}

所有资源的主要信息,用于与cloud数据比较差异,根据差异更新资源 应保持字段定义与cloud字段定义一致,用于在比较资源时可以抽象方法

func NewDataSet

func NewDataSet(md *rcommon.Metadata) *DataSet

func (*DataSet) AddAZ

func (b *DataSet) AddAZ(dbItem *mysqlmodel.AZ, seq int)

func (*DataSet) AddCEN

func (b *DataSet) AddCEN(dbItem *mysqlmodel.CEN, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddDHCPPort

func (b *DataSet) AddDHCPPort(dbItem *mysqlmodel.DHCPPort, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddFloatingIP

func (b *DataSet) AddFloatingIP(dbItem *mysqlmodel.FloatingIP, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddHost

func (b *DataSet) AddHost(dbItem *mysqlmodel.Host, seq int)

func (*DataSet) AddLANIP

func (b *DataSet) AddLANIP(dbItem *mysqlmodel.LANIP, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddLB

func (b *DataSet) AddLB(dbItem *mysqlmodel.LB, seq int)

func (*DataSet) AddLBListener

func (b *DataSet) AddLBListener(dbItem *mysqlmodel.LBListener, seq int)

func (*DataSet) AddLBTargetServer

func (b *DataSet) AddLBTargetServer(dbItem *mysqlmodel.LBTargetServer, seq int)

func (*DataSet) AddLBVMConnection

func (b *DataSet) AddLBVMConnection(dbItem *mysqlmodel.LBVMConnection, seq int)

func (*DataSet) AddNATGateway

func (b *DataSet) AddNATGateway(dbItem *mysqlmodel.NATGateway, seq int)

func (*DataSet) AddNATRule

func (b *DataSet) AddNATRule(dbItem *mysqlmodel.NATRule, seq int)

func (*DataSet) AddNATVMConnection

func (b *DataSet) AddNATVMConnection(dbItem *mysqlmodel.NATVMConnection, seq int)

func (*DataSet) AddNetwork

func (b *DataSet) AddNetwork(dbItem *mysqlmodel.Network, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddPeerConnection

func (b *DataSet) AddPeerConnection(dbItem *mysqlmodel.PeerConnection, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddPod

func (b *DataSet) AddPod(dbItem *mysqlmodel.Pod, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddPodCluster

func (b *DataSet) AddPodCluster(dbItem *mysqlmodel.PodCluster, seq int)

func (*DataSet) AddPodGroup

func (b *DataSet) AddPodGroup(dbItem *mysqlmodel.PodGroup, seq int)

func (*DataSet) AddPodGroupPort

func (b *DataSet) AddPodGroupPort(dbItem *mysqlmodel.PodGroupPort, seq int)

func (*DataSet) AddPodIngress

func (b *DataSet) AddPodIngress(dbItem *mysqlmodel.PodIngress, seq int)

func (*DataSet) AddPodIngressRule

func (b *DataSet) AddPodIngressRule(dbItem *mysqlmodel.PodIngressRule, seq int)

func (*DataSet) AddPodIngressRuleBackend

func (b *DataSet) AddPodIngressRuleBackend(dbItem *mysqlmodel.PodIngressRuleBackend, seq int)

func (*DataSet) AddPodNamespace

func (b *DataSet) AddPodNamespace(dbItem *mysqlmodel.PodNamespace, seq int)

func (*DataSet) AddPodNode

func (b *DataSet) AddPodNode(dbItem *mysqlmodel.PodNode, seq int)

func (*DataSet) AddPodReplicaSet

func (b *DataSet) AddPodReplicaSet(dbItem *mysqlmodel.PodReplicaSet, seq int)

func (*DataSet) AddPodService

func (b *DataSet) AddPodService(dbItem *mysqlmodel.PodService, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddPodServicePort

func (b *DataSet) AddPodServicePort(dbItem *mysqlmodel.PodServicePort, seq int)

func (*DataSet) AddProcess

func (b *DataSet) AddProcess(dbItem *mysqlmodel.Process, seq int)

func (*DataSet) AddRDSInstance

func (b *DataSet) AddRDSInstance(dbItem *mysqlmodel.RDSInstance, seq int)

func (*DataSet) AddRedisInstance

func (b *DataSet) AddRedisInstance(dbItem *mysqlmodel.RedisInstance, seq int)

func (*DataSet) AddRegion

func (b *DataSet) AddRegion(dbItem *mysqlmodel.Region, seq int)

func (*DataSet) AddRoutingTable

func (b *DataSet) AddRoutingTable(dbItem *mysqlmodel.RoutingTable, seq int)

func (*DataSet) AddSubDomain

func (b *DataSet) AddSubDomain(dbItem *mysqlmodel.SubDomain, seq int)

func (*DataSet) AddSubnet

func (b *DataSet) AddSubnet(dbItem *mysqlmodel.Subnet, seq int)

func (*DataSet) AddVIP

func (b *DataSet) AddVIP(dbItem *mysqlmodel.VIP, seq int)

func (*DataSet) AddVInterface

func (b *DataSet) AddVInterface(dbItem *mysqlmodel.VInterface, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddVM

func (b *DataSet) AddVM(dbItem *mysqlmodel.VM, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddVMPodNodeConnection

func (b *DataSet) AddVMPodNodeConnection(dbItem *mysqlmodel.VMPodNodeConnection, seq int)

func (*DataSet) AddVPC

func (b *DataSet) AddVPC(dbItem *mysqlmodel.VPC, seq int)

func (*DataSet) AddVRouter

func (b *DataSet) AddVRouter(dbItem *mysqlmodel.VRouter, seq int, toolDataSet *tool.DataSet)

func (*DataSet) AddWANIP

func (b *DataSet) AddWANIP(dbItem *mysqlmodel.WANIP, seq int, toolDataSet *tool.DataSet)

func (*DataSet) DeleteAZ

func (b *DataSet) DeleteAZ(lcuuid string)

func (*DataSet) DeleteCEN

func (b *DataSet) DeleteCEN(lcuuid string)

func (*DataSet) DeleteDHCPPort

func (b *DataSet) DeleteDHCPPort(lcuuid string)

func (*DataSet) DeleteFloatingIP

func (b *DataSet) DeleteFloatingIP(lcuuid string)

func (*DataSet) DeleteHost

func (b *DataSet) DeleteHost(lcuuid string)

func (*DataSet) DeleteLANIP

func (b *DataSet) DeleteLANIP(lcuuid string)

func (*DataSet) DeleteLB

func (b *DataSet) DeleteLB(lcuuid string)

func (*DataSet) DeleteLBListener

func (b *DataSet) DeleteLBListener(lcuuid string)

func (*DataSet) DeleteLBTargetServer

func (b *DataSet) DeleteLBTargetServer(lcuuid string)

func (*DataSet) DeleteLBVMConnection

func (b *DataSet) DeleteLBVMConnection(lcuuid string)

func (*DataSet) DeleteNATGateway

func (b *DataSet) DeleteNATGateway(lcuuid string)

func (*DataSet) DeleteNATRule

func (b *DataSet) DeleteNATRule(lcuuid string)

func (*DataSet) DeleteNATVMConnection

func (b *DataSet) DeleteNATVMConnection(lcuuid string)

func (*DataSet) DeleteNetwork

func (b *DataSet) DeleteNetwork(lcuuid string)

func (*DataSet) DeletePeerConnection

func (b *DataSet) DeletePeerConnection(lcuuid string)

func (*DataSet) DeletePod

func (b *DataSet) DeletePod(lcuuid string)

func (*DataSet) DeletePodCluster

func (b *DataSet) DeletePodCluster(lcuuid string)

func (*DataSet) DeletePodGroup

func (b *DataSet) DeletePodGroup(lcuuid string)

func (*DataSet) DeletePodGroupPort

func (b *DataSet) DeletePodGroupPort(lcuuid string)

func (*DataSet) DeletePodIngress

func (b *DataSet) DeletePodIngress(lcuuid string)

func (*DataSet) DeletePodIngressRule

func (b *DataSet) DeletePodIngressRule(lcuuid string)

func (*DataSet) DeletePodIngressRuleBackend

func (b *DataSet) DeletePodIngressRuleBackend(lcuuid string)

func (*DataSet) DeletePodNamespace

func (b *DataSet) DeletePodNamespace(lcuuid string)

func (*DataSet) DeletePodNode

func (b *DataSet) DeletePodNode(lcuuid string)

func (*DataSet) DeletePodReplicaSet

func (b *DataSet) DeletePodReplicaSet(lcuuid string)

func (*DataSet) DeletePodService

func (b *DataSet) DeletePodService(lcuuid string)

func (*DataSet) DeletePodServicePort

func (b *DataSet) DeletePodServicePort(lcuuid string)

func (*DataSet) DeleteProcess

func (b *DataSet) DeleteProcess(lcuuid string)

func (*DataSet) DeleteRDSInstance

func (b *DataSet) DeleteRDSInstance(lcuuid string)

func (*DataSet) DeleteRedisInstance

func (b *DataSet) DeleteRedisInstance(lcuuid string)

func (*DataSet) DeleteRegion

func (b *DataSet) DeleteRegion(lcuuid string)

func (*DataSet) DeleteRoutingTable

func (b *DataSet) DeleteRoutingTable(lcuuid string)

func (*DataSet) DeleteSubDomain

func (b *DataSet) DeleteSubDomain(lcuuid string)

func (*DataSet) DeleteSubnet

func (b *DataSet) DeleteSubnet(lcuuid string)

func (*DataSet) DeleteVIP

func (b *DataSet) DeleteVIP(lcuuid string)

func (*DataSet) DeleteVInterface

func (b *DataSet) DeleteVInterface(lcuuid string)

func (*DataSet) DeleteVM

func (b *DataSet) DeleteVM(lcuuid string)

func (*DataSet) DeleteVMPodNodeConnection

func (b *DataSet) DeleteVMPodNodeConnection(lcuuid string)

func (*DataSet) DeleteVPC

func (b *DataSet) DeleteVPC(lcuuid string)

func (*DataSet) DeleteVRouter

func (b *DataSet) DeleteVRouter(lcuuid string)

func (*DataSet) DeleteWANIP

func (b *DataSet) DeleteWANIP(lcuuid string)

type DiffBase

type DiffBase struct {
	Sequence int    `json:"sequence"`
	Lcuuid   string `json:"lcuuid"`
}

func (*DiffBase) GetLcuuid

func (d *DiffBase) GetLcuuid() string

func (*DiffBase) GetSequence

func (d *DiffBase) GetSequence() int

func (*DiffBase) SetSequence

func (d *DiffBase) SetSequence(sequence int)

type FloatingIP

type FloatingIP struct {
	DiffBase
	RegionLcuuid string `json:"region_lcuuid"`
	VPCLcuuid    string `json:"vpc_lcuuid"`
}

func (*FloatingIP) Update

func (f *FloatingIP) Update(cloudItem *cloudmodel.FloatingIP)

type Host

type Host struct {
	DiffBase
	Name         string `json:"name"`
	IP           string `json:"ip"`
	Hostname     string `json:"hostname"`
	HType        int    `json:"htype"`
	VCPUNum      int    `json:"vcpu_num"`
	MemTotal     int    `json:"mem_total"`
	ExtraInfo    string `json:"extra_info"`
	RegionLcuuid string `json:"region_lcuuid"`
	AZLcuuid     string `json:"az_lcuuid"`
}

func (*Host) Update

func (h *Host) Update(cloudItem *cloudmodel.Host)

type LANIP

type LANIP struct {
	DiffBase
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
	SubnetLcuuid    string `json:"subnet_lcuuid"`
}

func (*LANIP) Update

func (l *LANIP) Update(cloudItem *cloudmodel.IP)

type LB

type LB struct {
	DiffBase
	Name         string `json:"name"`
	Model        int    `json:"model"`
	VIP          string `json:"vip"`
	VPCLcuuid    string `json:"vpc_lcuuid"`
	RegionLcuuid string `json:"region_lcuuid"`
}

func (*LB) Update

func (l *LB) Update(cloudItem *cloudmodel.LB)

type LBListener

type LBListener struct {
	DiffBase
	Name     string `json:"name"`
	IPs      string `json:"ips"`
	SNATIPs  string `json:"snat_ips"`
	Port     int    `json:"port"`
	Protocol string `json:"protocal"`
}

func (*LBListener) Update

func (l *LBListener) Update(cloudItem *cloudmodel.LBListener)

type LBTargetServer

type LBTargetServer struct {
	DiffBase
	IP       string `json:"ip"`
	Port     int    `json:"port"`
	Protocol string `json:"protocal"`
}

func (*LBTargetServer) Update

func (l *LBTargetServer) Update(cloudItem *cloudmodel.LBTargetServer)

type LBVMConnection

type LBVMConnection struct {
	DiffBase
}

type LogController

type LogController struct {
	// contains filtered or unexported fields
}

func (*LogController) GetLogFunc

func (l *LogController) GetLogFunc() func(args ...interface{})

func (*LogController) SetLogLevel

func (l *LogController) SetLogLevel(level logging.Level) error

type NATGateway

type NATGateway struct {
	DiffBase
	Name         string `json:"name"`
	FloatingIPs  string `json:"floating_ips"`
	RegionLcuuid string `json:"region_lcuuid"`
}

func (*NATGateway) Update

func (n *NATGateway) Update(cloudItem *cloudmodel.NATGateway)

type NATRule

type NATRule struct {
	DiffBase
}

type NATVMConnection

type NATVMConnection struct {
	DiffBase
}

type Network

type Network struct {
	DiffBase
	Name            string `json:"name"`
	Label           string `json:"label"`
	TunnelID        int    `json:"tunnel_id"`
	NetType         int    `json:"net_type"`
	SegmentationID  int    `json:"segmentation_id"`
	VPCLcuuid       string `json:"vpc_lcuuid"`
	RegionLcuuid    string `json:"region_lcuuid"`
	AZLcuuid        string `json:"az_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*Network) Update

func (n *Network) Update(cloudItem *cloudmodel.Network)

type PeerConnection

type PeerConnection struct {
	DiffBase
	Name               string `json:"name"`
	RemoteRegionLcuuid string `json:"remote_region_lcuuid"`
	LocalRegionLcuuid  string `json:"local_region_lcuuid"`
}

func (*PeerConnection) Update

func (p *PeerConnection) Update(cloudItem *cloudmodel.PeerConnection)

type Pod

type Pod struct {
	DiffBase
	Name                string    `json:"name"`
	Label               string    `json:"label"`
	Annotation          string    `json:"annotation"`
	ENV                 string    `json:"env"`
	ContainerIDs        string    `json:"container_ids"`
	State               int       `json:"state"`
	CreatedAt           time.Time `json:"created_at"`
	PodNodeLcuuid       string    `json:"pod_node_lcuuid"`
	PodReplicaSetLcuuid string    `json:"pod_replica_set_lcuuid"`
	PodGroupLcuuid      string    `json:"pod_group_lcuuid"`
	PodServiceLcuuid    string    `json:"pod_service_lcuuid"`
	VPCLcuuid           string    `json:"vpc_lcuuid"`
	RegionLcuuid        string    `json:"region_lcuuid"`
	AZLcuuid            string    `json:"az_lcuuid"`
	SubDomainLcuuid     string    `json:"sub_domain_lcuuid"`
}

func (*Pod) Update

func (p *Pod) Update(cloudItem *cloudmodel.Pod)

type PodCluster

type PodCluster struct {
	DiffBase
	Name            string `json:"name"`
	ClusterName     string `json:"cluster_name"`
	RegionLcuuid    string `json:"region_lcuuid"`
	AZLcuuid        string `json:"az_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*PodCluster) Update

func (p *PodCluster) Update(cloudItem *cloudmodel.PodCluster)

type PodGroup

type PodGroup struct {
	DiffBase
	Name            string `json:"name"`
	Label           string `json:"label"`
	PodNum          int    `json:"pod_num"`
	Type            int    `json:"type"`
	RegionLcuuid    string `json:"region_lcuuid"`
	AZLcuuid        string `json:"az_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*PodGroup) Update

func (p *PodGroup) Update(cloudItem *cloudmodel.PodGroup)

type PodGroupPort

type PodGroupPort struct {
	DiffBase
	Name            string `json:"name"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*PodGroupPort) Update

func (p *PodGroupPort) Update(cloudItem *cloudmodel.PodGroupPort)

type PodIngress

type PodIngress struct {
	DiffBase
	Name            string `json:"name"`
	RegionLcuuid    string `json:"region_lcuuid"`
	AZLcuuid        string `json:"az_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*PodIngress) Update

func (p *PodIngress) Update(cloudItem *cloudmodel.PodIngress)

type PodIngressRule

type PodIngressRule struct {
	DiffBase
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

type PodIngressRuleBackend

type PodIngressRuleBackend struct {
	DiffBase
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

type PodNamespace

type PodNamespace struct {
	DiffBase
	RegionLcuuid    string            `json:"region_lcuuid"`
	AZLcuuid        string            `json:"az_lcuuid"`
	SubDomainLcuuid string            `json:"sub_domain_lcuuid"`
	CloudTags       map[string]string `json:"cloud_tags"`
}

func (*PodNamespace) Update

func (p *PodNamespace) Update(cloudItem *cloudmodel.PodNamespace)

type PodNode

type PodNode struct {
	DiffBase
	Type            int    `json:"type"`
	State           int    `json:"state"`
	Hostname        string `json:"hostname"`
	IP              string `json:"ip"`
	VCPUNum         int    `json:"vcpu_num"`
	MemTotal        int    `json:"mem_total"`
	RegionLcuuid    string `json:"region_lcuuid"`
	AZLcuuid        string `json:"az_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*PodNode) Update

func (p *PodNode) Update(cloudItem *cloudmodel.PodNode)

type PodReplicaSet

type PodReplicaSet struct {
	DiffBase
	Name            string `json:"name"`
	Label           string `json:"label"`
	PodNum          int    `json:"pod_num"`
	RegionLcuuid    string `json:"region_lcuuid"`
	AZLcuuid        string `json:"az_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*PodReplicaSet) Update

func (p *PodReplicaSet) Update(cloudItem *cloudmodel.PodReplicaSet)

type PodService

type PodService struct {
	DiffBase
	Name             string `json:"name"`
	Label            string `json:"label"`
	Annotation       string `json:"annotation"`
	Selector         string `json:"selector"`
	ExternalIP       string `json:"external_ip"`
	ServiceClusterIP string `json:"service_cluster_ip"`
	PodIngressLcuuid string `json:"pod_ingress_lcuuid"`
	RegionLcuuid     string `json:"region_lcuuid"`
	AZLcuuid         string `json:"az_lcuuid"`
	SubDomainLcuuid  string `json:"sub_domain_lcuuid"`
}

func (*PodService) Update

func (p *PodService) Update(cloudItem *cloudmodel.PodService)

type PodServicePort

type PodServicePort struct {
	DiffBase
	Name            string `json:"name"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*PodServicePort) Update

func (p *PodServicePort) Update(cloudItem *cloudmodel.PodServicePort)

type Process

type Process struct {
	DiffBase
	Name        string `json:"name"`
	OSAPPTags   string `json:"os_app_tags"`
	ContainerID string `json:"container_id"`
	DeviceType  int    `json:"device_type"`
	DeviceID    int    `json:"device_id"`
}

func (*Process) Update

func (p *Process) Update(cloudItem *cloudmodel.Process, toolDataSet *tool.DataSet)

type RDSInstance

type RDSInstance struct {
	DiffBase
	Name         string `json:"name"`
	State        int    `json:"state"`
	Series       int    `json:"series"`
	Model        int    `json:"model"`
	VPCLcuuid    string `json:"vpc_lcuuid"`
	RegionLcuuid string `json:"region_lcuuid"`
	AZLcuuid     string `json:"az_lcuuid"`
}

func (*RDSInstance) Update

func (r *RDSInstance) Update(cloudItem *cloudmodel.RDSInstance)

type RedisInstance

type RedisInstance struct {
	DiffBase
	Name         string `json:"name"`
	State        int    `json:"state"`
	PublicHost   string `json:"public_host"`
	RegionLcuuid string `json:"region_lcuuid"`
	AZLcuuid     string `json:"az_lcuuid"`
}

func (*RedisInstance) Update

func (r *RedisInstance) Update(cloudItem *cloudmodel.RedisInstance)

type Region

type Region struct {
	DiffBase
	Name  string `json:"name"`
	Label string `json:"label"`
}

func (*Region) Update

func (r *Region) Update(cloudItem *cloudmodel.Region)

type RoutingTable

type RoutingTable struct {
	DiffBase
	Destination string `json:"destination"`
	Nexthop     string `json:"nexthop"`
	NexthopType string `json:"nexthop_type"`
}

func (*RoutingTable) Update

func (r *RoutingTable) Update(cloudItem *cloudmodel.RoutingTable)

type SubDomain

type SubDomain struct {
	DiffBase
	Name string `json:"name"`
}

func (*SubDomain) Update

func (s *SubDomain) Update(cloudItem *cloudmodel.SubDomain)

type Subnet

type Subnet struct {
	DiffBase
	Name            string `json:"name"`
	Label           string `json:"label"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*Subnet) Update

func (s *Subnet) Update(cloudItem *cloudmodel.Subnet)

type VIP

type VIP struct {
	DiffBase
	IP     string `json:"ip" binding:"required"`
	VTapID uint32 `json:"vtap_id" binding:"required"`
}

func (*VIP) Update

func (p *VIP) Update(cloudItem *cloudmodel.VIP)

type VInterface

type VInterface struct {
	DiffBase
	Name            string `json:"name"`
	Type            int    `json:"type"`
	TapMac          string `json:"tap_mac"`
	NetnsID         uint32 `json:"netns_id"`
	VtapID          uint32 `json:"vtap_id"`
	DeviceType      int    `json:"device_type"`
	DeviceLcuuid    string `json:"device_lcuuid"`
	NetworkLcuuid   string `json:"network_lcuuid"`
	RegionLcuuid    string `json:"region_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

func (*VInterface) Update

func (v *VInterface) Update(cloudItem *cloudmodel.VInterface)

type VM

type VM struct {
	DiffBase
	Name         string            `json:"name"`
	Label        string            `json:"label"`
	IP           string            `json:"ip"`
	Hostname     string            `json:"hostname"`
	State        int               `json:"state"`
	HType        int               `json:"htype"`
	LaunchServer string            `json:"launch_server"`
	HostID       int               `json:"host_id"`
	VPCLcuuid    string            `json:"vpc_lcuuid"`
	RegionLcuuid string            `json:"region_lcuuid"`
	AZLcuuid     string            `json:"az_lcuuid"`
	CloudTags    map[string]string `json:"cloud_tags"`
}

func (*VM) Update

func (v *VM) Update(cloudItem *cloudmodel.VM, toolDataSet *tool.DataSet)

type VMPodNodeConnection

type VMPodNodeConnection struct {
	DiffBase
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}

type VPC

type VPC struct {
	DiffBase
	Name         string `json:"name"`
	Label        string `json:"label"`
	TunnelID     int    `json:"tunnel_id"`
	CIDR         string `json:"cidr"`
	RegionLcuuid string `json:"region_lcuuid"`
}

func (*VPC) Update

func (v *VPC) Update(cloudItem *cloudmodel.VPC)

type VRouter

type VRouter struct {
	DiffBase
	Name         string `json:"name"`
	Label        string `json:"label"`
	VPCLcuuid    string `json:"vpc_lcuuid"`
	RegionLcuuid string `json:"region_lcuuid"`
}

func (*VRouter) Update

func (v *VRouter) Update(cloudItem *cloudmodel.VRouter)

type WANIP

type WANIP struct {
	DiffBase
	RegionLcuuid    string `json:"region_lcuuid"`
	SubDomainLcuuid string `json:"sub_domain_lcuuid"`
	SubnetLcuuid    string `json:"subnet_lcuuid"`
}

func (*WANIP) Update

func (w *WANIP) Update(cloudItem *cloudmodel.IP)

Jump to

Keyboard shortcuts

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