Documentation
¶
Index ¶
- func DefaultDockPins() []string
- func DockPinsPath(home string) string
- func LoadDockPins(home string, defaults []string) []string
- func SaveDockPins(home string, pins []string) error
- func SupportsExtension(entry Entry, ext string) bool
- func ToggleDockPin(home, id string, defaults []string) (bool, error)
- type DiscoverOptions
- type Entry
- type Manifest
- type ManifestAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDockPins ¶
func DefaultDockPins() []string
func DockPinsPath ¶
func LoadDockPins ¶
func SaveDockPins ¶
func SupportsExtension ¶
Types ¶
type DiscoverOptions ¶
type Entry ¶
type Entry struct {
ID string
Name string
Description string
ExecPath string
IconName string
IconPath string
RootDir string
DirName string
Hidden bool
Dock bool
Background bool
Actions []ManifestAction
SupportExtensions []string
}
func Discover ¶
func Discover(opts DiscoverOptions) []Entry
type Manifest ¶
type Manifest struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon,omitempty"`
Hidden bool `json:"hidden,omitempty"`
Dock bool `json:"dock,omitempty"`
Background bool `json:"background,omitempty"`
Actions []ManifestAction `json:"actions,omitempty"`
SupportExtensions []string `json:"support_extensions,omitempty"`
Extensions []string `json:"extensions,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.