Versions in this module Expand all Collapse all v1 v1.4.8 Aug 10, 2026 Changes in this version + var ErrEmptyID = errors.New("empty id") + var ErrUnmarshal = errors.New("cannot unmarshal JSON") + func AddNodeToInventoryHandler(f *FakeSMDClient) http.HandlerFunc + func ListNodesHandler(f *FakeSMDClient) http.HandlerFunc + func UpdateNodeHandler(f *FakeSMDClient) http.HandlerFunc + type ErrSMDResponse struct + HTTPResponse *http.Response + func (esr ErrSMDResponse) Error() string + type FakeSMDClient struct + func NewFakeSMDClient(clusterName string, count int) *FakeSMDClient + func (f *FakeSMDClient) AddNodeToGroups(id string, groups []string) error + func (f *FakeSMDClient) AddNodeToInventory(node cistore.OpenCHAMIComponent) error + func (f *FakeSMDClient) AddWGIP(id string, wgip string) error + func (f *FakeSMDClient) ClusterName() string + func (f *FakeSMDClient) ComponentInformation(id string) (base.Component, error) + func (f *FakeSMDClient) ComponentInformationWithRetry(id string, maxRetries int) (base.Component, error) + func (f *FakeSMDClient) GroupMembership(id string) ([]string, error) + func (f *FakeSMDClient) IDfromIP(ipaddr string) (string, error) + func (f *FakeSMDClient) IDfromMAC(mac string) (string, error) + func (f *FakeSMDClient) IPfromID(id string) (string, error) + func (f *FakeSMDClient) ListMemberships() []sm.Membership + func (f *FakeSMDClient) ListNodes() []cistore.OpenCHAMIComponent + func (f *FakeSMDClient) MACfromID(id string) (string, error) + func (f *FakeSMDClient) PopulateNodes() + func (f *FakeSMDClient) Summary() + func (f *FakeSMDClient) UpdateNode(node cistore.OpenCHAMIComponent) error + func (f *FakeSMDClient) WGIPfromID(id string) (string, error) + type NodeInterface struct + Desc string + IP string + MAC string + WGIP string + type NodeMapping struct + Groups []string + Interfaces []NodeInterface + Xname string + type OpenCHAMINodeWithGroups struct + Groups []string + type SMDClient struct + func NewSMDClient(clusterName, baseurl, jwtURL, accessToken, certPath string, insecure bool) (*SMDClient, error) + func (s *SMDClient) AddWGIP(id string, wgip string) error + func (s *SMDClient) ClusterName() string + func (s *SMDClient) ComponentInformation(id string) (base.Component, error) + func (s *SMDClient) ComponentInformationWithRetry(id string, maxRetries int) (base.Component, error) + func (s *SMDClient) GroupMembership(id string) ([]string, error) + func (s *SMDClient) IDfromIP(ipaddr string) (string, error) + func (s *SMDClient) IDfromMAC(mac string) (string, error) + func (s *SMDClient) IPfromID(id string) (string, error) + func (s *SMDClient) MACfromID(id string) (string, error) + func (s *SMDClient) PopulateNodes() + func (s *SMDClient) RefreshCache() + func (s *SMDClient) RefreshToken() error + func (s *SMDClient) StopCacheRefresh() + func (s *SMDClient) WGIPfromID(id string) (string, error) + type SMDClientInterface interface + AddWGIP func(id string, wgip string) error + ClusterName func() string + ComponentInformation func(id string) (base.Component, error) + ComponentInformationWithRetry func(id string, maxRetries int) (base.Component, error) + GroupMembership func(id string) ([]string, error) + IDfromIP func(ipaddr string) (string, error) + IDfromMAC func(mac string) (string, error) + IPfromID func(id string) (string, error) + MACfromID func(id string) (string, error) + PopulateNodes func() + WGIPfromID func(id string) (string, error) + type SMDRosettaStone struct + BootIPAddress string + BootMAC string + ComponentID string + Hostname string + NID string + WGIPAddress string