bioscfg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, configFile, logLevel string, enableProfiling bool) error

Types

type BiosCfg

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

BiosCfg BiosCfg Controller Struct

func New

func New(ctx context.Context, cfg *config.Configuration, logger *logrus.Entry) (*BiosCfg, error)

New create a new BiosCfg Controller

func (*BiosCfg) Listen

func (bc *BiosCfg) Listen(ctx context.Context) error

Listen listen to Nats for tasks

type Task

func NewTask

func NewTask(task *rctypes.Task[any, any]) (*Task, error)

func (*Task) ToGeneric

func (task *Task) ToGeneric() (*rctypes.Task[any, any], error)

type TaskHandler

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

func (*TaskHandler) HandleTask

func (th *TaskHandler) HandleTask(ctx context.Context, genTask *rctypes.Task[any, any], publisher ctrl.Publisher) error

func (*TaskHandler) ResetBios

func (th *TaskHandler) ResetBios(ctx context.Context) error

ResetBios reset the bios of the server

func (*TaskHandler) Run

func (th *TaskHandler) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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