Documentation
¶
Index ¶
- Variables
- func RequireModule(name string, runtimePath string) error
- type ModManagementClient
- func (c *ModManagementClient) InstallModule(name string) error
- func (c *ModManagementClient) InstallModuleAsync(name string) error
- func (c *ModManagementClient) InstallableModules() ([]mod_management.RemoteModule, error)
- func (c *ModManagementClient) InstalledModules() ([]mod_management.Module, error)
- func (c *ModManagementClient) UninstallModule(name string) error
- type ModManagementClientOpts
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
Types ¶
type ModManagementClient ¶
type ModManagementClient struct {
Client *mod_management.ClientWithResponses
}
func NewClient ¶
func NewClient(opts ModManagementClientOpts) (*ModManagementClient, error)
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
}
Click to show internal directories.
Click to hide internal directories.