_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c23900
train
// NotifyWinChange is called to notify all members in the party that the PTY // size has changed. The notification is sent as a global SSH request and it // is the responsibility of the client to update it's window size upon receipt.
{ "resource": "" }
c23901
train
// newSession creates a new session with a given ID within a given context.
{ "resource": "" }
c23902
train
// isLingering returns true if every party has left this session. Occurs // under a lock.
{ "resource": "" }
c23903
train
// Close ends the active session forcing all clients to disconnect and freeing all resources
{ "resource": "" }
c23904
train
// removePartyMember removes participant from in-memory representation of // party members. Occurs under a lock.
{ "resource": "" }
c23905
train
// removeParty removes the party from the in-memory map that holds all party // members.
{ "resource": "" }
c23906
train
// exportPartyMembers exports participants in the in-memory map of party // members. Occurs under a lock.
{ "resource": "" }
c23907
train
// heartbeat will loop as long as the session is not closed and mark it as // active and update the list of party members. If the session are recorded at // the proxy, then this function does nothing as it's counterpart // in the proxy will do this work.
{ "resource": "" }
c23908
train
// addPartyMember adds participant to in-memory map of party members. Occurs // under a lock.
{ "resource": "" }
c23909
train
// addParty is called when a new party joins the session.
{ "resource": "" }
c23910
train
// Write multiplexes the input to multiple sub-writers. The entire point // of multiWriter is to do this
{ "resource": "" }
c23911
train
// String returns user-friendly representation of the mapping.
{ "resource": "" }
c23912
train
// NewSupervisor returns new instance of initialized supervisor
{ "resource": "" }
c23913
train
// ServiceCount returns the number of registered and actively running services
{ "resource": "" }
c23914
train
// RegisterFunc creates a service from function spec and registers // it within the system
{ "resource": "" }
c23915
train
// RegisterCriticalFunc creates a critical service from function spec and registers // it within the system, if this service exits with error, // the process shuts down.
{ "resource": "" }
c23916
train
// RemoveService removes service from supervisor tracking list
{ "resource": "" }
c23917
train
// BroadcastEvent generates event and broadcasts it to all // subscribed parties.
{ "resource": "" }
c23918
train
// RegisterEventMapping registers event mapping - // when the sequence in the event mapping triggers, the // outbound event will be generated.
{ "resource": "" }
c23919
train
// WaitForEvent waits for event to be broadcasted, if the event // was already broadcasted, eventC will receive current event immediately.
{ "resource": "" }
c23920
train
// onPlay replays a session with a given ID
{ "resource": "" }
c23921
train
// onLogin logs in with remote proxy and gets signed certificates
{ "resource": "" }
c23922
train
// setupNoninteractiveClient sets up existing client to use // non-interactive authentication methods
{ "resource": "" }
c23923
train
// onListNodes executes 'tsh ls' command.
{ "resource": "" }
c23924
train
// chunkLabels breaks labels into sized chunks. Used to improve readability // of "tsh ls".
{ "resource": "" }
c23925
train
// onListClusters executes 'tsh clusters' command
{ "resource": "" }
c23926
train
// onSSH executes 'tsh ssh' command
{ "resource": "" }
c23927
train
// onBenchmark executes benchmark
{ "resource": "" }
c23928
train
// onJoin executes 'ssh join' command
{ "resource": "" }
c23929
train
// onSCP executes 'tsh scp' command
{ "resource": "" }
c23930
train
// authFromIdentity returns a standard ssh.Authmethod for a given identity file
{ "resource": "" }
c23931
train
// printStatus prints the status of the profile.
{ "resource": "" }
c23932
train
// onStatus command shows which proxy the user is logged into and metadata // about the certificate.
{ "resource": "" }
c23933
train
// NewUser creates new empty user
{ "resource": "" }
c23934
train
// String returns human readable information about the user
{ "resource": "" }
c23935
train
// Check checks parameters
{ "resource": "" }
c23936
train
// WebSessionInfo returns web session information about user
{ "resource": "" }
c23937
train
// SetTraits sets the trait map for this user used to populate role variables.
{ "resource": "" }
c23938
train
// V1 converts UserV2 to UserV1 format
{ "resource": "" }
c23939
train
// Equals checks if user equals to another
{ "resource": "" }
c23940
train
// Expiry returns expiry time for temporary users. Prefer expires from // metadata, if it does not exist, fall back to expires in spec.
{ "resource": "" }
c23941
train
// SetRoles sets a list of roles for user
{ "resource": "" }
c23942
train
// AddRole adds a role to user's role list
{ "resource": "" }
c23943
train
//V2 converts UserV1 to UserV2 format
{ "resource": "" }
c23944
train
// GetRoleSchema returns role schema with optionally injected // schema for extensions
{ "resource": "" }
c23945
train
// UnmarshalUser unmarshals user from JSON
{ "resource": "" }
c23946
train
// MarshalUser marshalls user into JSON
{ "resource": "" }
c23947
train
// GetReadError returns error to be returned by // read backend operations
{ "resource": "" }
c23948
train
// SetReadError sets error to be returned by read backend operations
{ "resource": "" }
c23949
train
// DeleteAllUsers deletes all users
{ "resource": "" }
c23950
train
// GetUsers returns a list of users registered with the local auth server
{ "resource": "" }
c23951
train
// CreateUser creates user if it does not exist
{ "resource": "" }
c23952
train
// GetUser returns a user by name
{ "resource": "" }
c23953
train
// GetUserByOIDCIdentity returns a user by it's specified OIDC Identity, returns first // user specified with this identity
{ "resource": "" }
c23954
train
// DeleteUser deletes a user with all the keys from the backend
{ "resource": "" }
c23955
train
// UpsertPasswordHash upserts user password hash
{ "resource": "" }
c23956
train
// UpsertTOTP upserts TOTP secret key for a user that can be used to generate and validate tokens.
{ "resource": "" }
c23957
train
// GetTOTP returns the secret key used by the TOTP algorithm to validate tokens
{ "resource": "" }
c23958
train
// UpsertUsedTOTPToken upserts a TOTP token to the backend so it can't be used again // during the 30 second window it's valid.
{ "resource": "" }
c23959
train
// DeleteUsedTOTPToken removes the used token from the backend. This should only // be used during tests.
{ "resource": "" }
c23960
train
// UpsertWebSession updates or inserts a web session for a user and session id // the session will be created with bearer token expiry time TTL, because // it is expected to be extended by the client before then
{ "resource": "" }
c23961
train
// GetUserLoginAttempts returns user login attempts
{ "resource": "" }
c23962
train
// DeleteUserLoginAttempts removes all login attempts of a user. Should be // called after successful login.
{ "resource": "" }
c23963
train
// GetWebSession returns a web session state for a given user and session id
{ "resource": "" }
c23964
train
// DeleteWebSession deletes web session from the storage
{ "resource": "" }
c23965
train
// UpsertPassword upserts new password hash into a backend.
{ "resource": "" }
c23966
train
// UpsertSignupToken upserts signup token - one time token that lets user to create a user account
{ "resource": "" }
c23967
train
// GetSignupToken returns signup token data
{ "resource": "" }
c23968
train
// GetSignupTokens returns all non-expired user tokens
{ "resource": "" }
c23969
train
// DeleteSignupToken deletes signup token from the storage
{ "resource": "" }
c23970
train
// UpsertOIDCConnector upserts OIDC Connector
{ "resource": "" }
c23971
train
// GetOIDCConnector returns OIDC connector data, parameter 'withSecrets' // includes or excludes client secret from return results
{ "resource": "" }
c23972
train
// GetOIDCConnectors returns registered connectors, withSecrets adds or removes client secret from return results
{ "resource": "" }
c23973
train
// CreateOIDCAuthRequest creates new auth request
{ "resource": "" }
c23974
train
// CreateSAMLConnector creates SAML Connector
{ "resource": "" }
c23975
train
// DeleteSAMLConnector deletes SAML Connector by name
{ "resource": "" }
c23976
train
// GetSAMLConnector returns SAML connector data, // withSecrets includes or excludes secrets from return results
{ "resource": "" }
c23977
train
// GetSAMLConnectors returns registered connectors // withSecrets includes or excludes private key values from return results
{ "resource": "" }
c23978
train
// CreateSAMLAuthRequest creates new auth request
{ "resource": "" }
c23979
train
// GetSAMLAuthRequest returns SAML auth request if found
{ "resource": "" }
c23980
train
// GetGithubConnectot returns a particular Github connector
{ "resource": "" }
c23981
train
// DeleteGithubConnector deletes the specified connector
{ "resource": "" }
c23982
train
// CreateGithubAuthRequest creates a new auth request for Github OAuth2 flow
{ "resource": "" }
c23983
train
// GetGithubAuthRequest retrieves Github auth request by the token
{ "resource": "" }
c23984
train
// ServersToV1 converts list of servers to slice of V1 style ones
{ "resource": "" }
c23985
train
// GetCmdLabels returns command labels
{ "resource": "" }
c23986
train
// MatchAgainst takes a map of labels and returns True if this server // has ALL of them // // Any server matches against an empty label set
{ "resource": "" }
c23987
train
// LabelsString returns a comma separated string with all node's labels
{ "resource": "" }
c23988
train
// CmdLabelMapsEqual compares two maps with command labels, // returns true if label sets are equal
{ "resource": "" }
c23989
train
// LabelsToV2 converts labels from interface to V2 spec
{ "resource": "" }
c23990
train
// Equals returns true if labels are equal, false otherwise
{ "resource": "" }
c23991
train
// Clone returns non-shallow copy of the label
{ "resource": "" }
c23992
train
// SetPeriod sets label period
{ "resource": "" }
c23993
train
// Clone returns copy of the set
{ "resource": "" }
c23994
train
// SetEnv sets the value of the label from environment variable
{ "resource": "" }
c23995
train
// GetServerSchema returns role schema with optionally injected // schema for extensions
{ "resource": "" }
c23996
train
// UnmarshalServerResource unmarshals role from JSON or YAML, // sets defaults and checks the schema
{ "resource": "" }
c23997
train
// UnmarshalServer unmarshals server from JSON
{ "resource": "" }
c23998
train
// MarshalServer marshals server into JSON.
{ "resource": "" }
c23999
train
// UnmarshalServers is used to unmarshal multiple servers from their // binary representation.
{ "resource": "" }