nebius

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IMDSPath       = "/mnt/cloud-metadata/"
	IMDSParentID   = IMDSPath + "parent-id"
	IMDSRegionPath = IMDSPath + "region-name"

	MACCmd = "" /* 163-byte string literal not displayed */
)
View Source
const (
	NAME = "nebius"
)
View Source
const (
	NAME_SIM = "nebius-sim"
)

Variables

This section is empty.

Functions

func GetNodeAnnotations

func GetNodeAnnotations(ctx context.Context) (map[string]string, error)

func Loader

func Loader(ctx context.Context, config providers.Config) (providers.Provider, error)

func LoaderSim

func LoaderSim(ctx context.Context, cfg providers.Config) (providers.Provider, error)

func NamedLoader

func NamedLoader() (string, providers.Loader)

func NamedLoaderSim

func NamedLoaderSim() (string, providers.Loader)

func NewSim

func NewSim(factory ClientFactory) *simProvider

Types

type Client

type Client interface {
	ProjectID() string
	GetComputeInstanceList(context.Context, *compute.ListInstancesRequest) (*compute.ListInstancesResponse, error)
	PageSize() int64
}

type ClientFactory

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

type Provider

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

func New

func New(clientFactory ClientFactory) *Provider

func (*Provider) GenerateTopologyConfig

func (p *Provider) GenerateTopologyConfig(ctx context.Context, pageSize *int, instances []topology.ComputeInstances) (*topology.Vertex, error)

func (*Provider) GetInstancesRegions

func (p *Provider) GetInstancesRegions(ctx context.Context, nodes []string) (map[string]string, error)

GetInstancesRegions implements slurm.instanceMapper

func (*Provider) Instances2NodeMap

func (p *Provider) Instances2NodeMap(ctx context.Context, nodes []string) (map[string]string, error)

Instances2NodeMap implements slurm.instanceMapper

Jump to

Keyboard shortcuts

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