Versions in this module Expand all Collapse all v1 v1.0.2 Dec 15, 2017 v1.0.1 Nov 20, 2017 Changes in this version type Config + EnableAgentTLSForChecks *bool + SnapshotAgent map[string]interface{} type Flags + Args []string + ConfigFormat *string type RuntimeConfig + EnableAgentTLSForChecks bool v1.0.1-rc1 Nov 11, 2017 v1.0.0 Oct 16, 2017 Changes in this version + const SerfLANKeyring + const SerfWANKeyring + func AddFlags(fs *flag.FlagSet, f *Flags) + func DefaultRPCProtocol() (int, error) + func FormatFrom(name string) string + func TranslateKeys(v map[string]interface{}, dict map[string]string) + type Addresses struct + DNS *string + HTTP *string + HTTPS *string + type AdvertiseAddrsConfig struct + RPC *string + SerfLAN *string + SerfWAN *string + type Autopilot struct + CleanupDeadServers *bool + DisableUpgradeMigration *bool + LastContactThreshold *string + MaxTrailingLogs *int + RedundancyZoneTag *string + ServerStabilizationTime *string + UpgradeVersionTag *string + type Builder struct + Flags Flags + GetPrivateIPv4 func() ([]*net.IPAddr, error) + GetPublicIPv6 func() ([]*net.IPAddr, error) + Head []Source + Hostname func() (string, error) + Sources []Source + Tail []Source + Warnings []string + func NewBuilder(flags Flags) (*Builder, error) + func (b *Builder) Build() (rt RuntimeConfig, err error) + func (b *Builder) BuildAndValidate() (RuntimeConfig, error) + func (b *Builder) ReadFile(path string) error + func (b *Builder) ReadPath(path string) error + func (b *Builder) Validate(rt RuntimeConfig) error + type CheckDefinition struct + DeregisterCriticalServiceAfter *string + DockerContainerID *string + HTTP *string + Header map[string][]string + ID *string + Interval *string + Method *string + Name *string + Notes *string + Script *string + ScriptArgs []string + ServiceID *string + Shell *string + Status *string + TCP *string + TLSSkipVerify *bool + TTL *string + Timeout *string + Token *string + type Config struct + ACLAgentMasterToken *string + ACLAgentToken *string + ACLDatacenter *string + ACLDefaultPolicy *string + ACLDisabledTTL *string + ACLDownPolicy *string + ACLEnableKeyListPolicy *bool + ACLEnforceVersion8 *bool + ACLMasterToken *string + ACLReplicationToken *string + ACLTTL *string + ACLToken *string + AEInterval *string + Addresses Addresses + AdvertiseAddrLAN *string + AdvertiseAddrWAN *string + Autopilot Autopilot + BindAddr *string + Bootstrap *bool + BootstrapExpect *int + CAFile *string + CAPath *string + CertFile *string + Check *CheckDefinition + CheckDeregisterIntervalMin *string + CheckReapInterval *string + CheckUpdateInterval *string + Checks []CheckDefinition + ClientAddr *string + Consul Consul + DNS DNS + DNSDomain *string + DNSRecursors []string + DataDir *string + Datacenter *string + DisableAnonymousSignature *bool + DisableCoordinates *bool + DisableHostNodeID *bool + DisableKeyringFile *bool + DisableRemoteExec *bool + DisableUpdateCheck *bool + DiscardCheckOutput *bool + EnableACLReplication *bool + EnableDebug *bool + EnableScriptChecks *bool + EnableSyslog *bool + EncryptKey *string + EncryptVerifyIncoming *bool + EncryptVerifyOutgoing *bool + HTTPConfig HTTPConfig + KeyFile *string + LeaveOnTerm *bool + Limits Limits + LogLevel *string + NodeID *string + NodeMeta map[string]string + NodeName *string + NonVotingServer *bool + Performance Performance + PidFile *string + Ports Ports + RPCProtocol *int + RaftProtocol *int + ReconnectTimeoutLAN *string + ReconnectTimeoutWAN *string + RejoinAfterLeave *bool + RetryJoinIntervalLAN *string + RetryJoinIntervalWAN *string + RetryJoinLAN []string + RetryJoinMaxAttemptsLAN *int + RetryJoinMaxAttemptsWAN *int + RetryJoinWAN []string + Revision *string + SegmentLimit *int + SegmentName *string + SegmentNameLimit *int + Segments []Segment + SerfBindAddrLAN *string + SerfBindAddrWAN *string + ServerMode *bool + ServerName *string + Service *ServiceDefinition + Services []ServiceDefinition + SessionTTLMin *string + SkipLeaveOnInt *bool + StartJoinAddrsLAN []string + StartJoinAddrsWAN []string + SyncCoordinateIntervalMin *string + SyncCoordinateRateTarget *float64 + SyslogFacility *string + TLSCipherSuites *string + TLSMinVersion *string + TLSPreferServerCipherSuites *bool + TaggedAddresses map[string]string + Telemetry Telemetry + TranslateWANAddrs *bool + UI *bool + UIDir *string + UnixSocket UnixSocket + VerifyIncoming *bool + VerifyIncomingHTTPS *bool + VerifyIncomingRPC *bool + VerifyOutgoing *bool + VerifyServerHostname *bool + Version *string + VersionPrerelease *string + Watches []map[string]interface{} + func Merge(files ...Config) Config + func Parse(data string, format string) (c Config, err error) + type Consul struct + Coordinate struct{ ... } + Raft struct{ ... } + SerfLAN struct{ ... } + SerfWAN struct{ ... } + Server struct{ ... } + type DNS struct + AllowStale *bool + DisableCompression *bool + EnableTruncate *bool + MaxStale *string + NodeTTL *string + OnlyPassing *bool + RecursorTimeout *string + ServiceTTL map[string]string + UDPAnswerLimit *int + type Flags struct + Config Config + ConfigFiles []string + DevMode *bool + HCL []string + func ParseFlags(args []string) (Flags, error) + type HTTPConfig struct + BlockEndpoints []string + ResponseHeaders map[string]string + type Limits struct + RPCMaxBurst *int + RPCRate *float64 + type Performance struct + LeaveDrainTime *string + RPCHoldTimeout *string + RaftMultiplier *int + type Ports struct + DNS *int + HTTP *int + HTTPS *int + SerfLAN *int + SerfWAN *int + Server *int + type RetryJoinAzure struct + ClientID *string + SecretAccessKey *string + SubscriptionID *string + TagName *string + TagValue *string + TenantID *string + type RetryJoinEC2 struct + AccessKeyID *string + Region *string + SecretAccessKey *string + TagKey *string + TagValue *string + type RetryJoinGCE struct + CredentialsFile *string + ProjectName *string + TagValue *string + ZonePattern *string + type RuntimeConfig struct + ACLAgentMasterToken string + ACLAgentToken string + ACLDatacenter string + ACLDefaultPolicy string + ACLDisabledTTL time.Duration + ACLDownPolicy string + ACLEnableKeyListPolicy bool + ACLEnforceVersion8 bool + ACLMasterToken string + ACLReplicationToken string + ACLTTL time.Duration + ACLToken string + AEInterval time.Duration + AdvertiseAddrLAN *net.IPAddr + AdvertiseAddrWAN *net.IPAddr + AutopilotCleanupDeadServers bool + AutopilotDisableUpgradeMigration bool + AutopilotLastContactThreshold time.Duration + AutopilotMaxTrailingLogs int + AutopilotRedundancyZoneTag string + AutopilotServerStabilizationTime time.Duration + AutopilotUpgradeVersionTag string + BindAddr *net.IPAddr + Bootstrap bool + BootstrapExpect int + CAFile string + CAPath string + CertFile string + CheckDeregisterIntervalMin time.Duration + CheckReapInterval time.Duration + CheckUpdateInterval time.Duration + Checks []*structs.CheckDefinition + ClientAddrs []*net.IPAddr + ConsulCoordinateUpdateBatchSize int + ConsulCoordinateUpdateMaxBatches int + ConsulCoordinateUpdatePeriod time.Duration + ConsulRaftElectionTimeout time.Duration + ConsulRaftHeartbeatTimeout time.Duration + ConsulRaftLeaderLeaseTimeout time.Duration + ConsulSerfLANGossipInterval time.Duration + ConsulSerfLANProbeInterval time.Duration + ConsulSerfLANProbeTimeout time.Duration + ConsulSerfLANSuspicionMult int + ConsulSerfWANGossipInterval time.Duration + ConsulSerfWANProbeInterval time.Duration + ConsulSerfWANProbeTimeout time.Duration + ConsulSerfWANSuspicionMult int + ConsulServerHealthInterval time.Duration + DNSAddrs []net.Addr + DNSAllowStale bool + DNSDisableCompression bool + DNSDomain string + DNSEnableTruncate bool + DNSMaxStale time.Duration + DNSNodeTTL time.Duration + DNSOnlyPassing bool + DNSPort int + DNSRecursorTimeout time.Duration + DNSRecursors []string + DNSServiceTTL map[string]time.Duration + DNSUDPAnswerLimit int + DataDir string + Datacenter string + DevMode bool + DisableAnonymousSignature bool + DisableCoordinates bool + DisableHostNodeID bool + DisableKeyringFile bool + DisableRemoteExec bool + DisableUpdateCheck bool + DiscardCheckOutput bool + EnableACLReplication bool + EnableDebug bool + EnableScriptChecks bool + EnableSyslog bool + EnableUI bool + EncryptKey string + EncryptVerifyIncoming bool + EncryptVerifyOutgoing bool + HTTPAddrs []net.Addr + HTTPBlockEndpoints []string + HTTPPort int + HTTPResponseHeaders map[string]string + HTTPSAddrs []net.Addr + HTTPSPort int + KeyFile string + LeaveDrainTime time.Duration + LeaveOnTerm bool + LogLevel string + NodeID types.NodeID + NodeMeta map[string]string + NodeName string + NonVotingServer bool + PidFile string + RPCAdvertiseAddr *net.TCPAddr + RPCBindAddr *net.TCPAddr + RPCHoldTimeout time.Duration + RPCMaxBurst int + RPCProtocol int + RPCRateLimit rate.Limit + RaftProtocol int + ReconnectTimeoutLAN time.Duration + ReconnectTimeoutWAN time.Duration + RejoinAfterLeave bool + RetryJoinIntervalLAN time.Duration + RetryJoinIntervalWAN time.Duration + RetryJoinLAN []string + RetryJoinMaxAttemptsLAN int + RetryJoinMaxAttemptsWAN int + RetryJoinWAN []string + Revision string + SegmentLimit int + SegmentName string + SegmentNameLimit int + Segments []structs.NetworkSegment + SerfAdvertiseAddrLAN *net.TCPAddr + SerfAdvertiseAddrWAN *net.TCPAddr + SerfBindAddrLAN *net.TCPAddr + SerfBindAddrWAN *net.TCPAddr + SerfPortLAN int + SerfPortWAN int + ServerMode bool + ServerName string + ServerPort int + Services []*structs.ServiceDefinition + SessionTTLMin time.Duration + SkipLeaveOnInt bool + StartJoinAddrsLAN []string + StartJoinAddrsWAN []string + SyncCoordinateIntervalMin time.Duration + SyncCoordinateRateTarget float64 + SyslogFacility string + TLSCipherSuites []uint16 + TLSMinVersion string + TLSPreferServerCipherSuites bool + TaggedAddresses map[string]string + TelemetryAllowedPrefixes []string + TelemetryBlockedPrefixes []string + TelemetryCirconusAPIApp string + TelemetryCirconusAPIToken string + TelemetryCirconusAPIURL string + TelemetryCirconusBrokerID string + TelemetryCirconusBrokerSelectTag string + TelemetryCirconusCheckDisplayName string + TelemetryCirconusCheckForceMetricActivation string + TelemetryCirconusCheckID string + TelemetryCirconusCheckInstanceID string + TelemetryCirconusCheckSearchTag string + TelemetryCirconusCheckTags string + TelemetryCirconusSubmissionInterval string + TelemetryCirconusSubmissionURL string + TelemetryDisableHostname bool + TelemetryDogstatsdAddr string + TelemetryDogstatsdTags []string + TelemetryFilterDefault bool + TelemetryMetricsPrefix string + TelemetryStatsdAddr string + TelemetryStatsiteAddr string + TranslateWANAddrs bool + UIDir string + UnixSocketGroup string + UnixSocketMode string + UnixSocketUser string + VerifyIncoming bool + VerifyIncomingHTTPS bool + VerifyIncomingRPC bool + VerifyOutgoing bool + VerifyServerHostname bool + Version string + VersionPrerelease string + Watches []map[string]interface{} + func DefaultRuntimeConfig(hcl string) *RuntimeConfig + func (c *RuntimeConfig) IncomingHTTPSConfig() (*tls.Config, error) + func (c *RuntimeConfig) Sanitized() map[string]interface{} + type Segment struct + Advertise *string + Bind *string + Name *string + Port *int + RPCListener *bool + type ServiceDefinition struct + Address *string + Check *CheckDefinition + Checks []CheckDefinition + EnableTagOverride *bool + ID *string + Name *string + Port *int + Tags []string + Token *string + type Source struct + Data string + Format string + Name string + func DefaultConsulSource() Source + func DefaultSource() Source + func DefaultVersionSource() Source + func DevConsulSource() Source + func DevSource() Source + func NewSource(name, data string) Source + func NonUserSource() Source + func VersionSource(rev, ver, verPre string) Source + type Telemetry struct + CirconusAPIApp *string + CirconusAPIToken *string + CirconusAPIURL *string + CirconusBrokerID *string + CirconusBrokerSelectTag *string + CirconusCheckDisplayName *string + CirconusCheckForceMetricActivation *string + CirconusCheckID *string + CirconusCheckInstanceID *string + CirconusCheckSearchTag *string + CirconusCheckTags *string + CirconusSubmissionInterval *string + CirconusSubmissionURL *string + DisableHostname *bool + DogstatsdAddr *string + DogstatsdTags []string + EnableDeprecatedNames *bool + FilterDefault *bool + MetricsPrefix *string + PrefixFilter []string + StatsdAddr *string + StatsiteAddr *string + type UnixSocket struct + Group *string + Mode *string + User *string v1.0.0-beta2 Oct 5, 2017 v1.0.0-beta1 Sep 28, 2017