Versions in this module Expand all Collapse all v0 v0.3.1 Jul 6, 2016 v0.3.0 Jun 24, 2016 Changes in this version + func NewAclRule() *aclRule v0.2.0 Feb 10, 2016 Changes in this version + func NewConsul() *consul + func ParseCheckConfig(s string) (*consulapi.AgentServiceCheck, error) + type Acl struct + func (a *Acl) AddCloneSub(c *cobra.Command) + func (a *Acl) AddCreateSub(c *cobra.Command) + func (a *Acl) AddDestroySub(c *cobra.Command) + func (a *Acl) AddInfoSub(c *cobra.Command) + func (a *Acl) AddListSub(c *cobra.Command) + func (a *Acl) AddUpdateSub(c *cobra.Command) + func (a *Acl) CheckIdArg(args []string) error + func (a *Acl) Clone(args []string) error + func (a *Acl) Create(args []string, aco *AclCreateOptions) error + func (a *Acl) Destroy(args []string) error + func (a *Acl) GetRulesString(rs []*ConfigRule) (string, error) + func (a *Acl) Info(args []string) error + func (a *Acl) List(args []string) error + func (a *Acl) ParseRuleConfig(s string) (*ConfigRule, error) + func (a *Acl) Update(args []string, auo *AclUpdateOptions) error + type AclCreateOptions struct + ConfigRules []*ConfigRule + IsManagement bool + Name string + type AclUpdateOptions struct + ConfigRules []*ConfigRule + IsManagement bool + Name string + type Agent struct + func (a *Agent) AddChecksSub(c *cobra.Command) + func (a *Agent) AddForceLeaveSub(c *cobra.Command) + func (a *Agent) AddJoinSub(c *cobra.Command) + func (a *Agent) AddMaintenanceSub(c *cobra.Command) + func (a *Agent) AddMembersSub(c *cobra.Command) + func (a *Agent) AddSelfSub(c *cobra.Command) + func (a *Agent) AddServicesSub(c *cobra.Command) + func (a *Agent) Checks(args []string) error + func (a *Agent) ForceLeave(args []string) error + func (a *Agent) Join(args []string, ajo *AgentJoinOptions) error + func (a *Agent) Maintenance(args []string, amo *AgentMaintenanceOptions) error + func (a *Agent) Members(args []string, amo *AgentMembersOptions) error + func (a *Agent) Self(args []string) error + func (a *Agent) Services(args []string) error + type AgentJoinOptions struct + type AgentMaintenanceOptions struct + type AgentMembersOptions struct + type Catalog struct + func (c *Catalog) AddDatacentersSub(cmd *cobra.Command) + func (c *Catalog) AddNodeSub(cmd *cobra.Command) + func (c *Catalog) AddNodesSub(cmd *cobra.Command) + func (c *Catalog) AddServiceSub(cmd *cobra.Command) + func (c *Catalog) AddServicesSub(cmd *cobra.Command) + func (c *Catalog) Datacenters(args []string) error + func (c *Catalog) Node(args []string) error + func (c *Catalog) Nodes(args []string) error + func (c *Catalog) Service(args []string, cso *CatalogServiceOptions) error + func (c *Catalog) Services(args []string) error + type CatalogServiceOptions struct + type Check struct + func (c *Check) AddDeregisterSub(cmd *cobra.Command) + func (c *Check) AddFailSub(cmd *cobra.Command) + func (c *Check) AddPassSub(cmd *cobra.Command) + func (c *Check) AddRegisterSub(cmd *cobra.Command) + func (c *Check) AddWarnSub(cmd *cobra.Command) + func (c *Check) CheckIdArg(args []string) error + func (c *Check) Deregister(args []string) error + func (c *Check) Fail(args []string, cfo *CheckFailOptions) error + func (c *Check) Pass(args []string, cfo *CheckPassOptions) error + func (c *Check) Register(args []string, cro *CheckRegisterOptions) error + func (c *Check) Warn(args []string, cfo *CheckWarnOptions) error + type CheckFailOptions struct + Note string + type CheckPassOptions struct + Note string + type CheckRegisterOptions struct + Http string + Id string + Interval string + Notes string + Script string + ServiceId string + Ttl string + type CheckWarnOptions struct + Note string + type Cmd struct + Err io.Writer + Out io.Writer + Template string + func Init() *Cmd + func (c *Cmd) ACL() (*consulapi.ACL, error) + func (c *Cmd) AddCommand(cmd *cobra.Command) + func (c *Cmd) AddDatacenterOption(cmd *cobra.Command) + func (c *Cmd) AddTemplateOption(cmd *cobra.Command) + func (c *Cmd) AddWaitIndexOption(cmd *cobra.Command) + func (c *Cmd) Agent() (*consulapi.Agent, error) + func (c *Cmd) Catalog() (*consulapi.Catalog, error) + func (c *Cmd) Client() (*consulapi.Client, error) + func (c *Cmd) Coordinate() (*consulapi.Coordinate, error) + func (c *Cmd) Execute() error + func (c *Cmd) Health() (*consulapi.Health, error) + func (c *Cmd) Help() error + func (c *Cmd) KV() (*consulapi.KV, error) + func (c *Cmd) Output(v interface{}) error + func (c *Cmd) OutputJSON(v interface{}, prettyFlag bool) error + func (c *Cmd) OutputTemplate(v interface{}) error + func (c *Cmd) QueryOptions() *consulapi.QueryOptions + func (c *Cmd) Session() (*consulapi.Session, error) + func (c *Cmd) Status() (*consulapi.Status, error) + func (c *Cmd) WriteOptions() *consulapi.WriteOptions + type ConfigRule struct + Path string + PathType string + Policy string + type Coordinate struct + func (c *Coordinate) AddDatacentersSub(cmd *cobra.Command) + func (c *Coordinate) AddNodesSub(cmd *cobra.Command) + func (c *Coordinate) Datacenters(args []string) error + func (c *Coordinate) Nodes(args []string) error + type Health struct + func (h *Health) AddChecksSub(cmd *cobra.Command) + func (h *Health) AddNodeSub(cmd *cobra.Command) + func (h *Health) AddServiceSub(cmd *cobra.Command) + func (h *Health) AddStateSub(cmd *cobra.Command) + func (h *Health) Checks(args []string) error + func (h *Health) Node(args []string) error + func (h *Health) Service(args []string, hso *HealthServiceOptions) error + func (h *Health) State(args []string) error + type HealthServiceOptions struct + PassingOnly bool + Tag string + type KVJson struct + CreateIndex uint64 + Flags uint64 + Key string + LockIndex uint64 + ModifyIndex uint64 + Session string + Value string + type KVOutput struct + All bool + CreateIndex bool + Err io.Writer + Flags bool + Key bool + LockIndex bool + ModifyIndex bool + Out io.Writer + Session bool + Value bool + func NewKVOutput(out, err io.Writer, fields string) *KVOutput + func (kvo *KVOutput) Output(kv *consulapi.KVPair, of OutputFormat) error + func (kvo *KVOutput) OutputHeader(of OutputFormat) + func (kvo *KVOutput) OutputJSON(kv *consulapi.KVPair, prettyFlag bool) error + func (kvo *KVOutput) OutputJSONList(kvs *consulapi.KVPairs, prettyFlag bool) error + func (kvo *KVOutput) OutputList(kvs *consulapi.KVPairs, of OutputFormat) error + func (kvo *KVOutput) OutputText(kv *consulapi.KVPair, of OutputFormat) error + func (kvo *KVOutput) OutputTextList(kvs *consulapi.KVPairs, of OutputFormat) error + type Kv struct + func (k *Kv) AddBulkloadSub(cmd *cobra.Command) + func (k *Kv) AddDeleteSub(cmd *cobra.Command) + func (k *Kv) AddKeysSub(cmd *cobra.Command) + func (k *Kv) AddLockSub(cmd *cobra.Command) + func (k *Kv) AddReadSub(cmd *cobra.Command) + func (k *Kv) AddUnlockSub(cmd *cobra.Command) + func (k *Kv) AddWatchSub(cmd *cobra.Command) + func (k *Kv) AddWriteSub(cmd *cobra.Command) + func (k *Kv) Bulkload(args []string, kbo *KvBulkloadOptions) error + func (k *Kv) Delete(args []string, kdo *KvDeleteOptions) error + func (k *Kv) Keys(args []string, kko *KvKeysOptions) error + func (k *Kv) Lock(args []string, klo *KvLockOptions) error + func (k *Kv) Read(args []string, kro *KvReadOptions) error + func (k *Kv) Unlock(args []string, kuo *KvUnlockOptions) error + func (k *Kv) Watch(args []string, kwo *KvWatchOptions) error + func (k *Kv) Write(args []string, kwo *KvWriteOptions) error + type KvBulkloadOptions struct + Json string + Prefix string + type KvDeleteOptions struct + DoRecurse bool + ModifyIndex string + type KvKeysOptions struct + Separator string + type KvLockOptions struct + Behavior string + LockDelay time.Duration + Session string + Ttl string + type KvReadOptions struct + FieldsRaw string + Format OutputFormat + Recurse bool + type KvUnlockOptions struct + NoDestroy bool + Session string + type KvWatchOptions struct + FieldsRaw string + Format OutputFormat + type KvWriteOptions struct + DataFlags string + ModifyIndex string + type OutputFormat struct + Delimiter string + Header bool + Type string + type Service struct + func (s *Service) AddDeregisterSub(cmd *cobra.Command) + func (s *Service) AddMaintenanceSub(cmd *cobra.Command) + func (s *Service) AddRegisterSub(cmd *cobra.Command) + func (s *Service) CheckIdArg(args []string) error + func (s *Service) Deregister(args []string) error + func (s *Service) Maintenance(args []string, smo *ServiceMaintenanceOptions) error + func (s *Service) Register(args []string, sro *ServiceRegisterOptions) error + type ServiceMaintenanceOptions struct + type ServiceRegisterOptions struct + Address string + Checks consulapi.AgentServiceChecks + Id string + Port int + Tags []string + type Session struct + func (s *Session) AddCreateSub(cmd *cobra.Command) + func (s *Session) AddDestroySub(cmd *cobra.Command) + func (s *Session) AddInfoSub(cmd *cobra.Command) + func (s *Session) AddListSub(cmd *cobra.Command) + func (s *Session) AddNodeSub(cmd *cobra.Command) + func (s *Session) AddRenewSub(cmd *cobra.Command) + func (s *Session) CheckIdArg(args []string) error + func (s *Session) Create(args []string, sco *SessionCreateOptions) error + func (s *Session) Destroy(args []string) error + func (s *Session) Info(args []string) error + func (s *Session) List(args []string) error + func (s *Session) Node(args []string) error + func (s *Session) Renew(args []string) error + type SessionCreateOptions struct + Behavior string + Checks []string + LockDelay time.Duration + Name string + NodeName string + Ttl time.Duration + type Status struct + func (s *Status) AddLeaderSub(cmd *cobra.Command) + func (s *Status) AddPeersSub(cmd *cobra.Command) + func (s *Status) Leader(args []string) error + func (s *Status) Peers(args []string) error