Documentation ¶
Index ¶
- func Tech(k string, logger util.Logger) (string, string, string)
- type Module
- type Modules
- type Resolution
- type Resolutions
- type Result
- type Results
- type Service
- func (s *Service) AddIfNeeded(ctx context.Context, key string, path string, url string, logger util.Logger) (Modules, bool, error)
- func (s *Service) AssetURL(ctx context.Context, key string, logger util.Logger) (string, error)
- func (s *Service) ConfigDirectory() string
- func (s *Service) Dangerous() []string
- func (s *Service) Deps() map[string][]string
- func (s *Service) Download(_ context.Context, key string, url string, logger util.Logger) error
- func (s *Service) Get(key string) (*Module, error)
- func (s *Service) GetFilenames(mods Modules, logger util.Logger) ([]string, error)
- func (s *Service) GetFiles(mods Modules, isPrivate bool, logger util.Logger) (file.Files, error)
- func (s *Service) GetFilesystem(key string) filesystem.FileLoader
- func (s *Service) GetModules(keys ...string) (Modules, error)
- func (s *Service) Keys() []string
- func (s *Service) Load(ctx context.Context, key string, url string, logger util.Logger) (Modules, error)
- func (s *Service) LoadNative(ctx context.Context, logger util.Logger, keys ...string) (Modules, error)
- func (s *Service) Modules() Modules
- func (s *Service) ModulesSorted() Modules
- func (s *Service) ModulesVisible() Modules
- func (s *Service) Register(ctx context.Context, root string, key string, path string, u string, ...) ([]string, error)
- func (s *Service) Search(_ context.Context, q string, _ util.Logger) (result.Results, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶
type Module struct { Key string `json:"-"` Name string `json:"name,omitempty"` Icon string `json:"icon,omitempty"` Description string `json:"description,omitempty"` Hidden bool `json:"hidden,omitempty"` AuthorName string `json:"authorName,omitempty"` AuthorEmail string `json:"authorEmail,omitempty"` License string `json:"license,omitempty"` Sourcecode string `json:"sourcecode,omitempty"` ConfigVars util.KeyTypeDescs `json:"configVars,omitempty"` PortOffsets map[string]int `json:"portOffsets,omitempty"` Dangerous bool `json:"dangerous,omitempty"` Requires []string `json:"requires,omitempty"` Priority int `json:"priority,omitempty"` Technology []string `json:"technology,omitempty"` Files filesystem.FileLoader `json:"-"` URL string `json:"-"` UsageMD string `json:"-"` }
func (*Module) FeaturesFilePath ¶ added in v1.0.16
func (*Module) FeaturesPath ¶ added in v1.0.16
type Resolution ¶
type Resolution struct { Title string `json:"title"` Project string `json:"project"` Action string `json:"action"` Args map[string]string `json:"args,omitempty"` }
func (*Resolution) URL ¶
func (r *Resolution) URL() string
type Resolutions ¶
type Resolutions []*Resolution
type Result ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AddIfNeeded ¶
func (*Service) ConfigDirectory ¶ added in v0.10.25
func (*Service) GetFilenames ¶
func (*Service) GetFilesystem ¶
func (s *Service) GetFilesystem(key string) filesystem.FileLoader
func (*Service) LoadNative ¶
func (*Service) ModulesSorted ¶ added in v1.3.1
func (*Service) ModulesVisible ¶ added in v1.3.1
Click to show internal directories.
Click to hide internal directories.