discovery

package
v1.2.3-fred.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Clients is an interface for retrieving cloud clients.
	Clients cloud.Clients
	// AWSMatchers is a list of AWS EC2 matchers.
	AWSMatchers []services.AWSMatcher
	// AzureMatchers is a list of Azure matchers to discover resources.
	AzureMatchers []services.AzureMatcher
	// 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
}

Config provides configuration for the discovery server.

func (*Config) CheckAndSetDefaults

func (c *Config) CheckAndSetDefaults() error

type Server

type Server struct {
	*Config
	// contains filtered or unexported fields
}

Server is a discovery server, used to discover cloud resources for inclusion in Teleport

func New

func New(ctx context.Context, cfg *Config) (*Server, error)

New initializes a discovery Server

func (*Server) Start

func (s *Server) Start() error

Start starts the discovery service.

func (*Server) Stop

func (s *Server) Stop()

Stop stops the discovery service.

func (*Server) Wait

func (s *Server) Wait() error

Wait will block while the server is running.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL