guest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadProcessor

func DownloadProcessor(processor string, processorDir string) error

func KnownProcessors

func KnownProcessors() map[string]ProcessorFile

func ProcessorExists

func ProcessorExists(processorFile string) bool

ProcessorExists checks if the processor file name with full path exists.

func ProcessorFilename

func ProcessorFilename(processor, processorDir string) string

ProcessorFilename returns the full path to the processor file. It checks if the processor is a well-known processor or if it exists in the specified processor directory. If it is a well-known processor, it returns the path to the processor file in the processor directory. If it is not a well-known processor, it returns the processor file name as is.

func ProcessorWellKnown

func ProcessorWellKnown(processor string) bool

ProcessorWellKnown checks if the processor is a well-known processor. A well-known processor is one that is listed in the knownProcessors map. It returns true if the processor is well-known, false otherwise.

Types

type Module

type Module struct {
	api.Module
	ReturnDataPtr uint32
}

func NewModule

func NewModule(ctx context.Context, m api.Module) Module

NewModule creates a new GuestModule.

type ProcessorFile

type ProcessorFile struct {
	Alias       string
	Filename    string
	Description string
}

Jump to

Keyboard shortcuts

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