_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c11700 | train | // CommitsAfterDate returns a list of commits which committed after given date.
// The format of date should be in RFC3339. | {
"resource": ""
} | ||
c11701 | train | // GetTag returns a Git tag by given name. | {
"resource": ""
} | ||
c11702 | train | // GetTags returns all tags of the repository. | {
"resource": ""
} | ||
c11703 | train | // DeleteTag deletes a tag from the repository | {
"resource": ""
} | ||
c11704 | train | // UnescapeChars reverses escaped characters. | {
"resource": ""
} | ||
c11705 | train | // ListEntries returns all entries of current tree. | {
"resource": ""
} | ||
c11706 | train | // IsRepoURLAccessible checks if given repository URL is accessible. | {
"resource": ""
} | ||
c11707 | train | // InitRepository initializes a new Git repository. | {
"resource": ""
} | ||
c11708 | train | // OpenRepository opens the repository at the given path. | {
"resource": ""
} | ||
c11709 | train | // Clone clones original repository to target path. | {
"resource": ""
} | ||
c11710 | train | // Fetch fetches changes from remotes without merging. | {
"resource": ""
} | ||
c11711 | train | // Pull pulls changes from remotes. | {
"resource": ""
} | ||
c11712 | train | // PushWithEnvs pushs local commits to given remote branch with given environment variables. | {
"resource": ""
} | ||
c11713 | train | // Push pushs local commits to given remote branch. | {
"resource": ""
} | ||
c11714 | train | // Checkout checkouts a branch | {
"resource": ""
} | ||
c11715 | train | // ResetHEAD resets HEAD to given revision or head of branch. | {
"resource": ""
} | ||
c11716 | train | // MoveFile moves a file to another file or directory. | {
"resource": ""
} | ||
c11717 | train | // GetRepoSize returns disk usage report of repository in given path. | {
"resource": ""
} | ||
c11718 | train | // UsingClient modifies the underline HTTP Client that schema registry is using for contact with the backend server. | {
"resource": ""
} | ||
c11719 | train | // NewClient creates & returns a new Registry Schema Client
// based on the passed url and the options. | {
"resource": ""
} | ||
c11720 | train | // IsSubjectNotFound checks the returned error to see if it is kind of a subject not found error code. | {
"resource": ""
} | ||
c11721 | train | // IsSchemaNotFound checks the returned error to see if it is kind of a schema not found error code. | {
"resource": ""
} | ||
c11722 | train | // Versions returns all schema version numbers registered for this subject. | {
"resource": ""
} | ||
c11723 | train | // IsRegistered tells if the given "schema" is registered for this "subject". | {
"resource": ""
} | ||
c11724 | train | // GetSchemaBySubject returns the schema for a particular subject and version. | {
"resource": ""
} | ||
c11725 | train | // getConfigSubject returns the Config of global or for a given subject. It handles 404 error in a
// different way, since not-found for a subject configuration means it's using global. | {
"resource": ""
} | ||
c11726 | train | // IsSchemaCompatible tests compatibility with a specific version of a subject's schema. | {
"resource": ""
} | ||
c11727 | train | // Set sets int64 value from the given string value. | {
"resource": ""
} | ||
c11728 | train | // Set sets uint value from the given string value. | {
"resource": ""
} | ||
c11729 | train | // Set sets string value from the given string value. | {
"resource": ""
} | ||
c11730 | train | // Set sets the duration from the given string value. | {
"resource": ""
} | ||
c11731 | train | // UnmarshalText deserializes the given text into a duration value.
// It is meant to support TOML decoding of durations. | {
"resource": ""
} | ||
c11732 | train | // MarshalJSON serializes the given duration value. | {
"resource": ""
} | ||
c11733 | train | // UnmarshalJSON deserializes the given text into a duration value. | {
"resource": ""
} | ||
c11734 | train | // Set sets time.Time value from the given string value. | {
"resource": ""
} | ||
c11735 | train | // Set adds strings elem into the the parser.
// It splits str on , and ; | {
"resource": ""
} | ||
c11736 | train | // GetTypesRecursive links in flagMap a flag with its reflect.StructField
// You can whether provide objValue on a structure or a pointer to structure as first argument
// Flags are generated from field name or from StructTag | {
"resource": ""
} | ||
c11737 | train | // GetBoolFlags returns flags on pointers | {
"resource": ""
} | ||
c11738 | train | // GetFlags returns flags | {
"resource": ""
} | ||
c11739 | train | // objValue a reflect.Value of a not-nil pointer on a struct | {
"resource": ""
} | ||
c11740 | train | // SetFields sets value to fieldValue using tag as key in valMap | {
"resource": ""
} | ||
c11741 | train | // PrintHelp generates and prints command line help | {
"resource": ""
} | ||
c11742 | train | // PrintError takes a not nil error and prints command line help | {
"resource": ""
} | ||
c11743 | train | // PrintHelpWithCommand generates and prints command line help for a Command | {
"resource": ""
} | ||
c11744 | train | // PrintErrorWithCommand takes a not nil error and prints command line help | {
"resource": ""
} | ||
c11745 | train | // New creates and initialize a pointer on Flaeg | {
"resource": ""
} | ||
c11746 | train | // AddCommand adds sub-command to the root command | {
"resource": ""
} | ||
c11747 | train | // AddParser adds custom parser for a type to the map of custom parsers | {
"resource": ""
} | ||
c11748 | train | // Run calls the command with flags given as arguments | {
"resource": ""
} | ||
c11749 | train | // HealthCheck looks up a health check using Docker container labels to
// pass the type of check and the arguments to pass to it. | {
"resource": ""
} | ||
c11750 | train | // The main loop, poll for containers continuously. | {
"resource": ""
} | ||
c11751 | train | // Services returns the slice of services we found running | {
"resource": ""
} | ||
c11752 | train | // Listeners returns any containers we found that had the
// SidecarListener label set to a valid ServicePort. | {
"resource": ""
} | ||
c11753 | train | // listenerForContainer returns a ChangeListener for a container if one
// is configured. | {
"resource": ""
} | ||
c11754 | train | // portForServicePort is similar to service.PortForServicePort, but takes a string
// and returns a full service.Port, not just the integer. | {
"resource": ""
} | ||
c11755 | train | // On a timed basis, drain the containerCache | {
"resource": ""
} | ||
c11756 | train | // Loop through the current cache and remove anything that has disappeared | {
"resource": ""
} | ||
c11757 | train | // Get locks the cache, try to get a service if we have it | {
"resource": ""
} | ||
c11758 | train | // Get the health check and health check args for a service | {
"resource": ""
} | ||
c11759 | train | // Aggregates all the service slices from the discoverers | {
"resource": ""
} | ||
c11760 | train | // Check all the state transitions and only update HAproxy when a change
// will affect service availability. | {
"resource": ""
} | ||
c11761 | train | // Used to fetch the current state from a Sidecar endpoint, usually
// on startup of this process, when the currentState is empty. | {
"resource": ""
} | ||
c11762 | train | // IsSubscribed allows a receiver to filter incoming events by service name | {
"resource": ""
} | ||
c11763 | train | // Subscribe is not synchronized and should not be called dynamically. This
// is generally used at setup of the Receiver, before any events begin arriving. | {
"resource": ""
} | ||
c11764 | train | // ProcessUpdates loops forever, processing updates to the state.
// By the time we get here, the HTTP UpdateHandler has already set the
// CurrentState to the newest state we know about. Here we'll try to group
// updates together to prevent repeatedly updating on a series of events that
// arrive in a row. | {
"resource": ""
} | ||
c11765 | train | // FetchInitialState is used at startup to bootstrap initial state from Sidecar. | {
"resource": ""
} | ||
c11766 | train | // configureOverrides takes CLI opts and applies them over the top of settings
// taken from the environment variables and stored in config. | {
"resource": ""
} | ||
c11767 | train | // configureDelegate sets up the Memberlist delegate we'll use | {
"resource": ""
} | ||
c11768 | train | // configureCpuProfiler sets of the CPU profiler and a signal handler to
// stop it if we have been told to run the CPU profiler. | {
"resource": ""
} | ||
c11769 | train | // configureLoggingFormat switches between text and JSON log format | {
"resource": ""
} | ||
c11770 | train | // configureListeners sets up any statically configured state change event listeners. | {
"resource": ""
} | ||
c11771 | train | // Returns a pointer to a properly configured Server | {
"resource": ""
} | ||
c11772 | train | // Returns a pointer to a properly configured ServicesState | {
"resource": ""
} | ||
c11773 | train | // ProcessNewServiceMsgs is to be run in a goroutine, and processes incoming
// service notices. | {
"resource": ""
} | ||
c11774 | train | // Shortcut for checking if the Servers map has an entry for this
// hostname. | {
"resource": ""
} | ||
c11775 | train | // A server has left the cluster, so tombstone all of its records | {
"resource": ""
} | ||
c11776 | train | // Tell the state that a particular service transitioned from one state to another. | {
"resource": ""
} | ||
c11777 | train | // Add an event listener channel to the list that will be notified on
// major state change events. Channels must be buffered by at least 1
// or they will block. Channels must be ready to receive input. | {
"resource": ""
} | ||
c11778 | train | // Remove an event listener channel by name. This will find the first
// listener in the list with the specified name and will remove it. | {
"resource": ""
} | ||
c11779 | train | // GetListeners returns a slice containing all the current listeners | {
"resource": ""
} | ||
c11780 | train | // Take a service and merge it into our state. Correctly handle
// timestamps so we only add things newer than what we already
// know about. Retransmits updates to cluster peers. | {
"resource": ""
} | ||
c11781 | train | // Merge a complete state struct into this one. Usually used on
// node startup and during anti-entropy operations. | {
"resource": ""
} | ||
c11782 | train | // Take a service we already handled, and drop it back into the
// channel. Backgrounded to not block the caller. | {
"resource": ""
} | ||
c11783 | train | // Print the formatted struct | {
"resource": ""
} | ||
c11784 | train | // TrackNewServices talks to the discovery mechanism and tracks any services we
// don't already know about. | {
"resource": ""
} | ||
c11785 | train | // TrackLocalListeners runs in the background and repeatedly calls
// a discovery function to return a list of event listeners. These will
// then be added to to the listener list. Managed listeners no longer
// reported from discovery will be removed. | {
"resource": ""
} | ||
c11786 | train | // Do we know about this service already? If we do, is it a tombstone? | {
"resource": ""
} | ||
c11787 | train | // BroadcastServices loops forever, transmitting info about our containers on the
// broadcast channel. Intended to run as a background goroutine. | {
"resource": ""
} | ||
c11788 | train | // Actually transmit an encoded service record into the channel. Runs a
// background goroutine that continues the broadcast for 10 seconds so we
// have a pretty good idea that it was delivered. | {
"resource": ""
} | ||
c11789 | train | // Group the services into a map by service name rather than by the
// hosts they run on. | {
"resource": ""
} | ||
c11790 | train | // Take a byte slice and return a properly reconstituted state struct | {
"resource": ""
} | ||
c11791 | train | // Constructs a properly configured HAProxy and returns a pointer to it | {
"resource": ""
} | ||
c11792 | train | // Clean up image names for writing as HAproxy frontend and backend entries | {
"resource": ""
} | ||
c11793 | train | // Find a matching Port when given a ServicePort | {
"resource": ""
} | ||
c11794 | train | // Find the matching IP address when given a ServicePort | {
"resource": ""
} | ||
c11795 | train | // notifySignals swallows a bunch of signals that get sent to us when running into
// an error from HAproxy. If we didn't swallow these, the process would potentially
// stop when the signals are propagated by the sub-shell. | {
"resource": ""
} | ||
c11796 | train | // ResetSignals unhooks our signal handler from the signals the sub-commands
// initiate. This is potentially destructive if other places in the program have
// hooked to the same signals! Affected signals are SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU. | {
"resource": ""
} | ||
c11797 | train | // Execute a command and bubble up the error. Includes locking behavior which means
// that only one of these can be running at once. | {
"resource": ""
} | ||
c11798 | train | // Write out the the HAproxy config and reload the service. | {
"resource": ""
} | ||
c11799 | train | // Receives POSTed state updates from a Sidecar instance | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.