Documentation
¶
Index ¶
Constants ¶
View Source
const (
CONFIG_CONSTRAINTS = `` /* 403-byte string literal not displayed */
)
View Source
const (
HandlerRegistrationName = "tribe"
)
View Source
const (
TaskStateQueryResponseSizeLimit int = 1024
)
Variables ¶
View Source
var ( // Flags consumed by snapd Flags = []cli.Flag{flTribeNodeName, flTribe, flTribeSeed, flTribeAdvertiseAddr, flTribeAdvertisePort} )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Name string `json:"name"yaml:"name"`
Enable bool `json:"enable"yaml:"enable"`
BindAddr string `json:"bind_addr"yaml:"bind_addr"`
BindPort int `json:"bind_port"yaml:"bind_port"`
Seed string `json:"seed"yaml:"seed"`
MemberlistConfig *memberlist.Config `json:"-"yaml:"-"`
RestAPIProto string `json:"-"yaml:"-"`
RestAPIPassword string `json:"-"yaml:"-"`
RestAPIPort int `json:"-"yaml:"-"`
RestAPIInsecureSkipVerify string `json:"-"yaml:"-"`
}
holds the configuration passed in through the SNAP config file
Note: if this struct is modified, then the switch statement in the
UnmarshalJSON method in this same file needs to be modified to
match the field mapping that is defined here
func (*Config) UnmarshalJSON ¶
UnmarshalJSON unmarshals valid json into a Config. An example Config can be found at github.com/intelsdi-x/snap/blob/master/examples/configs/snap-config-sample.json
Source Files
¶
Click to show internal directories.
Click to hide internal directories.