Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileBackend = "file" PollingWatcher = "polling" )
Agent constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
Agent represents Agent service.
func NewAgentByConfig ¶
NewAgentByConfig creates Agent reading configuration from viper config.
type Config ¶
type Config struct { // ID of Agent account. ID string `yaml:"id"` // Password of Agent account. Password string `yaml:"password"` // DomainID is ID of keystone domain used for authentication. DomainID string `yaml:"domain_id"` // ProjectID is ID of keystone project used for authentication. ProjectID string `yaml:"project_id"` // DomainName is Name of keystone domain used for authentication. DomainName string `yaml:"domain_name"` // ProjectName is Name of keystone project used for authentication. ProjectName string `yaml:"project_name"` // AuthURL defines authentication URL. AuthURL string `yaml:"auth_url"` // Endpoint of API Server. Endpoint string `yaml:"endpoint"` // Server schema path SchemaRoot string `yaml:"schema_root"` // Logging level LogLevel string `yaml:"log_level"` // Backend specifies backend to be used (values: "file"). Backend string `yaml:"backend"` // Watcher specifies resource event watching strategy to be used (values: "polling"). Watcher string `yaml:"watcher"` // List of tasks for Agent to perform on events that involve specified resources. Tasks []*task `yaml:"tasks"` // InSecure https connection to endpoint InSecure bool `yaml:"insecure"` // Enabled Enabled bool `yaml:"enabled"` // Service user name for keystone ServiceUserID string `yaml:"service_user_id"` // Service user password for keystone ServiceUserPassword string `yaml:"service_user_password"` }
Config represents Agent configuration.
Click to show internal directories.
Click to hide internal directories.