Documentation ¶
Index ¶
- type MySQL
- func (m *MySQL) AttachInterface(ctx context.Context, attachment ganymede.InterfaceAttachment) (*ganymede.InterfaceAttachment, error)
- func (m *MySQL) CreateAddress(ctx context.Context, address ipam.Address) (*ipam.Address, error)
- func (m *MySQL) CreateBridge(ctx context.Context, bridge ganymede.Bridge) (*ganymede.Bridge, error)
- func (m *MySQL) CreateLease(ctx context.Context, lease ipam.Lease) (*ipam.Lease, error)
- func (m *MySQL) CreateSubnet(ctx context.Context, subnet ipam.Subnet) (*ipam.Subnet, error)
- func (m *MySQL) DeleteAddress(ctx context.Context, uuid uuid.UUID) error
- func (m *MySQL) DeleteBridge(ctx context.Context, bridgeID uuid.UUID) error
- func (m *MySQL) DeleteCPUPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) error
- func (m *MySQL) DeleteImage(imageID uuid.UUID) error
- func (m *MySQL) DeleteLease(ctx context.Context, leaseID uuid.UUID) error
- func (m *MySQL) DeletePinnedCore(ctx context.Context, pinnedID uuid.UUID) error
- func (m *MySQL) DeleteSubnet(ctx context.Context, uuid uuid.UUID) error
- func (m *MySQL) DeleteVirtualMachine(vmID uuid.UUID) error
- func (m *MySQL) DeleteVolume(ctx context.Context, volumeID string) error
- func (m *MySQL) DetachInterface(ctx context.Context, attachmentID uuid.UUID) error
- func (m *MySQL) GetAddressByID(ctx context.Context, uuid uuid.UUID) (*ipam.Address, error)
- func (m *MySQL) GetAttachment(ctx context.Context, attachmentID uuid.UUID) (*ganymede.InterfaceAttachment, error)
- func (m *MySQL) GetAvailableCorePair(ctx context.Context, hypervisorID int) ([]ganymede.NUMANode, error)
- func (m *MySQL) GetBridge(ctx context.Context, bridgeID uuid.UUID) (*ganymede.Bridge, error)
- func (m *MySQL) GetCPUCorePair(ctx context.Context, corePairID uuid.UUID) (*ganymede.CorePair, error)
- func (m *MySQL) GetCPUPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) (*ganymede.CPUPinningGroup, error)
- func (m *MySQL) GetCPUPinningGroupByName(ctx context.Context, name string) (*ganymede.CPUPinningGroup, error)
- func (m *MySQL) GetDHCPLeaseByMACAddress(ctx context.Context, mac types.HardwareAddr) (*ipam.DHCPLease, error)
- func (m *MySQL) GetHostnameByAddress(address types.IP) (string, error)
- func (m *MySQL) GetHypervisor(ctx context.Context, hypervisorID int) (*ganymede.HyperVisor, error)
- func (m *MySQL) GetHypervisorByHostname(ctx context.Context, hostname string) (*ganymede.HyperVisor, error)
- func (m *MySQL) GetIQN(ctx context.Context, hostname string) (string, error)
- func (m *MySQL) GetImage(imageID uuid.UUID) (*europa.BaseImage, error)
- func (m *MySQL) GetLeaseByID(ctx context.Context, leaseID uuid.UUID) (*ipam.Lease, error)
- func (m *MySQL) GetPinnedCoreByPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) ([]ganymede.CPUCorePinned, error)
- func (m *MySQL) GetSubnetByID(ctx context.Context, uuid uuid.UUID) (*ipam.Subnet, error)
- func (m *MySQL) GetSubnetByVLAN(ctx context.Context, vlanID uint32) (*ipam.Subnet, error)
- func (m *MySQL) GetVirtualMachine(vmID uuid.UUID) (*ganymede.VirtualMachine, error)
- func (m *MySQL) GetVolume(ctx context.Context, volumeID string) (*europa.Volume, error)
- func (m *MySQL) ListAddressBySubnetID(ctx context.Context, subnetID uuid.UUID) ([]ipam.Address, error)
- func (m *MySQL) ListAttachment(ctx context.Context) ([]ganymede.InterfaceAttachment, error)
- func (m *MySQL) ListBridge(ctx context.Context) ([]ganymede.Bridge, error)
- func (m *MySQL) ListImage() ([]europa.BaseImage, error)
- func (m *MySQL) ListLease(ctx context.Context) ([]ipam.Lease, error)
- func (m *MySQL) ListSubnet(ctx context.Context) ([]ipam.Subnet, error)
- func (m *MySQL) ListVirtualMachine() ([]ganymede.VirtualMachine, error)
- func (m *MySQL) ListVolume(ctx context.Context, volumeIDs []string) ([]europa.Volume, error)
- func (m *MySQL) PutCPUPinningGroup(ctx context.Context, cpuPinningGroup ganymede.CPUPinningGroup) error
- func (m *MySQL) PutHypervisor(ctx context.Context, iqn, hostname string) (int, error)
- func (m *MySQL) PutHypervisorNUMANode(ctx context.Context, nodes []ganymede.NUMANode, hypervisorID int) error
- func (m *MySQL) PutImage(image europa.BaseImage) error
- func (m *MySQL) PutPinnedCore(ctx context.Context, pinned ganymede.CPUCorePinned) error
- func (m *MySQL) PutVirtualMachine(vm ganymede.VirtualMachine) error
- func (m *MySQL) PutVolume(ctx context.Context, volume europa.Volume) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
A MySQL is backend of datastore by MySQL Server
func (*MySQL) AttachInterface ¶
func (m *MySQL) AttachInterface(ctx context.Context, attachment ganymede.InterfaceAttachment) (*ganymede.InterfaceAttachment, error)
AttachInterface is
func (*MySQL) CreateAddress ¶
CreateAddress create a address
func (*MySQL) CreateBridge ¶
CreateBridge is
func (*MySQL) CreateLease ¶
CreateLease create a lease
func (*MySQL) CreateSubnet ¶
CreateSubnet create a subnet
func (*MySQL) DeleteAddress ¶
DeleteAddress deletes address
func (*MySQL) DeleteBridge ¶
DeleteBridge is
func (*MySQL) DeleteCPUPinningGroup ¶
DeleteCPUPinningGroup delete cpu pinning group record
func (*MySQL) DeleteImage ¶
DeleteImage delete image record
func (*MySQL) DeleteLease ¶
DeleteLease deletes a lease
func (*MySQL) DeletePinnedCore ¶
DeletePinnedCore delete record
func (*MySQL) DeleteSubnet ¶
DeleteSubnet deletes a subnet
func (*MySQL) DeleteVirtualMachine ¶
DeleteVirtualMachine delete virtual machine record
func (*MySQL) DeleteVolume ¶
DeleteVolume delete volume record
func (*MySQL) DetachInterface ¶
DetachInterface is
func (*MySQL) GetAddressByID ¶
GetAddressByID retrieves address according to the id given
func (*MySQL) GetAttachment ¶
func (m *MySQL) GetAttachment(ctx context.Context, attachmentID uuid.UUID) (*ganymede.InterfaceAttachment, error)
GetAttachment is
func (*MySQL) GetAvailableCorePair ¶
func (m *MySQL) GetAvailableCorePair(ctx context.Context, hypervisorID int) ([]ganymede.NUMANode, error)
GetAvailableCorePair retrieve not pinned CorePairs
func (*MySQL) GetCPUCorePair ¶
func (m *MySQL) GetCPUCorePair(ctx context.Context, corePairID uuid.UUID) (*ganymede.CorePair, error)
GetCPUCorePair retrieve CPU CorePair
func (*MySQL) GetCPUPinningGroup ¶
func (m *MySQL) GetCPUPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) (*ganymede.CPUPinningGroup, error)
GetCPUPinningGroup retrieve cpu pinning group
func (*MySQL) GetCPUPinningGroupByName ¶
func (m *MySQL) GetCPUPinningGroupByName(ctx context.Context, name string) (*ganymede.CPUPinningGroup, error)
GetCPUPinningGroupByName retrieve cpu pinning group by name
func (*MySQL) GetDHCPLeaseByMACAddress ¶
func (m *MySQL) GetDHCPLeaseByMACAddress(ctx context.Context, mac types.HardwareAddr) (*ipam.DHCPLease, error)
GetDHCPLeaseByMACAddress retrieves DHCPLease according to the mac given
func (*MySQL) GetHostnameByAddress ¶
GetHostnameByAddress is
func (*MySQL) GetHypervisor ¶
GetHypervisor retrieve hypervisor
func (*MySQL) GetHypervisorByHostname ¶
func (m *MySQL) GetHypervisorByHostname(ctx context.Context, hostname string) (*ganymede.HyperVisor, error)
GetHypervisorByHostname retrieve hypervisor by hostname
func (*MySQL) GetLeaseByID ¶
GetLeaseByID retrieves lease according to the mac given
func (*MySQL) GetPinnedCoreByPinningGroup ¶
func (m *MySQL) GetPinnedCoreByPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) ([]ganymede.CPUCorePinned, error)
GetPinnedCoreByPinningGroup retrieve CPU CorePair
func (*MySQL) GetSubnetByID ¶
GetSubnetByID retrieves address according to the id given
func (*MySQL) GetSubnetByVLAN ¶
GetSubnetByVLAN is
func (*MySQL) GetVirtualMachine ¶
GetVirtualMachine return virtual machine record
func (*MySQL) ListAddressBySubnetID ¶
func (m *MySQL) ListAddressBySubnetID(ctx context.Context, subnetID uuid.UUID) ([]ipam.Address, error)
ListAddressBySubnetID retrieves all address according to the subnetID given.
func (*MySQL) ListAttachment ¶
ListAttachment is
func (*MySQL) ListBridge ¶
ListBridge is
func (*MySQL) ListSubnet ¶
ListSubnet retrieves all subnets
func (*MySQL) ListVirtualMachine ¶
func (m *MySQL) ListVirtualMachine() ([]ganymede.VirtualMachine, error)
ListVirtualMachine retrieve all virtual machine record
func (*MySQL) ListVolume ¶
ListVolume retrieves multi volumes from MySQL IN query
func (*MySQL) PutCPUPinningGroup ¶
func (m *MySQL) PutCPUPinningGroup(ctx context.Context, cpuPinningGroup ganymede.CPUPinningGroup) error
PutCPUPinningGroup put cpu pinning group
func (*MySQL) PutHypervisor ¶
PutHypervisor register hypervisor return hypervisor ID by MySQL AUTO INCREMENT.
func (*MySQL) PutHypervisorNUMANode ¶
func (m *MySQL) PutHypervisorNUMANode(ctx context.Context, nodes []ganymede.NUMANode, hypervisorID int) error
PutHypervisorNUMANode register cpu cores by hypervisor
func (*MySQL) PutPinnedCore ¶
PutPinnedCore put pinned record
func (*MySQL) PutVirtualMachine ¶
func (m *MySQL) PutVirtualMachine(vm ganymede.VirtualMachine) error
PutVirtualMachine write virtual machine record