Documentation ¶
Index ¶
- Variables
- type AZVTapRebalanceResult
- type AdditionalResource
- type AdditionalResourceAZ
- type AdditionalResourceChost
- type AdditionalResourceCloudTag
- type AdditionalResourceHost
- type AdditionalResourceLB
- type AdditionalResourceLBListener
- type AdditionalResourceLBTargetServer
- type AdditionalResourcePeerConnection
- type AdditionalResourceSubnet
- type AdditionalResourceTag
- type AdditionalResourceVInterface
- type AdditionalResourceVPC
- type Analyzer
- type AnalyzerAz
- type AnalyzerUpdate
- type CSV
- type CSVHeader
- type Controller
- type ControllerAz
- type ControllerUpdate
- type DataSource
- type DataSourceCreate
- type DataSourceUpdate
- type DetailedConfig
- type Domain
- type DomainCreate
- type DomainUpdate
- type GenesisHost
- type GenesisIP
- type GenesisLldp
- type GenesisNetwork
- type GenesisPort
- type GenesisProcess
- type GenesisStorage
- type GenesisVIP
- type GenesisVM
- type GenesisVinterface
- type GenesisVpc
- type HostVTapRebalanceResult
- type LicenseConsumption
- type MailServer
- type MailServerCreate
- type MailServerUpdate
- type Plugin
- type Process
- type RemoteExecReq
- type RemoteExecResp
- type SubDomain
- type SubDomainCreate
- type SubDomainUpdate
- type VTapInterface
- type VTapLicenseConsumption
- type VTapRebalanceResult
- type Vtap
- type VtapCreate
- type VtapGroup
- type VtapGroupCreate
- type VtapGroupUpdate
- type VtapRepo
- type VtapUpdate
- type VtapUpdateTapMode
Constants ¶
This section is empty.
Variables ¶
View Source
var YamlDomainAdditionalResourceExample []byte
Functions ¶
This section is empty.
Types ¶
type AZVTapRebalanceResult ¶
type AZVTapRebalanceResult struct { TotalSwitchVTapNum int `json:"TOTAL_SWITCH_VTAP_NUM"` Details []*HostVTapRebalanceResult `json:"DETAILS"` }
type AdditionalResource ¶
type AdditionalResource struct { AZs []AdditionalResourceAZ `json:"azs" yaml:"azs,omitempty" binding:"omitempty,dive"` VPCs []AdditionalResourceVPC `json:"vpcs" yaml:"vpcs,omitempty" binding:"omitempty,dive"` Subnets []AdditionalResourceSubnet `json:"subnets" yaml:"subnets,omitempty" binding:"omitempty,dive"` Hosts []AdditionalResourceHost `json:"hosts" yaml:"hosts,omitempty" binding:"omitempty,dive"` CHosts []AdditionalResourceChost `json:"chosts" yaml:"chosts,omitempty" binding:"omitempty,dive"` CloudTags []AdditionalResourceCloudTag `json:"cloud_tags" yaml:"cloud_tags,omitempty" binding:"omitempty,dive"` LB []AdditionalResourceLB `json:"lbs" yaml:"lbs,omitempty" binding:"omitempty,dive"` PeerConnections []AdditionalResourcePeerConnection `json:"peer_connections" yaml:"peer_connections,omitempty" binding:"omitempty,dive"` }
type AdditionalResourceAZ ¶
type AdditionalResourceChost ¶
type AdditionalResourceChost struct { Name string `json:"name" yaml:"name" binding:"required"` UUID string `json:"uuid" yaml:"uuid" binding:"required"` HostIP string `json:"host_ip" yaml:"host_ip"` Type int `json:"type" yaml:"type"` VPCUUID string `json:"vpc_uuid" yaml:"vpc_uuid" binding:"required"` AZUUID string `json:"az_uuid" yaml:"az_uuid" binding:"required"` DomainUUID string `json:"domain_uuid" yaml:"domain_uuid" binding:"required"` VInterfaces []AdditionalResourceVInterface `json:"vinterfaces" yaml:"vinterfaces"` }
type AdditionalResourceCloudTag ¶
type AdditionalResourceCloudTag struct { ResourceType string `json:"resource_type" yaml:"resource_type" binding:"required"` ResourceName string `json:"resource_name" yaml:"resource_name" binding:"required"` DomainUUID string `json:"domain_uuid" yaml:"domain_uuid" binding:"required"` SubDomainUUID string `json:"subdomain_uuid,omitempty" yaml:"subdomain_uuid"` Tags []AdditionalResourceTag `json:"tags" yaml:"tags" binding:"required"` }
type AdditionalResourceHost ¶
type AdditionalResourceHost struct { Name string `json:"name" yaml:"name" binding:"required"` UUID string `json:"uuid" yaml:"uuid" binding:"required"` IP string `json:"ip" yaml:"ip" binding:"required"` Type int `json:"type" yaml:"type"` AZUUID string `json:"az_uuid" yaml:"az_uuid" binding:"required"` DomainUUID string `json:"domain_uuid" yaml:"domain_uuid" binding:"required"` VInterfaces []AdditionalResourceVInterface `json:"vinterfaces" yaml:"vinterfaces"` }
type AdditionalResourceLB ¶
type AdditionalResourceLB struct { Name string `json:"name" yaml:"name" binding:"required"` Model int `json:"model" yaml:"model" binding:"required,oneof=1 2"` VPCUUID string `json:"vpc_uuid" yaml:"vpc_uuid" binding:"required"` RegionUUID string `json:"region_uuid" yaml:"region_uuid" binding:"required"` DomainUUID string `json:"domain_uuid" yaml:"domain_uuid" binding:"required"` VInterfaces []AdditionalResourceVInterface `json:"vinterfaces" yaml:"vinterfaces" binding:"omitempty,dive"` LBListeners []AdditionalResourceLBListener `json:"lb_listeners" yaml:"lb_listeners" binding:"omitempty,dive"` }
type AdditionalResourceLBListener ¶
type AdditionalResourceLBListener struct { Name string `json:"name" yaml:"name"` Protocol string `json:"protocol" yaml:"protocol" binding:"required,oneof=TCP UDP"` IP string `json:"ip" yaml:"ip" binding:"required"` Port int `json:"port" yaml:"port" binding:"required"` LBTargetServers []AdditionalResourceLBTargetServer `json:"lb_target_servers" yaml:"lb_target_servers" binding:"omitempty,dive"` }
type AdditionalResourcePeerConnection ¶
type AdditionalResourcePeerConnection struct { Name string `json:"name" yaml:"name" binding:"required"` UUID string `json:"uuid" yaml:"uuid" binding:"required"` DomainUUID string `json:"domain_uuid" yaml:"domain_uuid" binding:"required"` LocalVPCUUID string `json:"local_vpc_uuid" yaml:"local_vpc_uuid" binding:"required"` LocalRegionUUID string `json:"local_region_uuid" yaml:"local_region_uuid" binding:"required"` RemoteVPCUUID string `json:"remote_vpc_uuid" yaml:"remote_vpc_uuid" binding:"required"` RemoteRegionUUID string `json:"remote_region_uuid" yaml:"remote_region_uuid" binding:"required"` }
type AdditionalResourceSubnet ¶
type AdditionalResourceSubnet struct { Name string `json:"name" yaml:"name" binding:"required"` UUID string `json:"uuid,omitempty" yaml:"uuid" binding:"required"` IsVIP bool `json:"is_vip" yaml:"is_vip"` Type int `json:"type" yaml:"type"` VPCUUID string `json:"vpc_uuid" yaml:"vpc_uuid" binding:"required"` AZUUID string `json:"az_uuid,omitempty" yaml:"az_uuid"` DomainUUID string `json:"domain_uuid" yaml:"domain_uuid" binding:"required"` CIDRs []string `json:"cidrs" yaml:"cidrs"` }
type AdditionalResourceTag ¶
type AdditionalResourceVPC ¶
type Analyzer ¶
type Analyzer struct { ID int `json:"ID"` IP string `json:"IP"` Name string `json:"NAME"` State int `json:"STATE"` PodIP string `json:"POD_IP"` NatIP string `json:"NAT_IP"` NatIPEnabled int `json:"NAT_IP_ENABLED"` Agg int `json:"AGG"` CPUNum int `json:"CPU_NUM"` MemorySize int64 `json:"MEMORY_SIZE"` Arch string `json:"ARCH"` ArchType int `json:"ARCH_TYPE"` Os string `json:"OS"` OsType int `json:"OS_TYPE"` KernelVersion string `json:"KERNEL_VERSION"` VtapCount int `json:"VTAP_COUNT"` CurVtapCount int `json:"CUR_VTAP_COUNT"` VTapMax int `json:"VTAP_MAX"` PcapDataMountPath string `json:"PCAP_DATA_MOUNT_PATH"` SyncedAt time.Time `json:"SYNCED_AT"` Region string `json:"REGION"` RegionName string `json:"REGION_NAME"` IsAllAz bool `json:"IS_ALL_AZ"` Azs []AnalyzerAz `json:"AZS"` Lcuuid string `json:"LCUUID"` }
type AnalyzerAz ¶
type AnalyzerUpdate ¶
type Controller ¶
type Controller struct { ID int `json:"ID"` IP string `json:"IP"` Name string `json:"NAME"` NodeType int `json:"NODE_TYPE"` State int `json:"STATE"` PodIP string `json:"POD_IP"` NatIP string `json:"NAT_IP"` NatIPEnabled int `json:"NAT_IP_ENABLED"` CPUNum int `json:"CPU_NUM"` MemorySize int64 `json:"MEMORY_SIZE"` Arch string `json:"ARCH"` ArchType int `json:"ARCH_TYPE"` Os string `json:"OS"` OsType int `json:"OS_TYPE"` KernelVersion string `json:"KERNEL_VERSION"` VtapCount int `json:"VTAP_COUNT"` CurVtapCount int `json:"CUR_VTAP_COUNT"` VTapMax int `json:"VTAP_MAX"` RegionDomainPrefix string `json:"REGION_DOMAIN_PREFIX"` SyncedAt time.Time `json:"SYNCED_AT"` Region string `json:"REGION"` RegionName string `json:"REGION_NAME"` IsAllAz bool `json:"IS_ALL_AZ"` Azs []ControllerAz `json:"AZS"` Lcuuid string `json:"LCUUID"` }
type ControllerAz ¶
type ControllerUpdate ¶
type DataSource ¶
type DataSource struct { ID int `json:"ID"` Name string `json:"NAME"` DisplayName string `json:"DISPLAY_NAME"` DataTableCollection string `json:"DATA_TABLE_COLLECTION"` State int `json:"STATE"` BaseDataSourceID int `json:"BASE_DATA_SOURCE_ID"` BaseDataSourceDisplayName string `json:"BASE_DATA_SOURCE_NAME"` Interval int `json:"INTERVAL"` RetentionTime int `json:"RETENTION_TIME"` SummableMetricsOperator string `json:"SUMMABLE_METRICS_OPERATOR"` UnSummableMetricsOperator string `json:"UNSUMMABLE_METRICS_OPERATOR"` IsDefault bool `json:"IS_DEFAULT"` UpdatedAt string `json:"UPDATED_AT"` Lcuuid string `json:"LCUUID"` }
type DataSourceCreate ¶
type DataSourceCreate struct { DisplayName string `json:"DISPLAY_NAME" binding:"required,min=1,max=10"` DataTableCollection string `json:"DATA_TABLE_COLLECTION" binding:"required,oneof=flow_metrics.network* flow_metrics.application*"` BaseDataSourceID int `json:"BASE_DATA_SOURCE_ID" binding:"required"` Interval int `json:"INTERVAL" binding:"required"` RetentionTime int `json:"RETENTION_TIME" binding:"required,min=1"` SummableMetricsOperator string `json:"SUMMABLE_METRICS_OPERATOR" binding:"required,oneof=Sum Max Min"` UnSummableMetricsOperator string `json:"UNSUMMABLE_METRICS_OPERATOR" binding:"required,oneof=Avg Max Min"` }
type DataSourceUpdate ¶
type DetailedConfig ¶
type DetailedConfig struct { RealConfig *agent_config.AgentGroupConfigResponse `json:"REAL_CONFIG"` DefaultConfig *agent_config.AgentGroupConfigResponse `json:"DEFAULT_CONFIG"` }
type Domain ¶
type Domain struct { ID string `json:"ID"` Name string `json:"NAME"` DisplayName string `json:"DISPLAY_NAME"` ClusterID string `json:"CLUSTER_ID"` Type int `json:"TYPE"` Enabled int `json:"ENABLED"` State int `json:"STATE"` ErrorMsg string `json:"ERROR_MSG"` ControllerIP string `json:"CONTROLLER_IP"` ControllerName string `json:"CONTROLLER_NAME"` VTapName string `json:"VTAP_NAME"` VTapCtrlIP string `json:"VTAP_CTRL_IP"` VTapCtrlMAC string `json:"VTAP_CTRL_MAC"` IconID int `json:"ICON_ID"` TeamID int `json:"TEAM_ID"` UserID int `json:"USER_ID"` K8sEnabled int `json:"K8S_ENABLED"` Config map[string]interface{} `json:"CONFIG"` AZCount int `json:"AZ_COUNT"` RegionCount int `json:"REGION_COUNT"` PodClusters []string `json:"POD_CLUSTERS"` CreatedAt string `json:"CREATED_AT"` SyncedAt string `json:"SYNCED_AT"` Lcuuid string `json:"LCUUID"` }
type DomainCreate ¶
type DomainCreate struct { Name string `json:"NAME" binding:"required"` Type int `json:"TYPE" binding:"required"` TeamID int `json:"TEAM_ID"` KubernetesClusterID string `json:"CLUSTER_ID"` IconID int `json:"ICON_ID"` // TODO: 修改为required ControllerIP string `json:"CONTROLLER_IP"` // TODO: 修改为required Config map[string]interface{} `json:"CONFIG"` }
type DomainUpdate ¶
type GenesisHost ¶
type GenesisHost struct { VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` Hostname string `gorm:"column:hostname;type:varchar(256);default:null" json:"HOSTNAME"` IP string `gorm:"column:ip;type:char(64);default:null" json:"IP"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` }
func (GenesisHost) TableName ¶
func (GenesisHost) TableName() string
type GenesisIP ¶
type GenesisIP struct { Masklen uint32 `gorm:"column:masklen;type:int;default:null;default:0" json:"MASKLEN"` VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` IP string `gorm:"column:ip;type:char(64);default:null" json:"IP"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` VinterfaceLcuuid string `gorm:"column:vinterface_lcuuid;type:char(64);default:null" json:"VINTERFACE_LCUUID"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` LastSeen time.Time `gorm:"column:last_seen;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"LAST_SEEN"` }
type GenesisLldp ¶
type GenesisLldp struct { VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` HostIP string `gorm:"column:host_ip;type:char(48);default:null" json:"HOST_IP"` HostInterface string `gorm:"column:host_interface;type:char(64);default:null" json:"HOST_INTERFACE"` SystemName string `gorm:"column:system_name;type:varchar(512);default:null" json:"SYSTEM_NAME"` ManagementAddress string `gorm:"column:management_address;type:varchar(512);default:null" json:"MANAGEMENT_ADDRESS"` VinterfaceLcuuid string `gorm:"column:vinterface_lcuuid;type:varchar(512);default:null" json:"VINTERFACE_LCUUID"` VinterfaceDescription string `gorm:"column:vinterface_description;type:varchar(512);default:null" json:"VINTERFACE_DESCRIPTION"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` LastSeen time.Time `gorm:"column:last_seen;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"LAST_SEEN"` }
func (GenesisLldp) TableName ¶
func (GenesisLldp) TableName() string
type GenesisNetwork ¶
type GenesisNetwork struct { SegmentationID uint32 `gorm:"column:segmentation_id;type:int;default:null" json:"SEGMENTATION_ID"` NetType uint32 `gorm:"column:net_type;type:int;default:null" json:"NET_TYPE"` VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` External bool `gorm:"column:external;type:tinyint(1);default:null" json:"EXTERNAL"` Name string `gorm:"column:name;type:varchar(256);default:null" json:"NAME"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` VPCLcuuid string `gorm:"column:vpc_lcuuid;type:char(64);default:null" json:"VPC_LCUUID"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` }
func (GenesisNetwork) TableName ¶
func (GenesisNetwork) TableName() string
type GenesisPort ¶
type GenesisPort struct { Type uint32 `gorm:"column:type;type:int;default:null" json:"TYPE"` DeviceType uint32 `gorm:"column:device_type;type:int;default:null" json:"DEVICETYPE"` VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` Mac string `gorm:"column:mac;type:char(32);default:null" json:"MAC"` DeviceLcuuid string `gorm:"column:device_lcuuid;type:char(64);default:null" json:"DEVICE_LCUUID"` NetworkLcuuid string `gorm:"column:network_lcuuid;type:char(64);default:null" json:"NETWORK_LCUUID"` VPCLcuuid string `gorm:"column:vpc_lcuuid;type:char(64);default:null" json:"VPC_LCUUID"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` }
func (GenesisPort) TableName ¶
func (GenesisPort) TableName() string
type GenesisProcess ¶
type GenesisProcess struct { NetnsID uint32 `gorm:"column:netns_id;type:int unsigned;default:0" json:"NETNS_ID"` VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` PID uint64 `gorm:"column:pid;type:int;default:null" json:"PID"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` Name string `gorm:"column:name;type:text;default:null" json:"NAME"` ProcessName string `gorm:"column:process_name;type:text;default:null" json:"PROCESS_NAME"` CMDLine string `gorm:"column:cmd_line;type:text;default:null" json:"CMD_LINE"` ContainerID string `gorm:"column:container_id;type:char(64);default:''" json:"CONTAINER_ID"` User string `gorm:"column:user;type:varchar(256);default:null" json:"USER"` OSAPPTags string `gorm:"column:os_app_tags;type:text;default:null" json:"OS_APP_TAGS"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` StartTime time.Time `gorm:"column:start_time;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"START_TIME"` }
func (GenesisProcess) TableName ¶
func (GenesisProcess) TableName() string
type GenesisStorage ¶
type GenesisStorage struct { VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` NodeIP string `gorm:"column:node_ip;type:char(48)" json:"NODE_IP"` }
func (GenesisStorage) TableName ¶
func (GenesisStorage) TableName() string
type GenesisVIP ¶
type GenesisVIP struct { VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` IP string `gorm:"column:ip;type:char(64);default:null" json:"IP"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` }
func (GenesisVIP) TableName ¶
func (GenesisVIP) TableName() string
type GenesisVM ¶
type GenesisVM struct { State uint32 `gorm:"column:state;type:int;default:null" json:"STATE"` VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` Name string `gorm:"column:name;type:varchar(256);default:null" json:"NAME"` Label string `gorm:"column:label;type:char(64);default:null" json:"LABEL"` VPCLcuuid string `gorm:"column:vpc_lcuuid;type:char(64);default:null" json:"VPC_LCUUID"` LaunchServer string `gorm:"column:launch_server;type:char(64);default:null" json:"LAUNCH_SERVER"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"CREATED_AT"` }
type GenesisVinterface ¶
type GenesisVinterface struct { TeamID uint32 `gorm:"column:team_id;type:int;default:1" json:"TEAM_ID"` NetnsID uint32 `gorm:"column:netns_id;type:int unsigned;default:0" json:"NETNS_ID"` VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` Name string `gorm:"column:name;type:char(64);default:null" json:"NAME"` IPs string `gorm:"column:ips;type:text;default:null" json:"IPS"` Mac string `gorm:"column:mac;type:char(32);default:null" json:"MAC"` TapName string `gorm:"column:tap_name;type:char(64);default:null" json:"TAP_NAME"` TapMac string `gorm:"column:tap_mac;type:char(32);default:null" json:"TAP_MAC"` DeviceLcuuid string `gorm:"column:device_lcuuid;type:char(64);default:null" json:"DEVICE_LCUUID"` DeviceName string `gorm:"column:device_name;type:varchar(512);default:null" json:"DEVICE_NAME"` DeviceType string `gorm:"column:device_type;type:char(64);default:null" json:"DEVICE_TYPE"` IFType string `gorm:"column:if_type;type:char(64);default:null" json:"IF_TYPE"` HostIP string `gorm:"column:host_ip;type:char(48);default:null" json:"HOST_IP"` KubernetesClusterID string `gorm:"column:kubernetes_cluster_id;type:char(64);default:null" json:"KUBERNETES_CLUSTER_ID"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` LastSeen time.Time `gorm:"column:last_seen;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"LAST_SEEN"` }
func (GenesisVinterface) TableName ¶
func (GenesisVinterface) TableName() string
type GenesisVpc ¶
type GenesisVpc struct { VtapID uint32 `gorm:"primaryKey;column:vtap_id;type:int" json:"VTAP_ID"` Lcuuid string `gorm:"primaryKey;column:lcuuid;type:char(64)" json:"LCUUID"` Name string `gorm:"column:name;type:varchar(256);default:null" json:"NAME"` NodeIP string `gorm:"primaryKey;column:node_ip;type:char(48)" json:"NODE_IP"` }
func (GenesisVpc) TableName ¶
func (GenesisVpc) TableName() string
type HostVTapRebalanceResult ¶
type HostVTapRebalanceResult struct { IP string `json:"IP"` AZ string `json:"AZ"` State int `json:"STATE"` BeforeVTapNum int `json:"BEFORE_VTAP_NUM"` AfterVTapNum int `json:"AFTER_VTAP_NUM"` SwitchVTapNum int `json:"SWITCH_VTAP_NUM"` BeforeVTapWeights float64 `json:"BEFORE_VTAP_WEIGHTS"` AfterVTapWeights float64 `json:"AFTER_VTAP_WEIGHTS"` // debug data NewVTapToTraffic map[string]int64 `json:"-"` DelVTapToTraffic map[string]int64 `json:"-"` BeforeVTapTraffic int64 `json:"-"` AfterVTapTraffic int64 `json:"-"` }
type LicenseConsumption ¶
type MailServer ¶
type MailServer struct { ID int `json:"ID"` Status int `json:"STATUS"` Host string `json:"HOST"` Port int `json:"PORT"` User string `json:"USER"` Password string `json:"PASSWORD"` Security string `json:"SECURITY"` NtlmEnabled int `json:"NTLM_ENABLED"` NtlmName string `json:"NTLM_NAME"` NtlmPassword string `json:"NTLM_PASSWORD"` Lcuuid string `json:"LCUUID"` }
type MailServerCreate ¶
type MailServerCreate struct { Status int `json:"STATUS"` Host string `json:"HOST" binding:"required"` Port int `json:"PORT" binding:"required"` User string `json:"USER" binding:"required"` Password string `json:"PASSWORD" binding:"required"` NtlmEnabled int `json:"NTLM_ENABLED"` NtlmName string `json:"NTLM_NAME"` NtlmPassword string `json:"NTLM_PASSWORD"` Security string `json:"SECURITY" binding:"required"` }
type MailServerUpdate ¶
type MailServerUpdate struct { Status int `json:"STATUS"` Host string `json:"HOST"` Port int `json:"PORT"` User string `json:"USER"` Password string `json:"PASSWORD"` NtlmEnabled int `json:"NTLM_ENABLED"` NtlmName string `json:"NTLM_NAME"` NtlmPassword string `json:"NTLM_PASSWORD"` Security string `json:"SECURITY"` }
type Process ¶
type Process struct { ResourceType int `json:"RESOURCE_TYPE"` // 1: vm 14: pod node ResourceName string `json:"RESOURCE_NAME"` Name string `json:"NAME"` VTapName string `json:"VTAP_NAME"` GPID int `json:"GPID"` GPName string `json:"GP_NAME"` // equal to process.process_name PID uint64 `json:"PID"` ProcessName string `json:"PROCESS_NAME"` CommandLine string `json:"CMD_LINE"` UserName string `json:"USER_NAME"` OSAPPTags string `json:"OS_APP_TAGS"` ResourceID int `json:"RESOURCE_ID"` StartTime string `json:"START_TIME"` UpdateAt string `json:"UPDATE_AT"` DeletedAt string `json:"DELETED_AT"` }
type RemoteExecReq ¶
type RemoteExecReq struct { trident.RemoteExecRequest OutputFormat *trident.OutputFormat `json:"output_format"` // 0: "TEXT", 1: "BINARY" OutputFilename string `json:"output_filename"` CMD string `json:"cmd" binding:"required"` }
type RemoteExecResp ¶
type RemoteExecResp struct { Content string `json:"content,omitempty"` // RUN_COMMAND ErrorMessage string `json:"-"` RemoteCommand []*trident.RemoteCommand `json:"remote_commands,omitempty"` // LIST_COMMAND LinuxNamespace []*trident.LinuxNamespace `json:"linux_namespaces,omitempty"` // LIST_NAMESPACE }
type SubDomain ¶
type SubDomain struct { ID int `json:"ID"` TeamID int `json:"TEAM_ID"` UserID int `json:"USER_ID"` Name string `json:"NAME"` DisplayName string `json:"DISPLAY_NAME"` ClusterID string `json:"CLUSTER_ID"` State int `json:"STATE"` ErrorMsg string `json:"ERROR_MSG"` VPCName string `json:"EPC_NAME"` Domain string `json:"DOMAIN"` Config map[string]interface{} `json:"CONFIG"` CreateMethod int `json:"CREATE_METHOD"` CreatedAt string `json:"CREATED_AT"` SyncedAt string `json:"SYNCED_AT"` Lcuuid string `json:"LCUUID"` DomainName string `json:"DOMAIN_NAME"` }
type SubDomainCreate ¶
type SubDomainUpdate ¶
type VTapInterface ¶
type VTapInterface struct { ID int `json:"ID"` TeamID int `json:"TEAM_ID"` Name string `json:"NAME"` MAC string `json:"MAC"` TapName string `json:"TAP_NAME"` TapMAC string `json:"TAP_MAC"` VTapID int `json:"VTAP_ID"` VTapType int `json:"VTAP_TYPE"` VTapName string `json:"VTAP_NAME"` VTapLaunchServer string `json:"VTAP_LAUNCH_SERVER"` VTapLaunchServerID int `json:"VTAP_LAUNCH_SERVER_ID"` DeviceName string `json:"DEVICE_NAME"` DeviceType int `json:"DEVICE_TYPE"` DeviceID int `json:"DEVICE_ID"` DeviceHostID int `json:"DEVICE_HOST_ID"` DeviceHostName string `json:"DEVICE_HOST_NAME"` HostIP string `json:"HOST_IP"` NodeIP string `json:"NODE_IP"` LastSeen string `json:"LAST_SEEN"` DeviceCHostID int `json:"DEVICE_CHOST_ID"` DeviceCHostName string `json:"DEVICE_CHOST_NAME"` DevicePodNodeID int `json:"DEVICE_POD_NODE_ID"` DevicePodNodeName string `json:"DEVICE_POD_NODE_NAME"` }
type VTapLicenseConsumption ¶
type VTapRebalanceResult ¶
type VTapRebalanceResult struct { TotalSwitchVTapNum int `json:"TOTAL_SWITCH_VTAP_NUM"` Details []*HostVTapRebalanceResult `json:"DETAILS"` }
type Vtap ¶
type Vtap struct { ID int `json:"ID"` Name string `json:"NAME"` State int `json:"STATE"` Enable int `json:"ENABLE"` LaunchServer string `json:"LAUNCH_SERVER"` LaunchServerID int `json:"LAUNCH_SERVER_ID"` Type int `json:"TYPE"` CtrlIP string `json:"CTRL_IP"` CtrlMac string `json:"CTRL_MAC"` ControllerIP string `json:"CONTROLLER_IP"` AnalyzerIP string `json:"ANALYZER_IP"` CurControllerIP string `json:"CUR_CONTROLLER_IP"` CurAnalyzerIP string `json:"CUR_ANALYZER_IP"` SyncedControllerAt string `json:"SYNCED_CONTROLLER_AT"` SyncedAnalyzerAt string `json:"SYNCED_ANALYZER_AT"` BootTime int `json:"BOOT_TIME"` Revision string `json:"REVISION"` UpgradeRevision string `json:"UPGRADE_REVISION"` CompleteRevision string `json:"COMPLETE_REVISION"` Exceptions []int64 `json:"EXCEPTIONS"` VtapGroupLcuuid string `json:"VTAP_GROUP_LCUUID"` VtapGroupName string `json:"VTAP_GROUP_NAME"` AZ string `json:"AZ"` AZName string `json:"AZ_NAME"` Region string `json:"REGION"` RegionName string `json:"REGION_NAME"` PodClusterID int `json:"POD_CLUSTER_ID"` PodClusterName string `json:"POD_CLUSTER_NAME"` CPUNum int `json:"CPU_NUM"` MemorySize int64 `json:"MEMORY_SIZE"` Arch string `json:"ARCH"` ArchType int `json:"ARCH_TYPE"` Os string `json:"OS"` OsType int `json:"OS_TYPE"` KernelVersion string `json:"KERNEL_VERSION"` ProcessName string `json:"PROCESS_NAME"` CurrentK8sImage string `json:"CURRENT_K8S_IMAGE"` LicenseType int `json:"LICENSE_TYPE"` LicenseFunctions []int `json:"LICENSE_FUNCTIONS"` EnableFeatures []int `json:"ENABLE_FEATURES"` DisableFeatures []int `json:"DISABLE_FEATURES"` FollowGroupFeatures []int `json:"FOLLOW_GROUP_FEATURES"` FollowGroupEnableFeatures []int `json:"FOLLOW_GROUP_ENABLE_FEATURES"` ExpectedRevision string `json:"EXPECTED_REVISION"` UpgradePackage string `json:"UPGRADE_PACKAGE"` TapMode int `json:"TAP_MODE"` Lcuuid string `json:"LCUUID"` TeamID int `json:"TEAM_ID"` }
type VtapCreate ¶
type VtapCreate struct { Name string `json:"NAME" binding:"required"` Type int `json:"TYPE" binding:"required"` CtrlIP string `json:"CTRL_IP" binding:"required"` CtrlMac string `json:"CTRL_MAC"` AZ string `json:"AZ" binding:"required"` Region string `json:"REGION" binding:"required"` VtapGroupLcuuid string `json:"VTAP_GROUP_LCUUID" binding:"required"` TeamID int `json:"TEAM_ID" binding:"required"` }
type VtapGroup ¶
type VtapGroup struct { ID int `json:"ID"` Name string `json:"NAME"` UpdatedAt string `json:"UPDATED_AT"` ShortUUID string `json:"SHORT_UUID"` Lcuuid string `json:"LCUUID"` TeamID int `json:"TEAM_ID"` UserID int `json:"USER_ID"` VtapLcuuids []string `json:"VTAP_LCUUIDS"` DisableVtapLcuuids []string `json:"DISABLE_VTAP_LCUUIDS"` PendingVtapLcuuids []string `json:"PENDING_VTAP_LCUUIDS"` LicenseFunctions []int `json:"LICENSE_FUNCTIONS"` }
type VtapGroupCreate ¶
type VtapGroupUpdate ¶
type VtapRepo ¶
type VtapRepo struct { Name string `json:"NAME"` Arch string `json:"ARCH" binding:"required"` OS string `json:"OS"` Branch string `json:"BRANCH"` RevCount string `json:"REV_COUNT"` CommitID string `json:"COMMIT_ID"` Image []byte `json:"IMAGE,omitempty" binding:"required"` K8sImage string `json:"K8S_IMAGE"` UpdatedAt string `json:"UPDATED_AT"` }
type VtapUpdate ¶
type VtapUpdateTapMode ¶
Click to show internal directories.
Click to hide internal directories.