db

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 6 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 {
	OperatorBase[mysql.AZ]
}

func NewAZ

func NewAZ() *AZ

type CEN

type CEN struct {
	OperatorBase[mysql.CEN]
}

func NewCEN

func NewCEN() *CEN

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 Host

type Host struct {
	OperatorBase[mysql.Host]
}

func NewHost

func NewHost() *Host

type LANIP

type LANIP struct {
	OperatorBase[mysql.LANIP]
}

func NewLANIP

func NewLANIP() *LANIP

type LB

type LB struct {
	OperatorBase[mysql.LB]
}

func NewLB

func NewLB() *LB

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

func (*OperatorBase[MT]) Update

func (o *OperatorBase[MT]) Update(lcuuid string, updateInfo map[string]interface{}) (*MT, bool)

type PeerConnection

type PeerConnection struct {
	OperatorBase[mysql.PeerConnection]
}

func NewPeerConnection

func NewPeerConnection() *PeerConnection

type Pod

type Pod struct {
	OperatorBase[mysql.Pod]
}

func NewPod

func NewPod() *Pod

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

func (n *PodNode) DeleteBatch(lcuuids []string) bool

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]
}

func NewRegion

func NewRegion() *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]
}

func NewSubnet

func NewSubnet() *Subnet

type VIP

type VIP struct {
	OperatorBase[mysql.VIP]
}

func NewVIP

func NewVIP() *VIP

type VInterface

type VInterface struct {
	OperatorBase[mysql.VInterface]
}

func NewVInterface

func NewVInterface() *VInterface

type VM

type VM struct {
	OperatorBase[mysql.VM]
}

func NewVM

func NewVM() *VM

func (*VM) DeleteBatch

func (v *VM) DeleteBatch(lcuuids []string) bool

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 VPC

type VPC struct {
	OperatorBase[mysql.VPC]
}

func NewVPC

func NewVPC() *VPC

type VRouter

type VRouter struct {
	OperatorBase[mysql.VRouter]
}

func NewVRouter

func NewVRouter() *VRouter

type WANIP

type WANIP struct {
	OperatorBase[mysql.WANIP]
}

func NewWANIP

func NewWANIP() *WANIP

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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