_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c24200
train
// SafeRedirect performs a relative redirect to the URI part of the provided redirect URL
{ "resource": "" }
c24201
train
// CreateOrJoinSession will look in the SessionRegistry for the session ID. If // no session is found, a new one is created. If one is found, it is returned.
{ "resource": "" }
c24202
train
// UpdateClientActivity sets last recorded client activity associated with this context // either channel or session
{ "resource": "" }
c24203
train
// GetAgent returns a agent.Agent which represents the capabilities of an SSH agent.
{ "resource": "" }
c24204
train
// GetAgentChannel returns the channel over which communication with the agent occurs.
{ "resource": "" }
c24205
train
// SetAgent sets the agent and channel over which communication with the agent occurs.
{ "resource": "" }
c24206
train
// GetTerm returns a Terminal.
{ "resource": "" }
c24207
train
// SetTerm set a Terminal.
{ "resource": "" }
c24208
train
// SetEnv sets a environment variable within this context.
{ "resource": "" }
c24209
train
// GetEnv returns a environment variable within this context.
{ "resource": "" }
c24210
train
// SendExecResult sends the result of execution of the "exec" command over the // ExecResultCh.
{ "resource": "" }
c24211
train
// SendSubsystemResult sends the result of running the subsystem over the // SubsystemResultCh.
{ "resource": "" }
c24212
train
// ProxyPublicAddress tries to get the public address from the first // available proxy. if public_address is not set, fall back to the hostname // of the first proxy we get back.
{ "resource": "" }
c24213
train
// NewTrackingReader returns a new instance of // activity tracking reader.
{ "resource": "" }
c24214
train
// Read passes the read through to internal // reader, and updates activity of the server context
{ "resource": "" }
c24215
train
// CheckDefaults makes sure the Config structure has minimum required values.
{ "resource": "" }
c24216
train
// NewAdminContext returns new admin auth context
{ "resource": "" }
c24217
train
// NewRoleAuthorizer authorizes everyone as predefined role, used in tests
{ "resource": "" }
c24218
train
// NewUserAuthorizer authorizes everyone as predefined local user
{ "resource": "" }
c24219
train
// NewAuthorizer returns new authorizer using backends
{ "resource": "" }
c24220
train
// authorizeLocalUser returns authz context based on the username
{ "resource": "" }
c24221
train
// authorizeRemoteUser returns checker based on cert authority roles
{ "resource": "" }
c24222
train
// authorizeBuiltinRole authorizes builtin role
{ "resource": "" }
c24223
train
// Initialize allows UserCommand to plug itself into the CLI parser
{ "resource": "" }
c24224
train
// Add creates a new sign-up token and prints a token URL to stdout. // A user is not created until he visits the sign-up URL and completes the process
{ "resource": "" }
c24225
train
// PrintSignupURL prints signup URL
{ "resource": "" }
c24226
train
// Update updates existing user
{ "resource": "" }
c24227
train
// List prints all existing user accounts
{ "resource": "" }
c24228
train
// ListenUnixSocket starts listening and serving agent assuming that
{ "resource": "" }
c24229
train
// Serve starts serving on the listener, assumes that Listen was called before
{ "resource": "" }
c24230
train
// ListenAndServe is similar http.ListenAndServe
{ "resource": "" }
c24231
train
// Close closes listener and stops serving agent
{ "resource": "" }
c24232
train
// VerifyHTTPHeader checks if HTTP header value matches the cookie.
{ "resource": "" }
c24233
train
// VerifyToken validates given token based on HTTP request cookie
{ "resource": "" }
c24234
train
// ExtractTokenFromCookie retrieves a CSRF token from the session cookie.
{ "resource": "" }
c24235
train
// save stores encoded CSRF token in the session cookie.
{ "resource": "" }
c24236
train
// ValidateOIDCAuthCallback is called by the proxy to check OIDC query parameters // returned by OIDC Provider, if everything checks out, auth server // will respond with OIDCAuthResponse, otherwise it will return error
{ "resource": "" }
c24237
train
// buildOIDCRoles takes a connector and claims and returns a slice of roles.
{ "resource": "" }
c24238
train
// claimsToTraitMap extracts all string claims and creates a map of traits // that can be used to populate role variables.
{ "resource": "" }
c24239
train
// claimsFromIDToken extracts claims from the ID token.
{ "resource": "" }
c24240
train
// fetchGroups fetches GSuite groups a user belongs to and returns // "groups" claim with
{ "resource": "" }
c24241
train
// mergeClaims merges b into a.
{ "resource": "" }
c24242
train
// validateACRValues validates that we get an appropriate response for acr values. By default // we expect the same value we send, but this function also handles Identity Provider specific // forms of validation.
{ "resource": "" }
c24243
train
// Benchmark connects to remote server and executes requests in parallel according // to benchmark spec. It returns benchmark result when completed. // This is a blocking function that can be cancelled via context argument.
{ "resource": "" }
c24244
train
// NewCloserConn returns new connection wrapper that // when closed will also close passed closers
{ "resource": "" }
c24245
train
// TLSConfig returns client TLS configuration used // to authenticate against API servers
{ "resource": "" }
c24246
train
// CertUsername returns the name of the Teleport user encoded in the SSH certificate.
{ "resource": "" }
c24247
train
// CertPrincipals returns the principals listed on the SSH certificate.
{ "resource": "" }
c24248
train
// EqualsTo returns true if this key is the same as the other. // Primarily used in tests
{ "resource": "" }
c24249
train
// TLSCertValidBefore returns the time of the TLS cert expiration
{ "resource": "" }
c24250
train
// CertValidBefore returns the time of the cert expiration
{ "resource": "" }
c24251
train
// AsAuthMethod returns an "auth method" interface, a common abstraction // used by Golang SSH library. This is how you actually use a Key to feed // it into the SSH lib.
{ "resource": "" }
c24252
train
// CheckCert makes sure the SSH certificate is valid.
{ "resource": "" }
c24253
train
// collectActiveShards collects shards
{ "resource": "" }
c24254
train
// GetRange returns range of elements
{ "resource": "" }
c24255
train
// CompareAndSwap compares and swap values in atomic operation // CompareAndSwap compares item with existing item // and replaces is with replaceWith item
{ "resource": "" }
c24256
train
// Close closes the DynamoDB driver // and releases associated resources
{ "resource": "" }
c24257
train
// deleteTable deletes DynamoDB table with a given name
{ "resource": "" }
c24258
train
// getRecords retrieves all keys by path
{ "resource": "" }
c24259
train
// NewCircularBuffer returns a new instance of circular buffer
{ "resource": "" }
c24260
train
// Reset resets all events from the queue // and closes all active watchers
{ "resource": "" }
c24261
train
// Events returns a copy of records as arranged from start to end
{ "resource": "" }
c24262
train
// eventsCopy returns a copy of events as arranged from start to end
{ "resource": "" }
c24263
train
// PushBatch pushes elements to the queue as a batch
{ "resource": "" }
c24264
train
// Push pushes elements to the queue
{ "resource": "" }
c24265
train
// NewWatcher adds a new watcher to the events buffer
{ "resource": "" }
c24266
train
// String returns user-friendly representation // of the buffer watcher
{ "resource": "" }
c24267
train
// add adds buffer watcher to the tree
{ "resource": "" }
c24268
train
// rm removes the buffer watcher from the prefix tree
{ "resource": "" }
c24269
train
// walkPath walks the tree above the longest matching prefix // and calls fn callback for every buffer watcher
{ "resource": "" }
c24270
train
// walk calls fn for every matching leaf of the tree
{ "resource": "" }
c24271
train
// UpdateKubeconfig adds Teleport configuration to kubeconfig.
{ "resource": "" }
c24272
train
// RemoveKubeconifg removes Teleport configuration from kubeconfig.
{ "resource": "" }
c24273
train
// LoadKubeconfig tries to read a kubeconfig file and if it can't, returns an error. // One exception, missing files result in empty configs, not an error.
{ "resource": "" }
c24274
train
// SaveKubeConfig saves updated config to location specified by environment variable or // default location
{ "resource": "" }
c24275
train
// kubeconfigFromEnv extracts location of kubeconfig from the environment.
{ "resource": "" }
c24276
train
// CheckAndSetDefaults checks and sets config defaults
{ "resource": "" }
c24277
train
// NewFileLog returns a new instance of a file log
{ "resource": "" }
c24278
train
// EmitAuditEvent adds a new event to the log. Part of auth.IFileLog interface.
{ "resource": "" }
c24279
train
// Close closes the audit log, which inluces closing all file handles and releasing // all session loggers
{ "resource": "" }
c24280
train
// rotateLog checks if the current log file is older than a given duration, // and if it is, closes it and opens a new one.
{ "resource": "" }
c24281
train
// matchingFiles returns files matching the time restrictions of the query // across multiple auth servers, returns a list of file names
{ "resource": "" }
c24282
train
// parseFileTime parses file's timestamp encoded into filename
{ "resource": "" }
c24283
train
// getTime converts json time to string
{ "resource": "" }
c24284
train
// StringMapsEqual returns true if two strings maps are equal
{ "resource": "" }
c24285
train
// StringMapSlicesEqual returns true if two maps of string slices are equal
{ "resource": "" }
c24286
train
// NewSAMLConnector returns a new SAMLConnector based off a name and SAMLConnectorSpecV2.
{ "resource": "" }
c24287
train
// UnmarshalSAMLConnector unmarshals connector from
{ "resource": "" }
c24288
train
// MarshalUser marshals SAML connector into JSON
{ "resource": "" }
c24289
train
// Equals returns true if the connectors are identical
{ "resource": "" }
c24290
train
// GetAttributes returns list of attributes expected by mappings
{ "resource": "" }
c24291
train
// MapClaims maps SAML attributes to roles
{ "resource": "" }
c24292
train
// GetAttributeNames returns a list of claim names from the claim values
{ "resource": "" }
c24293
train
// NewNamespace returns new namespace
{ "resource": "" }
c24294
train
// AddOptions adds marshal options and returns a new copy
{ "resource": "" }
c24295
train
// WithResourceID assigns ID to the resource
{ "resource": "" }
c24296
train
// WithExpires assigns expiry value
{ "resource": "" }
c24297
train
// WithVersion sets marshal version
{ "resource": "" }
c24298
train
// SetTTL sets Expires header using current clock
{ "resource": "" }
c24299
train
// UnmarshalJSON unmarshals header and captures raw state
{ "resource": "" }