Documentation ¶
Index ¶
- func NewServer() crimson.CrimsonServer
- type Service
- func (*Service) CreateDRAC(c context.Context, req *crimson.CreateDRACRequest) (*crimson.DRAC, error)
- func (*Service) CreateMachine(c context.Context, req *crimson.CreateMachineRequest) (*crimson.Machine, error)
- func (*Service) CreateNIC(c context.Context, req *crimson.CreateNICRequest) (*crimson.NIC, error)
- func (*Service) CreatePhysicalHost(c context.Context, req *crimson.CreatePhysicalHostRequest) (*crimson.PhysicalHost, error)
- func (*Service) CreateVM(c context.Context, req *crimson.CreateVMRequest) (*crimson.VM, error)
- func (*Service) DeleteHost(c context.Context, req *crimson.DeleteHostRequest) (*emptypb.Empty, error)
- func (*Service) DeleteMachine(c context.Context, req *crimson.DeleteMachineRequest) (*emptypb.Empty, error)
- func (*Service) DeleteNIC(c context.Context, req *crimson.DeleteNICRequest) (*emptypb.Empty, error)
- func (*Service) FindVMSlots(c context.Context, req *crimson.FindVMSlotsRequest) (*crimson.FindVMSlotsResponse, error)
- func (*Service) ListDRACs(c context.Context, req *crimson.ListDRACsRequest) (*crimson.ListDRACsResponse, error)
- func (*Service) ListDatacenters(c context.Context, req *crimson.ListDatacentersRequest) (*crimson.ListDatacentersResponse, error)
- func (*Service) ListFreeIPs(c context.Context, req *crimson.ListFreeIPsRequest) (*crimson.ListIPsResponse, error)
- func (*Service) ListKVMs(c context.Context, req *crimson.ListKVMsRequest) (*crimson.ListKVMsResponse, error)
- func (*Service) ListMachines(c context.Context, req *crimson.ListMachinesRequest) (*crimson.ListMachinesResponse, error)
- func (*Service) ListNICs(c context.Context, req *crimson.ListNICsRequest) (*crimson.ListNICsResponse, error)
- func (*Service) ListOSes(c context.Context, req *crimson.ListOSesRequest) (*crimson.ListOSesResponse, error)
- func (*Service) ListPhysicalHosts(c context.Context, req *crimson.ListPhysicalHostsRequest) (*crimson.ListPhysicalHostsResponse, error)
- func (*Service) ListPlatforms(c context.Context, req *crimson.ListPlatformsRequest) (*crimson.ListPlatformsResponse, error)
- func (*Service) ListRacks(c context.Context, req *crimson.ListRacksRequest) (*crimson.ListRacksResponse, error)
- func (*Service) ListSwitches(c context.Context, req *crimson.ListSwitchesRequest) (*crimson.ListSwitchesResponse, error)
- func (*Service) ListVLANs(c context.Context, req *crimson.ListVLANsRequest) (*crimson.ListVLANsResponse, error)
- func (*Service) ListVMs(c context.Context, req *crimson.ListVMsRequest) (*crimson.ListVMsResponse, error)
- func (*Service) RenameMachine(c context.Context, req *crimson.RenameMachineRequest) (*crimson.Machine, error)
- func (*Service) UpdateDRAC(c context.Context, req *crimson.UpdateDRACRequest) (*crimson.DRAC, error)
- func (*Service) UpdateMachine(c context.Context, req *crimson.UpdateMachineRequest) (*crimson.Machine, error)
- func (*Service) UpdateNIC(c context.Context, req *crimson.UpdateNICRequest) (*crimson.NIC, error)
- func (*Service) UpdatePhysicalHost(c context.Context, req *crimson.UpdatePhysicalHostRequest) (*crimson.PhysicalHost, error)
- func (*Service) UpdateVM(c context.Context, req *crimson.UpdateVMRequest) (*crimson.VM, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (*Service) CreateMachine(c context.Context, req *crimson.CreateMachineRequest) (*crimson.Machine, error)
CreateMachine handles a request to create a new machine.
func (*Service) CreatePhysicalHost ¶
func (*Service) CreatePhysicalHost(c context.Context, req *crimson.CreatePhysicalHostRequest) (*crimson.PhysicalHost, error)
CreatePhysicalHost handles a request to create a new physical host.
func (*Service) DeleteHost ¶
func (*Service) DeleteHost(c context.Context, req *crimson.DeleteHostRequest) (*emptypb.Empty, error)
DeleteHost handles a request to delete an existing host.
func (*Service) DeleteMachine ¶
func (*Service) DeleteMachine(c context.Context, req *crimson.DeleteMachineRequest) (*emptypb.Empty, error)
DeleteMachine handles a request to delete an existing machine.
func (*Service) FindVMSlots ¶
func (*Service) FindVMSlots(c context.Context, req *crimson.FindVMSlotsRequest) (*crimson.FindVMSlotsResponse, error)
FindVMSlots handles a request to find available VM slots.
func (*Service) ListDRACs ¶
func (*Service) ListDRACs(c context.Context, req *crimson.ListDRACsRequest) (*crimson.ListDRACsResponse, error)
ListDRACs handles a request to list DRACs.
func (*Service) ListDatacenters ¶
func (*Service) ListDatacenters(c context.Context, req *crimson.ListDatacentersRequest) (*crimson.ListDatacentersResponse, error)
ListDatacenters handles a request to retrieve datacenters.
func (*Service) ListFreeIPs ¶
func (*Service) ListFreeIPs(c context.Context, req *crimson.ListFreeIPsRequest) (*crimson.ListIPsResponse, error)
ListFreeIPs handles a request to list free IP addresses.
func (*Service) ListKVMs ¶
func (*Service) ListKVMs(c context.Context, req *crimson.ListKVMsRequest) (*crimson.ListKVMsResponse, error)
ListKVMs handles a request to retrieve KVMs.
func (*Service) ListMachines ¶
func (*Service) ListMachines(c context.Context, req *crimson.ListMachinesRequest) (*crimson.ListMachinesResponse, error)
ListMachines handles a request to list machines.
func (*Service) ListNICs ¶
func (*Service) ListNICs(c context.Context, req *crimson.ListNICsRequest) (*crimson.ListNICsResponse, error)
ListNICs handles a request to list network interfaces.
func (*Service) ListOSes ¶
func (*Service) ListOSes(c context.Context, req *crimson.ListOSesRequest) (*crimson.ListOSesResponse, error)
ListOSes handles a request to retrieve operating systems.
func (*Service) ListPhysicalHosts ¶
func (*Service) ListPhysicalHosts(c context.Context, req *crimson.ListPhysicalHostsRequest) (*crimson.ListPhysicalHostsResponse, error)
ListPhysicalHosts handles a request to list physical hosts.
func (*Service) ListPlatforms ¶
func (*Service) ListPlatforms(c context.Context, req *crimson.ListPlatformsRequest) (*crimson.ListPlatformsResponse, error)
ListPlatforms handles a request to retrieve platforms.
func (*Service) ListRacks ¶
func (*Service) ListRacks(c context.Context, req *crimson.ListRacksRequest) (*crimson.ListRacksResponse, error)
ListRacks handles a request to retrieve racks.
func (*Service) ListSwitches ¶
func (*Service) ListSwitches(c context.Context, req *crimson.ListSwitchesRequest) (*crimson.ListSwitchesResponse, error)
ListSwitches handles a request to retrieve switches.
func (*Service) ListVLANs ¶
func (*Service) ListVLANs(c context.Context, req *crimson.ListVLANsRequest) (*crimson.ListVLANsResponse, error)
ListVLANs handles a request to retrieve VLANs.
func (*Service) ListVMs ¶
func (*Service) ListVMs(c context.Context, req *crimson.ListVMsRequest) (*crimson.ListVMsResponse, error)
ListVMs handles a request to list VMs.
func (*Service) RenameMachine ¶
func (*Service) RenameMachine(c context.Context, req *crimson.RenameMachineRequest) (*crimson.Machine, error)
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 ¶
func (*Service) UpdateMachine(c context.Context, req *crimson.UpdateMachineRequest) (*crimson.Machine, error)
UpdateMachine handles a request to update an existing machine.