redfish

package
v1.19.2-redfish.preview.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package redfish implements the Redfish component for DMT.

Index

Constants

This section is empty.

Variables

View Source
var ErrDevicesCastFailed = errors.New("failed to cast devices use case")

ErrDevicesCastFailed is returned when the devices use case cannot be cast to the expected type.

Functions

func Initialize

func Initialize(_ *gin.Engine, log logger.Interface, _ *db.SQL, usecases *dmtusecase.Usecases, config *dmtconfig.Config) error

Initialize initializes the Redfish component with DMT infrastructure.

func RegisterRoutes

func RegisterRoutes(router *gin.Engine, _ logger.Interface) error

RegisterRoutes registers Redfish API routes.

Types

type ComponentConfig

type ComponentConfig struct {
	Enabled      bool   `yaml:"enabled" env:"REDFISH_ENABLED"`
	AuthRequired bool   `yaml:"auth_required" env:"REDFISH_AUTH_REQUIRED"`
	BaseURL      string `yaml:"base_url" env:"REDFISH_BASE_URL"`
}

ComponentConfig holds component-specific configuration.

Directories

Path Synopsis
internal
controller/http/v1/generated
Package generated provides primitives to interact with the openapi HTTP API.
Package generated provides primitives to interact with the openapi HTTP API.
controller/http/v1/handler
Package v1 provides Redfish-compliant error handling utilities.
Package v1 provides Redfish-compliant error handling utilities.
entity
Package entity defines the Session data model for Redfish SessionService
Package entity defines the Session data model for Redfish SessionService
entity/v1
Package redfish provides entity definitions for Redfish computer systems.
Package redfish provides entity definitions for Redfish computer systems.
infrastructure/sessions
Package sessions provides infrastructure implementations for session storage
Package sessions provides infrastructure implementations for session storage
mocks
Package mocks provides mock implementations for testing.
Package mocks provides mock implementations for testing.
usecase
Package usecase provides interfaces for accessing Redfish computer system data.
Package usecase provides interfaces for accessing Redfish computer system data.
usecase/sessions
Package sessions provides session management use cases for Redfish SessionService
Package sessions provides session management use cases for Redfish SessionService

Jump to

Keyboard shortcuts

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