_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c23100 | train | // dropConnections drops connections associated with backend | {
"resource": ""
} | ||
c23101 | train | // AddBackend adds backend | {
"resource": ""
} | ||
c23102 | train | // RemoveBackend removes backend | {
"resource": ""
} | ||
c23103 | train | // ListenAndServe starts listening socket and serves connections on it | {
"resource": ""
} | ||
c23104 | train | // Listen creates a listener on the frontend addr | {
"resource": ""
} | ||
c23105 | train | // Serve starts accepting connections | {
"resource": ""
} | ||
c23106 | train | // NewDiskSessionLogger creates new disk based session logger | {
"resource": ""
} | ||
c23107 | train | // Finalize is called by the session when it's closing. This is where we're
// releasing audit resources associated with the session | {
"resource": ""
} | ||
c23108 | train | // flush is used to flush gzip frames to file, otherwise
// some attempts to read the file could fail | {
"resource": ""
} | ||
c23109 | train | // eventsFileName consists of session id and the first global event index recorded there | {
"resource": ""
} | ||
c23110 | train | // chunksFileName consists of session id and the first global offset recorded | {
"resource": ""
} | ||
c23111 | train | // PostSessionSlice takes series of events associated with the session
// and writes them to events files and data file for future replays | {
"resource": ""
} | ||
c23112 | train | // EventFromChunk returns event converted from session chunk | {
"resource": ""
} | ||
c23113 | train | // Close closes gzip writer and file | {
"resource": ""
} | ||
c23114 | train | // Close closes file and gzip writer | {
"resource": ""
} | ||
c23115 | train | // String returns user-friendly representation of the mode | {
"resource": ""
} | ||
c23116 | train | // NewHeartbeat returns a new instance of heartbeat | {
"resource": ""
} | ||
c23117 | train | // Run periodically calls to announce presence,
// should be called explicitly in a separate goroutine | {
"resource": ""
} | ||
c23118 | train | // reset resets keep alive state
// and sends the state back to the initial state
// of sending full update | {
"resource": ""
} | ||
c23119 | train | // fetch, if succeeded updates or sets current server
// to the last received server | {
"resource": ""
} | ||
c23120 | train | // fetchAndAnnounce fetches data about server
// and announces it to the server | {
"resource": ""
} | ||
c23121 | train | // ForceSend forces send cycle, used in tests, returns
// nil in case of success, error otherwise | {
"resource": ""
} | ||
c23122 | train | // deleteAllItems deletes all items from the database, used in tests | {
"resource": ""
} | ||
c23123 | train | // NewEventsService returns new events service instance | {
"resource": ""
} | ||
c23124 | train | // base returns last element delimited by separator, index is
// is an index of the key part to get counting from the end | {
"resource": ""
} | ||
c23125 | train | // baseTwoKeys returns two last keys | {
"resource": ""
} | ||
c23126 | train | // NewWrapper returns new access point wrapper | {
"resource": ""
} | ||
c23127 | train | // UpsertNode is part of auth.AccessPoint implementation | {
"resource": ""
} | ||
c23128 | train | // UpsertAuthServer is part of auth.AccessPoint implementation | {
"resource": ""
} | ||
c23129 | train | // UpsertProxy is part of auth.AccessPoint implementation | {
"resource": ""
} | ||
c23130 | train | // UpsertTunnelConnection is a part of auth.AccessPoint implementation | {
"resource": ""
} | ||
c23131 | train | // DeleteTunnelConnection is a part of auth.AccessPoint implementation | {
"resource": ""
} | ||
c23132 | train | // SetShutdownPollPeriod sets a polling period for graceful shutdowns of SSH servers | {
"resource": ""
} | ||
c23133 | train | // Wait waits until server stops serving new connections
// on the listener socket | {
"resource": ""
} | ||
c23134 | train | // Shutdown initiates graceful shutdown - waiting until all active
// connections will get closed | {
"resource": ""
} | ||
c23135 | train | // validateHostSigner make sure the signer is a valid certificate. | {
"resource": ""
} | ||
c23136 | train | // KeysEqual is constant time compare of the keys to avoid timing attacks | {
"resource": ""
} | ||
c23137 | train | // String returns a user-friendly description
// of the watcher | {
"resource": ""
} | ||
c23138 | train | // GetString returns a string value stored in Params map, or an empty string
// if nothing is found | {
"resource": ""
} | ||
c23139 | train | // RangeEnd returns end of the range for given key | {
"resource": ""
} | ||
c23140 | train | // TTL returns TTL in duration units, rounds up to one second | {
"resource": ""
} | ||
c23141 | train | // EarliestExpiry returns first of the
// otherwise returns empty | {
"resource": ""
} | ||
c23142 | train | // Expiry converts ttl to expiry time, if ttl is 0
// returns empty time | {
"resource": ""
} | ||
c23143 | train | // Dial creates net.Conn to a SSH agent listening on a Unix socket. | {
"resource": ""
} | ||
c23144 | train | // NewAuthPreference is a convenience method to to create AuthPreferenceV2. | {
"resource": ""
} | ||
c23145 | train | // GetU2F gets the U2F configuration settings. | {
"resource": ""
} | ||
c23146 | train | // CheckAndSetDefaults verifies the constraints for AuthPreference. | {
"resource": ""
} | ||
c23147 | train | // String represents a human readable version of authentication settings. | {
"resource": ""
} | ||
c23148 | train | // GetAuthPreferenceSchema returns the schema with optionally injected
// schema for extensions. | {
"resource": ""
} | ||
c23149 | train | // proxyToSite establishes a proxy connection from the connected SSH client to the
// auth server of the requested remote site | {
"resource": ""
} | ||
c23150 | train | // ListenTLS sets up TLS listener for the http handler, starts listening
// on a TCP socket and returns the socket which is ready to be used
// for http.Serve | {
"resource": ""
} | ||
c23151 | train | // TLSConfig returns default TLS configuration strong defaults. | {
"resource": ""
} | ||
c23152 | train | // CreateTLSConfiguration sets up default TLS configuration | {
"resource": ""
} | ||
c23153 | train | // GenerateSelfSignedCert generates a self signed certificate that
// is valid for given domain names and ips, returns PEM-encoded bytes with key and cert | {
"resource": ""
} | ||
c23154 | train | // CipherSuiteMapping transforms Teleport formatted cipher suites strings
// into uint16 IDs. | {
"resource": ""
} | ||
c23155 | train | // NewTerminal returns a new terminal. Terminal can be local or remote
// depending on cluster configuration. | {
"resource": ""
} | ||
c23156 | train | // NewLocalTerminal creates and returns a local PTY. | {
"resource": ""
} | ||
c23157 | train | // Run will run the terminal. | {
"resource": ""
} | ||
c23158 | train | // Wait will block until the terminal is complete. | {
"resource": ""
} | ||
c23159 | train | // Kill will force kill the terminal. | {
"resource": ""
} | ||
c23160 | train | // Close will free resources associated with the terminal. | {
"resource": ""
} | ||
c23161 | train | // GetWinSize returns the window size of the terminal. | {
"resource": ""
} | ||
c23162 | train | // SetWinSize sets the window size of the terminal. | {
"resource": ""
} | ||
c23163 | train | // GetTerminalParams is a fast call to get cached terminal parameters
// and avoid extra system call. | {
"resource": ""
} | ||
c23164 | train | // SetTermType sets the terminal type from "req-pty" request. | {
"resource": ""
} | ||
c23165 | train | // setOwner changes the owner and mode of the TTY. | {
"resource": ""
} | ||
c23166 | train | // prepareRemoteSession prepares the more session for execution. | {
"resource": ""
} | ||
c23167 | train | // NewAuthServer creates and configures a new AuthServer instance | {
"resource": ""
} | ||
c23168 | train | // SetCache sets cache used by auth server | {
"resource": ""
} | ||
c23169 | train | // GetCache returns cache used by auth server | {
"resource": ""
} | ||
c23170 | train | // runPeriodicOperations runs some periodic bookkeeping operations
// performed by auth server | {
"resource": ""
} | ||
c23171 | train | // SetClock sets clock, used in tests | {
"resource": ""
} | ||
c23172 | train | // GetClusterConfig gets ClusterConfig from the backend. | {
"resource": ""
} | ||
c23173 | train | // GetClusterName returns the domain name that identifies this authority server.
// Also known as "cluster name" | {
"resource": ""
} | ||
c23174 | train | // GetDomainName returns the domain name that identifies this authority server.
// Also known as "cluster name" | {
"resource": ""
} | ||
c23175 | train | // GenerateUserCerts is used to generate user certificate, used internally for tests | {
"resource": ""
} | ||
c23176 | train | // WithUserLock executes function authenticateFn that performs user authentication
// if authenticateFn returns non nil error, the login attempt will be logged in as failed.
// The only exception to this rule is ConnectionProblemError, in case if it occurs
// access will be denied, but login attempt will not be recorde... | {
"resource": ""
} | ||
c23177 | train | // PreAuthenticatedSignIn is for 2-way authentication methods like U2F where the password is
// already checked before issuing the second factor challenge | {
"resource": ""
} | ||
c23178 | train | // ExtendWebSession creates a new web session for a user based on a valid previous sessionID,
// method is used to renew the web session for a user | {
"resource": ""
} | ||
c23179 | train | // CreateWebSession creates a new web session for user without any
// checks, is used by admins | {
"resource": ""
} | ||
c23180 | train | // CheckAndSetDefaults checks and sets default values of request | {
"resource": ""
} | ||
c23181 | train | // GenerateToken generates multi-purpose authentication token | {
"resource": ""
} | ||
c23182 | train | // ExtractHostID returns host id based on the hostname | {
"resource": ""
} | ||
c23183 | train | // ValidateToken takes a provisioning token value and finds if it's valid. Returns
// a list of roles this token allows its owner to assume, or an error if the token
// cannot be found. | {
"resource": ""
} | ||
c23184 | train | // checkTokenTTL checks if the token is still valid. If it is not, the token
// is removed from the backend and returns false. Otherwise returns true. | {
"resource": ""
} | ||
c23185 | train | // CheckAndSetDefaults checks for errors and sets defaults | {
"resource": ""
} | ||
c23186 | train | // NewWatcher returns a new event watcher. In case of an auth server
// this watcher will return events as seen by the auth server's
// in memory cache, not the backend. | {
"resource": ""
} | ||
c23187 | train | // Error returns the error if keep aliver
// has been closed | {
"resource": ""
} | ||
c23188 | train | // oidcConfigsEqual returns true if the provided OIDC configs are equal | {
"resource": ""
} | ||
c23189 | train | // oauth2ConfigsEqual returns true if the provided OAuth2 configs are equal | {
"resource": ""
} | ||
c23190 | train | // isHTTPS checks if the scheme for a URL is https or not. | {
"resource": ""
} | ||
c23191 | train | // NewOIDCConnector returns a new OIDCConnector based off a name and OIDCConnectorSpecV2. | {
"resource": ""
} | ||
c23192 | train | // UnmarshalOIDCConnector unmarshals connector from | {
"resource": ""
} | ||
c23193 | train | // MarshalUser marshals OIDC connector into JSON | {
"resource": ""
} | ||
c23194 | train | // V1 converts OIDCConnectorV2 to OIDCConnectorV1 format | {
"resource": ""
} | ||
c23195 | train | // GetClaims returns list of claims expected by mappings | {
"resource": ""
} | ||
c23196 | train | // MapClaims maps claims to roles | {
"resource": ""
} | ||
c23197 | train | // GetClaimNames returns a list of claim names from the claim values | {
"resource": ""
} | ||
c23198 | train | // V2 returns V2 version of the connector | {
"resource": ""
} | ||
c23199 | train | // Authenticate checks the validity of a user certificate.
// a value for ServerConfig.PublicKeyCallback. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.