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