cw

package
v0.0.0-...-10ac0cf Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "cw"

Variables

This section is empty.

Functions

func Loader

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

func NamedLoader

func NamedLoader() (string, providers.Loader)

Types

type Provider

type Provider struct{}

func New

func New() (*Provider, error)

func (*Provider) GenerateTopologyConfig

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

func (*Provider) GetComputeInstancesRegion

func (p *Provider) GetComputeInstancesRegion() (string, error)

GetComputeInstancesRegion implements slurm.instanceMapper

func (*Provider) GetNodeInstance

func (p *Provider) GetNodeInstance(node *v1.Node) (string, error)

GetNodeInstance implements k8s.k8sNodeInfo

func (*Provider) GetNodeRegion

func (p *Provider) GetNodeRegion(node *v1.Node) (string, error)

GetNodeRegion implements k8s.k8sNodeInfo

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