Documentation ¶
Overview ¶
Package persistencemode tracks the NVIDIA persistence mode.
Index ¶
Constants ¶
View Source
const ( StateNamePersistenceMode = "persistence_mode" StateKeyPersistenceModeData = "data" StateKeyPersistenceModeEncoding = "encoding" StateValueMemoryUsageEncodingJSON = "json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct { PersistencedExists bool `json:"persistenced_exists"` PersistencedRunning bool `json:"persistenced_running"` PersistenceModesSMI []nvidia_query.SMIGPUPersistenceMode `json:"persistence_modes_smi"` PersistenceModesNVML []nvidia_query_nvml.PersistenceMode `json:"persistence_modes_nvml"` }
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
func ToOutput ¶
func ToOutput(i *nvidia_query.Output) *Output
ToOutput converts nvidia_query.Output to Output. It returns an empty non-nil object, if the input or the required field is nil (e.g., i.SMI).
Click to show internal directories.
Click to hide internal directories.