common

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package common contains common types and functions used across multiple components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepairActionType

type RepairActionType string
const (
	// RepairActionTypeRebootSystem represents a suggested action to reboot the system.
	// Specific to NVIDIA GPUs, this implies GPU reset by rebooting the system.
	RepairActionTypeRebootSystem RepairActionType = "REBOOT_SYSTEM"

	// RepairActionTypeRepairHardware represents a suggested action to repair the hardware, externally.
	// This often involves data center (or cloud provider) support to physically check/repair the machine.
	RepairActionTypeRepairHardware RepairActionType = "REPAIR_HARDWARE"
)

type SuggestedActions

type SuggestedActions struct {
	// A list of repair actions to mitigate the issue.
	RepairActions []RepairActionType `json:"repair_actions"`

	// A list of descriptions for the suggested actions.
	Descriptions []string `json:"descriptions"`
}

SuggestedActions represents a set of suggested actions to mitigate an issue.

func (*SuggestedActions) Add

func (s *SuggestedActions) Add(other *SuggestedActions)

func (*SuggestedActions) RequiresReboot

func (s *SuggestedActions) RequiresReboot() bool

func (*SuggestedActions) RequiresRepair

func (s *SuggestedActions) RequiresRepair() bool

Jump to

Keyboard shortcuts

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