_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c23700 | train | // Exists returns true if backend has been used before | {
"resource": ""
} | ||
c23701 | train | // New initializes and returns a fully created BoltDB backend. It's
// a properly implemented Backend.NewFunc, part of a backend API | {
"resource": ""
} | ||
c23702 | train | // GetItems fetches keys and values and returns them to the caller. | {
"resource": ""
} | ||
c23703 | train | // CompareAndSwapVal compares and swap values in atomic operation,
// succeeds if prevData matches the value stored in the databases,
// requires prevData as a non-empty value. Returns trace.CompareFailed
// in case if value did not match | {
"resource": ""
} | ||
c23704 | train | // NewInviteToken returns a new instance of the invite token | {
"resource": ""
} | ||
c23705 | train | // CreateHTTPUpload creates HTTP download command | {
"resource": ""
} | ||
c23706 | train | // CreateHTTPDownload creates HTTP upload command | {
"resource": ""
} | ||
c23707 | train | // MkDir creates a directory. This method is not implemented as creating directories
// is not supported during HTTP downloads. | {
"resource": ""
} | ||
c23708 | train | // OpenFile returns file reader | {
"resource": ""
} | ||
c23709 | train | // CreateFile sets proper HTTP headers and returns HTTP writer to stream incoming
// file content | {
"resource": ""
} | ||
c23710 | train | // GetFileInfo returns file information | {
"resource": ""
} | ||
c23711 | train | // Write multiplexes the input to multiple sub-writers. If any of the write
// fails, it won't attempt to write to other writers | {
"resource": ""
} | ||
c23712 | train | // New creates a new memory backend | {
"resource": ""
} | ||
c23713 | train | // Close closes memory backend | {
"resource": ""
} | ||
c23714 | train | // Update updates item if it exists, or returns NotFound error | {
"resource": ""
} | ||
c23715 | train | // CompareAndSwap compares item with existing item and replaces it with replaceWith item | {
"resource": ""
} | ||
c23716 | train | // removeExpired makes a pass through map and removes expired elements
// returns the number of expired elements removed | {
"resource": ""
} | ||
c23717 | train | // Set makes ID cli compatible, lets to set value from string | {
"resource": ""
} | ||
c23718 | train | // Time returns time portion of this ID | {
"resource": ""
} | ||
c23719 | train | // Check checks if it's a valid UUID | {
"resource": ""
} | ||
c23720 | train | // ParseID parses ID and checks if it's correct | {
"resource": ""
} | ||
c23721 | train | // RemoveParty helper allows to remove a party by it's ID from the
// session's list. Returns 'false' if pid couldn't be found | {
"resource": ""
} | ||
c23722 | train | // String returns debug friendly representation | {
"resource": ""
} | ||
c23723 | train | // String returns debug friendly representation of terminal | {
"resource": ""
} | ||
c23724 | train | // Winsize returns low-level parameters for changing PTY | {
"resource": ""
} | ||
c23725 | train | // Check returns nil if request is valid, error otherwize | {
"resource": ""
} | ||
c23726 | train | // New returns new session server that uses sqlite to manage
// active sessions | {
"resource": ""
} | ||
c23727 | train | // GetSessions returns a list of active sessions. Returns an empty slice
// if no sessions are active | {
"resource": ""
} | ||
c23728 | train | // GetSession returns the session by it's id. Returns NotFound if a session
// is not found | {
"resource": ""
} | ||
c23729 | train | // CreateSession creates a new session if it does not exist, if the session
// exists the function will return AlreadyExists error
// The session will be marked as active for TTL period of time | {
"resource": ""
} | ||
c23730 | train | // UpdateSession updates session parameters - can mark it as inactive and update it's terminal parameters | {
"resource": ""
} | ||
c23731 | train | // GetSession always returns a zero session. | {
"resource": ""
} | ||
c23732 | train | // NewTerminalParamsFromUint32 returns new terminal parameters from uint32 width and height | {
"resource": ""
} | ||
c23733 | train | // isAuditedAtProxy returns true if sessions are being recorded at the proxy
// and this is a Teleport node. | {
"resource": ""
} | ||
c23734 | train | // Shutdown performs graceful shutdown | {
"resource": ""
} | ||
c23735 | train | // Start starts server | {
"resource": ""
} | ||
c23736 | train | // Serve servers service on started listener | {
"resource": ""
} | ||
c23737 | train | // HandleConnection is called after a connection has been accepted and starts
// to perform the SSH handshake immediately. | {
"resource": ""
} | ||
c23738 | train | // SetRotationGetter sets rotation state getter | {
"resource": ""
} | ||
c23739 | train | // SetShell sets default shell that will be executed for interactive
// sessions | {
"resource": ""
} | ||
c23740 | train | // SetSessionServer represents realtime session registry server | {
"resource": ""
} | ||
c23741 | train | // SetProxyMode starts this server in SSH proxying mode | {
"resource": ""
} | ||
c23742 | train | // SetLabels sets dynamic and static labels that server will report to the
// auth servers | {
"resource": ""
} | ||
c23743 | train | // SetAuditLog assigns an audit log interfaces to this server | {
"resource": ""
} | ||
c23744 | train | // SetUUID sets server unique ID | {
"resource": ""
} | ||
c23745 | train | // SetPermitUserEnvironment allows you to set the value of permitUserEnvironment. | {
"resource": ""
} | ||
c23746 | train | // serveAgent will build the a sock path for this user and serve an SSH agent on unix socket. | {
"resource": ""
} | ||
c23747 | train | // EmitAuditEvent logs a given event to the audit log attached to the
// server who owns these sessions | {
"resource": ""
} | ||
c23748 | train | // HandleNewChan is called when new channel is opened | {
"resource": ""
} | ||
c23749 | train | // handleAgentForwardNode will create a unix socket and serve the agent running
// on the client on it. | {
"resource": ""
} | ||
c23750 | train | // handleKeepAlive accepts and replies to keepalive@openssh.com requests. | {
"resource": ""
} | ||
c23751 | train | // handleRecordingProxy responds to global out-of-band with a bool which
// indicates if it is in recording mode or not. | {
"resource": ""
} | ||
c23752 | train | // UnmarshalJSON unmarshals scalar string or strings slice to Strings | {
"resource": ""
} | ||
c23753 | train | // UnmarshalYAML is used to allow Strings to unmarshal from
// scalar string value or from the list | {
"resource": ""
} | ||
c23754 | train | // MarshalJSON marshals to scalar value
// if there is only one value in the list
// to list otherwise | {
"resource": ""
} | ||
c23755 | train | // MarshalYAML marshals to scalar value
// if there is only one value in the list,
// marshals to list otherwise | {
"resource": ""
} | ||
c23756 | train | // NewTracer returns a new tracer | {
"resource": ""
} | ||
c23757 | train | // Stop logs stop of the trace | {
"resource": ""
} | ||
c23758 | train | // ThisFunction returns calling function name | {
"resource": ""
} | ||
c23759 | train | // Value returns value of the string | {
"resource": ""
} | ||
c23760 | train | // Set sets the value of the string | {
"resource": ""
} | ||
c23761 | train | // AsBool converts string to bool, in case of the value is empty
// or unknown, defaults to false | {
"resource": ""
} | ||
c23762 | train | // ParseBool parses string as boolean value,
// returns error in case if value is not recognized | {
"resource": ""
} | ||
c23763 | train | // ParseAdvertiseAddr validates advertise address,
// makes sure it's not an unreachable or multicast address
// returns address split into host and port, port could be empty
// if not specified | {
"resource": ""
} | ||
c23764 | train | // ParseOnOff parses whether value is "on" or "off", parameterName is passed for error
// reporting purposes, defaultValue is returned when no value is set | {
"resource": ""
} | ||
c23765 | train | // IsGroupMember returns whether currently logged user is a member of a group | {
"resource": ""
} | ||
c23766 | train | // SplitHostPort splits host and port and checks that host is not empty | {
"resource": ""
} | ||
c23767 | train | // ReadPath reads file contents | {
"resource": ""
} | ||
c23768 | train | // IsHandshakeFailedError specifies whether this error indicates
// failed handshake | {
"resource": ""
} | ||
c23769 | train | // Pop returns a value from the list, it panics if the value is not there | {
"resource": ""
} | ||
c23770 | train | // PopInt returns a value from the list, it panics if not enough values
// were allocated | {
"resource": ""
} | ||
c23771 | train | // PopIntSlice returns a slice of values from the list, it panics if not enough
// ports were allocated | {
"resource": ""
} | ||
c23772 | train | // GetFreeTCPPorts returns n ports starting from port 20000. | {
"resource": ""
} | ||
c23773 | train | // ReadHostUUID reads host UUID from the file in the data dir | {
"resource": ""
} | ||
c23774 | train | // WriteHostUUID writes host UUID into a file | {
"resource": ""
} | ||
c23775 | train | // ReadOrMakeHostUUID looks for a hostid file in the data dir. If present,
// returns the UUID from it, otherwise generates one | {
"resource": ""
} | ||
c23776 | train | // Deduplicate deduplicates list of strings | {
"resource": ""
} | ||
c23777 | train | // SliceContainsStr returns 'true' if the slice contains the given value | {
"resource": ""
} | ||
c23778 | train | // RemoveFromSlice makes a copy of the slice and removes the passed in values from the copy. | {
"resource": ""
} | ||
c23779 | train | // CheckCertificateFormatFlag checks if the certificate format is valid. | {
"resource": ""
} | ||
c23780 | train | // Addrs returns strings list converted to address list | {
"resource": ""
} | ||
c23781 | train | // connectToAuthService creates a valid client connection to the auth service | {
"resource": ""
} | ||
c23782 | train | // applyConfig takes configuration values from the config file and applies
// them to 'service.Config' object | {
"resource": ""
} | ||
c23783 | train | // SetEnv reads LimiterConfig from JSON string | {
"resource": ""
} | ||
c23784 | train | // NewLimiter returns new rate and connection limiter | {
"resource": ""
} | ||
c23785 | train | // Add limiter to the handle | {
"resource": ""
} | ||
c23786 | train | // SetSessionStreamPollPeriod sets polling period for session streams | {
"resource": ""
} | ||
c23787 | train | // getWebConfig returns configuration for the web application. | {
"resource": ""
} | ||
c23788 | train | // ConstructSSHResponse creates a special SSH response for SSH login method
// that encodes everything using the client's secret key | {
"resource": ""
} | ||
c23789 | train | // queryTime parses the query string parameter with the specified name as a
// RFC3339 time and returns it.
//
// If there's no such parameter, specified default value is returned. | {
"resource": ""
} | ||
c23790 | train | // queryLimit returns the limit parameter with the specified name from the
// query string.
//
// If there's no such parameter, specified default limit is returned. | {
"resource": ""
} | ||
c23791 | train | // hostCredentials sends a registration token and metadata to the Auth Server
// and gets back SSH and TLS certificates. | {
"resource": ""
} | ||
c23792 | train | // WithClusterAuth ensures that request is authenticated and is issued for existing cluster | {
"resource": ""
} | ||
c23793 | train | // WithAuth ensures that request is authenticated | {
"resource": ""
} | ||
c23794 | train | // AuthenticateRequest authenticates request using combination of a session cookie
// and bearer token | {
"resource": ""
} | ||
c23795 | train | // CreateSignupLink generates and returns a URL which is given to a new
// user to complete registration with Teleport via Web UI | {
"resource": ""
} | ||
c23796 | train | // makeTeleportClientConfig creates default teleport client configuration
// that is used to initiate an SSH terminal session or SCP file transfer | {
"resource": ""
} | ||
c23797 | train | // LoadKey adds a key into the Teleport ssh agent as well as the system ssh
// agent. | {
"resource": ""
} | ||
c23798 | train | // UnloadKey will unload key for user from the teleport ssh agent as well as
// the system agent. | {
"resource": ""
} | ||
c23799 | train | // UnloadKeys will unload all Teleport keys from the teleport agent as well as
// the system agent. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.