{"modulePath":"github.com/imposter-project/imposter-cli","version":"v1.13.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugin\n\n## Functions\n\n```go\nfunc EnsureConfiguredPlugins(engineType engine.EngineType, version string) (int, error)\n```\nEnsureConfiguredPlugins collects the plugins from both the global CLI config, as well those within the current configuration context, such as config files within the working directory\n\n```go\nfunc EnsurePlugin(pluginName string, engineType engine.EngineType, version string) error\n```\n\n```go\nfunc EnsurePluginDir(version string) (string, error)\n```\n\n```go\nfunc EnsurePlugins(plugins []string, engineType engine.EngineType, version string, saveDefault bool) (int, error)\n```\n\n```go\nfunc GetPluginLocalPath(\n\tpluginName string,\n\tengineType engine.EngineType,\n\tversion string,\n) (fileName string, localPath string, err error)\n```\nGetPluginLocalPath returns the plugin file name and the local file path for the specified plugin name, engine type, and version.\n\n```go\nfunc ListDefaultPlugins() ([]string, error)\n```\n\n```go\nfunc ListVersionDirs() ([]string, error)\n```\nListVersionDirs returns the names of the versioned directories under the plugin base dir. This is only the list of versions, not fully qualified paths.\n\n```go\nfunc UninstallPlugin(pluginName string, engineType engine.EngineType, version string) (bool, error)\n```\nUninstallPlugin removes a single plugin from disk. Returns true if the plugin was installed and removed, false if it wasn't installed.\n\n```go\nfunc UninstallPlugins(plugins []string, engineType engine.EngineType, version string, removeDefault bool) (int, error)\n```\nUninstallPlugins removes the specified plugins from disk and optionally from the default plugins configuration.\n\n## Types\n\n```go\ntype PluginMetadata struct {\n\tName       string\n\tEngineType engine.EngineType\n\tVersion    string\n}\n```\n\n```go\nfunc List(engineType engine.EngineType, version string) ([]PluginMetadata, error)\n```\nList returns a list of available plugins for the specified engine type and version.\n\n","path":"github.com/imposter-project/imposter-cli/internal/plugin","name":"plugin","synopsis":"","isRedistributable":true}
