netq

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginURL    = "api/netq/auth/v1/login"
	OpIdURL     = "api/netq/auth/v1/select/opid"
	TopologyURL = "api/netq/telemetry/v1/object/topologygraph/fetch-topology"
)
View Source
const (
	ComputeURL = "nmx/v1/compute-nodes"
)
View Source
const NAME = "netq"

Variables

This section is empty.

Functions

func Loader

func NamedLoader

func NamedLoader() (string, providers.Loader)

Types

type AuthOutput

type AuthOutput struct {
	AccessToken string     `json:"access_token"`
	Premises    []Premises `json:"premises"`
}

type CNode

type CNode struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Tier int    `json:"tier"`
}

type ComputeNode added in v0.3.0

type ComputeNode struct {
	Id         string `json:"ID"`
	Name       string `json:"Name"`
	DomainUUID string `json:"DomainUUID"`
}

type Credentials

type Credentials struct {
	// contains filtered or unexported fields
}
type Links struct {
	Id string `json:"id"`
}

type NetqResponse

type NetqResponse struct {
	Links []Links `json:"links"`
	Nodes []Nodes `json:"nodes"`
}

type Nodes

type Nodes struct {
	Cnode []CNode `json:"compounded_nodes"`
}

type Premises added in v0.3.0

type Premises struct {
	ConfigKeyViewed bool   `json:"config_key_viewed"`
	Name            string `json:"name"`
	Namespace       string `json:"namespace"`
	OPID            int    `json:"opid"`
}

type Provider

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

func (*Provider) GenerateTopologyConfig

func (p *Provider) GenerateTopologyConfig(ctx context.Context, _ *int, instances []topology.ComputeInstances) (*topology.Vertex, *httperr.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

type ProviderParams

type ProviderParams struct {
	ApiURL string `mapstructure:"apiUrl"`
}

Jump to

Keyboard shortcuts

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