Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore interface { // europa GetIQN(ctx context.Context, hostname string) (string, error) GetImage(imageID uuid.UUID) (*europa.BaseImage, error) ListImage() ([]europa.BaseImage, error) PutImage(image europa.BaseImage) error DeleteImage(imageID uuid.UUID) error ListVolume(ctx context.Context, volumeIDs []string) ([]europa.Volume, error) GetVolume(ctx context.Context, volumeID string) (*europa.Volume, error) PutVolume(ctx context.Context, volume europa.Volume) error DeleteVolume(ctx context.Context, volumeID string) error // ganymede GetHypervisor(ctx context.Context, hvID int) (*ganymede.HyperVisor, error) GetHypervisorByHostname(ctx context.Context, hostname string) (*ganymede.HyperVisor, error) PutHypervisor(ctx context.Context, iqn, hostname string) (int, error) PutHypervisorNUMANode(ctx context.Context, nodes []ganymede.NUMANode, hypervisorID int) error GetVirtualMachine(vmID uuid.UUID) (*ganymede.VirtualMachine, error) PutVirtualMachine(vm ganymede.VirtualMachine) error ListVirtualMachine() ([]ganymede.VirtualMachine, error) DeleteVirtualMachine(vmID uuid.UUID) error GetHostnameByAddress(address types.IP) (string, error) PutCPUPinningGroup(ctx context.Context, cpuPinningGroup ganymede.CPUPinningGroup) error GetCPUPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) (*ganymede.CPUPinningGroup, error) GetCPUPinningGroupByName(ctx context.Context, name string) (*ganymede.CPUPinningGroup, error) DeleteCPUPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) error GetAvailableCorePair(ctx context.Context, hypervisorID int) ([]ganymede.NUMANode, error) GetCPUCorePair(ctx context.Context, corePairID uuid.UUID) (*ganymede.CorePair, error) GetPinnedCoreByPinningGroup(ctx context.Context, cpuPinningGroupID uuid.UUID) ([]ganymede.CPUCorePinned, error) PutPinnedCore(ctx context.Context, pinned ganymede.CPUCorePinned) error DeletePinnedCore(ctx context.Context, pinnedID uuid.UUID) error // IPAM CreateSubnet(ctx context.Context, subnet ipam.Subnet) (*ipam.Subnet, error) GetSubnetByID(ctx context.Context, uuid uuid.UUID) (*ipam.Subnet, error) GetSubnetByVLAN(ctx context.Context, vlanID uint32) (*ipam.Subnet, error) ListSubnet(ctx context.Context) ([]ipam.Subnet, error) DeleteSubnet(ctx context.Context, uuid uuid.UUID) error CreateAddress(ctx context.Context, address ipam.Address) (*ipam.Address, error) GetAddressByID(ctx context.Context, uuid uuid.UUID) (*ipam.Address, error) ListAddressBySubnetID(ctx context.Context, subnetID uuid.UUID) ([]ipam.Address, error) DeleteAddress(ctx context.Context, uuid uuid.UUID) error CreateLease(ctx context.Context, lease ipam.Lease) (*ipam.Lease, error) GetLeaseByID(ctx context.Context, leaseID uuid.UUID) (*ipam.Lease, error) GetDHCPLeaseByMACAddress(ctx context.Context, mac types.HardwareAddr) (*ipam.DHCPLease, error) ListLease(ctx context.Context) ([]ipam.Lease, error) DeleteLease(ctx context.Context, leaseID uuid.UUID) error CreateBridge(ctx context.Context, bridge ganymede.Bridge) (*ganymede.Bridge, error) GetBridge(ctx context.Context, bridgeID uuid.UUID) (*ganymede.Bridge, error) ListBridge(ctx context.Context) ([]ganymede.Bridge, error) DeleteBridge(ctx context.Context, bridgeID uuid.UUID) error AttachInterface(ctx context.Context, attachment ganymede.InterfaceAttachment) (*ganymede.InterfaceAttachment, error) DetachInterface(ctx context.Context, attachmentID uuid.UUID) error GetAttachment(ctx context.Context, attachmentID uuid.UUID) (*ganymede.InterfaceAttachment, error) ListAttachment(ctx context.Context) ([]ganymede.InterfaceAttachment, error) }
A Datastore is type definition of data store.
Click to show internal directories.
Click to hide internal directories.