_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c23400
train
// GetNewKeyPairFromPool returns precomputed key pair from the pool.
{ "resource": "" }
c23401
train
// precomputeKeys continues loops forever trying to compute cache key pairs.
{ "resource": "" }
c23402
train
// GenerateHostCert generates a host certificate with the passed in parameters. // The private key of the CA to sign the certificate must be provided.
{ "resource": "" }
c23403
train
// GenerateUserCert generates a host certificate with the passed in parameters. // The private key of the CA to sign the certificate must be provided.
{ "resource": "" }
c23404
train
// NewHandler returns new S3 uploader
{ "resource": "" }
c23405
train
// Upload uploads object to S3 bucket, reads the contents of the object from reader // and returns the target S3 bucket path in case of successful upload.
{ "resource": "" }
c23406
train
// Download downloads recorded session from S3 bucket and writes the results into writer // return trace.NotFound error is object is not found
{ "resource": "" }
c23407
train
// delete bucket deletes bucket and all it's contents and is used in tests
{ "resource": "" }
c23408
train
// ensureBucket makes sure bucket exists, and if it does not, creates it
{ "resource": "" }
c23409
train
// ConvertS3Error wraps S3 error and returns trace equivalent
{ "resource": "" }
c23410
train
// NewRoles return a list of roles from slice of strings
{ "resource": "" }
c23411
train
// ParseRoles takes a comma-separated list of roles and returns a slice // of roles, or an error if parsing failed
{ "resource": "" }
c23412
train
// Includes returns 'true' if a given list of roles includes a given role
{ "resource": "" }
c23413
train
// Slice returns roles as string slice
{ "resource": "" }
c23414
train
// Equals compares two sets of roles
{ "resource": "" }
c23415
train
// Set sets the value of the role from string, used to integrate with CLI tools
{ "resource": "" }
c23416
train
// String returns debug-friendly representation of this role.
{ "resource": "" }
c23417
train
// Check checks if this a a valid role value, returns nil // if it's ok, false otherwise
{ "resource": "" }
c23418
train
// CheckAndSetDefaults is a helper returns an error if the supplied configuration // is not enough to connect to sqlite
{ "resource": "" }
c23419
train
// New returns a new instance of sqlite backend
{ "resource": "" }
c23420
train
// NewWithConfig returns a new instance of lite backend using // configuration struct as a parameter
{ "resource": "" }
c23421
train
// showPragmas is used to debug SQLite database connection // parameters, when called, logs some key PRAGMA values
{ "resource": "" }
c23422
train
// Imported returns true if backend already imported data from another backend
{ "resource": "" }
c23423
train
// Import imports elements, makes sure elements are imported only once // returns trace.AlreadyExists if elements have been imported
{ "resource": "" }
c23424
train
// getInTransaction returns an item, works in transaction
{ "resource": "" }
c23425
train
// PrintVersion prints the Teleport version.
{ "resource": "" }
c23426
train
// TraitsFromLogins returns traits for external user based on the logins // extracted from the connector // // By default logins are treated as allowed logins user traits.
{ "resource": "" }
c23427
train
// NewGithubConnector creates a new Github connector from name and spec
{ "resource": "" }
c23428
train
// SetExpiry sets the connector expiration time
{ "resource": "" }
c23429
train
// SetTTL sets the connector TTL
{ "resource": "" }
c23430
train
// MapClaims returns a list of logins based on the provided claims, // returns a list of logins and list of kubernetes groups
{ "resource": "" }
c23431
train
// UnmarshalGithubConnector unmarshals Github connector from JSON
{ "resource": "" }
c23432
train
// MarshalGithubConnector marshals Github connector to JSON
{ "resource": "" }
c23433
train
// DeleteAllTokens deletes all provisioning tokens
{ "resource": "" }
c23434
train
// NewClusterConfig is a convenience wrapper to create a ClusterConfig resource.
{ "resource": "" }
c23435
train
// AuditConfigFromObject returns audit config from interface object
{ "resource": "" }
c23436
train
// SetClientIdleTimeout sets client idle timeout setting
{ "resource": "" }
c23437
train
// SetDisconnectExpiredCert sets disconnect client with expired certificate setting
{ "resource": "" }
c23438
train
// SetKeepAliveInterval sets the keep-alive interval.
{ "resource": "" }
c23439
train
// String represents a human readable version of the cluster name.
{ "resource": "" }
c23440
train
// GetClusterConfigSchema returns the schema with optionally injected // schema for extensions.
{ "resource": "" }
c23441
train
// Unmarshal unmarshals ClusterConfig from JSON.
{ "resource": "" }
c23442
train
// Marshal marshals ClusterConfig to JSON.
{ "resource": "" }
c23443
train
// CheckVersions compares client and server versions and makes sure that the // client version is greater than or equal to the minimum version supported // by the server.
{ "resource": "" }
c23444
train
// NewExecRequest creates a new local or remote Exec.
{ "resource": "" }
c23445
train
// Wait will block while the command executes.
{ "resource": "" }
c23446
train
// Wait will block while the command executes then return the result as well // as emit an event to the Audit Log.
{ "resource": "" }
c23447
train
// parseSecureCopy will parse a command and return if it's secure copy or not.
{ "resource": "" }
c23448
train
// MakeIdentityFile takes a username + their credentials and saves them to disk // in a specified format
{ "resource": "" }
c23449
train
// CheckAndSetDefaults checks and sets default values of file handler config
{ "resource": "" }
c23450
train
// NewHandler returns new file sessions handler
{ "resource": "" }
c23451
train
// Download downloads session recording from storage, in case of file handler reads the // file from local directory
{ "resource": "" }
c23452
train
// Upload uploads session recording to file storage, in case of file handler, // writes the file to local directory
{ "resource": "" }
c23453
train
// List is called to execute "tokens ls" command.
{ "resource": "" }
c23454
train
// calculateCAPin returns the SPKI pin for the local cluster.
{ "resource": "" }
c23455
train
// isKeySafe checks if the passed in key conforms to whitelist
{ "resource": "" }
c23456
train
// Check makes sure that the request is valid
{ "resource": "" }
c23457
train
// NewCredentialsClient creates a new client to the HTTPS web proxy.
{ "resource": "" }
c23458
train
// SSHAgentLogin is used by tsh to fetch local user credentials.
{ "resource": "" }
c23459
train
// HostCredentials is used to fetch host credentials for a node.
{ "resource": "" }
c23460
train
// DeleteAllRoles deletes all roles
{ "resource": "" }
c23461
train
// GetRoles returns a list of roles registered with the local auth server
{ "resource": "" }
c23462
train
// CreateRole creates a role on the backend.
{ "resource": "" }
c23463
train
// GetRole returns a role by name
{ "resource": "" }
c23464
train
// DeleteRole deletes a role from the backend
{ "resource": "" }
c23465
train
// hasRemoteBuiltinRole checks the type of the role set returned and the name. // Returns true if role set is remote builtin and the name matches.
{ "resource": "" }
c23466
train
// RotateExternalCertAuthority rotates external certificate authority, // this method is called by a remote trusted cluster and is used to update // only public keys and certificates of the certificate authority.
{ "resource": "" }
c23467
train
// UpsertCertAuthority updates existing cert authority or updates the existing one.
{ "resource": "" }
c23468
train
// UpsertNodes bulk upserts nodes into the backend.
{ "resource": "" }
c23469
train
// filterNodes filters nodes based off the role of the logged in user.
{ "resource": "" }
c23470
train
// DeleteProxy deletes proxy by name
{ "resource": "" }
c23471
train
// DeleteNamespace deletes namespace by name
{ "resource": "" }
c23472
train
// DeleteRole deletes role by name
{ "resource": "" }
c23473
train
// GetClusterConfig gets cluster level configuration.
{ "resource": "" }
c23474
train
// DeleteClusterConfig deletes cluster config
{ "resource": "" }
c23475
train
// DeleteClusterName deletes cluster name
{ "resource": "" }
c23476
train
// SetClusterConfig sets cluster level configuration.
{ "resource": "" }
c23477
train
// GetClusterName gets the name of the cluster.
{ "resource": "" }
c23478
train
// SetClusterName sets the name of the cluster. SetClusterName can only be called once.
{ "resource": "" }
c23479
train
// NewAdminAuthServer returns auth server authorized as admin, // used for auth server cached access
{ "resource": "" }
c23480
train
// NewAuthWithRoles creates new auth server with access control
{ "resource": "" }
c23481
train
// SetChmod sets file permissions
{ "resource": "" }
c23482
train
// MkDir creates a directory
{ "resource": "" }
c23483
train
// OpenFile opens a file for read operations and returns a Reader
{ "resource": "" }
c23484
train
// GetFileInfo returns FileInfo for a given file path
{ "resource": "" }
c23485
train
// CreateFile creates a new file and returns a Writer
{ "resource": "" }
c23486
train
// ReadDir returns all files in this directory
{ "resource": "" }
c23487
train
// GetModePerm returns file permissions
{ "resource": "" }
c23488
train
// Clos closes remote cluster connections
{ "resource": "" }
c23489
train
// nextConn returns next connection that is ready // and has not been marked as invalid // it will close connections marked as invalid
{ "resource": "" }
c23490
train
// removeInvalidConns removes connections marked as invalid, // it should be called only under write lock
{ "resource": "" }
c23491
train
// addConn helper adds a new active remote cluster connection to the list // of such connections
{ "resource": "" }
c23492
train
// deleteConnectionRecord deletes connection record to let know peer proxies // that this node lost the connection and needs to be discovered
{ "resource": "" }
c23493
train
// handleHearbeat receives heartbeat messages from the connected agent // if the agent has missed several heartbeats in a row, Proxy marks // the connection as invalid.
{ "resource": "" }
c23494
train
// updateCertAuthorities updates local and remote cert authorities
{ "resource": "" }
c23495
train
// CheckAndSetDefaults checks and sets
{ "resource": "" }
c23496
train
// NewReporter returns a new Reporter.
{ "resource": "" }
c23497
train
// trackRequests tracks top requests, endKey is supplied for ranges
{ "resource": "" }
c23498
train
// NewReporterWatcher creates new reporter watcher instance
{ "resource": "" }
c23499
train
// MakeTable creates a new instance of the table with given column names.
{ "resource": "" }