package
0.0.0-20250306163500-5f3bb2705e1f
Repository: https://github.com/versoriumx/teleport.git
Documentation: pkg.go.dev
# Functions
DiscoverInstanceMetadata checks which cloud instance type Teleport is running on, if any.
NewClients returns a new instance of cloud clients retriever.
NewDisabledIMDSClient creates a new DisabledIMDSClient.
WithAmbientCredentials configures options to use the ambient credentials.
WithAssumeRole configures options needed for assuming an AWS role.
WithAssumeRoleFromAWSMeta extracts options needed from AWS metadata for assuming an AWS role.
WithAWSIntegrationSessionProvider sets an integration session generator for AWS apis.
WithChainedAssumeRole sets a role to assume with a base session to use for assuming the role, which enables role chaining.
WithCredentialsMaybeIntegration sets the credential source to be - ambient if the integration is an empty string - integration, otherwise.
# Structs
DisabledIMDSClient is an EC2 instance metadata client that is always disabled.
TestCloudClients are used in tests.
# Interfaces
AWSClients is an interface for providing AWS API clients.
AzureClients is an interface for Azure-specific API clients.
Clients provides interface for obtaining cloud provider clients.
GCPClients is an interface for providing GCP API clients.
InstanceMetadata is an interface for fetching information from a cloud service's instance metadata.
# Type aliases
AWSAssumeRoleOptionFn is an option function for setting additional options when getting an AWS session.
AWSIntegrationSessionProvider defines a function that creates an [awssession.Session] from a Region and an Integration.
ClientsOption allows setting options as functional arguments to cloudClients.