Documentation ¶
Index ¶
- type AZ
- type AdditionalResource
- type BasicInfo
- type CEN
- type DHCPPort
- type FloatingIP
- type Host
- type IP
- type LB
- type LBListener
- type LBTargetServer
- type LBVMConnection
- type NATGateway
- type NATRule
- type NATVMConnection
- type Network
- type PeerConnection
- type Pod
- type PodCluster
- type PodGroup
- type PodGroupPort
- type PodIngress
- type PodIngressRule
- type PodIngressRuleBackend
- type PodNamespace
- type PodNode
- type PodReplicaSet
- type PodService
- type PodServicePort
- type Process
- type RDSInstance
- type RedisInstance
- type Region
- type Resource
- type RoutingTable
- type SecurityGroup
- type SecurityGroupRule
- type SubDomain
- type SubDomainResource
- type Subnet
- type ThirdPartyDevice
- type UUIDToCloudTags
- type VInterface
- type VM
- type VMPodNodeConnection
- type VMSecurityGroup
- type VPC
- type VRouter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalResource ¶
type AdditionalResource struct { AZs []AZ VPCs []VPC Subnets []Network SubnetCIDRs []Subnet Hosts []Host CHosts []VM VInterfaces []VInterface IPs []IP CHostCloudTags UUIDToCloudTags PodNamespaceCloudTags UUIDToCloudTags }
type BasicInfo ¶
type BasicInfo struct { Lcuuid string `json:"lcuuid"` Name string `json:"name"` PlatformType string `json:"platform_type"` ErrorMsg string `json:"error_msg"` Type int `json:"type"` Interval time.Duration `json:"interval"` LastStartedAt time.Time `json:"last_started_at"` LastCompletedAt time.Time `json:"last_completed_at"` }
type FloatingIP ¶
type FloatingIP struct { Lcuuid string `json:"lcuuid" binding:"required"` IP string `json:"ip" binding:"required"` VMLcuuid string `json:"vm_lcuuid"` NetworkLcuuid string `json:"network_lcuuid" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
type Host ¶
type Host struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` IP string `json:"ip" binding:"required"` Type int `json:"type" binding:"required"` HType int `json:"htype" binding:"required"` VCPUNum int `json:"vcpu_num"` MemTotal int `json:"mem_total"` ExtraInfo string `json:"extra_info"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
type IP ¶
type IP struct { Lcuuid string `json:"lcuuid" binding:"required"` VInterfaceLcuuid string `json:"vinterface_lcuuid" binding:"required"` IP string `json:"ip" binding:"required"` SubnetLcuuid string `json:"subnet_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid"` }
type LB ¶
type LB struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` Model int `json:"model" binding:"required"` VIP string `json:"vip"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
type LBListener ¶
type LBListener struct { Lcuuid string `json:"lcuuid" binding:"required"` LBLcuuid string `json:"lb_lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` IPs string `json:"ips" binding:"required"` SNATIPs string `json:"snat_ips"` Protocol string `json:"protocol" binding:"required"` Port int `json:"port" binding:"required"` }
type LBTargetServer ¶
type LBTargetServer struct { Lcuuid string `json:"lcuuid" binding:"required"` LBLcuuid string `json:"lb_lcuuid" binding:"required"` LBListenerLcuuid string `json:"lb_listener_lcuuid" binding:"required"` Type int `json:"type" binding:"required"` IP string `json:"ip"` VMLcuuid string `json:"vm_lcuuid"` Protocol string `json:"protocol" binding:"required"` Port int `json:"port" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` }
type LBVMConnection ¶
type NATGateway ¶
type NATGateway struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label" binding:"required"` FloatingIPs string `json:"floating_ips"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
type NATRule ¶
type NATRule struct { Lcuuid string `json:"lcuuid" binding:"required"` NATGatewayLcuuid string `json:"nat_lcuuid" binding:"required"` Type string `json:"type" binding:"required"` Protocol string `json:"protocol" binding:"required"` FloatingIP string `json:"floating_ip" binding:"required"` FloatingIPPort int `json:"floating_ip_port"` FixedIP string `json:"fixed_ip" binding:"required"` FixedIPPort int `json:"fixed_ip_port"` VInterfaceLcuuid string `json:"vinterface_lcuuid"` }
type NATVMConnection ¶
type Network ¶
type Network struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` SegmentationID int `json:"segmentation_id"` TunnelID int `json:"tunnel_id"` External bool `json:"external"` IsVIP bool `json:"is_vip"` NetType int `json:"net_type" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid"` }
type PeerConnection ¶
type PeerConnection struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` LocalVPCLcuuid string `json:"local_epc_lcuuid" binding:"required"` RemoteVPCLcuuid string `json:"remote_epc_lcuuid" binding:"required"` LocalRegionLcuuid string `json:"local_region_lcuuid" binding:"required"` RemoteRegionLcuuid string `json:"remote_region_lcuuid" binding:"required"` }
type Pod ¶
type Pod struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` State int `json:"state" binding:"required"` CreatedAt time.Time `json:"created_at"` PodReplicaSetLcuuid string `json:"pod_replica_set_lcuuid"` PodNodeLcuuid string `json:"pod_node_lcuuid" binding:"required"` PodGroupLcuuid string `json:"pod_group_lcuuid" binding:"required"` PodNamespaceLcuuid string `json:"pod_namespace_lcuuid" binding:"required"` PodClusterLcuuid string `json:"pod_cluster_lcuuid" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodCluster ¶
type PodCluster struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` ClusterName string `json:"cluster_name" binding:"required"` Version string `json:"version" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodGroup ¶
type PodGroup struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` Type int `json:"type" binding:"required"` PodNum int `json:"pod_num" binding:"required"` PodNamespaceLcuuid string `json:"pod_namespace_lcuuid" binding:"required"` PodClusterLcuuid string `json:"pod_cluster_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodGroupPort ¶
type PodGroupPort struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Protocol string `json:"protocol" binding:"required"` Port int `json:"port" binding:"required"` PodGroupLcuuid string `json:"pod_group_lcuuid" binding:"required"` PodServiceLcuuid string `json:"pod_service_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodIngress ¶
type PodIngress struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` PodNamespaceLcuuid string `json:"pod_namespace_lcuuid" binding:"required"` PodClusterLcuuid string `json:"pod_cluster_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodIngressRule ¶
type PodIngressRule struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Protocol string `json:"protocol" binding:"required"` Host string `json:"host"` PodIngressLcuuid string `json:"pod_ingress_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid"` }
type PodIngressRuleBackend ¶
type PodIngressRuleBackend struct { Lcuuid string `json:"lcuuid" binding:"required"` Path string `json:"path"` Port int `json:"port" binding:"required"` PodServiceLcuuid string `json:"pod_service_lcuuid" binding:"required"` PodIngressRuleLcuuid string `json:"pod_ingress_rule_lcuuid" binding:"required"` PodIngressLcuuid string `json:"pod_ingress_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid"` }
type PodNamespace ¶
type PodNamespace struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` CloudTags string `json:"cloud_tags"` PodClusterLcuuid string `json:"pod_cluster_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodNode ¶
type PodNode struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Type int `json:"type" binding:"required"` ServerType int `json:"server_type" binding:"required"` State int `json:"state" binding:"required"` IP string `json:"ip" binding:"required"` VCPUNum int `json:"vcpu_num"` MemTotal int `json:"memory_total"` PodClusterLcuuid string `json:"pod_cluster_lcuuid" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodReplicaSet ¶
type PodReplicaSet struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` PodNum int `json:"pod_num" binding:"required"` PodGroupLcuuid string `json:"pod_group_lcuuid" binding:"required"` PodNamespaceLcuuid string `json:"pod_namespace_lcuuid" binding:"required"` PodClusterLcuuid string `json:"pod_cluster_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodService ¶
type PodService struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Type int `json:"type" binding:"required"` Selector string `json:"selector"` ServiceClusterIP string `json:"service_cluster_ip"` PodIngressLcuuid string `json:"pod_ingress_lcuuid"` PodNamespaceLcuuid string `json:"pod_namespace_lcuuid" binding:"required"` PodClusterLcuuid string `json:"pod_cluster_lcuuid" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type PodServicePort ¶
type PodServicePort struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Protocol string `json:"protocol" binding:"required"` Port int `json:"port"` TargetPort int `json:"target_port"` NodePort int `json:"node_port"` PodServiceLcuuid string `json:"pod_service_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid" binding:"required"` }
type Process ¶
type Process struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name"` VTapID int `json:"vtap_id" binding:"required"` PID int `json:"pid" binding:"required"` ProcessName string `json:"process_name" binding:"required"` CommandLine string `json:"command_line"` UserName string `json:"user_name"` StartTime time.Time `json:"start_time" binding:"required"` OSAPPTags string `json:"os_app_tags"` SubDomainLcuuid string `json:"sub_domain_lcuuid"` }
type RDSInstance ¶
type RDSInstance struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` State int `json:"state"` Type int `json:"type" binding:"required"` Version string `json:"version" binding:"required"` Series int `json:"series"` Model int `json:"model"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
type RedisInstance ¶
type RedisInstance struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` State int `json:"state"` Version string `json:"version" binding:"required"` InternalHost string `json:"internal_host"` PublicHost string `json:"public_host"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
type Resource ¶
type Resource struct { Verified bool ErrorState int ErrorMessage string SubDomains []SubDomain Regions []Region AZs []AZ Hosts []Host VMs []VM VPCs []VPC Networks []Network Subnets []Subnet VRouters []VRouter RoutingTables []RoutingTable DHCPPorts []DHCPPort SecurityGroups []SecurityGroup SecurityGroupRules []SecurityGroupRule VMSecurityGroups []VMSecurityGroup NATGateways []NATGateway NATRules []NATRule NATVMConnections []NATVMConnection LBs []LB LBListeners []LBListener LBTargetServers []LBTargetServer LBVMConnections []LBVMConnection PeerConnections []PeerConnection CENs []CEN RedisInstances []RedisInstance RDSInstances []RDSInstance ThirdPartyDevices []ThirdPartyDevice VInterfaces []VInterface IPs []IP FloatingIPs []FloatingIP PodClusters []PodCluster PodNodes []PodNode VMPodNodeConnections []VMPodNodeConnection PodNamespaces []PodNamespace PodGroups []PodGroup PodReplicaSets []PodReplicaSet Pods []Pod PodServices []PodService PodServicePorts []PodServicePort PodGroupPorts []PodGroupPort PodIngresses []PodIngress PodIngressRules []PodIngressRule PodIngressRuleBackends []PodIngressRuleBackend Processes []Process SubDomainResources map[string]SubDomainResource }
type RoutingTable ¶
type RoutingTable struct { Lcuuid string `json:"lcuuid" binding:"required"` VRouterLcuuid string `json:"vrouter_lcuuid" binding:"required"` Destination string `json:"destination" binding:"required"` NexthopType string `json:"nexthop_type" binding:"required"` Nexthop string `json:"nexthop" binding:"required"` }
type SecurityGroup ¶
type SecurityGroupRule ¶
type SecurityGroupRule struct { Lcuuid string `json:"lcuuid" binding:"required"` SecurityGroupLcuuid string `json:"security_group_lcuuid" binding:"required"` Direction int `json:"direction" binding:"required"` EtherType int `json:"ether_type" binding:"required"` Protocol string `json:"protocol"` LocalPortRange string `json:"local_port_range"` RemotePortRange string `json:"remote_port_range"` Local string `json:"local"` Remote string `json:"remote"` Action int `json:"action" binding:"required"` Priority int `json:"priority"` }
type SubDomain ¶
type SubDomain struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` DisplayName string `json:"display_name" binding:"required"` ClusterID string `json:"cluster_id" binding:"required"` VpcUUID string `json:"vpc_uuid" binding:"required"` PortNameRegex string `json:"port_name_regex"` Config string `json:"config" binding:"required"` }
type SubDomainResource ¶
type SubDomainResource struct { Verified bool `json:"verified"` ErrorState int ErrorMessage string Networks []Network Subnets []Subnet VInterfaces []VInterface IPs []IP PodClusters []PodCluster PodNodes []PodNode VMPodNodeConnections []VMPodNodeConnection PodNamespaces []PodNamespace PodIngresses []PodIngress PodIngressRules []PodIngressRule PodIngressRuleBackends []PodIngressRuleBackend PodServices []PodService PodServicePorts []PodServicePort PodGroups []PodGroup PodGroupPorts []PodGroupPort PodReplicaSets []PodReplicaSet Pods []Pod Processes []Process }
type Subnet ¶
type Subnet struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` CIDR string `json:"cidr" binding:"required"` GatewayIP string `json:"gateway_ip"` NetworkLcuuid string `json:"network_lcuuid" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid"` }
type ThirdPartyDevice ¶
type UUIDToCloudTags ¶
type VInterface ¶
type VInterface struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name"` Type int `json:"type" binding:"required"` Mac string `json:"mac" binding:"required"` TapMac string `json:"tap_mac"` DeviceLcuuid string `json:"device_lcuuid" binding:"required"` DeviceType int `json:"device_type" binding:"required"` NetworkLcuuid string `json:"network_lcuuid" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid"` // TODO not used RegionLcuuid string `json:"region_lcuuid" binding:"required"` SubDomainLcuuid string `json:"sub_domain_lcuuid"` }
type VM ¶
type VM struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` HType int `json:"htype" binding:"required"` State int `json:"state" binding:"required"` LaunchServer string `json:"launch_server" binding:"required"` CloudTags string `json:"cloud_tags"` CreatedAt time.Time `json:"created_at"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` AZLcuuid string `json:"az_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
type VMPodNodeConnection ¶
type VMSecurityGroup ¶
type VRouter ¶
type VRouter struct { Lcuuid string `json:"lcuuid" binding:"required"` Name string `json:"name" binding:"required"` Label string `json:"label"` GWLaunchServer string `json:"gw_launch_server" binding:"required"` VPCLcuuid string `json:"vpc_lcuuid" binding:"required"` RegionLcuuid string `json:"region_lcuuid" binding:"required"` }
Click to show internal directories.
Click to hide internal directories.