Documentation ¶
Index ¶
- func ExtractManifest(entrypoint string) (types.Manifest, error)
- func IsRemoteExtension(origin string) bool
- func SHA1(input string) string
- type Config
- type Extension
- func (ext Extension) CheckRequirements() error
- func (e Extension) Cmd(input types.Payload) (*exec.Cmd, error)
- func (e Extension) CmdContext(ctx context.Context, input types.Payload) (*exec.Cmd, error)
- func (e Extension) Command(name string) (types.CommandSpec, bool)
- func (ext Extension) Output(input types.Payload) ([]byte, error)
- func (e Extension) Root() []types.RootItem
- func (e Extension) Run(input types.Payload) error
- type ExtensionMap
- type ExtensionType
- type Hooks
- type Metadata
- type Preferences
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRemoteExtension ¶
Types ¶
type Config ¶
type Config struct { Origin string `json:"origin,omitempty"` Preferences types.Preferences `json:"preferences,omitempty"` Items []types.RootItem `json:"items,omitempty"` Hooks Hooks `json:"hooks,omitempty"` }
func (Config) Entrypoint ¶
func (Config) ExtensionDir ¶
func (*Config) UnmarshalJSON ¶
type Extension ¶
type Extension struct { Manifest types.Manifest Entrypoint string `json:"entrypoint"` Config Config `json:"config"` }
func InstallExtension ¶
func LoadExtension ¶
func UpgradeExtension ¶
func (Extension) CheckRequirements ¶
func (Extension) CmdContext ¶
type ExtensionMap ¶
func (ExtensionMap) List ¶
func (e ExtensionMap) List() []Extension
type ExtensionType ¶
type ExtensionType string
const ( ExtensionTypeLocal ExtensionType = "local" ExtensionTypeHttp ExtensionType = "http" )
type Metadata ¶
type Metadata struct { Type ExtensionType `json:"type"` Origin string `json:"origin"` Entrypoint string `json:"entrypoint"` }
type Preferences ¶
Click to show internal directories.
Click to hide internal directories.