Versions in this module Expand all Collapse all v0 v0.2.1 Jan 7, 2025 v0.2.0 Jan 7, 2025 Changes in this version type Target + Plugin string v0.1.1 Nov 15, 2024 v0.1.0 Oct 2, 2024 Changes in this version + func FetchPublicKeyFromURL(url string) (*jwtauth.JWTAuth, error) + func LoadAccessToken() + func NewParams() util.Params + func SaveDefaultConfig(path string) + func VerifyScope(testScopes []string, r *http.Request) (bool, error) + func WithVerbosity() util.Option + type BMC struct + type ClientOption func(*SmdClient) + func WithAccessToken(token string) ClientOption + func WithCertPool(certPool *x509.CertPool) ClientOption + func WithCertPoolFile(certPath string) ClientOption + func WithHost(host string) ClientOption + func WithPort(port int) ClientOption + type Component struct + Arch string + Class string + Enabled *bool + Flag string + ID string + Locked bool + NID json.Number + NetType string + ReservationDisabled bool + Role string + State string + SubRole string + Subtype string + SwStatus string + Type string + type Config struct + AccessToken string + CertPath string + Options Options + PluginDirs []string + Server Server + SmdClient SmdClient + Targets map[string]Target + Version string + func LoadConfig(path string) Config + func NewConfig() Config + func (config *Config) SaveConfig(path string) + type EthernetInterface struct + ComponentId string + Description string + Id string + IpAddresses []IPAddr + LastUpdate string + MacAddress string + Type string + type IPAddr struct + IpAddress string + Network string + type Jwks struct + Retries int + Uri string + type Node struct + type Options struct + type RedfishEndpoint struct + Domain string + Enabled bool + FQDN string + Hostname string + ID string + IPAddr string + MACAddr string + MACRequired bool + Name string + Password string + Type string + UUID string + UseSSDP bool + User string + type Server struct + Host string + Jwks Jwks + Port int + type SmdClient struct + AccessToken string + Host string + Port int + func NewSmdClient(opts ...ClientOption) SmdClient + func (client *SmdClient) FetchComponents(opts ...util.Option) ([]Component, error) + func (client *SmdClient) FetchEthernetInterfaces(opts ...util.Option) ([]EthernetInterface, error) + func (client *SmdClient) FetchRedfishEndpoints(opts ...util.Option) ([]RedfishEndpoint, error) + type Target struct + FilePaths []string + PluginPath string + RunTargets []string + TemplatePaths []string v0.1.0-alpha Aug 27, 2024