_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c178500 | test | // Apps returns a AppInformer. | {
"resource": ""
} | ||
c178501 | test | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App. | {
"resource": ""
} | ||
c178502 | test | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList. | {
"resource": ""
} | ||
c178503 | test | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec. | {
"resource": ""
} | ||
c178504 | test | // ResetPassword actually resets the password of the user. It needs the token
// string. The new password will be a random string, that will be then sent to
// the user email. | {
"resource": ""
} | ||
c178505 | test | // Adds the list of known types to the given scheme. | {
"resource": ""
} | ||
c178506 | test | // Register registers an item as shutdownable | {
"resource": ""
} | ||
c178507 | test | // Do shutdowns All registered Shutdownable items | {
"resource": ""
} | ||
c178508 | test | // PlatformListImagesOrDefault returns basicImageName when platform is empty
// for backwards compatibility | {
"resource": ""
} | ||
c178509 | test | // MigrateAppsCRDs creates the necessary CRDs for every application
// on a Kubernetes cluster. This is done by re-provisioning the App
// on the cluster. | {
"resource": ""
} | ||
c178510 | test | // Register register a new migration for later execution with the Run
// functions. | {
"resource": ""
} | ||
c178511 | test | // RegisterOptional register a new migration that will not run automatically
// when calling the Run funcition. | {
"resource": ""
} | ||
c178512 | test | // Run runs all registered non optional migrations if no ".Name" is informed.
// Migrations are executed in the order that they were registered. If ".Name"
// is informed, an optional migration with the given name is executed. | {
"resource": ""
} | ||
c178513 | test | // Units returns the list of units. | {
"resource": ""
} | ||
c178514 | test | // MarshalJSON marshals the app in json format. | {
"resource": ""
} | ||
c178515 | test | // Same as AcquireApplicationLock but it keeps trying to acquire the lock
// until timeout is reached. | {
"resource": ""
} | ||
c178516 | test | // ReleaseApplicationLock releases a lock hold on an app, currently it's called
// by a middleware, however, ideally, it should be called individually by each
// handler since they might be doing operations in background. | {
"resource": ""
} | ||
c178517 | test | // GetByName queries the database to find an app identified by the given
// name. | {
"resource": ""
} | ||
c178518 | test | // AddUnits creates n new units within the provisioner, saves new units in the
// database and enqueues the apprc serialization. | {
"resource": ""
} | ||
c178519 | test | // SetUnitStatus changes the status of the given unit. | {
"resource": ""
} | ||
c178520 | test | // UpdateNodeStatus updates the status of the given node and its units,
// returning a map which units were found during the update. | {
"resource": ""
} | ||
c178521 | test | // available returns true if at least one of N units is started or unreachable. | {
"resource": ""
} | ||
c178522 | test | // Grant allows a team to have access to an app. It returns an error if the
// team already have access to the app. | {
"resource": ""
} | ||
c178523 | test | // Revoke removes the access from a team. It returns an error if the team do
// not have access to the app. | {
"resource": ""
} | ||
c178524 | test | // GetTeams returns a slice of teams that have access to the app. | {
"resource": ""
} | ||
c178525 | test | // setEnv sets the given environment variable in the app. | {
"resource": ""
} | ||
c178526 | test | // getEnv returns the environment variable if it's declared in the app. It will
// return an error if the variable is not defined in this app. | {
"resource": ""
} | ||
c178527 | test | // validateNew checks app name format, pool and plan | {
"resource": ""
} | ||
c178528 | test | // validate checks app pool and plan | {
"resource": ""
} | ||
c178529 | test | // InstanceEnvs returns a map of environment variables that belongs to the
// given service and service instance. | {
"resource": ""
} | ||
c178530 | test | // Run executes the command in app units, sourcing apprc before running the
// command. | {
"resource": ""
} | ||
c178531 | test | // GetUnits returns the internal list of units converted to bind.Unit. | {
"resource": ""
} | ||
c178532 | test | // GetUUID returns the app v4 UUID. An UUID will be generated
// if it does not exist. | {
"resource": ""
} | ||
c178533 | test | // Envs returns a map representing the apps environment variables. | {
"resource": ""
} | ||
c178534 | test | // SetEnvs saves a list of environment variables in the app. | {
"resource": ""
} | ||
c178535 | test | // UnsetEnvs removes environment variables from an app, serializing the
// remaining list of environment variables to all units of the app. | {
"resource": ""
} | ||
c178536 | test | // AddCName adds a CName to app. It updates the attribute,
// calls the SetCName function on the provisioner and saves
// the app in the database, returning an error when it cannot save the change
// in the database or add the CName on the provisioner. | {
"resource": ""
} | ||
c178537 | test | // Log adds a log message to the app. Specifying a good source is good so the
// user can filter where the message come from. | {
"resource": ""
} | ||
c178538 | test | // LastLogs returns a list of the last `lines` log of the app, matching the
// fields in the log instance received as an example. | {
"resource": ""
} | ||
c178539 | test | // List returns the list of apps filtered through the filter parameter. | {
"resource": ""
} | ||
c178540 | test | // Swap calls the Router.Swap and updates the app.CName in the database. | {
"resource": ""
} | ||
c178541 | test | // Start starts the app calling the provisioner.Start method and
// changing the units state to StatusStarted. | {
"resource": ""
} | ||
c178542 | test | // GetDbDriver returns the DB driver that was registered with a specific name | {
"resource": ""
} | ||
c178543 | test | // GetCurrentDbDriver returns the DB driver specified in the configuration file.
// If this configuration was omitted, it returns the default DB driver | {
"resource": ""
} | ||
c178544 | test | // NewForConfig creates a new Clientset for the given config. | {
"resource": ""
} | ||
c178545 | test | // GetAppFromUnitID returns app from unit id | {
"resource": ""
} | ||
c178546 | test | // NewPipeline creates a new pipeline instance with the given list of actions. | {
"resource": ""
} | ||
c178547 | test | // Result returns the result of the last action. | {
"resource": ""
} | ||
c178548 | test | // DecodeJsonPayload reads the request body and decodes the JSON using json.Unmarshal. | {
"resource": ""
} | ||
c178549 | test | // UrlFor returns the URL object from UriBase with the Path set to path, and the query
// string built with queryParams. | {
"resource": ""
} | ||
c178550 | test | // GetCorsInfo derives CorsInfo from Request. | {
"resource": ""
} | ||
c178551 | test | // MiddlewareFunc makes CorsMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178552 | test | // MiddlewareFunc makes RecorderMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178553 | test | // Record the status code. | {
"resource": ""
} | ||
c178554 | test | // MakeRouter returns the router app. Given a set of Routes, it dispatches the request to the
// HandlerFunc of the first route that matches. The order of the Routes matters. | {
"resource": ""
} | ||
c178555 | test | // Handle the REST routing and run the user code. | {
"resource": ""
} | ||
c178556 | test | // This is run for each new request, perf is important. | {
"resource": ""
} | ||
c178557 | test | // This is run at init time only. | {
"resource": ""
} | ||
c178558 | test | // This validates the Routes and prepares the Trie data structure.
// It must be called once the Routes are defined and before trying to find Routes.
// The order matters, if multiple Routes match, the first defined will be used. | {
"resource": ""
} | ||
c178559 | test | // return the result that has the route defined the earliest | {
"resource": ""
} | ||
c178560 | test | // Return the first matching Route and the corresponding parameters for a given URL object. | {
"resource": ""
} | ||
c178561 | test | // MiddlewareFunc makes ContentTypeCheckerMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178562 | test | // Provided in order to implement the http.CloseNotifier interface. | {
"resource": ""
} | ||
c178563 | test | // MiddlewareFunc makes AccessLogApacheMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178564 | test | // Execute the text template with the data derived from the request, and return a string. | {
"resource": ""
} | ||
c178565 | test | // As stored by the auth middlewares. | {
"resource": ""
} | ||
c178566 | test | // If qs exists then return it with a leadin "?", apache log style. | {
"resource": ""
} | ||
c178567 | test | // When the request entered the timer middleware. | {
"resource": ""
} | ||
c178568 | test | // If remoteAddr is set then return is without the port number, apache log style. | {
"resource": ""
} | ||
c178569 | test | // As mesured by the timer middleware. | {
"resource": ""
} | ||
c178570 | test | // MiddlewareFunc makes JsonIndentMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178571 | test | // Replace the parent EncodeJson to provide indentation. | {
"resource": ""
} | ||
c178572 | test | // Call the parent WriteHeader. | {
"resource": ""
} | ||
c178573 | test | // MakePath generates the path corresponding to this Route and the provided path parameters.
// This is used for reverse route resolution. | {
"resource": ""
} | ||
c178574 | test | // MiddlewareFunc makes RecoverMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178575 | test | // WrapMiddlewares calls the MiddlewareFunc methods in the reverse order and returns an HandlerFunc
// ready to be executed. This can be used to wrap a set of middlewares, post routing, on a per Route
// basis. | {
"resource": ""
} | ||
c178576 | test | // MiddlewareFunc makes GzipMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178577 | test | // Set the right headers for gzip encoded responses. | {
"resource": ""
} | ||
c178578 | test | // Provided in order to implement the http.Hijacker interface. | {
"resource": ""
} | ||
c178579 | test | // Make sure the local WriteHeader is called, and encode the payload if necessary.
// Provided in order to implement the http.ResponseWriter interface. | {
"resource": ""
} | ||
c178580 | test | // MiddlewareFunc makes AuthBasicMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178581 | test | // Private function for now | {
"resource": ""
} | ||
c178582 | test | // Insert the route in the Trie following or creating the nodes corresponding to the path. | {
"resource": ""
} | ||
c178583 | test | // Private function for now. | {
"resource": ""
} | ||
c178584 | test | // Given a path and an http method, return all the matching routes. | {
"resource": ""
} | ||
c178585 | test | // Same as FindRoutes, but return in addition a boolean indicating if the path was matched.
// Useful to return 405 | {
"resource": ""
} | ||
c178586 | test | // Given a path, and whatever the http method, return all the matching routes. | {
"resource": ""
} | ||
c178587 | test | // Use pushes one or multiple middlewares to the stack for middlewares
// maintained in the Api object. | {
"resource": ""
} | ||
c178588 | test | // MakeHandler wraps all the Middlewares of the stack and the App together, and returns an
// http.Handler ready to be used. If the Middleware stack is empty the App is used directly. If the
// App is nil, a HandlerFunc that does nothing is used instead. | {
"resource": ""
} | ||
c178589 | test | // MiddlewareFunc makes PoweredByMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178590 | test | // MiddlewareFunc makes StatusMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178591 | test | // GetStatus computes and returns a Status object based on the request informations accumulated
// since the start of the process. | {
"resource": ""
} | ||
c178592 | test | // MiddlewareFunc returns a HandlerFunc that implements the middleware. | {
"resource": ""
} | ||
c178593 | test | // Make sure the local WriteHeader is called, and call the parent Flush.
// Provided in order to implement the http.Flusher interface. | {
"resource": ""
} | ||
c178594 | test | // MiddlewareFunc makes AccessLogJsonMiddleware implement the Middleware interface. | {
"resource": ""
} | ||
c178595 | test | // Fetch the binary from S3 | {
"resource": ""
} | ||
c178596 | test | //sanityCheck returns true if a check was performed | {
"resource": ""
} | ||
c178597 | test | //non-blocking trigger close | {
"resource": ""
} | ||
c178598 | test | //fetchLoop is run in a goroutine | {
"resource": ""
} | ||
c178599 | test | //not a real fork | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.