{"modulePath":"code.cloudfoundry.org/cf-networking-release","version":"v1.6.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli_plugin\n\n## Constants\n\n```go\nconst AllowCommand = \"allow-access\"\n```\n\n```go\nconst ListCommand = \"list-access\"\n```\n\n```go\nconst MaxPort = 65535\n```\n\n```go\nconst MinPort = 1\n```\n\n```go\nconst PrivateDataPlaceholder = \"[PRIVATE DATA HIDDEN]\"\n```\n\n```go\nconst RemoveCommand = \"remove-access\"\n```\n\n## Variables\n\n```go\nvar AllowUsageRegex = fmt.Sprintf(`\\A%s\\s+\\S+\\s+\\S+\\s+(--|-)\\w+(\\s+|=)[\\w-]+\\s+(--|-)\\w+(\\s+|=)[\\w-]+\\z`, AllowCommand)\n```\n\n```go\nvar ListUsageRegex = fmt.Sprintf(`\\A%s\\s*(--app(\\s+|=)\\S+\\z|\\z)`, ListCommand)\n```\n\n```go\nvar RemoveUsageRegex = fmt.Sprintf(`\\A%s\\s+\\S+\\s+\\S+\\s+(--|-)\\w+(\\s+|=)[\\w-]+\\s+(--|-)\\w+(\\s+|=)[\\w-]+\\z`, RemoveCommand)\n```\n\n## Types\n\n```go\ntype CommandRunner struct {\n\tStyler        *styles.StyleGroup\n\tLogger        *log.Logger\n\tPolicyClient  policy_client.ExternalPolicyClient\n\tCliConnection plugin.CliConnection\n\tArgs          []string\n}\n```\n\n```go\nfunc (r *CommandRunner) Allow() (string, error)\n```\n\n```go\nfunc (r *CommandRunner) List() (string, error)\n```\n\n```go\nfunc (r *CommandRunner) Remove() (string, error)\n```\n\n```go\ntype Plugin struct {\n\tStyler       *styles.StyleGroup\n\tVersion      versionGetter\n\tLogger       *log.Logger\n\tPolicyClient policy_client.ExternalPolicyClient\n}\n```\n\n```go\nfunc (p *Plugin) GetMetadata() plugin.PluginMetadata\n```\n\n```go\nfunc (p *Plugin) Run(cliConnection plugin.CliConnection, args []string)\n```\n\n```go\nfunc (p *Plugin) RunWithErrors(cliConnection plugin.CliConnection, args []string) (string, error)\n```\n\n```go\ntype ValidArgs struct {\n\tSourceAppName string\n\tDestAppName   string\n\tProtocol      string\n\tPort          int\n\tStartPort     int\n\tFinishPort    int\n}\n```\n\n```go\nfunc ValidateArgs(cliConnection plugin.CliConnection, args []string) (ValidArgs, error)\n```\n\n","path":"code.cloudfoundry.org/cf-networking-release/src/cli-plugin/cli_plugin","name":"cli_plugin","synopsis":"","isRedistributable":true}
