db

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: 8 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[*mysqlmodel.AZ, mysqlmodel.AZ]
}

func NewAZ

func NewAZ() *AZ

type CEN

type CEN struct {
	OperatorBase[*mysqlmodel.CEN, mysqlmodel.CEN]
}

func NewCEN

func NewCEN() *CEN

type DHCPPort

type DHCPPort struct {
	OperatorBase[*mysqlmodel.DHCPPort, mysqlmodel.DHCPPort]
}

func NewDHCPPort

func NewDHCPPort() *DHCPPort

type FloatingIP

type FloatingIP struct {
	OperatorBase[*mysqlmodel.FloatingIP, mysqlmodel.FloatingIP]
}

func NewFloatingIP

func NewFloatingIP() *FloatingIP

type Host

type Host struct {
	OperatorBase[*mysqlmodel.Host, mysqlmodel.Host]
}

func NewHost

func NewHost() *Host

type LANIP

type LANIP struct {
	OperatorBase[*mysqlmodel.LANIP, mysqlmodel.LANIP]
}

func NewLANIP

func NewLANIP() *LANIP

type LB

type LB struct {
	OperatorBase[*mysqlmodel.LB, mysqlmodel.LB]
}

func NewLB

func NewLB() *LB

type LBListener

type LBListener struct {
	OperatorBase[*mysqlmodel.LBListener, mysqlmodel.LBListener]
}

func NewLBListener

func NewLBListener() *LBListener

type LBTargetServer

type LBTargetServer struct {
	OperatorBase[*mysqlmodel.LBTargetServer, mysqlmodel.LBTargetServer]
}

func NewLBTargetServer

func NewLBTargetServer() *LBTargetServer

type LBVMConnection

type LBVMConnection struct {
	OperatorBase[*mysqlmodel.LBVMConnection, mysqlmodel.LBVMConnection]
}

func NewLBVMConnection

func NewLBVMConnection() *LBVMConnection

type NATGateway

type NATGateway struct {
	OperatorBase[*mysqlmodel.NATGateway, mysqlmodel.NATGateway]
}

func NewNATGateway

func NewNATGateway() *NATGateway

type NATRule

type NATRule struct {
	OperatorBase[*mysqlmodel.NATRule, mysqlmodel.NATRule]
}

func NewNATRule

func NewNATRule() *NATRule

type NATVMConnection

func NewNATVMConnection

func NewNATVMConnection() *NATVMConnection

type Network

type Network struct {
	OperatorBase[*mysqlmodel.Network, mysqlmodel.Network]
}

func NewNetwork

func NewNetwork() *Network

type Operator

type Operator[MPT constraint.MySQLModelPtr[MT], MT constraint.MySQLModel] interface {
	// 批量插入数据
	AddBatch(dbItems []*MT) ([]*MT, bool)
	// 更新数据
	Update(lcuuid string, updateInfo map[string]interface{}) (*MT, bool)
	// 批量删除数据
	DeleteBatch(lcuuids []string) ([]*MT, bool)

	GetSoftDelete() bool
}

type OperatorBase

type OperatorBase[MPT constraint.MySQLModelPtr[MT], MT constraint.MySQLModel] struct {
	// contains filtered or unexported fields
}

func (*OperatorBase[MPT, MT]) AddBatch

func (o *OperatorBase[MPT, MT]) AddBatch(items []*MT) ([]*MT, bool)

func (*OperatorBase[MPT, MT]) DeleteBatch

func (o *OperatorBase[MPT, MT]) DeleteBatch(lcuuids []string) ([]*MT, bool)

func (*OperatorBase[MPT, MT]) GetSoftDelete

func (o *OperatorBase[MPT, MT]) GetSoftDelete() bool

func (*OperatorBase[MPT, MT]) SetMetadata

func (o *OperatorBase[MPT, MT]) SetMetadata(md *rcommon.Metadata) Operator[MPT, MT]

func (*OperatorBase[MPT, MT]) Update

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

type PeerConnection

type PeerConnection struct {
	OperatorBase[*mysqlmodel.PeerConnection, mysqlmodel.PeerConnection]
}

func NewPeerConnection

func NewPeerConnection() *PeerConnection

type Pod

type Pod struct {
	OperatorBase[*mysqlmodel.Pod, mysqlmodel.Pod]
}

func NewPod

func NewPod() *Pod

type PodCluster

type PodCluster struct {
	OperatorBase[*mysqlmodel.PodCluster, mysqlmodel.PodCluster]
}

func NewPodCluster

func NewPodCluster() *PodCluster

type PodGroup

type PodGroup struct {
	OperatorBase[*mysqlmodel.PodGroup, mysqlmodel.PodGroup]
}

func NewPodGroup

func NewPodGroup() *PodGroup

type PodGroupPort

type PodGroupPort struct {
	OperatorBase[*mysqlmodel.PodGroupPort, mysqlmodel.PodGroupPort]
}

func NewPodGroupPort

func NewPodGroupPort() *PodGroupPort

type PodIngress

type PodIngress struct {
	OperatorBase[*mysqlmodel.PodIngress, mysqlmodel.PodIngress]
}

func NewPodIngress

func NewPodIngress() *PodIngress

type PodIngressRule

type PodIngressRule struct {
	OperatorBase[*mysqlmodel.PodIngressRule, mysqlmodel.PodIngressRule]
}

func NewPodIngressRule

func NewPodIngressRule() *PodIngressRule

type PodNamespace

type PodNamespace struct {
	OperatorBase[*mysqlmodel.PodNamespace, mysqlmodel.PodNamespace]
}

func NewPodNamespace

func NewPodNamespace() *PodNamespace

type PodNode

type PodNode struct {
	OperatorBase[*mysqlmodel.PodNode, mysqlmodel.PodNode]
}

func NewPodNode

func NewPodNode() *PodNode

func (*PodNode) DeleteBatch

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

type PodReplicaSet

type PodReplicaSet struct {
	OperatorBase[*mysqlmodel.PodReplicaSet, mysqlmodel.PodReplicaSet]
}

func NewPodReplicaSet

func NewPodReplicaSet() *PodReplicaSet

type PodService

type PodService struct {
	OperatorBase[*mysqlmodel.PodService, mysqlmodel.PodService]
}

func NewPodService

func NewPodService() *PodService

type PodServicePort

type PodServicePort struct {
	OperatorBase[*mysqlmodel.PodServicePort, mysqlmodel.PodServicePort]
}

func NewPodServicePort

func NewPodServicePort() *PodServicePort

type Process

type Process struct {
	OperatorBase[*mysqlmodel.Process, mysqlmodel.Process]
}

func NewProcess

func NewProcess() *Process

type RDSInstance

type RDSInstance struct {
	OperatorBase[*mysqlmodel.RDSInstance, mysqlmodel.RDSInstance]
}

func NewRDSInstance

func NewRDSInstance() *RDSInstance

type RedisInstance

type RedisInstance struct {
	OperatorBase[*mysqlmodel.RedisInstance, mysqlmodel.RedisInstance]
}

func NewRedisInstance

func NewRedisInstance() *RedisInstance

type Region

type Region struct {
	OperatorBase[*mysqlmodel.Region, mysqlmodel.Region]
}

func NewRegion

func NewRegion() *Region

type RoutingTable

type RoutingTable struct {
	OperatorBase[*mysqlmodel.RoutingTable, mysqlmodel.RoutingTable]
}

func NewRoutingTable

func NewRoutingTable() *RoutingTable

type SubDomain

type SubDomain struct {
	OperatorBase[*mysqlmodel.SubDomain, mysqlmodel.SubDomain]
}

func NewSubDomain

func NewSubDomain() *SubDomain

type Subnet

type Subnet struct {
	OperatorBase[*mysqlmodel.Subnet, mysqlmodel.Subnet]
}

func NewSubnet

func NewSubnet() *Subnet

type VIP

type VIP struct {
	OperatorBase[*mysqlmodel.VIP, mysqlmodel.VIP]
}

func NewVIP

func NewVIP() *VIP

type VInterface

type VInterface struct {
	OperatorBase[*mysqlmodel.VInterface, mysqlmodel.VInterface]
}

func NewVInterface

func NewVInterface() *VInterface

type VM

type VM struct {
	OperatorBase[*mysqlmodel.VM, mysqlmodel.VM]
}

func NewVM

func NewVM() *VM

func (*VM) DeleteBatch

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

type VMPodNodeConnection

func NewVMPodNodeConnection

func NewVMPodNodeConnection() *VMPodNodeConnection

type VPC

type VPC struct {
	OperatorBase[*mysqlmodel.VPC, mysqlmodel.VPC]
}

func NewVPC

func NewVPC() *VPC

type VRouter

type VRouter struct {
	OperatorBase[*mysqlmodel.VRouter, mysqlmodel.VRouter]
}

func NewVRouter

func NewVRouter() *VRouter

type WANIP

type WANIP struct {
	OperatorBase[*mysqlmodel.WANIP, mysqlmodel.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