lambdai

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME = "lambdai"
)
View Source
const (
	NAME_SIM = "lambdai-sim"
)

Variables

This section is empty.

Functions

func Loader

func NamedLoader

func NamedLoader() (string, providers.Loader)

func NamedLoaderSim

func NamedLoaderSim() (string, providers.Loader)

func NewSim

func NewSim(clientFactory ClientFactory, trimTiers int) *simProvider

Types

type Client

type Client interface {
	WorkspaceID() string
	InstanceList(context.Context, *InstanceListRequest) (*InstanceListResponse, error)
	PageSize() int
}

type ClientFactory

type ClientFactory func(pageSize *int) (Client, error)

type InstanceListRequest

type InstanceListRequest struct {
	PageSize  int
	PageToken string
}

type InstanceListResponse

type InstanceListResponse struct {
	Items         []InstanceTopology
	NextPageToken string
}

type InstanceTopology

type InstanceTopology struct {
	ID          string      `json:"id"`
	NetworkPath []string    `json:"networkPath"`
	NVLink      *NVLinkInfo `json:"nvlink,omitempty"`
}

InstanceTopology represents the topology of a single instance.

type NVLinkInfo

type NVLinkInfo struct {
	DomainID string `json:"domain_id,omitempty"`
	CliqueID string `json:"clique_id,omitempty"`
}

NVLinkInfo represents NVLink domain information.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(clientFactory ClientFactory, trimTiers int) *Provider

func (*Provider) GenerateTopologyConfig

func (p *Provider) GenerateTopologyConfig(ctx context.Context, pageSize *int, instances []topology.ComputeInstances) (*topology.Graph, *httperr.Error)

Jump to

Keyboard shortcuts

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