modmanagement

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

Example usage of the mod_management API

client, err := modmanagement.NewClient(modmanagement.ModManagementClientOpts{})
if err != nil {
    log.Fatal(err)
}
client, err := modmanagement.NewClient(modmanagement.ModManagementClientOpts{
    Port: lo.ToPtr(8080),
})
if err != nil {
    log.Fatal(err)
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDataInResponse = fmt.Errorf("no data in response")
	ErrModuleNoInStore  = fmt.Errorf("module not in store")
)

Functions

func RequireModule added in v0.4.15

func RequireModule(name string, runtimePath string) error

Types

type ModManagementClient

type ModManagementClient struct {
	Client *mod_management.ClientWithResponses
}

func (*ModManagementClient) InstallModule

func (c *ModManagementClient) InstallModule(name string) error

func (*ModManagementClient) InstallModuleAsync added in v0.4.15

func (c *ModManagementClient) InstallModuleAsync(name string) error

func (*ModManagementClient) InstallableModules

func (c *ModManagementClient) InstallableModules() ([]mod_management.RemoteModule, error)

func (*ModManagementClient) InstalledModules

func (c *ModManagementClient) InstalledModules() ([]mod_management.Module, error)

func (*ModManagementClient) UninstallModule

func (c *ModManagementClient) UninstallModule(name string) error

type ModManagementClientOpts

type ModManagementClientOpts struct {
	Port *int
}

Jump to

Keyboard shortcuts

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