rpc

package
v0.0.0-...-1643519 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer() crimson.CrimsonServer

NewServer returns a new Crimson RPC server.

Types

type Service

type Service struct {
}

Service handles Crimson RPCs. Not a proper gRPC service, errors may not be gRPC errors. Use NewServer to get a proper gRPC service.

func (*Service) CreateDRAC

func (*Service) CreateDRAC(c context.Context, req *crimson.CreateDRACRequest) (*crimson.DRAC, error)

CreateDRAC handles a request to create a new DRAC.

func (*Service) CreateMachine

CreateMachine handles a request to create a new machine.

func (*Service) CreateNIC

func (*Service) CreateNIC(c context.Context, req *crimson.CreateNICRequest) (*crimson.NIC, error)

CreateNIC handles a request to create a new network interface.

func (*Service) CreatePhysicalHost

CreatePhysicalHost handles a request to create a new physical host.

func (*Service) CreateVM

func (*Service) CreateVM(c context.Context, req *crimson.CreateVMRequest) (*crimson.VM, error)

CreateVM handles a request to create a new VM.

func (*Service) DeleteHost

func (*Service) DeleteHost(c context.Context, req *crimson.DeleteHostRequest) (*empty.Empty, error)

DeleteHost handles a request to delete an existing host.

func (*Service) DeleteMachine

func (*Service) DeleteMachine(c context.Context, req *crimson.DeleteMachineRequest) (*empty.Empty, error)

DeleteMachine handles a request to delete an existing machine.

func (*Service) DeleteNIC

func (*Service) DeleteNIC(c context.Context, req *crimson.DeleteNICRequest) (*empty.Empty, error)

DeleteNIC handles a request to delete an existing network interface.

func (*Service) FindVMSlots

FindVMSlots handles a request to find available VM slots.

func (*Service) ListDRACs

ListDRACs handles a request to list DRACs.

func (*Service) ListDatacenters

ListDatacenters handles a request to retrieve datacenters.

func (*Service) ListFreeIPs

ListFreeIPs handles a request to list free IP addresses.

func (*Service) ListKVMs

ListKVMs handles a request to retrieve KVMs.

func (*Service) ListMachines

ListMachines handles a request to list machines.

func (*Service) ListNICs

ListNICs handles a request to list network interfaces.

func (*Service) ListOSes

ListOSes handles a request to retrieve operating systems.

func (*Service) ListPhysicalHosts

ListPhysicalHosts handles a request to list physical hosts.

func (*Service) ListPlatforms

ListPlatforms handles a request to retrieve platforms.

func (*Service) ListRacks

ListRacks handles a request to retrieve racks.

func (*Service) ListSwitches

ListSwitches handles a request to retrieve switches.

func (*Service) ListVLANs

ListVLANs handles a request to retrieve VLANs.

func (*Service) ListVMs

ListVMs handles a request to list VMs.

func (*Service) RenameMachine

RenameMachine handles a request to rename an existing machine.

func (*Service) UpdateDRAC

func (*Service) UpdateDRAC(c context.Context, req *crimson.UpdateDRACRequest) (*crimson.DRAC, error)

UpdateDRAC handles a request to update an existing DRAC.

func (*Service) UpdateMachine

UpdateMachine handles a request to update an existing machine.

func (*Service) UpdateNIC

func (*Service) UpdateNIC(c context.Context, req *crimson.UpdateNICRequest) (*crimson.NIC, error)

UpdateNIC handles a request to update an existing network interface.

func (*Service) UpdatePhysicalHost

UpdatePhysicalHost handles a request to update an existing physical host.

func (*Service) UpdateVM

func (*Service) UpdateVM(c context.Context, req *crimson.UpdateVMRequest) (*crimson.VM, error)

UpdateVM handles a request to update an existing VM.

Jump to

Keyboard shortcuts

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