{"modulePath":"github.com/loggregator/cli","version":"v6.33.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package common\n\nPackage common should not be imported by external consumers. It was not designed for external use.\n\n## Variables\n\n```go\nvar Commands commandList\n```\n\n## Types\n\n```go\ntype HelpActor interface {\n\t// CommandInfoByName returns back a help command information for the given\n\t// command\n\tCommandInfoByName(interface{}, string) (sharedaction.CommandInfo, error)\n\n\t// CommandInfos returns a list of all commands\n\tCommandInfos(interface{}) map[string]sharedaction.CommandInfo\n}\n```\nHelpActor handles the business logic of the help command\n\n```go\ntype HelpCommand struct {\n\tUI     command.UI\n\tActor  HelpActor\n\tConfig command.Config\n\n\tOptionalArgs flag.CommandName `positional-args:\"yes\"`\n\tAllCommands  bool             `short:\"a\" description:\"All available CLI commands\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (cmd HelpCommand) Execute(args []string) error\n```\n\n```go\nfunc (cmd *HelpCommand) Setup(config command.Config, ui command.UI) error\n```\n\n```go\ntype InstallPluginActor interface {\n\tCreateExecutableCopy(path string, tempPluginDir string) (string, error)\n\tDownloadExecutableBinaryFromURL(url string, tempPluginDir string, proxyReader plugin.ProxyReader) (string, error)\n\tFileExists(path string) bool\n\tGetAndValidatePlugin(metadata pluginaction.PluginMetadata, commands pluginaction.CommandList, path string) (configv3.Plugin, error)\n\tGetPlatformString(runtimeGOOS string, runtimeGOARCH string) string\n\tGetPluginInfoFromRepositoriesForPlatform(pluginName string, pluginRepos []configv3.PluginRepository, platform string) (pluginaction.PluginInfo, []string, error)\n\tGetPluginRepository(repositoryName string) (configv3.PluginRepository, error)\n\tInstallPluginFromPath(path string, plugin configv3.Plugin) error\n\tIsPluginInstalled(pluginName string) bool\n\tUninstallPlugin(uninstaller pluginaction.PluginUninstaller, name string) error\n\tValidateFileChecksum(path string, checksum string) bool\n}\n```\n\n```go\ntype InstallPluginCommand struct {\n\tOptionalArgs         flag.InstallPluginArgs `positional-args:\"yes\"`\n\tSkipSSLValidation    bool                   `short:\"k\" hidden:\"true\" description:\"Skip SSL certificate validation\"`\n\tForce                bool                   `short:\"f\" description:\"Force install of plugin without confirmation\"`\n\tRegisteredRepository string                 `short:\"r\" description:\"Restrict search for plugin to this registered repository\"`\n\n\tUI          command.UI\n\tConfig      command.Config\n\tActor       InstallPluginActor\n\tProgressBar plugin.ProxyReader\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (cmd InstallPluginCommand) Execute([]string) error\n```\n\n```go\nfunc (cmd *InstallPluginCommand) Setup(config command.Config, ui command.UI) error\n```\n\n```go\ntype PluginSource int\n```\n\n```go\nconst (\n\tPluginFromRepository PluginSource = iota\n\tPluginFromLocalFile\n\tPluginFromURL\n)\n```\n\n```go\ntype VersionCommand struct {\n\tUI     command.UI\n\tConfig command.Config\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (cmd VersionCommand) Execute(args []string) error\n```\n\n```go\nfunc (cmd *VersionCommand) Setup(config command.Config, ui command.UI) error\n```\n\n","path":"github.com/loggregator/cli/command/common","name":"common","synopsis":"Package common should not be imported by external consumers.","isRedistributable":true}
