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