package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Copyright 2024 Gravitational, Inc.
No description provided by the author
No description provided by the author
Package keypaths defines several keypaths used by multiple Teleport services.
Package keys defines common interfaces for Teleport client keys.
No description provided by the author
No description provided by the author
Package prompt implements CLI prompts to the user.
Package retryutils defines common retry and jitter logic.
Package sshutils defines several functions and types used across the Teleport API and other Teleport packages when working with SSH.
Package tlsutils contains utilities for TLS configuration and formats.

# Functions

All checks if all elements of slice satisfy given predicate.
Any checks if any element of slice satisfy given predicate.
CloneProtoMsg returns a deep copy of msg.
ContainSameUniqueElements returns true if the input slices contain the same unique elements.
CopyStrings makes a deep copy of the passed in string slice and returns the copy.
CountBy counts the occurrences of each element in a slice based on a given mapper function.
CurrentUser is just like [user.Current], except an error is returned if the user lookup exceeds 10 seconds.
DecodeClusterName decodes cluster name, returns NotFound if no cluster name is encoded (empty subdomain), so servers can detect cases when no server name passed returns BadParameter if encoding does not match.
Deduplicate deduplicates list of comparable values.
DeduplicateAny deduplicates list of any values with compare function.
EncodeClusterName encodes cluster name in the SNI hostname.
GetDelegator attempts to load the context value AccessRequestDelegator, returning the empty string if no value was found.
GetProxyURL gets the HTTP proxy address to use for a given address, if any.
HumanTimeFormat formats time as recognized by humans.
IsLoopback returns 'true' if a given hostname resolves *only* to the local host's loopback interface.
JoinStrings returns a string that is all the elements in the slice `T[]` joined by `sep` This being generic allows for the usage of custom string times, without having to convert the elements to a string to be passed into `strings.Join`.
MapToStrings collects keys and values of a map into a slice of strings.
NewHTTPRoundTripper creates a new initialized HTTP roundtripper.
NewSSHRouteMatcher builds a new matcher for ssh routing decisions.
NewSSHRouteMatcherFromConfig sets up an ssh route matcher from the supplied configuration.
ObjectToStruct is converts any structure into JSON and then unmarshalls it into another structure.
ParseBool parses string as boolean value, returns error in case if value is not recognized.
ParseSessionsURI parses uri per convention of session upload URIs file is a default scheme.
ParseURL parses an absolute URL.
StrictObjectToStruct converts any structure into JSON and then unmarshalls it into another structure using a strict decoder.
ToLowerStrings lower cases each string in a slice.
UTC converts time to UTC timezone.
WithDelegator creates a child context with the AccessRequestDelegator value set.

# Constants

ContextDelegator is a delegator for access requests set in the context of the request.
HumanTimeFormatString is a human readable date formatting.

# Structs

HTTPRoundTripper is a wrapper for http.Transport that - adds extra HTTP headers to all requests, and - downgrades requests to plain HTTP when proxy is at localhost and the wrapped http.Transport has TLSClientConfig.InsecureSkipVerify set to true.
SSHRouteMatcher is a helper used to decide if an ssh dial request should match a given server.
SSHRouteMatcherConfig configures an SSHRouteMatcher.

# Interfaces

HostResolver provides an interface matching the net.Resolver.LookupHost method.
RouteableServer is an interface describing the subset of the types.Server interface required to make a routing decision.

# Type aliases

Strings is a list of string that can unmarshal from list of strings or a scalar string from scalar yaml or json property.