luci: go.chromium.org/luci/machine-db/appengine/rpc Index | Files

package rpc

import "go.chromium.org/luci/machine-db/appengine/rpc"

Index

Package Files

crimson.go datacenters.go dracs.go hosts.go ips.go kvms.go machines.go nics.go oses.go physical_hosts.go platforms.go queries.go racks.go switches.go validation.go vlans.go vm_slots.go vms.go

func NewServer Uses

func NewServer() crimson.CrimsonServer

NewServer returns a new Crimson RPC server.

type Service Uses

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 Uses

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

CreateDRAC handles a request to create a new DRAC.

func (*Service) CreateMachine Uses

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

CreateMachine handles a request to create a new machine.

func (*Service) CreateNIC Uses

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 Uses

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 Uses

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

CreateVM handles a request to create a new VM.

func (*Service) DeleteHost Uses

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

DeleteHost handles a request to delete an existing host.

func (*Service) DeleteMachine Uses

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

DeleteMachine handles a request to delete an existing machine.

func (*Service) DeleteNIC Uses

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 Uses

func (*Service) FindVMSlots(c context.Context, req *crimson.FindVMSlotsRequest) (*crimson.FindVMSlotsResponse, error)

FindVMSlots handles a request to find available VM slots.

func (*Service) ListDRACs Uses

func (*Service) ListDRACs(c context.Context, req *crimson.ListDRACsRequest) (*crimson.ListDRACsResponse, error)

ListDRACs handles a request to list DRACs.

func (*Service) ListDatacenters Uses

func (*Service) ListDatacenters(c context.Context, req *crimson.ListDatacentersRequest) (*crimson.ListDatacentersResponse, error)

ListDatacenters handles a request to retrieve datacenters.

func (*Service) ListFreeIPs Uses

func (*Service) ListFreeIPs(c context.Context, req *crimson.ListFreeIPsRequest) (*crimson.ListIPsResponse, error)

ListFreeIPs handles a request to list free IP addresses.

func (*Service) ListKVMs Uses

func (*Service) ListKVMs(c context.Context, req *crimson.ListKVMsRequest) (*crimson.ListKVMsResponse, error)

ListKVMs handles a request to retrieve KVMs.

func (*Service) ListMachines Uses

func (*Service) ListMachines(c context.Context, req *crimson.ListMachinesRequest) (*crimson.ListMachinesResponse, error)

ListMachines handles a request to list machines.

func (*Service) ListNICs Uses

func (*Service) ListNICs(c context.Context, req *crimson.ListNICsRequest) (*crimson.ListNICsResponse, error)

ListNICs handles a request to list network interfaces.

func (*Service) ListOSes Uses

func (*Service) ListOSes(c context.Context, req *crimson.ListOSesRequest) (*crimson.ListOSesResponse, error)

ListOSes handles a request to retrieve operating systems.

func (*Service) ListPhysicalHosts Uses

func (*Service) ListPhysicalHosts(c context.Context, req *crimson.ListPhysicalHostsRequest) (*crimson.ListPhysicalHostsResponse, error)

ListPhysicalHosts handles a request to list physical hosts.

func (*Service) ListPlatforms Uses

func (*Service) ListPlatforms(c context.Context, req *crimson.ListPlatformsRequest) (*crimson.ListPlatformsResponse, error)

ListPlatforms handles a request to retrieve platforms.

func (*Service) ListRacks Uses

func (*Service) ListRacks(c context.Context, req *crimson.ListRacksRequest) (*crimson.ListRacksResponse, error)

ListRacks handles a request to retrieve racks.

func (*Service) ListSwitches Uses

func (*Service) ListSwitches(c context.Context, req *crimson.ListSwitchesRequest) (*crimson.ListSwitchesResponse, error)

ListSwitches handles a request to retrieve switches.

func (*Service) ListVLANs Uses

func (*Service) ListVLANs(c context.Context, req *crimson.ListVLANsRequest) (*crimson.ListVLANsResponse, error)

ListVLANs handles a request to retrieve VLANs.

func (*Service) ListVMs Uses

func (*Service) ListVMs(c context.Context, req *crimson.ListVMsRequest) (*crimson.ListVMsResponse, error)

ListVMs handles a request to list VMs.

func (*Service) RenameMachine Uses

func (*Service) RenameMachine(c context.Context, req *crimson.RenameMachineRequest) (*crimson.Machine, error)

RenameMachine handles a request to rename an existing machine.

func (*Service) UpdateDRAC Uses

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

UpdateDRAC handles a request to update an existing DRAC.

func (*Service) UpdateMachine Uses

func (*Service) UpdateMachine(c context.Context, req *crimson.UpdateMachineRequest) (*crimson.Machine, error)

UpdateMachine handles a request to update an existing machine.

func (*Service) UpdateNIC Uses

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 Uses

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 Uses

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

UpdateVM handles a request to update an existing VM.

Package rpc imports 21 packages (graph) and is imported by 1 packages. Updated 2018-12-14. Refresh now. Tools for package owners.