diagnostic

package
v0.0.0-...-b8ed415 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	common.Accessory
	ScreenshotRequest          *v1.ScreenshotRequest
	ClearSystemEventLogRequest *v1.ClearSystemEventLogRequest
	SendNMIRequest             *v1.SendNMIRequest
}

func NewNMISender

func NewNMISender(req *v1.SendNMIRequest, opts ...Option) (*Action, error)

func NewScreenshotter

func NewScreenshotter(req *v1.ScreenshotRequest, opts ...Option) (*Action, error)

func NewSystemEventLogClearer

func NewSystemEventLogClearer(req *v1.ClearSystemEventLogRequest, opts ...Option) (*Action, error)

func (Action) ClearSystemEventLog

func (m Action) ClearSystemEventLog(ctx context.Context) (result string, err error)

func (Action) GetScreenshot

func (m Action) GetScreenshot(ctx context.Context) (image []byte, filetype string, err error)

func (Action) SendNMI

func (m Action) SendNMI(ctx context.Context) error

type Option

type Option func(a *Action) error

Option to add to an Actions.

func WithLogger

func WithLogger(l logr.Logger) Option

WithLogger adds a logr to an Action struct.

func WithStatusMessage

func WithStatusMessage(s chan string) Option

WithStatusMessage adds a status message chan to an Action struct.

Jump to

Keyboard shortcuts

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