configurator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchPublicKeyFromURL

func FetchPublicKeyFromURL(url string) (*jwtauth.JWTAuth, error)

func LoadAccessToken

func LoadAccessToken()

func VerifyScope

func VerifyScope(testScopes []string, r *http.Request) (bool, error)

Types

type BMC

type BMC struct {
}

type Component

type Component struct {
	ID                  string      `json:"ID"`
	Type                string      `json:"Type"`
	State               string      `json:"State,omitempty"`
	Flag                string      `json:"Flag,omitempty"`
	Enabled             *bool       `json:"Enabled,omitempty"`
	SwStatus            string      `json:"SoftwareStatus,omitempty"`
	Role                string      `json:"Role,omitempty"`
	SubRole             string      `json:"SubRole,omitempty"`
	NID                 json.Number `json:"NID,omitempty"`
	Subtype             string      `json:"Subtype,omitempty"`
	NetType             string      `json:"NetType,omitempty"`
	Arch                string      `json:"Arch,omitempty"`
	Class               string      `json:"Class,omitempty"`
	ReservationDisabled bool        `json:"ReservationDisabled,omitempty"`
	Locked              bool        `json:"Locked,omitempty"`
}

type EthernetInterface

type EthernetInterface struct {
	Id          string
	Description string
	MacAddress  string
	LastUpdate  string
	ComponentId string
	Type        string
	IpAddresses []IPAddr
}

type IPAddr

type IPAddr struct {
	IpAddress string `json:"IPAddress"`
	Network   string `json:"Network"`
}

type Node

type Node struct {
}

type RedfishEndpoint

type RedfishEndpoint struct {
	ID          string `json:"ID"`
	Type        string `json:"Type"`
	Name        string `json:"Name,omitempty"` // user supplied descriptive name
	Hostname    string `json:"Hostname"`
	Domain      string `json:"Domain"`
	FQDN        string `json:"FQDN"`
	Enabled     bool   `json:"Enabled"`
	UUID        string `json:"UUID,omitempty"`
	User        string `json:"User"`
	Password    string `json:"Password"` // Temporary until more secure method
	UseSSDP     bool   `json:"UseSSDP,omitempty"`
	MACRequired bool   `json:"MACRequired,omitempty"`
	MACAddr     string `json:"MACAddr,omitempty"`
	IPAddr      string `json:"IPAddress,omitempty"`
}

type Target

type Target struct {
	Plugin        string   `yaml:"plugin,omitempty"`    // Set the plugin or it's path
	TemplatePaths []string `yaml:"templates,omitempty"` // Set the template paths
	FilePaths     []string `yaml:"files,omitempty"`     // Set the file paths
	RunTargets    []string `yaml:"targets,omitempty"`   // Set additional targets to run
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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