package
11.3.4
Repository: https://github.com/zmb3/teleport.git
Documentation: pkg.go.dev

# Packages

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.
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

CopyByteSlice returns a copy of the byte slice.
CopyByteSlices returns a copy of the byte slices.
CopyStrings makes a deep copy of the passed in string slice and returns the copy.
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 strings.
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.
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.
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.
SliceContainsStr returns 'true' if the slice contains the given value.
StrictObjectToStruct converts any structure into JSON and then unmarshalls it into another structure using a strict decoder.
StringSlicesEqual returns true if string slices equal.
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.

# 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.