Documentation ¶
Index ¶
- func DownloadEntrypoint(origin string, target string) error
- func ExtractManifest(entrypoint string) (types.Manifest, error)
- func Hash(origin string) (string, error)
- func IsRemote(origin string) bool
- func LoadEntrypoint(origin string, extensionDir string) (string, error)
- func Upgrade(extensionConfig config.ExtensionConfig) error
- type Extension
- 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) RootItems() []types.RootItem
- func (e Extension) Run(input types.Payload) error
- type ExtensionMap
- type ExtensionType
- type Metadata
- type Preferences
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadEntrypoint ¶
func Upgrade ¶
func Upgrade(extensionConfig config.ExtensionConfig) error
Types ¶
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.