registry

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Overview

Package registry is a registry of OS support modules

Index

Constants

This section is empty.

Variables

View Source
var ErrOSModuleNotFound = errors.New("os support module not found")

ErrOSModuleNotFound is returned when no suitable OS support module is found

Functions

func RegisterOSModule

func RegisterOSModule(mf matchFunc, bf BuildFunc)

RegisterOSModule registers a OS support module into rig's registry

Types

type BuildFunc added in v0.3.25

type BuildFunc = func() any

BuildFunc is a function that builds an OS module instance.

func GetOSModuleBuilder

func GetOSModuleBuilder(osv rig.OSVersion) (BuildFunc, error)

GetOSModuleBuilder returns a suitable OS support module from rig's registry

Jump to

Keyboard shortcuts

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