_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c24000
train
// MarshalServers is used to marshal multiple servers to their binary // representation.
{ "resource": "" }
c24001
train
// NewAvailableClusters returns all available clusters
{ "resource": "" }
c24002
train
// Import imports backend data into importer unless importer has already // imported data. If Importer has no imported data yet, exporter will // not be initialized. This function can be called many times on the // same importer. Importer will be closed if import has failed.
{ "resource": "" }
c24003
train
// writeDebugInfo writes debugging information // about this process
{ "resource": "" }
c24004
train
// Read reads from connection
{ "resource": "" }
c24005
train
// LocalAddr returns local address of the connection
{ "resource": "" }
c24006
train
// RemoteAddr returns remote address of the connection
{ "resource": "" }
c24007
train
// Accept accepts connections from parent multiplexer listener
{ "resource": "" }
c24008
train
// Equals returns true if this identity equals to passed one
{ "resource": "" }
c24009
train
// Check makes sure the request is valid
{ "resource": "" }
c24010
train
// Swap swaps two attempts
{ "resource": "" }
c24011
train
// LastFailed calculates last x successive attempts are failed
{ "resource": "" }
c24012
train
// NewTerminal creates a web-based terminal based on WebSockets and returns a // new TerminalHandler.
{ "resource": "" }
c24013
train
// Close the websocket stream.
{ "resource": "" }
c24014
train
// handler is the main websocket loop. It creates a Teleport client and then // pumps raw events and audit events back to the client until the SSH session // is complete.
{ "resource": "" }
c24015
train
// streamTerminal opens a SSH connection to the remote host and streams // events back to the web client.
{ "resource": "" }
c24016
train
// streamEvents receives events over the SSH connection and forwards them to // the web client.
{ "resource": "" }
c24017
train
// windowChange is called when the browser window is resized. It sends a // "window-change" channel request to the server.
{ "resource": "" }
c24018
train
// writeError displays an error in the terminal window.
{ "resource": "" }
c24019
train
// resolveServerHostPort parses server name and attempts to resolve hostname // and port.
{ "resource": "" }
c24020
train
// Write wraps the data bytes in a raw envelope and sends.
{ "resource": "" }
c24021
train
// SetReadDeadline sets the network read deadline on the underlying websocket.
{ "resource": "" }
c24022
train
// NewForwarder returns new instance of Kubernetes request // forwarding proxy.
{ "resource": "" }
c24023
train
// authenticate function authenticates request
{ "resource": "" }
c24024
train
// portForward starts port forwarding to the remote cluster
{ "resource": "" }
c24025
train
// catchAll forwards all HTTP requests to the target k8s API server
{ "resource": "" }
c24026
train
// UpdateClientActivity sets last recorded client activity
{ "resource": "" }
c24027
train
// getOrCreateRequestContext creates a new certificate request for a given context, // if there is no active CSR request in progress, or returns an existing one. // if the new context has been created, cancel function is returned as a // second argument. Caller should call this function to signal that CSR has been // c...
{ "resource": "" }
c24028
train
// String returns on-the wire string representation of the proxy line
{ "resource": "" }
c24029
train
// ReadProxyLine reads proxy line protocol from the reader
{ "resource": "" }
c24030
train
// newProcessState returns a new FSM that tracks the state of the Teleport process.
{ "resource": "" }
c24031
train
// Process updates the state of Teleport.
{ "resource": "" }
c24032
train
// Host returns host part of address without port
{ "resource": "" }
c24033
train
// Port returns defaultPort if no port is set or is invalid, // the real port otherwise
{ "resource": "" }
c24034
train
// Equals returns true if address is equal to other
{ "resource": "" }
c24035
train
// IsLocal returns true if this is a local address
{ "resource": "" }
c24036
train
// IsEmpty returns true if address is empty
{ "resource": "" }
c24037
train
// MarshalYAML defines how a network address should be marshalled to a string
{ "resource": "" }
c24038
train
// UnmarshalYAML defines how a string can be unmarshalled into a network address
{ "resource": "" }
c24039
train
// MustParseAddr parses the provided string into NetAddr or panics on an error
{ "resource": "" }
c24040
train
// FromAddr returns NetAddr from golang standard net.Addr
{ "resource": "" }
c24041
train
// JoinAddrSlices joins two addr slices and returns a resulting slice
{ "resource": "" }
c24042
train
// DialAddrFromListenAddr returns dial address from listen address
{ "resource": "" }
c24043
train
// Addresses returns a slice of strings converted from the addresses
{ "resource": "" }
c24044
train
// Set is called by CLI tools
{ "resource": "" }
c24045
train
// String returns debug-friendly representation of the tool
{ "resource": "" }
c24046
train
// IsLocalhost returns true if this is a local hostname or ip
{ "resource": "" }
c24047
train
// IsLoopback returns 'true' if a given hostname resolves to local // host's loopback interface
{ "resource": "" }
c24048
train
// GuessIP tries to guess an IP address this machine is reachable at on the // internal network, always picking IPv4 from the internal address space // // If no internal IPs are found, it returns 127.0.0.1 but it never returns // an address from the public IP space
{ "resource": "" }
c24049
train
// The "websafe-base64 encoding" in the U2F specifications removes the padding
{ "resource": "" }
c24050
train
// newClusterPeer returns new cluster peer
{ "resource": "" }
c24051
train
// GenerateQRCode takes in a OTP Key URL and returns a PNG-encoded QR code.
{ "resource": "" }
c24052
train
// changePassword updates users password based on the old password
{ "resource": "" }
c24053
train
// u2fChangePasswordRequest is called to get U2F challedge for changing a user password
{ "resource": "" }
c24054
train
// NewStaticFileSystem returns the initialized implementation of http.FileSystem // interface which can be used to serve Teleport Proxy Web UI // // If 'debugMode' is true, it will load the web assets from the same git repo // directory where the executable is, otherwise it will load them from the embedded // zip archi...
{ "resource": "" }
c24055
train
// isDebugMode determines if teleport is running in a "debug" mode. // It looks at DEBUG environment variable
{ "resource": "" }
c24056
train
// LoadWebResources returns a filesystem implementation compatible // with http.Serve. // // The "filesystem" is served from a zip file attached at the end of // the executable //
{ "resource": "" }
c24057
train
// LocalRegister is used to generate host keys when a node or proxy is running // within the same process as the Auth Server and as such, does not need to // use provisioning tokens.
{ "resource": "" }
c24058
train
// Register is used to generate host keys when a node or proxy are running on // different hosts than the auth server. This method requires provisioning // tokens to prove a valid auth server was used to issue the joining request // as well as a method for the node to validate the auth server.
{ "resource": "" }
c24059
train
// registerThroughProxy is used to register through the proxy server.
{ "resource": "" }
c24060
train
// registerThroughAuth is used to register through the auth server.
{ "resource": "" }
c24061
train
// insecureRegisterClient attempts to connects to the Auth Server using the // CA on disk. If no CA is found on disk, Teleport will not verify the Auth // Server it is connecting to.
{ "resource": "" }
c24062
train
// readCA will read in CA that will be used to validate the certificate that // the Auth Server presents.
{ "resource": "" }
c24063
train
// pinRegisterClient first connects to the Auth Server using a insecure // connection to fetch the root CA. If the root CA matches the provided CA // pin, a connection will be re-established and the root CA will be used to // validate the certificate presented. If both conditions hold true, then we // know we are conne...
{ "resource": "" }
c24064
train
// ReRegister renews the certificates and private keys based on the client's existing identity.
{ "resource": "" }
c24065
train
// ReadFromFile reads Teleport configuration from a file. Currently only YAML // format is supported
{ "resource": "" }
c24066
train
// ReadFromString reads values from base64 encoded byte string
{ "resource": "" }
c24067
train
// ReadConfig reads Teleport configuration from reader in YAML format
{ "resource": "" }
c24068
train
// MakeSampleFileConfig returns a sample config structure populated by defaults, // useful to generate sample configuration files
{ "resource": "" }
c24069
train
// DebugDumpToYAML allows for quick YAML dumping of the config
{ "resource": "" }
c24070
train
// Parse parses cache policy from Teleport config
{ "resource": "" }
c24071
train
// Parse returns a parsed pam.Config.
{ "resource": "" }
c24072
train
// ConvertAndValidate returns validated services.ReverseTunnel or nil and error otherwize
{ "resource": "" }
c24073
train
// Parse reads values and returns parsed CertAuthority
{ "resource": "" }
c24074
train
// Parse parses config struct into services connector and checks if it's valid
{ "resource": "" }
c24075
train
// Parse parses values in the U2F configuration section and validates its content.
{ "resource": "" }
c24076
train
// NewSigner returns new ssh Signer from private key + certificate pair. The // signer can be used to create "auth methods" i.e. login into Teleport SSH // servers.
{ "resource": "" }
c24077
train
// CryptoPublicKey extracts public key from RSA public key in authorized_keys format
{ "resource": "" }
c24078
train
// ClusterName returns cluster name from organization
{ "resource": "" }
c24079
train
// GenerateRSAPrivateKeyPEM generates new RSA private key and returns PEM encoded bytes
{ "resource": "" }
c24080
train
// ParsePublicKeyPEM parses public key PEM
{ "resource": "" }
c24081
train
// ParsePublicKeyDER parses unencrypted DER-encoded publice key
{ "resource": "" }
c24082
train
// MarshalPublicKeyFromPrivateKeyPEM extracts public key from private key // and returns PEM marshalled key
{ "resource": "" }
c24083
train
// isFirstStart returns 'true' if the auth server is starting for the 1st time // on this server.
{ "resource": "" }
c24084
train
// GenerateIdentity generates identity for the auth server
{ "resource": "" }
c24085
train
// String returns user-friendly representation of the identity.
{ "resource": "" }
c24086
train
// CertInfo returns diagnostic information about certificate
{ "resource": "" }
c24087
train
// TLSCertInfo returns diagnostic information about certificate
{ "resource": "" }
c24088
train
// CertAuthorityInfo returns debugging information about certificate authority
{ "resource": "" }
c24089
train
// HasTSLConfig returns true if this identity has TLS certificate and private key
{ "resource": "" }
c24090
train
// HasPrincipals returns whether identity has principals
{ "resource": "" }
c24091
train
// HasDNSNames returns true if TLS certificate has required DNS names
{ "resource": "" }
c24092
train
// TLSConfig returns TLS config for mutual TLS authentication // can return NotFound error if there are no TLS credentials setup for identity
{ "resource": "" }
c24093
train
// SSHClientConfig returns a ssh.ClientConfig used by nodes to connect to // the reverse tunnel server.
{ "resource": "" }
c24094
train
// hostKeyCallback checks if the host certificate was signed by any of the // known CAs.
{ "resource": "" }
c24095
train
// HostID is host ID part of the host UUID that consists cluster name
{ "resource": "" }
c24096
train
// Equals returns true if two identities are equal
{ "resource": "" }
c24097
train
// ReadIdentityFromKeyPair reads SSH and TLS identity from key pair.
{ "resource": "" }
c24098
train
// ReadTLSIdentityFromKeyPair reads TLS identity from key pair
{ "resource": "" }
c24099
train
// ReadSSHIdentityFromKeyPair reads identity from initialized keypair
{ "resource": "" }