Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // CloudClients is an interface for retrieving cloud clients. CloudClients cloud.Clients // IntegrationOnlyCredentials discards any Matcher that don't have an Integration. // When true, ambient credentials (used by the Cloud SDKs) are not used. IntegrationOnlyCredentials bool // KubernetesClient is the Kubernetes client interface KubernetesClient kubernetes.Interface // Matchers stores all types of matchers to discover resources Matchers Matchers // Emitter is events emitter, used to submit discrete events Emitter apievents.Emitter // AccessPoint is a discovery access point AccessPoint auth.DiscoveryAccessPoint // Log is the logger. Log logrus.FieldLogger // DiscoveryGroup is the name of the discovery group that the current // discovery service is a part of. // It is used to filter out discovered resources that belong to another // discovery services. When running in high availability mode and the agents // have access to the same cloud resources, this field value must be the same // for all discovery services. If different agents are used to discover different // sets of cloud resources, this field must be different for each set of agents. DiscoveryGroup string // ClusterName is the name of the Teleport cluster. ClusterName string // PollInterval is the cadence at which the discovery server will run each of its // discovery cycles. PollInterval time.Duration // ServerCredentials are the credentials used to identify the discovery service // to the Access Graph service. ServerCredentials *tls.Config // AccessGraphConfig is the configuration for the Access Graph client AccessGraphConfig servicecfg.AccessGraphConfig // TriggerFetchC is a list of channels that must be notified when a off-band poll must be performed. // This is used to start a polling iteration when a new DiscoveryConfig change is received. TriggerFetchC []chan struct{} // contains filtered or unexported fields }
Config provides configuration for the discovery server.
func (*Config) CheckAndSetDefaults ¶
type Matchers ¶
type Matchers struct { // AWS is a list of AWS EC2 matchers. AWS []types.AWSMatcher // Azure is a list of Azure matchers to discover resources. Azure []types.AzureMatcher // GCP is a list of GCP matchers to discover resources. GCP []types.GCPMatcher // Kubernetes is a list of Kubernetes matchers to discovery resources. Kubernetes []types.KubernetesMatcher // AccessGraph is the configuration for the Access Graph Cloud sync. AccessGraph *types.AccessGraphSync }
Matchers contains all matchers used by discovery service
Source Files ¶
Click to show internal directories.
Click to hide internal directories.