slsapi

package
v2.11.17 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSlsUrl string = "http://cray-sls/"

Variables

This section is empty.

Functions

This section is empty.

Types

type ComptypeNode

type ComptypeNode struct {
	NID     int    `json:"NID,omitempty"`
	Role    string `json:"Role"`
	SubRole string `json:"SubRole"`
}

type NodeHardware

type NodeHardware struct {
	Parent          string       `json:"Parent"`
	Children        []string     `json:"Children"`
	Xname           string       `json:"Xname"`
	Type            string       `json:"Type"`
	Class           string       `json:"Class"`
	TypeString      base.HMSType `json:"TypeString"`
	ExtraProperties ComptypeNode `json:"ExtraProperties"`
}

type NodeInfo

type NodeInfo struct {
	NID     int    `json:"NID,omitempty"`
	Role    string `json:"Role"`
	SubRole string `json:"SubRole"`
	Class   string `json:"Class"`
}

type SLS

type SLS struct {
	Url    *url.URL
	Client *retryablehttp.Client
}

func NewSLS

func NewSLS(slsUrl string, httpClient *retryablehttp.Client, svcName string) *SLS

Allocate and initialize new SLS struct.

func (*SLS) GetNodeInfo

func (sls *SLS) GetNodeInfo(id string) (NodeInfo, error)

Query SLS for node information. This just picks up the ExtraProperties struct for nodes from SLS.

func (*SLS) IsReady

func (sls *SLS) IsReady() (bool, error)

Ping SLS to see if it is ready.

Jump to

Keyboard shortcuts

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