redfish

package
v0.0.0-...-50eac8c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BootSourceCD                BootSourceOverrideTarget  = "Cd"
	BootSourcePXE               BootSourceOverrideTarget  = "Pxe"
	BootSourceEnabledContinuous BootSourceOverrideEnabled = "Continuous"
	BootSourceEnabledDisabled   BootSourceOverrideEnabled = "Disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BootSourceOverrideEnabled

type BootSourceOverrideEnabled string

type BootSourceOverrideTarget

type BootSourceOverrideTarget string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c ClientConfig) *Client

func (*Client) Get

func (s *Client) Get(url string, target interface{}) error

func (*Client) GetManagerById

func (s *Client) GetManagerById(id string) (manager Manager, err error)

func (*Client) GetSystem

func (s *Client) GetSystem(url string) (*System, error)

func (*Client) GetSystems

func (s *Client) GetSystems() ([]System, error)

func (*Client) Patch

func (s *Client) Patch(url string, patch interface{}) error

func (*Client) Post

func (s *Client) Post(url string, body interface{}) error

type ClientConfig

type ClientConfig struct {
	URL     string
	Logger  *logr.Logger
	Context *context.Context
}

type ComputerSystemBoot

type ComputerSystemBoot struct {
	BootSourceOverrideEnabled               string   `json:"BootSourceOverrideEnabled"`
	BootSourceOverrideTarget                string   `json:"BootSourceOverrideTarget"`
	BootSourceOverrideTargetAllowableValues []string `json:"BootSourceOverrideTarget@Redfish.AllowableValues"`
}
type ComputerSystemLinks struct {
	Chassis   []OdataId `json:"Chassis"`
	ManagedBy []OdataId `json:"ManagedBy"`
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func (*Manager) InsertVirtualMedia

func (s *Manager) InsertVirtualMedia(mt MediaType, image string) (err error)

type MediaType

type MediaType string
const MediaTypeCD MediaType = "CD"

type OdataId

type OdataId struct {
	Id string `json:"@odata.id"`
}

type ResetBody

type ResetBody struct {
	ResetType ResetType `json:"ResetType"`
}

type ResetType

type ResetType string
const (
	ResetForceRestart ResetType = "ForceRestart"
	ResetForceOn      ResetType = "ForceOn"
	ResetForceOff     ResetType = "ForceOff"
)

type System

type System struct {
	Name string
	UUID string
	Boot bootStructOverrideBoot
	// contains filtered or unexported fields
}

func (*System) InsertVirtualMedia

func (s *System) InsertVirtualMedia(mt MediaType, image string) error

func (*System) Reset

func (s *System) Reset(rt ResetType) error

func (*System) SetBootSourceOverride

func (s *System) SetBootSourceOverride(target BootSourceOverrideTarget, enabled BootSourceOverrideEnabled) error

func (*System) String

func (s *System) String() string

Jump to

Keyboard shortcuts

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