Documentation
¶
Index ¶
- type AZ
- type CEN
- type DBItemSetter
- type DHCPPort
- type FloatingIP
- type Host
- type LANIP
- type LB
- type LBListener
- type LBTargetServer
- type LBVMConnection
- type NATGateway
- type NATRule
- type NATVMConnection
- type Network
- type Operator
- type OperatorBase
- 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 PrometheusTarget
- type RDSInstance
- type RedisInstance
- type Region
- type RoutingTable
- type SecurityGroup
- type SecurityGroupRule
- type SubDomain
- type Subnet
- type VIP
- type VInterface
- type VM
- type VMPodNodeConnection
- type VMSecurityGroup
- type VPC
- type VRouter
- type WANIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBItemSetter ¶
type DBItemSetter[MT constraint.MySQLModel] interface { // contains filtered or unexported methods }
TODO 使用结构体而非结构体指针作为泛型类型,在需要对结构体value修改时十分不便, 使用指针时,初始化空结构体不便,reflect性能较差,不可高频使用;后续需要寻找方法解决
type DHCPPort ¶
type DHCPPort struct {
OperatorBase[mysql.DHCPPort]
}
func NewDHCPPort ¶
func NewDHCPPort() *DHCPPort
type FloatingIP ¶
type FloatingIP struct {
OperatorBase[mysql.FloatingIP]
}
func NewFloatingIP ¶
func NewFloatingIP() *FloatingIP
type LBListener ¶
type LBListener struct {
OperatorBase[mysql.LBListener]
}
func NewLBListener ¶
func NewLBListener() *LBListener
type LBTargetServer ¶
type LBTargetServer struct {
OperatorBase[mysql.LBTargetServer]
}
func NewLBTargetServer ¶
func NewLBTargetServer() *LBTargetServer
type LBVMConnection ¶
type LBVMConnection struct {
OperatorBase[mysql.LBVMConnection]
}
func NewLBVMConnection ¶
func NewLBVMConnection() *LBVMConnection
type NATGateway ¶
type NATGateway struct {
OperatorBase[mysql.NATGateway]
}
func NewNATGateway ¶
func NewNATGateway() *NATGateway
type NATRule ¶
type NATRule struct {
OperatorBase[mysql.NATRule]
}
func NewNATRule ¶
func NewNATRule() *NATRule
type NATVMConnection ¶
type NATVMConnection struct {
OperatorBase[mysql.NATVMConnection]
}
func NewNATVMConnection ¶
func NewNATVMConnection() *NATVMConnection
type Network ¶
type Network struct {
OperatorBase[mysql.Network]
}
func NewNetwork ¶
func NewNetwork() *Network
type Operator ¶
type Operator[MT constraint.MySQLModel] interface { // 批量插入数据 AddBatch(dbItems []*MT) ([]*MT, bool) // 更新数据 Update(lcuuid string, updateInfo map[string]interface{}) (*MT, bool) // 批量删除数据 DeleteBatch(lcuuids []string) bool }
type OperatorBase ¶
type OperatorBase[MT constraint.MySQLModel] struct { // contains filtered or unexported fields }
func (*OperatorBase[MT]) AddBatch ¶
func (o *OperatorBase[MT]) AddBatch(items []*MT) ([]*MT, bool)
func (*OperatorBase[MT]) DeleteBatch ¶
func (o *OperatorBase[MT]) DeleteBatch(lcuuids []string) bool
type PeerConnection ¶
type PeerConnection struct {
OperatorBase[mysql.PeerConnection]
}
func NewPeerConnection ¶
func NewPeerConnection() *PeerConnection
type PodCluster ¶
type PodCluster struct {
OperatorBase[mysql.PodCluster]
}
func NewPodCluster ¶
func NewPodCluster() *PodCluster
type PodGroup ¶
type PodGroup struct {
OperatorBase[mysql.PodGroup]
}
func NewPodGroup ¶
func NewPodGroup() *PodGroup
type PodGroupPort ¶
type PodGroupPort struct {
OperatorBase[mysql.PodGroupPort]
}
func NewPodGroupPort ¶
func NewPodGroupPort() *PodGroupPort
type PodIngress ¶
type PodIngress struct {
OperatorBase[mysql.PodIngress]
}
func NewPodIngress ¶
func NewPodIngress() *PodIngress
type PodIngressRule ¶
type PodIngressRule struct {
OperatorBase[mysql.PodIngressRule]
}
func NewPodIngressRule ¶
func NewPodIngressRule() *PodIngressRule
type PodIngressRuleBackend ¶
type PodIngressRuleBackend struct {
OperatorBase[mysql.PodIngressRuleBackend]
}
func NewPodIngressRuleBackend ¶
func NewPodIngressRuleBackend() *PodIngressRuleBackend
type PodNamespace ¶
type PodNamespace struct {
OperatorBase[mysql.PodNamespace]
}
func NewPodNamespace ¶
func NewPodNamespace() *PodNamespace
type PodNode ¶
type PodNode struct {
OperatorBase[mysql.PodNode]
}
func NewPodNode ¶
func NewPodNode() *PodNode
func (*PodNode) DeleteBatch ¶
type PodReplicaSet ¶
type PodReplicaSet struct {
OperatorBase[mysql.PodReplicaSet]
}
func NewPodReplicaSet ¶
func NewPodReplicaSet() *PodReplicaSet
type PodService ¶
type PodService struct {
OperatorBase[mysql.PodService]
}
func NewPodService ¶
func NewPodService() *PodService
type PodServicePort ¶
type PodServicePort struct {
OperatorBase[mysql.PodServicePort]
}
func NewPodServicePort ¶
func NewPodServicePort() *PodServicePort
type Process ¶
type Process struct {
OperatorBase[mysql.Process]
}
func NewProcess ¶
func NewProcess() *Process
type PrometheusTarget ¶
type PrometheusTarget struct {
OperatorBase[mysql.PrometheusTarget]
}
func NewPrometheusTarget ¶
func NewPrometheusTarget() *PrometheusTarget
type RDSInstance ¶
type RDSInstance struct {
OperatorBase[mysql.RDSInstance]
}
func NewRDSInstance ¶
func NewRDSInstance() *RDSInstance
type RedisInstance ¶
type RedisInstance struct {
OperatorBase[mysql.RedisInstance]
}
func NewRedisInstance ¶
func NewRedisInstance() *RedisInstance
type Region ¶
type Region struct {
OperatorBase[mysql.Region]
}
type RoutingTable ¶
type RoutingTable struct {
OperatorBase[mysql.RoutingTable]
}
func NewRoutingTable ¶
func NewRoutingTable() *RoutingTable
type SecurityGroup ¶
type SecurityGroup struct {
OperatorBase[mysql.SecurityGroup]
}
func NewSecurityGroup ¶
func NewSecurityGroup() *SecurityGroup
type SecurityGroupRule ¶
type SecurityGroupRule struct {
OperatorBase[mysql.SecurityGroupRule]
}
func NewSecurityGroupRule ¶
func NewSecurityGroupRule() *SecurityGroupRule
type SubDomain ¶
type SubDomain struct {
OperatorBase[mysql.SubDomain]
}
func NewSubDomain ¶
func NewSubDomain() *SubDomain
type Subnet ¶
type Subnet struct {
OperatorBase[mysql.Subnet]
}
type VInterface ¶
type VInterface struct {
OperatorBase[mysql.VInterface]
}
func NewVInterface ¶
func NewVInterface() *VInterface
type VMPodNodeConnection ¶
type VMPodNodeConnection struct {
OperatorBase[mysql.VMPodNodeConnection]
}
func NewVMPodNodeConnection ¶
func NewVMPodNodeConnection() *VMPodNodeConnection
type VMSecurityGroup ¶
type VMSecurityGroup struct {
OperatorBase[mysql.VMSecurityGroup]
}
func NewVMSecurityGroup ¶
func NewVMSecurityGroup() *VMSecurityGroup
type VRouter ¶
type VRouter struct {
OperatorBase[mysql.VRouter]
}
func NewVRouter ¶
func NewVRouter() *VRouter
Source Files
¶
- az.go
- cen.go
- dhcp_port.go
- floating_ip.go
- host.go
- lan_ip.go
- lb.go
- lb_listener.go
- lb_target_server.go
- lb_vm_connection.go
- nat_gateway.go
- nat_rule.go
- nat_vm_connection.go
- network.go
- operator.go
- peer_connection.go
- pod.go
- pod_cluster.go
- pod_group.go
- pod_group_port.go
- pod_ingress.go
- pod_ingress_rule.go
- pod_ingress_rule_backend.go
- pod_namespace.go
- pod_node.go
- pod_replica_set.go
- pod_service.go
- pod_service_port.go
- process.go
- prometheus_target.go
- rds_instance.go
- redis_instance.go
- region.go
- routing_table.go
- security_group.go
- security_group_rule.go
- sub_domain.go
- subnet.go
- vinterface.go
- vip.go
- vm.go
- vm_pod_node_connection.go
- vm_security_group.go
- vpc.go
- vrouter.go
- wan_ip.go
Click to show internal directories.
Click to hide internal directories.