_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c23000 | train | // CheckPortForward checks if port forwarding is allowed for the users RoleSet. | {
"resource": ""
} | ||
c23001 | train | // HostKeyAuth implements host key verification and is called by the client
// to validate the certificate presented by the target server. If the target
// server presents a SSH certificate, we validate that it was Teleport that
// generated the certificate. If the target server presents a public key, if
// we are stri... | {
"resource": ""
} | ||
c23002 | train | // hostKeyCallback allows connections to hosts that present keys only if
// strict host key checking is disabled. | {
"resource": ""
} | ||
c23003 | train | // IsUserAuthority is called during checking the client key, to see if the
// key used to sign the certificate was a Teleport CA. | {
"resource": ""
} | ||
c23004 | train | // IsHostAuthority is called when checking the host certificate a server
// presents. It make sure that the key used to sign the host certificate was a
// Teleport CA. | {
"resource": ""
} | ||
c23005 | train | // fetchRoleSet fetches the services.RoleSet assigned to a Teleport user. | {
"resource": ""
} | ||
c23006 | train | // authorityForCert checks if the certificate was signed by a Teleport
// Certificate Authority and returns it. | {
"resource": ""
} | ||
c23007 | train | // isProxy returns true if it's a regular SSH proxy. | {
"resource": ""
} | ||
c23008 | train | // extractRolesFromCert extracts roles from certificate metadata extensions. | {
"resource": ""
} | ||
c23009 | train | // GetUserClient will return an auth.ClientI with the role of the user at
// the requested site. If the site is local a client with the users local role
// is returned. If the site is remote a client with the users remote role is
// returned. | {
"resource": ""
} | ||
c23010 | train | // newRemoteClient returns a client to a remote cluster with the role of
// the logged in user. | {
"resource": ""
} | ||
c23011 | train | // clusterDialer returns DialContext function using cluster's dial function | {
"resource": ""
} | ||
c23012 | train | // ClientTLSConfig returns client TLS authentication associated
// with the web session context | {
"resource": ""
} | ||
c23013 | train | // ExtendWebSession creates a new web session for this user
// based on the previous session | {
"resource": ""
} | ||
c23014 | train | // GetAgent returns agent that can be used to answer challenges
// for the web to ssh connection as well as certificate | {
"resource": ""
} | ||
c23015 | train | // Close cleans up connections associated with requests | {
"resource": ""
} | ||
c23016 | train | // newSessionCache returns new instance of the session cache | {
"resource": ""
} | ||
c23017 | train | // closeContext is called when session context expires from
// cache and will clean up connections | {
"resource": ""
} | ||
c23018 | train | // populateGithubClaims retrieves information about user and its team
// memberships by calling Github API using the access token | {
"resource": ""
} | ||
c23019 | train | // getEmails retrieves a list of emails for authenticated user | {
"resource": ""
} | ||
c23020 | train | // getTeams retrieves a list of teams authenticated user belongs to. | {
"resource": ""
} | ||
c23021 | train | // get makes a GET request to the provided URL using the client's token for auth | {
"resource": ""
} | ||
c23022 | train | // CheckDefaults makes sure all required parameters are passed in. | {
"resource": ""
} | ||
c23023 | train | // New creates a new unstarted Server. | {
"resource": ""
} | ||
c23024 | train | // EmitAuditEvent sends an event to the Audit Log. | {
"resource": ""
} | ||
c23025 | train | // Close will close all underlying connections that the forwarding server holds. | {
"resource": ""
} | ||
c23026 | train | // ApplyToken assigns a given token to all internal services but only if token
// is not an empty string.
//
// Returns 'true' if token was modified | {
"resource": ""
} | ||
c23027 | train | // RoleConfig is a config for particular Teleport role | {
"resource": ""
} | ||
c23028 | train | // GetRecentTTL either returns TTL that was set,
// or default recent TTL value | {
"resource": ""
} | ||
c23029 | train | // String returns human-friendly representation of the policy | {
"resource": ""
} | ||
c23030 | train | // ApplyDefaults applies default values to the existing config structure | {
"resource": ""
} | ||
c23031 | train | // StartKeepAliveLoop starts the keep-alive loop. | {
"resource": ""
} | ||
c23032 | train | // sendKeepAliveWithTimeout sends a keepalive@openssh.com message to the remote
// client. A manual timeout is needed here because SendRequest will wait for a
// response forever. | {
"resource": ""
} | ||
c23033 | train | // MarshalNamespace marshals namespace to JSON | {
"resource": ""
} | ||
c23034 | train | // UnmarshalNamespace unmarshals role from JSON or YAML,
// sets defaults and checks the schema | {
"resource": ""
} | ||
c23035 | train | // Initialize allows TopCommand to plug itself into the CLI parser. | {
"resource": ""
} | ||
c23036 | train | // Top is called to execute "status" CLI command. | {
"resource": ""
} | ||
c23037 | train | // SortedTopRequests returns top requests sorted either
// by frequency if frequency is present, or by count otherwise | {
"resource": ""
} | ||
c23038 | train | // SetFreq sets counter frequency based on the previous value
// and the time period | {
"resource": ""
} | ||
c23039 | train | // AsPercentiles interprets historgram as a bucket of percentiles
// and returns calculated percentiles | {
"resource": ""
} | ||
c23040 | train | // ExpectNotFound expects not found error | {
"resource": ""
} | ||
c23041 | train | // ExpectBadParameter expects bad parameter error | {
"resource": ""
} | ||
c23042 | train | // ExpectCompareFailed expects compare failed error | {
"resource": ""
} | ||
c23043 | train | // ExpectAccessDenied expects error to be access denied | {
"resource": ""
} | ||
c23044 | train | // ExpectAlreadyExists expects already exists error | {
"resource": ""
} | ||
c23045 | train | // ExpectConnectionProblem expects connection problem error | {
"resource": ""
} | ||
c23046 | train | // DeepCompare uses gocheck DeepEquals but provides nice diff if things are not equal | {
"resource": ""
} | ||
c23047 | train | // Check validates PTY parameters. | {
"resource": ""
} | ||
c23048 | train | // CheckAndSetDefaults validates PTY parameters and ensures parameters
// are within default values. | {
"resource": ""
} | ||
c23049 | train | // removeStreamPair removes the stream pair identified by requestID from streamPairs. | {
"resource": ""
} | ||
c23050 | train | // run is the main loop for the portForwardProxy. It processes new
// streams, invoking portForward for each complete stream pair. The loop exits
// when the httpstream.Connection is closed. | {
"resource": ""
} | ||
c23051 | train | // portForward invokes the portForwardProxy's forwarder.PortForward
// function for the given stream pair. | {
"resource": ""
} | ||
c23052 | train | // add adds the stream to the httpStreamPair. If the pair already
// contains a stream for the new stream's type, an error is returned. add
// returns true if both the data and error streams for this pair have been
// received. | {
"resource": ""
} | ||
c23053 | train | // SliceMatchesRegex checks if input matches any of the expressions. The
// match is always evaluated as a regex either an exact match or regexp. | {
"resource": ""
} | ||
c23054 | train | // NewProcessStorage returns a new instance of the process storage. | {
"resource": ""
} | ||
c23055 | train | // GetState reads rotation state from disk. | {
"resource": ""
} | ||
c23056 | train | // CreateState creates process state if it does not exist yet. | {
"resource": ""
} | ||
c23057 | train | // ReadIdentity reads identity using identity name and role. | {
"resource": ""
} | ||
c23058 | train | // WriteIdentity writes identity to the backend. | {
"resource": ""
} | ||
c23059 | train | // GetIdentitySchema returns JSON Schema for cert authorities. | {
"resource": ""
} | ||
c23060 | train | // GetStateSchema returns JSON Schema for cert authorities. | {
"resource": ""
} | ||
c23061 | train | // String returns a string representation of an event structure | {
"resource": ""
} | ||
c23062 | train | // GetString returns a string representation of a logged field | {
"resource": ""
} | ||
c23063 | train | // waitStreamReply waits until either replySent or stop is closed. If replySent is closed, it sends
// an empty struct to the notify channel. | {
"resource": ""
} | ||
c23064 | train | // MkdirAll creates directory and subdirectories | {
"resource": ""
} | ||
c23065 | train | // Close removes directory and all it's contents | {
"resource": ""
} | ||
c23066 | train | // IsFile returns true if a given file path points to an existing file | {
"resource": ""
} | ||
c23067 | train | // IsDir is a helper function to quickly check if a given path is a valid directory | {
"resource": ""
} | ||
c23068 | train | // NormalizePath normalises path, evaluating symlinks and converting local
// paths to absolute | {
"resource": ""
} | ||
c23069 | train | // OpenFile opens file and returns file handle | {
"resource": ""
} | ||
c23070 | train | // StatDir stats directory, returns error if file exists, but not a directory | {
"resource": ""
} | ||
c23071 | train | // getHomeDir returns the home directory based off the OS. | {
"resource": ""
} | ||
c23072 | train | // GetListenerFile returns file associated with listener | {
"resource": ""
} | ||
c23073 | train | // NewSyncBuffer returns new in memory buffer | {
"resource": ""
} | ||
c23074 | train | // Close closes reads and writes on the buffer | {
"resource": ""
} | ||
c23075 | train | // NewAgent returns a new reverse tunnel agent | {
"resource": ""
} | ||
c23076 | train | // connectedTo returns true if connected services.Server passed in. | {
"resource": ""
} | ||
c23077 | train | // connectedToRightProxy returns true if it connected to a proxy in the
// discover list. | {
"resource": ""
} | ||
c23078 | train | // run is the main agent loop. It tries to establish a connection to the
// remote proxy and then process requests that come over the tunnel.
//
// Once run connects to a proxy it starts processing requests from the proxy
// via SSH channels opened by the remote Proxy.
//
// Agent sends periodic heartbeats back to the ... | {
"resource": ""
} | ||
c23079 | train | // processRequests is a blocking function which runs in a loop sending heartbeats
// to the given SSH connection and processes inbound requests from the
// remote proxy | {
"resource": ""
} | ||
c23080 | train | // NewLinear returns a new instance of linear retry | {
"resource": ""
} | ||
c23081 | train | // Duration returns retry duration based on state | {
"resource": ""
} | ||
c23082 | train | // After returns channel that fires with timeout
// defined in Duration method, as a special case
// if Duration is 0 returns a closed channel | {
"resource": ""
} | ||
c23083 | train | // String returns user-friendly representation of the LinearPeriod | {
"resource": ""
} | ||
c23084 | train | // getLoginShell determines the login shell for a given username | {
"resource": ""
} | ||
c23085 | train | // AuthorizedKeyFingerprint returns fingerprint from public key
// in authorized key format | {
"resource": ""
} | ||
c23086 | train | // PrivateKeyFingerprint returns fingerprint of the public key
// extracted from the PEM encoded private key | {
"resource": ""
} | ||
c23087 | train | // NewHMACAnonymizer returns a new HMAC-based anonymizer | {
"resource": ""
} | ||
c23088 | train | // Anonymize anonymizes the provided data using HMAC | {
"resource": ""
} | ||
c23089 | train | // UnmarshalWithSchema processes YAML or JSON encoded object with JSON schema, sets defaults
// and unmarshals resulting object into given struct | {
"resource": ""
} | ||
c23090 | train | // NewSessionArchive returns generated tar archive with all components | {
"resource": ""
} | ||
c23091 | train | // ParseSigningKeyStore parses signing key store from PEM encoded key pair | {
"resource": ""
} | ||
c23092 | train | // ParseCertificateRequestPEM parses PEM-encoded certificate signing request | {
"resource": ""
} | ||
c23093 | train | // ParseCertificatePEM parses PEM-encoded certificate | {
"resource": ""
} | ||
c23094 | train | // ParsePrivateKeyPEM parses PEM-encoded private key | {
"resource": ""
} | ||
c23095 | train | // ParsePrivateKeyDER parses unencrypted DER-encoded private key | {
"resource": ""
} | ||
c23096 | train | // ReadCertificateChain parses PEM encoded bytes that can contain one or
// multiple certificates and returns a slice of x509.Certificate. | {
"resource": ""
} | ||
c23097 | train | // NewLoadBalancer returns new load balancer listening on frontend
// and redirecting requests to backends using round robin algo | {
"resource": ""
} | ||
c23098 | train | // trackeConnection adds connection to the connection tracker | {
"resource": ""
} | ||
c23099 | train | // untrackConnection removes connection from connection tracker | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.