caddymodule

package
v0.0.0-...-62e798e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallPlugin

func InstallPlugin(packages ...string) error

func RemovePlugin

func RemovePlugin(packages ...string) error

Types

type Module

type Module struct {
	Name    string `json:"name"`
	Package string `json:"package"`
	Repo    string `json:"repo"`
}

type ModuleList

type ModuleList struct {
	Standard    map[string][]string `json:"standard"`
	NonStandard map[string][]string `json:"nonStandard"`
	Unknown     map[string][]string `json:"unknown"`
}

func GetModuleList

func GetModuleList() (*ModuleList, error)

func (*ModuleList) HasNonStandardModule

func (m *ModuleList) HasNonStandardModule(module string) bool

func (*ModuleList) HasPackage

func (m *ModuleList) HasPackage(pkg string) bool

type PluginInfo

type PluginInfo struct {
	ID        string    `json:"id"`
	Path      string    `json:"path"`
	Published time.Time `json:"published"`
	Updated   time.Time `json:"updated"`
	Listed    bool      `json:"listed"`
	Available bool      `json:"available"`
	Downloads int       `json:"downloads"`
	Modules   []*Module `json:"modules"`
	Repo      string    `json:"repo"`
}

func GetOfficialPluginList

func GetOfficialPluginList() ([]*PluginInfo, error)

Jump to

Keyboard shortcuts

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