Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2015 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

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 NewConsulClient(c *ConsulFlags, ui *cli.Ui) (*consulapi.Client, error)

func NewFlagSet

func NewFlagSet(c *ConsulFlags) *flag.FlagSet

Types

type Auth

type Auth struct {
	Enabled  bool
	Username string
	Password string
}

Authentication var

func (*Auth) Set

func (a *Auth) Set(value string) error

func (*Auth) String

func (a *Auth) String() string

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

type ConfigRule struct {
	PathType string
	Path     string
	Policy   string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL