Documentation
¶
Index ¶
- Constants
- func Loader(ctx context.Context, config providers.Config) (providers.Provider, *httperr.Error)
- func LoaderSim(_ context.Context, cfg providers.Config) (providers.Provider, *httperr.Error)
- func NamedLoader() (string, providers.Loader)
- func NamedLoaderSim() (string, providers.Loader)
- func NewSim(clientFactory ClientFactory, trimTiers int) *simProvider
- type Client
- type ClientFactory
- type InstanceListRequest
- type InstanceListResponse
- type InstanceTopology
- type NVLinkInfo
- type Provider
Constants ¶
View Source
const (
NAME = "lambdai"
)
View Source
const (
NAME_SIM = "lambdai-sim"
)
Variables ¶
This section is empty.
Functions ¶
func NamedLoader ¶
func NamedLoaderSim ¶
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 InstanceListRequest ¶
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.
Click to show internal directories.
Click to hide internal directories.