model

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(slice []string, val string) (int, bool)

func NewInvalidInputError

func NewInvalidInputError(Message string, CompIDs []string) (err error)

func RemoveDuplicateStrings added in v1.9.6

func RemoveDuplicateStrings(stringSlice []string) []string

func StringSliceEquals

func StringSliceEquals(obj []string, other []string) bool

func UUIDSliceEquals

func UUIDSliceEquals(obj []uuid.UUID, other []uuid.UUID) bool

Types

type DeviceFirmwareVersion

type DeviceFirmwareVersion struct {
	Version         string `json:"Version"`
	BiosVersion     string `json:"BiosVersion"`
	FirmwareVersion string `json:"FirmwareVersion"`
	SoftwareId      string `json:"softwareId"`
	Name            string `json:"name"`
}

type IDList

type IDList struct {
	IDs []uuid.UUID `json:"ids"`
}

type IDResp

type IDResp struct {
	ID uuid.UUID `json:"id"`
}

type Passback

type Passback struct {
	StatusCode int
	Obj        interface{}
	Error      Problem7807
	IsError    bool
}

func BuildErrorPassback

func BuildErrorPassback(StatusCode int, Err error) (passback Passback)

func BuildSuccessPassback

func BuildSuccessPassback(StatusCode int, Obj interface{}) (passback Passback)

type Problem7807

type Problem7807 struct {
	Type_    string `json:"type"`
	Detail   string `json:"detail,omitempty"`
	Instance string `json:"instance,omitempty"`
	Status   int    `json:"status,omitempty"`
	Title    string `json:"title,omitempty"`
}

RFC 7807 compliant error payload. All fields are optional except the 'type' field.

func GetFormattedErrorMessage

func GetFormattedErrorMessage(err error, code int) Problem7807

func (Problem7807) Equals

func (obj Problem7807) Equals(other Problem7807) (equal bool)
type TaskLink struct {
	Link string `json:"@odata.id"`
}

Task link is returned from a call to iLO firmware update request

type TaskStateStatus

type TaskStateStatus struct {
	TaskState  string `json:"TaskState"`
	TaskStatus string `json:"TaskStatus"`
}

Task State / Status from iLO task

type UpdateInfo

type UpdateInfo struct {
	FlashPercentage string `json:FlashPercentage`
	UpdateStatus    string `json:UpdateStatus`
	UpdateTarget    string `json:UpdateTarget`
}

Update Info - Valuable data from Gigabyte update information structure

type UpdateInformation

type UpdateInformation struct {
	Oem struct {
		AMIUpdateService struct {
			UpdateInformation struct {
				FlashPercentage string `json:FlashPercentage`
				UpdateStatus    string `json:UpdateStatus`
				UpdateTarget    string `json:UpdateTarget`
			}
		}
	}
}

Update Information from a Gigabyte update

Jump to

Keyboard shortcuts

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