server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultPort is the default port that the server listens at
	DefaultPort = ":11079"
	// DefaultVpcId is the default VPC ID for testing
	DefaultVpcId = "00000000-0000-4000-8000-000000000000"
	// DefaultNetworkSegmentId is the default NetworkSegment ID for testing
	DefaultNetworkSegmentId = "00000000-0000-4000-9000-000000000000"
	// DefaultTenantKeysetId is the default TenantKeyset ID for testing
	DefaultTenantKeysetId = "00000000-0000-4000-a000-000000000000"
	// DefaultIBParitionId is the default IBPartition ID for testing
	DefaultIBParitionId = "00000000-0000-4000-b000-000000000000"
)
View Source
var (
	// RlaDefaultPort is the default port that the RLA server listens at
	RlaDefaultPort = ":11080"
)

Functions

func ForgeTest

func ForgeTest(secs int)

ForgeTest tests the grpc server

func RlaTest

func RlaTest(secs int)

RlaTest starts the RLA test gRPC server

Types

type ForgeServerImpl

type ForgeServerImpl struct {
	cwssaws.UnimplementedForgeServer
	// contains filtered or unexported fields
}

ForgeServerImpl implements interface ForgeServer

func (*ForgeServerImpl) AddExpectedMachine

func (f *ForgeServerImpl) AddExpectedMachine(ctx context.Context, req *cwssaws.ExpectedMachine) (*emptypb.Empty, error)

AddExpectedMachine implements interface ForgeServer

func (*ForgeServerImpl) AddExpectedPowerShelf

func (f *ForgeServerImpl) AddExpectedPowerShelf(ctx context.Context, req *cwssaws.ExpectedPowerShelf) (*emptypb.Empty, error)

AddExpectedPowerShelf implements interface ForgeServer

func (*ForgeServerImpl) AddExpectedSwitch

func (f *ForgeServerImpl) AddExpectedSwitch(ctx context.Context, req *cwssaws.ExpectedSwitch) (*emptypb.Empty, error)

AddExpectedSwitch implements interface ForgeServer

func (*ForgeServerImpl) AllocateInstance

CreateInstance implements interface ForgeServer

func (*ForgeServerImpl) CreateExpectedMachines

CreateExpectedMachines implements interface ForgeServer

func (*ForgeServerImpl) CreateIBPartition

UpdateIBPartition implements interface ForgeServer

func (*ForgeServerImpl) CreateNetworkSegment

CreateNetworkSegment implements interface ForgeServer

func (*ForgeServerImpl) CreateTenantKeyset

CreateTenantKeyset implements interface ForgeServer

func (*ForgeServerImpl) CreateVpc

CreateVpc implements interface ForgeServer

func (*ForgeServerImpl) DeleteExpectedMachine

func (f *ForgeServerImpl) DeleteExpectedMachine(ctx context.Context, req *cwssaws.ExpectedMachineRequest) (*emptypb.Empty, error)

DeleteExpectedMachine implements interface ForgeServer

func (*ForgeServerImpl) DeleteExpectedPowerShelf

func (f *ForgeServerImpl) DeleteExpectedPowerShelf(ctx context.Context, req *cwssaws.ExpectedPowerShelfRequest) (*emptypb.Empty, error)

DeleteExpectedPowerShelf implements interface ForgeServer

func (*ForgeServerImpl) DeleteExpectedSwitch

func (f *ForgeServerImpl) DeleteExpectedSwitch(ctx context.Context, req *cwssaws.ExpectedSwitchRequest) (*emptypb.Empty, error)

DeleteExpectedSwitch implements interface ForgeServer

func (*ForgeServerImpl) DeleteIBPartition

DeleteIBPartition implements interface ForgeServer

func (*ForgeServerImpl) DeleteNetworkSegment

DeleteNetworkSegment implements interface ForgeServer

func (*ForgeServerImpl) DeleteTenantKeyset

DeleteTenantKeyset implements interface ForgeServer

func (*ForgeServerImpl) DeleteVpc

DeleteVpc implements interface ForgeServer

func (*ForgeServerImpl) FindIBPartitionIds

FindIBPartitionIds implements interface ForgeServer

func (*ForgeServerImpl) FindIBPartitions

CreateIBPartition implements interface ForgeServer

func (*ForgeServerImpl) FindIBPartitionsByIds

FindIBPartitionsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindInstanceIds

FindInstances implements interface ForgeServer

func (*ForgeServerImpl) FindInstances

FindInstances implements interface ForgeServer

func (*ForgeServerImpl) FindInstancesByIds

FindInstances implements interface ForgeServer

func (*ForgeServerImpl) FindMachines

FindMachines implements interface ForgeServer

func (*ForgeServerImpl) FindNetworkSegmentIds

FindNetworkSegmentIds implements interface ForgeServer

func (*ForgeServerImpl) FindNetworkSegments

FindNetworkSegments implements interface ForgeServer

func (*ForgeServerImpl) FindNetworkSegmentsByIds

FindNetworkSegmentsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindTenantKeyset

FindTenantKeyset implements interface ForgeServer

func (*ForgeServerImpl) FindTenantKeysetIds

FindTenantKeysetIds implements interface ForgeServer

func (*ForgeServerImpl) FindTenantKeysetsByIds

FindTenantKeysetsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindVpcIds

FindVpcIds implements interface ForgeServer

func (*ForgeServerImpl) FindVpcs

FindVpcs implements interface ForgeServer

func (*ForgeServerImpl) FindVpcsByIds

func (f *ForgeServerImpl) FindVpcsByIds(ctx context.Context, req *cwssaws.VpcsByIdsRequest) (*cwssaws.VpcList, error)

FindVpcsByIds implements interface ForgeServer

func (*ForgeServerImpl) GetAllExpectedPowerShelves

func (f *ForgeServerImpl) GetAllExpectedPowerShelves(ctx context.Context, req *emptypb.Empty) (*cwssaws.ExpectedPowerShelfList, error)

GetAllExpectedPowerShelves implements interface ForgeServer

func (*ForgeServerImpl) GetAllExpectedSwitches

func (f *ForgeServerImpl) GetAllExpectedSwitches(ctx context.Context, req *emptypb.Empty) (*cwssaws.ExpectedSwitchList, error)

GetAllExpectedSwitches implements interface ForgeServer

func (*ForgeServerImpl) GetExpectedPowerShelf

GetExpectedPowerShelf implements interface ForgeServer

func (*ForgeServerImpl) GetExpectedSwitch

GetExpectedSwitch implements interface ForgeServer

func (*ForgeServerImpl) InvokeInstancePower

InvokeInstancePower implements interface ForgeServer

func (*ForgeServerImpl) ReleaseInstance

DeleteInstance implements interface ForgeServer

func (*ForgeServerImpl) SetMaintenance

func (*ForgeServerImpl) UpdateExpectedMachine

func (f *ForgeServerImpl) UpdateExpectedMachine(ctx context.Context, req *cwssaws.ExpectedMachine) (*emptypb.Empty, error)

UpdateExpectedMachine implements interface ForgeServer

func (*ForgeServerImpl) UpdateExpectedMachines

UpdateExpectedMachines implements interface ForgeServer

func (*ForgeServerImpl) UpdateExpectedPowerShelf

func (f *ForgeServerImpl) UpdateExpectedPowerShelf(ctx context.Context, req *cwssaws.ExpectedPowerShelf) (*emptypb.Empty, error)

UpdateExpectedPowerShelf implements interface ForgeServer

func (*ForgeServerImpl) UpdateExpectedSwitch

func (f *ForgeServerImpl) UpdateExpectedSwitch(ctx context.Context, req *cwssaws.ExpectedSwitch) (*emptypb.Empty, error)

UpdateExpectedSwitch implements interface ForgeServer

func (*ForgeServerImpl) UpdateTenantKeyset

UpdateTenantKeyset implements interface ForgeServer

func (*ForgeServerImpl) UpdateVpc

UpdateVpc implements interface ForgeServer

func (*ForgeServerImpl) Version

Version implements interface ForgeServer

type RlaServerImpl

type RlaServerImpl struct {
	rlav1.UnimplementedRLAServer
	// contains filtered or unexported fields
}

RlaServerImpl implements interface RLAServer

func (*RlaServerImpl) AttachRacksToNVLDomain

func (r *RlaServerImpl) AttachRacksToNVLDomain(ctx context.Context, req *rlav1.AttachRacksToNVLDomainRequest) (*emptypb.Empty, error)

AttachRacksToNVLDomain implements interface RLAServer

func (*RlaServerImpl) BringUpRack

BringUpRack implements interface RLAServer

func (*RlaServerImpl) CreateExpectedRack

CreateExpectedRack implements interface RLAServer

func (*RlaServerImpl) CreateNVLDomain

CreateNVLDomain implements interface RLAServer

func (*RlaServerImpl) DetachRacksFromNVLDomain

func (r *RlaServerImpl) DetachRacksFromNVLDomain(ctx context.Context, req *rlav1.DetachRacksFromNVLDomainRequest) (*emptypb.Empty, error)

DetachRacksFromNVLDomain implements interface RLAServer

func (*RlaServerImpl) GetComponentInfoByID

GetComponentInfoByID implements interface RLAServer

func (*RlaServerImpl) GetComponentInfoBySerial

GetComponentInfoBySerial implements interface RLAServer

func (*RlaServerImpl) GetComponents

GetComponents implements interface RLAServer

func (*RlaServerImpl) GetListOfNVLDomains

GetListOfNVLDomains implements interface RLAServer

func (*RlaServerImpl) GetListOfRacks

GetListOfRacks implements interface RLAServer

func (*RlaServerImpl) GetRackInfoByID

GetRackInfoByID implements interface RLAServer

func (*RlaServerImpl) GetRackInfoBySerial

GetRackInfoBySerial implements interface RLAServer

func (*RlaServerImpl) GetRacksForNVLDomain

GetRacksForNVLDomain implements interface RLAServer

func (*RlaServerImpl) GetTasksByIDs

GetTasksByIDs implements interface RLAServer

func (*RlaServerImpl) ListTasks

ListTasks implements interface RLAServer

func (*RlaServerImpl) PatchRack

PatchRack implements interface RLAServer

func (*RlaServerImpl) PowerOffRack

PowerOffRack implements interface RLAServer

func (*RlaServerImpl) PowerOnRack

PowerOnRack implements interface RLAServer

func (*RlaServerImpl) PowerResetRack

PowerResetRack implements interface RLAServer

func (*RlaServerImpl) UpgradeFirmware

UpgradeFirmware implements interface RLAServer

func (*RlaServerImpl) ValidateComponents

ValidateComponents implements interface RLAServer

func (*RlaServerImpl) Version

Version implements interface RLAServer

Jump to

Keyboard shortcuts

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