server

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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-000000000001"
	// DefaultNetworkSegmentId is the default NetworkSegment ID for testing
	DefaultNetworkSegmentId = "00000000-0000-4000-8000-000000000002"
	// DefaultTenantKeysetId is the default TenantKeyset ID for testing
	DefaultTenantKeysetId = "00000000-0000-4000-8000-000000000003"
	// DefaultIBParitionId is the default IBPartition ID for testing
	DefaultIBParitionId = "00000000-0000-4000-8000-000000000004"
	// DefaultInstanceId is the default Instance ID for testing
	DefaultInstanceId = "00000000-0000-4000-8000-000000000005"
	// DefaultInstanceTypeId is the default InstanceType ID for testing
	DefaultInstanceTypeId = "00000000-0000-4000-8000-000000000006"
	// DefaultDpuExtensionServiceId is the default DPU Extension Service ID for testing
	DefaultDpuExtensionServiceId = "00000000-0000-4000-8000-000000000007"
	// DefaultOsImageId is the default OS Image ID for testing
	DefaultOsImageId = "00000000-0000-4000-8000-000000000008"
	// DefaultVpcPrefixId is the default VPCPrefix ID for testing
	DefaultVpcPrefixId = "00000000-0000-4000-8000-000000000009"
	// DefaultNetworkSecurityGroupId is the default NetworkSecurityGroup ID for testing
	DefaultNetworkSecurityGroupId = "00000000-0000-4000-8000-00000000000a"
	// DefaultVpcPeeringId is the default VPCPeering ID for testing
	DefaultVpcPeeringId = "00000000-0000-4000-8000-00000000000b"
	// DefaultNVLinkLogicalPartitionId is the default NVLinkLogicalPartition ID for testing
	DefaultNVLinkLogicalPartitionId = "00000000-0000-4000-8000-00000000000c"
)
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

CreateIBPartition 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) FindDpuExtensionServiceIds added in v1.4.0

FindDpuExtensionServiceIds implements interface ForgeServer

func (*ForgeServerImpl) FindDpuExtensionServicesByIds added in v1.4.0

FindDpuExtensionServicesByIds implements interface ForgeServer

func (*ForgeServerImpl) FindIBPartitionIds

FindIBPartitionIds implements interface ForgeServer

func (*ForgeServerImpl) FindIBPartitionsByIds

FindIBPartitionsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindInstanceIds

FindInstances implements interface ForgeServer

func (*ForgeServerImpl) FindInstanceTypeIds added in v1.4.0

FindInstanceTypeIds implements interface ForgeServer

func (*ForgeServerImpl) FindInstanceTypesByIds added in v1.4.0

FindInstanceTypesByIds implements interface ForgeServer

func (*ForgeServerImpl) FindInstancesByIds

FindInstances implements interface ForgeServer

func (*ForgeServerImpl) FindMachineIds added in v1.3.0

func (*ForgeServerImpl) FindMachinesByIds added in v1.4.0

FindMachinesByIds implements interface ForgeServer

func (*ForgeServerImpl) FindNVLinkLogicalPartitionIds added in v1.4.0

FindNVLinkLogicalPartitionIds

func (*ForgeServerImpl) FindNVLinkLogicalPartitionsByIds added in v1.4.0

FindNVLinkLogicalPartitionsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindNetworkSecurityGroupIds added in v1.4.0

FindNetworkSecurityGroupIds implements interface ForgeServer

func (*ForgeServerImpl) FindNetworkSecurityGroupsByIds added in v1.4.0

FindNetworkSecurityGroupsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindNetworkSegmentIds

FindNetworkSegmentIds implements interface ForgeServer

func (*ForgeServerImpl) FindNetworkSegmentsByIds

FindNetworkSegmentsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindSkusByIds added in v1.4.0

func (f *ForgeServerImpl) FindSkusByIds(ctx context.Context, req *cwssaws.SkusByIdsRequest) (*cwssaws.SkuList, error)

FindSkusByIds implements interface ForgeServer

func (*ForgeServerImpl) FindTenantKeysetIds

FindTenantKeysetIds implements interface ForgeServer

func (*ForgeServerImpl) FindTenantKeysetsByIds

FindTenantKeysetsByIds implements interface ForgeServer

func (*ForgeServerImpl) FindTenantOrganizationIds added in v1.4.0

func (f *ForgeServerImpl) FindTenantOrganizationIds(ctx context.Context, req *cwssaws.TenantSearchFilter) (*cwssaws.TenantOrganizationIdList, error)

FindTenantOrganizationIds implements interface ForgeServer

func (*ForgeServerImpl) FindTenantsByOrganizationIds added in v1.4.0

func (f *ForgeServerImpl) FindTenantsByOrganizationIds(ctx context.Context, req *cwssaws.TenantByOrganizationIdsRequest) (*cwssaws.TenantList, error)

FindTenantsByOrganizationIds implements interface ForgeServer

func (*ForgeServerImpl) FindVpcIds

FindVpcIds implements interface ForgeServer

func (*ForgeServerImpl) FindVpcPeeringIds added in v1.4.0

FindVpcPeeringIds implements interface ForgeServer

func (*ForgeServerImpl) FindVpcPeeringsByIds added in v1.4.0

FindVpcPeeringsByIds 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) GetAllExpectedMachines added in v1.4.0

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

GetAllExpectedMachines implements interface ForgeServer

func (*ForgeServerImpl) GetAllExpectedMachinesLinked added in v1.4.0

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

GetAllExpectedMachinesLinked 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) GetAllExpectedPowerShelvesLinked added in v1.4.0

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

GetAllExpectedPowerShelvesLinked 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) GetAllExpectedSwitchesLinked added in v1.4.0

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

GetAllExpectedSwitchesLinked implements interface ForgeServer

func (*ForgeServerImpl) GetAllSkuIds added in v1.4.0

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

GetAllSkuIds implements interface ForgeServer

func (*ForgeServerImpl) GetExpectedPowerShelf

GetExpectedPowerShelf implements interface ForgeServer

func (*ForgeServerImpl) GetExpectedSwitch

GetExpectedSwitch implements interface ForgeServer

func (*ForgeServerImpl) GetVpcPrefixes added in v1.4.0

GetVpcPrefixes implements interface ForgeServer

func (*ForgeServerImpl) InvokeInstancePower

InvokeInstancePower implements interface ForgeServer

func (*ForgeServerImpl) ListOsImage added in v1.4.0

ListOsImage implements interface ForgeServer

func (*ForgeServerImpl) LoadTestMachines added in v1.3.0

func (f *ForgeServerImpl) LoadTestMachines()

LoadTestMachines loads test machines into the server

func (*ForgeServerImpl) ReleaseInstance

DeleteInstance implements interface ForgeServer

func (*ForgeServerImpl) SearchVpcPrefixes added in v1.4.0

SearchVpcPrefixes 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) UpdateIBPartition added in v1.3.0

UpdateIBPartition 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) AddComponent added in v1.2.0

AddComponent 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) DeleteComponent added in v1.2.0

DeleteComponent 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) PatchComponent added in v1.2.0

PatchComponent 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