Documentation
¶
Index ¶
- Constants
- func GetNodeAnnotations(ctx context.Context) (map[string]string, error)
- func Loader(ctx context.Context, config providers.Config) (providers.Provider, *httperr.Error)
- func LoaderSim(ctx context.Context, cfg providers.Config) (providers.Provider, *httperr.Error)
- func NamedLoader() (string, providers.Loader)
- func NamedLoaderSim() (string, providers.Loader)
- func NewSim(factory ClientFactory, trimTiers int) *simProvider
- type Client
- type ClientFactory
- type Provider
- func (p *Provider) GenerateTopologyConfig(ctx context.Context, pageSize *int, instances []topology.ComputeInstances) (*topology.Vertex, *httperr.Error)
- func (p *Provider) GetInstancesRegions(ctx context.Context, nodes []string) (map[string]string, error)
- func (p *Provider) Instances2NodeMap(ctx context.Context, nodes []string) (map[string]string, error)
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 NamedLoader ¶
func NamedLoaderSim ¶
func NewSim ¶
func NewSim(factory ClientFactory, trimTiers int) *simProvider
Types ¶
type Client ¶
type Client interface {
ProjectID() string
GetComputeInstanceList(context.Context, *compute.ListInstancesRequest) (*compute.ListInstancesResponse, error)
PageSize() int64
}
type ClientFactory ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func New ¶
func New(clientFactory ClientFactory, trimTiers int) *Provider
func (*Provider) GenerateTopologyConfig ¶
Click to show internal directories.
Click to hide internal directories.