modmanagement

package
v0.4.22 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: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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