_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c178400
// Uses id or address, this is only used because previously we didn't have // iaas-id in node metadata.
c178401
// Write writes and flushes the data.
c178402
// Hijack will hijack the underlying TCP connection, if available in the // ResponseWriter.
c178403
// ListDeploys returns the list of deploy that match a given filter.
c178404
// AddAll binds a path to GET, POST, PUT and DELETE methods.
c178405
//Return timeout in seconds
c178406
// RegisterHandler inserts a handler on a list of handlers for version 1.0
c178407
// RegisterHandlerVersion inserts a handler on a list of handlers
c178408
// Check check the status of registered checkers matching names and return a // list of results.
c178409
// DiscoverRepositoryPath finds the path of the repository from a given // directory. It returns the path to the repository, or an an empty string and // a non-nil error if it can't find the repository.
c178410
// OpenRepository opens a repository by its filepath. You can use // DiscoverRepositoryPath to discover the repository from any directory, and // use the result of this call as parameter for OpenRepository. // // OpenRepository will return an error if the given path does not appear to be // a git repository.
c178411
// RemoteURL returns the URL of a remote by its name. Or an error, if the // remote is not declared.
c178412
// List lists all Apps in the indexer.
c178413
// Apps returns an object that can list and get Apps.
c178414
// List lists all Apps in the indexer for a given namespace.
c178415
// StreamJSONResponse supports the JSON streaming format from the tsuru API.
c178416
// DropDatabase drop database of any given name
c178417
// Collection returns a collection by its name. // // If the collection does not exist, MongoDB will create it.
c178418
// SetLogger defines a new logger for the current target. // // See the builtin log package for more details.
c178419
// Error writes the given values to the Target // logger.
c178420
// Errorf writes the formatted string to the Target // logger.
c178421
// Fatal writes the given values to the Target // logger.
c178422
// Debugf writes the formatted string to the Target // logger.
c178423
// GetStdLogger returns a standard Logger instance // useful for configuring log in external packages.
c178424
// Namespace returns the namespace to be used by Custom Resources
c178425
// recreateContainers relaunch all node containers in the cluster for the given // DockerProvisioner, logging progress to the given writer. // // It assumes that the given writer is thread safe.
c178426
// Check provisioner configs
c178427
// Check Docker configs
c178428
// Check Schedulers // It verifies your scheduler configuration and validates related confs.
c178429
// Check Router // It verifies your router configuration and validates related confs.
c178430
// Available returns true if the unit is available. It will return true // whenever the unit itself is available, even when the application process is // not.
c178431
// Get gets the named provisioner from the registry.
c178432
// Registry returns the list of registered provisioners.
c178433
// Error is the string representation of a provisioning error.
c178434
// ReadTarget returns the current target, as defined in the TSURU_TARGET // environment variable or in the target file.
c178435
// WriteTarget writes the given endpoint to the target file.
c178436
// WriteOnTargetList writes the given target in the target list file.
c178437
// Conn reads the tsuru config and calls storage.Open to get a database connection. // // Most tsuru packages should probably use this function. storage.Open is intended for // use when supporting more than one database.
c178438
// Apps returns the apps collection from MongoDB.
c178439
// PoolsConstraints return the pool constraints collection.
c178440
// Users returns the users collection from MongoDB.
c178441
// SAMLRequests returns the saml_requests from MongoDB.
c178442
// AppLogCollection returns the logs collection for one app from MongoDB.
c178443
// CreateAppLogCollection creates a new capped collection to store logs for an app.
c178444
// LogsCollections returns logs collections for all apps from MongoDB.
c178445
// ArchiveBuildCmds build a image using the archive method.
c178446
// ArchiveDeployCmds is a legacy command to deploys an unit using the archive method.
c178447
// DeployCmds deploys an unit builded by tsuru.
c178448
// runWithAgentCmds returns the list of commands that should be passed when the // provisioner will run a unit using tsuru_unit_agent to start. // // This will only be called for legacy containers that have not been re- // deployed since the introduction of independent units per 'process' in // 0.12.0.
c178449
// newApps returns a Apps
c178450
// Commits commits the container, creating an image in Docker. It then returns // the image identifier for usage in future container creation.
c178451
// processTags removes duplicates and trims spaces from each tag
c178452
// aggregateContainersBy aggregates and counts how many containers // exist each node that matches received filters
c178453
// chooseNodeToAdd finds which is the node with the minimum number of containers // and returns it
c178454
// chooseContainerToRemove finds a container from the the node with maximum // number of containers and returns it
c178455
// Get gets the named router from the registry.
c178456
// Default returns the default router
c178457
// Store stores the app name related with the // router name.
c178458
// TsuruV1 retrieves the TsuruV1Client
c178459
// Tsuru retrieves the TsuruV1Client
c178460
// NewAppInformer constructs a new informer for App type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
c178461
// NewFilteredAppInformer constructs a new informer for App type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
c178462
// Watch returns a watch.Interface that watches the requested apps.
c178463
// Patch applies the patch and returns the patched app.
c178464
// NewSharedInformerFactory constructs a new instance of sharedInformerFactory
c178465
// NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory. // Listers obtained via this SharedInformerFactory will be subject to the same filters // as specified here.
c178466
// Proxy is not implemented for OSB API implementations
c178467
// UnbindUnit is a no-op for OSB API implementations
c178468
// Create implements Create method of PlanService interface
c178469
// Remove implements Remove method of PlanService interface
c178470
// ensureDefault creates and stores an autogenerated plan in case of no plans // exists.
c178471
// DeleteInstance deletes the service instance from the database.
c178472
// ToInfo returns the service instance as a struct compatible with the return // of the service info api call.
c178473
// Update changes informations of the service instance.
c178474
// BindApp makes the bind between the service instance and an app.
c178475
// BindUnit makes the bind between the binder and an unit.
c178476
// UnbindApp makes the unbind between the service instance and an app.
c178477
// Status returns the service instance status.
c178478
// ProxyInstance is a proxy between tsuru and the service instance. // This method allow customized service instance methods.
c178479
// Inc implements Inc method from QuotaService interface
c178480
// SetLimit redefines the limit of the app. The new limit must be bigger // than or equal to the current number of units in the app. The new limit may be // smaller than 0, which means that the app should have an unlimited number of // units. // SetLimit implements SetLimit method from QuotaService interface
c178481
// Set redefines the inuse units of the app. This new value must be smaller // than or equal to the current limit of the app. It also must be a non negative number. // Set implements Set method from QuotaService interface
c178482
// Get implements Get method from QuotaService interface
c178483
// RemoveImage removes an image manifest from a remote registry v2 server, returning an error // in case of failure.
c178484
// RemoveAppImages removes all app images from a remote registry v2 server, returning an error // in case of failure.
c178485
// Create implements Create method of PlatformService interface
c178486
// List implements List method of PlatformService interface
c178487
// FindByName implements FindByName method of PlatformService interface
c178488
// Update implements Update method of PlatformService interface
c178489
// Remove implements Remove method of PlatformService interface
c178490
// Rollback implements Rollback method of PlatformService interface
c178491
// GetPoolByName finds a pool by name
c178492
// Manager returns the current configured manager, as defined in the // configuration file.
c178493
// Register registers a new repository manager, that can be later configured // and used.
c178494
// start starts the sync process on a different goroutine
c178495
// Shutdown shutdowns bindSyncer waiting for the current sync // to complete
c178496
// GetForProvisioner gets the builder required by the provisioner.
c178497
// get gets the named builder from the registry.
c178498
// Registry returns the list of registered builders.
c178499
// RegisterQueueTask registers the internal bs queue task for later execution.