SDConfig is the configuration for OpenStack based service discovery.
| 26 | |
| 27 | // SDConfig is the configuration for OpenStack based service discovery. |
| 28 | type SDConfig struct { |
| 29 | IdentityEndpoint string `yaml:"identity_endpoint"` |
| 30 | Username string `yaml:"username"` |
| 31 | UserID string `yaml:"userid"` |
| 32 | Password config_util.Secret `yaml:"password"` |
| 33 | ProjectName string `yaml:"project_name"` |
| 34 | ProjectID string `yaml:"project_id"` |
| 35 | DomainName string `yaml:"domain_name"` |
| 36 | DomainID string `yaml:"domain_id"` |
| 37 | Role Role `yaml:"role"` |
| 38 | Region string `yaml:"region"` |
| 39 | RefreshInterval model.Duration `yaml:"refresh_interval,omitempty"` |
| 40 | Port int `yaml:"port"` |
| 41 | AllTenants bool `yaml:"all_tenants,omitempty"` |
| 42 | TLSConfig config_util.TLSConfig `yaml:"tls_config,omitempty"` |
| 43 | } |
| 44 | |
| 45 | // OpenStackRole is role of the target in OpenStack. |
| 46 | type Role string |
nothing calls this directly
no outgoing calls
no test coverage detected