rpc

package
v0.0.0-...-d60a78d Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 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

func (*Service) CreateMachine(c context.Context, req *crimson.CreateMachineRequest) (*crimson.Machine, error)

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

func (*Service) CreatePhysicalHost(c context.Context, req *crimson.CreatePhysicalHostRequest) (*crimson.PhysicalHost, error)

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

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.

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

func (*Service) UpdatePhysicalHost(c context.Context, req *crimson.UpdatePhysicalHostRequest) (*crimson.PhysicalHost, error)

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