Documentation ¶
Index ¶
- func GetRulesString(rs []*ConfigRule) (string, error)
- func NewConsulClient(c *ConsulFlags, ui *cli.Ui) (*consulapi.Client, error)
- func NewFlagSet(c *ConsulFlags) *flag.FlagSet
- type Auth
- type CloneCommand
- type ConfigRule
- type ConsulFlags
- type CreateCommand
- type DestroyCommand
- type InfoCommand
- type ListCommand
- type UpdateCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRulesString ¶
func GetRulesString(rs []*ConfigRule) (string, error)
Convert a list of Rules to a JSON string
func NewConsulClient ¶
func NewFlagSet ¶
func NewFlagSet(c *ConsulFlags) *flag.FlagSet
Types ¶
type CloneCommand ¶
type CloneCommand struct { UI cli.Ui Consul *ConsulFlags }
func (*CloneCommand) Help ¶
func (c *CloneCommand) Help() string
func (*CloneCommand) Run ¶
func (c *CloneCommand) Run(args []string) int
func (*CloneCommand) Synopsis ¶
func (c *CloneCommand) Synopsis() string
type ConfigRule ¶
func ParseRuleConfig ¶
func ParseRuleConfig(s string) (*ConfigRule, error)
type ConsulFlags ¶
type ConsulFlags struct {
// contains filtered or unexported fields
}
type CreateCommand ¶
type CreateCommand struct { UI cli.Ui Consul *ConsulFlags ConfigRules []*ConfigRule }
func (*CreateCommand) Help ¶
func (c *CreateCommand) Help() string
func (*CreateCommand) Run ¶
func (c *CreateCommand) Run(args []string) int
func (*CreateCommand) Synopsis ¶
func (c *CreateCommand) Synopsis() string
type DestroyCommand ¶
type DestroyCommand struct { UI cli.Ui Consul *ConsulFlags }
func (*DestroyCommand) Help ¶
func (c *DestroyCommand) Help() string
func (*DestroyCommand) Run ¶
func (c *DestroyCommand) Run(args []string) int
func (*DestroyCommand) Synopsis ¶
func (c *DestroyCommand) Synopsis() string
type InfoCommand ¶
type InfoCommand struct { UI cli.Ui Consul *ConsulFlags }
func (*InfoCommand) Help ¶
func (c *InfoCommand) Help() string
func (*InfoCommand) Run ¶
func (c *InfoCommand) Run(args []string) int
func (*InfoCommand) Synopsis ¶
func (c *InfoCommand) Synopsis() string
type ListCommand ¶
type ListCommand struct { UI cli.Ui Consul *ConsulFlags }
func (*ListCommand) Help ¶
func (c *ListCommand) Help() string
func (*ListCommand) Run ¶
func (c *ListCommand) Run(args []string) int
func (*ListCommand) Synopsis ¶
func (c *ListCommand) Synopsis() string
type UpdateCommand ¶
type UpdateCommand struct { UI cli.Ui Consul *ConsulFlags ConfigRules []*ConfigRule }
func (*UpdateCommand) Help ¶
func (c *UpdateCommand) Help() string
func (*UpdateCommand) Run ¶
func (c *UpdateCommand) Run(args []string) int
func (*UpdateCommand) Synopsis ¶
func (c *UpdateCommand) Synopsis() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.