Documentation
¶
Index ¶
- Variables
- func AddConsulEnvToTask(t *napi.Task)
- func PeerControlAddrs(consul *capi.Client, service, tag string) ([]ma.Multiaddr, error)
- func StringPtr(str string) *string
- type NodeOptions
- func (opts NodeOptions) Bool(key string) (bool, bool)
- func (opts NodeOptions) Float(key string) (float64, bool)
- func (opts NodeOptions) Int(key string) (int, bool)
- func (opts NodeOptions) Object(key string) (NodeOptions, bool)
- func (opts NodeOptions) Slice(key string) ([]interface{}, bool)
- func (opts NodeOptions) String(key string) (string, bool)
- func (opts NodeOptions) StringSlice(key string) ([]string, bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidTaskNameRegexp = regexp.MustCompile(`(?i)^[A-Za-z0-9\-]+$`)
ValidTaskNameRegexp matches task names consisting of alpha-numeric characters and dashes
Functions ¶
func AddConsulEnvToTask ¶
AddConsulEnvToTask inspects the environment for consul-related variables, adding any found to the given task's environment
func PeerControlAddrs ¶
Types ¶
type NodeOptions ¶
type NodeOptions map[string]interface{}
func (NodeOptions) Object ¶
func (opts NodeOptions) Object(key string) (NodeOptions, bool)
func (NodeOptions) Slice ¶
func (opts NodeOptions) Slice(key string) ([]interface{}, bool)
func (NodeOptions) StringSlice ¶
func (opts NodeOptions) StringSlice(key string) ([]string, bool)
Click to show internal directories.
Click to hide internal directories.