_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c172000
// bashScript forms content of bash script to clone or update a repo using ssh
c172001
// handleToken checks for an optional token in the request. GitLab's webhook tokens are just // simple strings that get sent as a header with the hook request. If one // exists, verify that it matches the secret in the Caddy configuration.
c172002
// Handle satisfies hookhandler.
c172003
// Check for an optional signature in the request // if it is signed, verify the signature.
c172004
// setup configures a new Git service routine.
c172005
// parseURL validates if repoUrl is a valid git url.
c172006
// Start starts a new background service to pull periodically.
c172007
// add adds a new service to list of services.
c172008
// Repo retrieves repository at i or nil if not found.
c172009
// String satisfies stringer and attempts to strip off authentication // info from url if it exists.
c172010
// Val returns git friendly Val that can be // passed to git clone.
c172011
// Pull attempts a git pull. // It retries at most numRetries times if error occurs
c172012
// pull performs git pull, or git clone if repository does not exist.
c172013
// checkoutCommit checks out the specified commitHash.
c172014
// gitCmd performs a git command.
c172015
// Prepare prepares for a git pull // and validates the configured directory
c172016
// getMostRecentCommit gets the hash of the most recent commit to the // repository. Useful for checking if changes occur.
c172017
// originURL retrieves remote origin url for the git repository at path
c172018
// execThen executes r.Then. // It is trigged after successful git pull
c172019
// Stdin sets the process's standard input.
c172020
// Stdout sets the process's standard output.
c172021
// Stderr sets the process's standard output.
c172022
// Mkdir calls os.Mkdir.
c172023
// MkdirAll calls os.MkdirAll.
c172024
// Stat calls os.Stat.
c172025
// LookPath calls exec.LookPath.
c172026
// TempFile calls ioutil.TempFile.
c172027
// ReadDir calls ioutil.ReadDir.
c172028
// Command calls exec.Command.
c172029
// NewTicker calls time.NewTicker.
c172030
// TimeSince calls time.Since
c172031
// Check for an authorization signature in the request. Reject if not present. If validation required, check the sha
c172032
// Error satisfies error interface
c172033
// hookName returns the name of the hookHanlder h.
c172034
// ServeHTTP implements the middlware.Handler interface.
c172035
// contains code taken from go1.8, for purposes of backwards compatability with // older go versions. // hostname returns u.Host, without any port number. // // If Host is an IPv6 literal with a port number, Hostname returns the // IPv6 literal without the square brackets. IPv6 literals may include // a zone identifier...
c172036
// genOptionsODBC is a util wrapper around genOptions that uses the fixed settings // for ODBC style connection strings.
c172037
// genQueryOptions generates standard query options.
c172038
// convertOptions converts an option value based on name, value pairs.
c172039
// mode returns the mode of the path.
c172040
// registerAlias registers a alias for an already registered Scheme.
c172041
// Register registers a Scheme.
c172042
// Unregister unregisters a Scheme and all associated aliases.
c172043
// has is a util func to determine if a contains b.
c172044
// SchemeDriverAndAliases returns the registered driver and aliases for a // database scheme.
c172045
// GenFromURL returns a func that generates a DSN using urlstr as the default // URL parameters, overriding the values only if when in the passed URL.
c172046
// GenOpaque generates a opaque file path DSN from the passed URL.
c172047
// GenPostgres generates a postgres DSN from the passed URL.
c172048
// GenSQLServer generates a mssql DSN from the passed URL.
c172049
// GenMyMySQL generates a MyMySQL MySQL DSN from the passed URL.
c172050
// GenOracle generates a ora DSN from the passed URL.
c172051
// GenFirebird generates a firebirdsql DSN from the passed URL.
c172052
// GenADODB generates a adodb DSN from the passed URL.
c172053
// GenODBC generates a odbc DSN from the passed URL.
c172054
// GenOLEODBC generates a oleodbc DSN from the passed URL.
c172055
// GenClickhouse generates a clickhouse DSN from the passed URL.
c172056
// GenVoltDB generates a VoltDB DSN from the passed URL.
c172057
// GenPresto generates a Presto DSN from the passed URL.
c172058
// GenCassandra generates a cassandra DSN from the passed URL.
c172059
// GenSnowflake generates a snowflake DSN from the passed URL.
c172060
// String satisfies the stringer interface.
c172061
// Short provides a short description of the user, host, and database.
c172062
// Normalize returns the driver, host, port, database, and user name of a URL, // joined with sep, populating blank fields with empty.
c172063
// NewLimiter creates a new instance of a rate limiter.
c172064
// Has returns whether the rate limiter has seen a request for a specific id // during the current period.
c172065
// Attempted returns the number of attempted requests for an id in the current // period. Attempted does not count attempts that exceed the max requests in an // interval and only returns the max count after this is reached.
c172066
// Left returns the number of remaining requests for id during a current // period.
c172067
// Attempt attempts to perform a request for an id and returns whether it was // successful or not.
c172068
// IsPublicIP returns true if the given IP can be routed on the Internet
c172069
// ParseForwarded parses the value of the X-Forwarded-For Header and returns the // IP address.
c172070
// In returns true if the parameter field is an input field.
c172071
// Out returns true if the parameter field is an output field.
c172072
// SetLobReader sets the io.Reader if a Lob parameter field.
c172073
// Error implements the Error interface.
c172074
// SetIdx implements the driver.Error interface.
c172075
// Code implements the driver.Error interface.
c172076
// Position implements the driver.Error interface.
c172077
// Level implements the driver.Error interface.
c172078
// Text implements the driver.Error interface.
c172079
// IsWarning implements the driver.Error interface.
c172080
// IsError implements the driver.Error interface.
c172081
// IsFatal implements the driver.Error interface.
c172082
// Size returns the amount of bytes needed to encode an UTF-8 byte slice to CESU-8.
c172083
// StringSize is like Size with a string as parameter.
c172084
// FullRune reports whether the bytes in p begin with a full CESU-8 encoding of a rune.
c172085
// DecodeRune unpacks the first CESU-8 encoding in p and returns the rune and its width in bytes.
c172086
// RuneLen returns the number of bytes required to encode the rune.
c172087
// On returns if tracing methods output is active.
c172088
// SetOn sets tracing methods output active or inactive.
c172089
// reply || error
c172090
// Go starts the protocol request and response logging.
c172091
// Write implements the io.Writer interface.
c172092
// NewSession creates a new database session.
c172093
// QueryDirect executes a query without query parameters.
c172094
// ExecDirect executes a sql statement without statement parameters.
c172095
// Prepare prepares a sql statement.
c172096
// Exec executes a sql statement.
c172097
// DropStatementID releases the hdb statement handle.
c172098
// Call executes a stored procedure.
c172099
// Query executes a query.