_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c23200 | train | // CheckCert checks certificate metadata and signature. | {
"resource": ""
} | ||
c23201 | train | // CheckHostKey checks the validity of a host certificate. | {
"resource": ""
} | ||
c23202 | train | // CreateCertificate creates a valid 2048-bit RSA certificate. | {
"resource": ""
} | ||
c23203 | train | // CreateEllipticCertificate creates a valid, but not supported, ECDSA
// SSH certificate. This certificate is used to make sure Teleport rejects
// such certificates. | {
"resource": ""
} | ||
c23204 | train | // createCertificate creates a SSH certificate for the given key signed by the
// given CA key. This function exists here to allow easy key generation for
// some of the more core packages like "sshutils". | {
"resource": ""
} | ||
c23205 | train | // upsertServer is a common utility function | {
"resource": ""
} | ||
c23206 | train | // keepAliveNode updates node TTL in the backend | {
"resource": ""
} | ||
c23207 | train | // upsertNodes is used to bulk insert nodes into the backend. | {
"resource": ""
} | ||
c23208 | train | // getNodes returns registered SSH nodes | {
"resource": ""
} | ||
c23209 | train | // deleteProxy deletes proxy | {
"resource": ""
} | ||
c23210 | train | // upsertAuthServer is called by remote Auth servers when they ping back into the auth service | {
"resource": ""
} | ||
c23211 | train | // getAuthServers returns registered auth servers | {
"resource": ""
} | ||
c23212 | train | // upsertReverseTunnel is called by admin to create a reverse tunnel to remote proxy | {
"resource": ""
} | ||
c23213 | train | // getReverseTunnels returns a list of reverse tunnels | {
"resource": ""
} | ||
c23214 | train | // deleteReverseTunnel deletes reverse tunnel | {
"resource": ""
} | ||
c23215 | train | // getClusterCACert returns the CAs for the local cluster without signing keys. | {
"resource": ""
} | ||
c23216 | train | // getU2FAppID returns the U2F AppID in the auth configuration | {
"resource": ""
} | ||
c23217 | train | // getSignupTokenData returns the signup data for a token. | {
"resource": ""
} | ||
c23218 | train | // upsertTunnelConnection updates or inserts tunnel connection | {
"resource": ""
} | ||
c23219 | train | // getTunnelConnections returns a list of tunnel connections from a cluster | {
"resource": ""
} | ||
c23220 | train | // createRemoteCluster creates remote cluster | {
"resource": ""
} | ||
c23221 | train | // getRemoteClusters returns a list of remote clusters | {
"resource": ""
} | ||
c23222 | train | // getRemoteCluster returns a remote cluster by name | {
"resource": ""
} | ||
c23223 | train | // buildSAMLRoles takes a connector and claims and returns a slice of roles. | {
"resource": ""
} | ||
c23224 | train | // assertionsToTraitMap extracts all string assertions and creates a map of traits
// that can be used to populate role variables. | {
"resource": ""
} | ||
c23225 | train | // ValidateSAMLResponse consumes attribute statements from SAML identity provider | {
"resource": ""
} | ||
c23226 | train | // ForAuth sets up watch configuration for the auth server | {
"resource": ""
} | ||
c23227 | train | // ForProxy sets up watch configuration for proxy | {
"resource": ""
} | ||
c23228 | train | // ForNode sets up watch configuration for node | {
"resource": ""
} | ||
c23229 | train | // New creates a new instance of Cache | {
"resource": ""
} | ||
c23230 | train | // NewWatcher returns a new event watcher. In case of a cache
// this watcher will return events as seen by the cache,
// not the backend. This feature allows auth server
// to handle subscribers connected to the in-memory caches
// instead of reading from the backend. | {
"resource": ""
} | ||
c23231 | train | // setCacheState for "only recent" cache behavior will erase
// the cache and set error mode to refuse to serve stale data,
// otherwise does nothing | {
"resource": ""
} | ||
c23232 | train | // eraseAll erases all the data from cache collections | {
"resource": ""
} | ||
c23233 | train | // findMatchingConn iterates over passed in principals looking for matching
// remote connections. | {
"resource": ""
} | ||
c23234 | train | // setupClientTLS sets up client TLS authentiction between TLS client
// and Teleport Auth server. This function uses hardcoded certificate paths,
// assuming program runs alongside auth server, but it can be ran
// on a remote location, assuming client has all the client certificates. | {
"resource": ""
} | ||
c23235 | train | // NewPresenceService returns new presence service instance | {
"resource": ""
} | ||
c23236 | train | // UpsertLocalClusterName upserts local cluster name | {
"resource": ""
} | ||
c23237 | train | // GetLocalClusterName upserts local domain | {
"resource": ""
} | ||
c23238 | train | // DeleteAllNamespaces deletes all namespaces | {
"resource": ""
} | ||
c23239 | train | // GetNamespace returns a namespace by name | {
"resource": ""
} | ||
c23240 | train | // DeleteNamespace deletes a namespace with all the keys from the backend | {
"resource": ""
} | ||
c23241 | train | // DeleteAllNodes deletes all nodes in a namespace | {
"resource": ""
} | ||
c23242 | train | // DeleteNode deletes node | {
"resource": ""
} | ||
c23243 | train | // GetNodes returns a list of registered servers | {
"resource": ""
} | ||
c23244 | train | // UpsertNode registers node presence, permanently if TTL is 0 or for the
// specified duration with second resolution if it's >= 1 second. | {
"resource": ""
} | ||
c23245 | train | // KeepAliveNode updates node expiry | {
"resource": ""
} | ||
c23246 | train | // UpsertNodes is used for bulk insertion of nodes. Schema validation is
// always skipped during bulk insertion. | {
"resource": ""
} | ||
c23247 | train | // GetAuthServers returns a list of registered servers | {
"resource": ""
} | ||
c23248 | train | // UpsertAuthServer registers auth server presence, permanently if ttl is 0 or
// for the specified duration with second resolution if it's >= 1 second | {
"resource": ""
} | ||
c23249 | train | // UpsertProxy registers proxy server presence, permanently if ttl is 0 or
// for the specified duration with second resolution if it's >= 1 second | {
"resource": ""
} | ||
c23250 | train | // GetProxies returns a list of registered proxies | {
"resource": ""
} | ||
c23251 | train | // DeleteProxy deletes proxy | {
"resource": ""
} | ||
c23252 | train | // DeleteAllReverseTunnels deletes all reverse tunnels | {
"resource": ""
} | ||
c23253 | train | // UpsertReverseTunnel upserts reverse tunnel entry temporarily or permanently | {
"resource": ""
} | ||
c23254 | train | // GetReverseTunnels returns a list of registered servers | {
"resource": ""
} | ||
c23255 | train | // DeleteReverseTunnel deletes reverse tunnel by it's cluster name | {
"resource": ""
} | ||
c23256 | train | // UpsertTrustedCluster creates or updates a TrustedCluster in the backend. | {
"resource": ""
} | ||
c23257 | train | // GetTrustedCluster returns a single TrustedCluster by name. | {
"resource": ""
} | ||
c23258 | train | // GetTrustedClusters returns all TrustedClusters in the backend. | {
"resource": ""
} | ||
c23259 | train | // DeleteTrustedCluster removes a TrustedCluster from the backend by name. | {
"resource": ""
} | ||
c23260 | train | // UpsertTunnelConnection updates or creates tunnel connection | {
"resource": ""
} | ||
c23261 | train | // GetTunnelConnection returns connection by cluster name and connection name | {
"resource": ""
} | ||
c23262 | train | // GetTunnelConnections returns connections for a trusted cluster | {
"resource": ""
} | ||
c23263 | train | // DeleteTunnelConnections deletes all tunnel connections for cluster | {
"resource": ""
} | ||
c23264 | train | // DeleteAllTunnelConnections deletes all tunnel connections | {
"resource": ""
} | ||
c23265 | train | // CreateRemoteCluster creates remote cluster | {
"resource": ""
} | ||
c23266 | train | // DeleteAllRemoteClusters deletes all remote clusters | {
"resource": ""
} | ||
c23267 | train | // timestampFrame prints 'event timestamp' in the top right corner of the
// terminal after playing every 'print' event | {
"resource": ""
} | ||
c23268 | train | // FastUnmarshal uses the json-iterator library for fast JSON unmarshalling.
// Note, this function marshals floats with 6 digits precision. | {
"resource": ""
} | ||
c23269 | train | // FastMarshal uses the json-iterator library for fast JSON marshalling.
// Note, this function marshals floats with 6 digits precision. | {
"resource": ""
} | ||
c23270 | train | // isDoc detects whether value constitues a document | {
"resource": ""
} | ||
c23271 | train | // writeYAML writes marshaled YAML to writer | {
"resource": ""
} | ||
c23272 | train | // ReadYAML can unmarshal a stream of documents, used in tests. | {
"resource": ""
} | ||
c23273 | train | // NewRedirector returns new local web server redirector | {
"resource": ""
} | ||
c23274 | train | // Start launches local http server on the machine,
// initiates SSO login request sequence with the Teleport Proxy | {
"resource": ""
} | ||
c23275 | train | // ClickableURL returns a short clickable redirect URL | {
"resource": ""
} | ||
c23276 | train | // callback is used by Teleport proxy to send back credentials
// issued by Teleport proxy | {
"resource": ""
} | ||
c23277 | train | // Close closes redirector and releases all resources | {
"resource": ""
} | ||
c23278 | train | // wrapCallback is a helper wrapper method that wraps callback HTTP handler
// and sends a result to the channel and redirect users to error page | {
"resource": ""
} | ||
c23279 | train | // NewLicense is a convenience method to to create LicenseV3. | {
"resource": ""
} | ||
c23280 | train | // SetLabels sets metadata labels | {
"resource": ""
} | ||
c23281 | train | // String represents a human readable version of license enabled features | {
"resource": ""
} | ||
c23282 | train | // UnmarshalLicense unmarshals License from JSON or YAML
// and validates schema | {
"resource": ""
} | ||
c23283 | train | // MarshalLicense marshals role to JSON or YAML. | {
"resource": ""
} | ||
c23284 | train | // NewAgentPool returns new isntance of the agent pool | {
"resource": ""
} | ||
c23285 | train | // reportStats submits report about agents state once in a while at info
// level. Always logs more detailed information at debug level. | {
"resource": ""
} | ||
c23286 | train | // removeDisconnected removes disconnected agents from the list of agents.
// This function should be called under a lock. | {
"resource": ""
} | ||
c23287 | train | // SetAddresses updates storage with new address list | {
"resource": ""
} | ||
c23288 | train | // GetAddresses returns saved address list | {
"resource": ""
} | ||
c23289 | train | // TLSDial dials and establishes TLS connection using custom dialer
// is similar to tls.DialWithDialer | {
"resource": ""
} | ||
c23290 | train | // NewUserContext constructs user context from roles assigned to user | {
"resource": ""
} | ||
c23291 | train | // Serve takes TCP listener, upgrades to TLS using config and starts serving | {
"resource": ""
} | ||
c23292 | train | // GetUser returns authenticated user based on request metadata set by HTTP server | {
"resource": ""
} | ||
c23293 | train | // ServeHTTP serves HTTP requests | {
"resource": ""
} | ||
c23294 | train | // ClientCertPool returns trusted x509 cerificate authority pool | {
"resource": ""
} | ||
c23295 | train | // applySSHConfig applies file configuration for the "ssh_service" section. | {
"resource": ""
} | ||
c23296 | train | // parseAuthorizedKeys parses keys in the authorized_keys format and
// returns a services.CertAuthority. | {
"resource": ""
} | ||
c23297 | train | // parseKnownHosts parses keys in known_hosts format and returns a
// services.CertAuthority. | {
"resource": ""
} | ||
c23298 | train | // certificateAuthorityFormat parses bytes and determines if they are in
// known_hosts format or authorized_keys format. | {
"resource": ""
} | ||
c23299 | train | // parseCAKey parses bytes either in known_hosts or authorized_keys format
// and returns a services.CertAuthority. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.