_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c23600 | train | // Play replays the recorded session | {
"resource": ""
} | ||
c23601 | train | // ExecuteSCP executes SCP command. It executes scp.Command using
// lower-level API integrations that mimic SCP CLI command behavior | {
"resource": ""
} | ||
c23602 | train | // ListNodes returns a list of nodes connected to a proxy | {
"resource": ""
} | ||
c23603 | train | // runCommand executes a given bash command on a bunch of remote nodes | {
"resource": ""
} | ||
c23604 | train | // getProxyLogin determines which SSH principal to use when connecting to proxy. | {
"resource": ""
} | ||
c23605 | train | // ConnectToProxy will dial to the proxy server and return a ProxyClient when
// successful. If the passed in context is canceled, this function will return
// a trace.ConnectionProblem right away. | {
"resource": ""
} | ||
c23606 | train | // connectToProxy will dial to the proxy server and return a ProxyClient when
// successful. | {
"resource": ""
} | ||
c23607 | train | // Logout removes certificate and key for the currently logged in user from
// the filesystem and agent. | {
"resource": ""
} | ||
c23608 | train | // LogoutAll removes all certificates for all users from the filesystem
// and agent. | {
"resource": ""
} | ||
c23609 | train | // GetTrustedCA returns a list of host certificate authorities
// trusted by the cluster client is authenticated with. | {
"resource": ""
} | ||
c23610 | train | // applyProxySettings updates configuration changes based on the advertised
// proxy settings, user supplied values take precedence - will be preserved
// if set | {
"resource": ""
} | ||
c23611 | train | // Adds a new CA as trusted CA for this client, used in tests | {
"resource": ""
} | ||
c23612 | train | // directLogin asks for a password + HOTP token, makes a request to CA via proxy | {
"resource": ""
} | ||
c23613 | train | // samlLogin opens browser window and uses OIDC or SAML redirect cycle with browser | {
"resource": ""
} | ||
c23614 | train | // directLogin asks for a password and performs the challenge-response authentication | {
"resource": ""
} | ||
c23615 | train | // SendEvent adds a events.EventFields to the channel. | {
"resource": ""
} | ||
c23616 | train | // loopbackPool reads trusted CAs if it finds it in a predefined location
// and will work only if target proxy address is loopback | {
"resource": ""
} | ||
c23617 | train | // connectToSSHAgent connects to the local SSH agent and returns a agent.Agent. | {
"resource": ""
} | ||
c23618 | train | // Username returns the current user's username | {
"resource": ""
} | ||
c23619 | train | // AskOTP prompts the user to enter the OTP token. | {
"resource": ""
} | ||
c23620 | train | // AskPassword prompts the user to enter the password | {
"resource": ""
} | ||
c23621 | train | // passwordFromConsole reads from stdin without echoing typed characters to stdout | {
"resource": ""
} | ||
c23622 | train | // lineFromConsole reads a line from stdin | {
"resource": ""
} | ||
c23623 | train | // String returns the same string spec which can be parsed by
// ParseDynamicPortForwardSpec. | {
"resource": ""
} | ||
c23624 | train | // InsecureSkipHostKeyChecking is used when the user passes in
// "StrictHostKeyChecking yes". | {
"resource": ""
} | ||
c23625 | train | // OpenChannel will open a SSH channel to the remote side. | {
"resource": ""
} | ||
c23626 | train | // ChannelConn creates a net.Conn over a SSH channel. | {
"resource": ""
} | ||
c23627 | train | // sendDiscovery requests sends special "Discovery Requests" back to the
// connected agent. Discovery request consists of the proxies that are part
// of the cluster, but did not receive the connection from the agent. Agent
// will act on a discovery request attempting to establish connection to the
// proxies that we... | {
"resource": ""
} | ||
c23628 | train | // findDisconnectedProxies finds proxies that do not have inbound reverse tunnel
// connections. | {
"resource": ""
} | ||
c23629 | train | // sendDiscoveryRequests sends a discovery request with missing proxies. | {
"resource": ""
} | ||
c23630 | train | // TunnelAuthDialer connects to the Auth Server through the reverse tunnel. | {
"resource": ""
} | ||
c23631 | train | // connectProxyTransport opens a channel over the remote tunnel and connects
// to the requested host. | {
"resource": ""
} | ||
c23632 | train | // Close closes resources associated with connector | {
"resource": ""
} | ||
c23633 | train | // getConnectors returns a copy of the identities registered for auth server | {
"resource": ""
} | ||
c23634 | train | // addConnector adds connector to registered connectors list,
// it will overwrite the connector for the same role | {
"resource": ""
} | ||
c23635 | train | // Run starts teleport processes, waits for signals
// and handles internal process reloads. | {
"resource": ""
} | ||
c23636 | train | // notifyParent notifies parent process that this process has started
// by writing to in-memory pipe used by communication channel. | {
"resource": ""
} | ||
c23637 | train | // adminCreds returns admin UID and GID settings based on the OS | {
"resource": ""
} | ||
c23638 | train | // initUploadHandler initializes upload handler based on the config settings,
// currently the only upload handler supported is S3
// the call can return trace.NotFOund if no upload handler is setup | {
"resource": ""
} | ||
c23639 | train | // initExternalLog initializes external storage, if the storage is not
// setup, returns nil | {
"resource": ""
} | ||
c23640 | train | // onExit allows individual services to register a callback function which will be
// called when Teleport Process is asked to exit. Usually services terminate themselves
// when the callback is called | {
"resource": ""
} | ||
c23641 | train | // newAccessCache returns new local cache access point | {
"resource": ""
} | ||
c23642 | train | // setupCachePolicy sets up cache policy based on teleport configuration,
// it is a wrapper function, that sets up configuration | {
"resource": ""
} | ||
c23643 | train | // newAccessPointCache returns new instance of access point configured for proxy | {
"resource": ""
} | ||
c23644 | train | // newAccessPointCache returns new instance of access point | {
"resource": ""
} | ||
c23645 | train | // registerWithAuthServer uses one time provisioning token obtained earlier
// from the server to get a pair of SSH keys signed by Auth server host
// certificate authority | {
"resource": ""
} | ||
c23646 | train | // getAdditionalPrincipals returns a list of additional principals to add
// to role's service certificates. | {
"resource": ""
} | ||
c23647 | train | // initAuthStorage initializes the storage backend for the auth service. | {
"resource": ""
} | ||
c23648 | train | // WaitWithContext waits until all internal services stop. | {
"resource": ""
} | ||
c23649 | train | // StartShutdown launches non-blocking graceful shutdown process that signals
// completion, returns context that will be closed once the shutdown is done | {
"resource": ""
} | ||
c23650 | train | // Shutdown launches graceful shutdown process and waits
// for it to complete | {
"resource": ""
} | ||
c23651 | train | // Close broadcasts close signals and exits immediately | {
"resource": ""
} | ||
c23652 | train | // initSelfSignedHTTPSCert generates and self-signs a TLS key+cert pair for https connection
// to the proxy server. | {
"resource": ""
} | ||
c23653 | train | // GetKubeClient returns instance of client to the kubernetes cluster
// using in-cluster configuration if available and falling back to
// configuration file under configPath otherwise | {
"resource": ""
} | ||
c23654 | train | // GetKubeConfig returns kubernetes configuration
// from configPath file or, by default reads in-cluster configuration | {
"resource": ""
} | ||
c23655 | train | // MustCreateProvisionToken returns a new valid provision token
// or panics, used in testes | {
"resource": ""
} | ||
c23656 | train | // NewProvisionToken returns a new instance of provision token resource | {
"resource": ""
} | ||
c23657 | train | // ProvisionTokensToV1 converts provision tokens to V1 list | {
"resource": ""
} | ||
c23658 | train | // ProvisionTokensFromV1 converts V1 provision tokens to resource list | {
"resource": ""
} | ||
c23659 | train | // SetRoles sets teleport roles | {
"resource": ""
} | ||
c23660 | train | // UnmarshalProvisionToken unmarshals provision token from JSON or YAML,
// sets defaults and checks the schema | {
"resource": ""
} | ||
c23661 | train | // MarshalProvisionToken marshals provisioning token into JSON. | {
"resource": ""
} | ||
c23662 | train | // NewClientConnWithDeadline establishes new client connection with specified deadline | {
"resource": ""
} | ||
c23663 | train | // DialWithDeadline works around the case when net.DialWithTimeout
// succeeds, but key exchange hangs. Setting deadline on connection
// prevents this case from happening | {
"resource": ""
} | ||
c23664 | train | // Dial calls ssh.Dial directly. | {
"resource": ""
} | ||
c23665 | train | // Dial first connects to a proxy, then uses the connection to establish a new
// SSH connection. | {
"resource": ""
} | ||
c23666 | train | // DialerFromEnvironment returns a Dial function. If the https_proxy or http_proxy
// environment variable are set, it returns a function that will dial through
// said proxy server. If neither variable is set, it will connect to the SSH
// server directly. | {
"resource": ""
} | ||
c23667 | train | // New returns new instance of Etcd-powered backend | {
"resource": ""
} | ||
c23668 | train | // KeepAlive updates TTL on the lease ID | {
"resource": ""
} | ||
c23669 | train | // seconds converts duration to seconds, rounds up to 1 second | {
"resource": ""
} | ||
c23670 | train | // GenerateKeys generates a new keypair | {
"resource": ""
} | ||
c23671 | train | // GenerateAndSignKeys generates a new keypair and signs it for role | {
"resource": ""
} | ||
c23672 | train | // RotateCertAuthority starts or restarts certificate authority rotation process | {
"resource": ""
} | ||
c23673 | train | // CollectOptions collects all options from functional
// arg and returns config | {
"resource": ""
} | ||
c23674 | train | // ValidateLockTTL helper allows all backends to validate lock TTL parameter | {
"resource": ""
} | ||
c23675 | train | // TTL converts time to TTL from current time supplied
// by provider, if t is zero, returns forever | {
"resource": ""
} | ||
c23676 | train | // AnyTTL returns TTL if any of the suplied times pass expiry time
// otherwise returns forever | {
"resource": ""
} | ||
c23677 | train | // NewConnectionsLimiter returns new connection limiter, in case if connection
// limits are not set, they won't be tracked | {
"resource": ""
} | ||
c23678 | train | // WrapHandle adds connection limiter to the handle | {
"resource": ""
} | ||
c23679 | train | // AcquireConnection acquires connection and bumps counter | {
"resource": ""
} | ||
c23680 | train | // ReleaseConnection decrements the counter | {
"resource": ""
} | ||
c23681 | train | // MinTTL finds min non 0 TTL duration,
// if both durations are 0, fails | {
"resource": ""
} | ||
c23682 | train | // ToTTL converts expiration time to TTL duration
// relative to current time as provided by clock | {
"resource": ""
} | ||
c23683 | train | // UTC converts time to UTC timezone | {
"resource": ""
} | ||
c23684 | train | // ChangePassword changes user passsword | {
"resource": ""
} | ||
c23685 | train | // CheckPasswordWOToken checks just password without checking OTP tokens
// used in case of SSH authentication, when token has been validated. | {
"resource": ""
} | ||
c23686 | train | // GetOTPData returns the OTP Key, Key URL, and the QR code. | {
"resource": ""
} | ||
c23687 | train | // NewWhereParser returns standard parser for `where` section in access rules. | {
"resource": ""
} | ||
c23688 | train | // NewActionsParser returns standard parser for 'actions' section in access rules | {
"resource": ""
} | ||
c23689 | train | // NewLogActionFn creates logger functions | {
"resource": ""
} | ||
c23690 | train | // Log logs with specified level and formatting string with arguments | {
"resource": ""
} | ||
c23691 | train | // String returns user friendly representation of this context | {
"resource": ""
} | ||
c23692 | train | // GetResource returns resource specified in the context,
// returns error if not specified. | {
"resource": ""
} | ||
c23693 | train | // GetIdentifier returns identifier defined in a context | {
"resource": ""
} | ||
c23694 | train | // ParseKey reads in an existing hex encoded key. | {
"resource": ""
} | ||
c23695 | train | // Seal will encrypt then authenticate the ciphertext. | {
"resource": ""
} | ||
c23696 | train | // Open will authenticate then decrypt the ciphertext. | {
"resource": ""
} | ||
c23697 | train | // NewForwarder returns a new instance of session forwarder | {
"resource": ""
} | ||
c23698 | train | // Closer releases connection and resources associated with log if any | {
"resource": ""
} | ||
c23699 | train | // WaitForDelivery waits for resources to be released and outstanding requests to
// complete after calling Close method | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.