_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157200 | train | // asServiceConf returns the init system config for the mongo state service. | {
"resource": ""
} | ||
c157201 | train | // StartInstance is specified in the Broker interface. | {
"resource": ""
} | ||
c157202 | train | // NewClient creates a new client for accessing the firewall rules api. | {
"resource": ""
} | ||
c157203 | train | // SetFirewallRule creates or updates a firewall rule. | {
"resource": ""
} | ||
c157204 | train | // NewVisitor returns a new Visitor. | {
"resource": ""
} | ||
c157205 | train | // VisitWebPage is part of the httpbakery.Visitor interface. | {
"resource": ""
} | ||
c157206 | train | // NewMockOperation creates a new mock instance | {
"resource": ""
} | ||
c157207 | train | // Commit indicates an expected call of Commit | {
"resource": ""
} | ||
c157208 | train | // Execute mocks base method | {
"resource": ""
} | ||
c157209 | train | // NeedsGlobalMachineLock mocks base method | {
"resource": ""
} | ||
c157210 | train | // NewAcceptLeadership mocks base method | {
"resource": ""
} | ||
c157211 | train | // NewAction mocks base method | {
"resource": ""
} | ||
c157212 | train | // NewCommands mocks base method | {
"resource": ""
} | ||
c157213 | train | // NewResignLeadership indicates an expected call of NewResignLeadership | {
"resource": ""
} | ||
c157214 | train | // NewResolvedUpgrade mocks base method | {
"resource": ""
} | ||
c157215 | train | // NewResolvedUpgrade indicates an expected call of NewResolvedUpgrade | {
"resource": ""
} | ||
c157216 | train | // NewRunHook mocks base method | {
"resource": ""
} | ||
c157217 | train | // invoke sends the claim on the supplied channel and waits for a response. | {
"resource": ""
} | ||
c157218 | train | // ClosePorts implements instances.Instance.ClosePorts. | {
"resource": ""
} | ||
c157219 | train | // New creates a new client-side UnitAssigner facade. | {
"resource": ""
} | ||
c157220 | train | // AssignUnits tells the controller to run whatever unit assignments it has.
// Unit assignments for units that no longer exist will return an error that
// satisfies errors.IsNotFound. | {
"resource": ""
} | ||
c157221 | train | // convertNotFound converts param notfound errors into errors.notfound values. | {
"resource": ""
} | ||
c157222 | train | // WatchUnitAssignments watches the server for new unit assignments to be
// created. | {
"resource": ""
} | ||
c157223 | train | // SetAgentStatus sets the status of the unit agents. | {
"resource": ""
} | ||
c157224 | train | // this needs to be stubbed out in some tests | {
"resource": ""
} | ||
c157225 | train | // ListServicesScript returns the commands that should be run to get
// a list of service names on a host. | {
"resource": ""
} | ||
c157226 | train | // InstallAndStart installs the provided service and tries starting it.
// The first few Start failures are ignored. | {
"resource": ""
} | ||
c157227 | train | // ManuallyRestart restarts the service by applying
// its Restart method or by falling back to calling Stop and Start | {
"resource": ""
} | ||
c157228 | train | // FindUnitServiceNames accepts a collection of service names as managed by the
// local init system. Any that are identified as being for unit agents are
// returned, keyed on the unit name. | {
"resource": ""
} | ||
c157229 | train | // EnsureK8sCredential ensures juju admin service account created with admin cluster role binding setup. | {
"resource": ""
} | ||
c157230 | train | // NewK8sClientConfig returns a new Kubernetes client, reading the config from the specified reader. | {
"resource": ""
} | ||
c157231 | train | // GetKubeConfigPath - define kubeconfig file path to use | {
"resource": ""
} | ||
c157232 | train | // NewRemoteServer creates a new RemoteServer that will connect to the remote
// apiserver and pass on messages to the pubsub endpoint of that apiserver. | {
"resource": ""
} | ||
c157233 | train | // Report provides information to the engine report.
// It should be fast and minimally blocking. | {
"resource": ""
} | ||
c157234 | train | // IntrospectionReport is the method called by the subscriber to get
// information about this server. | {
"resource": ""
} | ||
c157235 | train | // UpdateAddresses will update the addresses held for the target API server.
// If we are currently trying to connect to the target, interrupt it so we
// can try again with the new addresses. | {
"resource": ""
} | ||
c157236 | train | // Publish queues up the message if and only if we have an active connection to
// the target apiserver. | {
"resource": ""
} | ||
c157237 | train | // nextMessage returns the next queued message, and a flag to indicate empty. | {
"resource": ""
} | ||
c157238 | train | // forwardMessages is a goroutine whose sole purpose is to get messages off
// the messageToSend channel, try to send them over the API, and say when they
// are done with this message. This allows for the potential blocking call of
// `ForwardMessage`. If this does block for whatever reason and the worker is
// asked ... | {
"resource": ""
} | ||
c157239 | train | // Model implements PrecheckBackend. | {
"resource": ""
} | ||
c157240 | train | // IsMigrationActive implements PrecheckBackend. | {
"resource": ""
} | ||
c157241 | train | // AgentVersion implements PrecheckBackend. | {
"resource": ""
} | ||
c157242 | train | // AllMachines implements PrecheckBackend. | {
"resource": ""
} | ||
c157243 | train | // AllApplications implements PrecheckBackend. | {
"resource": ""
} | ||
c157244 | train | // ListPendingResources implements PrecheckBackend. | {
"resource": ""
} | ||
c157245 | train | // ControllerBackend implements PrecheckBackend. | {
"resource": ""
} | ||
c157246 | train | // AllUnits implements PrecheckApplication. | {
"resource": ""
} | ||
c157247 | train | // Unit implements PreCheckRelation. | {
"resource": ""
} | ||
c157248 | train | // IsCrossModel implements PreCheckRelation. | {
"resource": ""
} | ||
c157249 | train | // NewMockApiExtensionsClientInterface creates a new mock instance | {
"resource": ""
} | ||
c157250 | train | // Apiextensions mocks base method | {
"resource": ""
} | ||
c157251 | train | // Apiextensions indicates an expected call of Apiextensions | {
"resource": ""
} | ||
c157252 | train | // Discovery mocks base method | {
"resource": ""
} | ||
c157253 | train | // AddTrustSchemaAndDefaults adds trust schema fields and defaults to an existing set of schema fields and defaults. | {
"resource": ""
} | ||
c157254 | train | // ControllerTimestamp returns the current timestamp of the backend
// controller. | {
"resource": ""
} | ||
c157255 | train | // ControllerOwner returns the owner of the controller model. | {
"resource": ""
} | ||
c157256 | train | // setDyingModelToDead sets current dying model to dead. | {
"resource": ""
} | ||
c157257 | train | // RemoveDyingModel sets current model to dead then removes all documents from
// multi-model collections. | {
"resource": ""
} | ||
c157258 | train | // RemoveImportingModelDocs removes all documents from multi-model collections
// for the current model. This method asserts that the model's migration mode
// is "importing". | {
"resource": ""
} | ||
c157259 | train | // RemoveExportingModelDocs removes all documents from multi-model collections
// for the current model. This method asserts that the model's migration mode
// is "exporting". | {
"resource": ""
} | ||
c157260 | train | // removeAllInCollectionRaw removes all the documents from the given
// named collection. | {
"resource": ""
} | ||
c157261 | train | // removeAllInCollectionOps appends to ops operations to
// remove all the documents in the given named collection. | {
"resource": ""
} | ||
c157262 | train | // removeInCollectionOps generates operations to remove all documents
// from the named collection matching a specific selector. | {
"resource": ""
} | ||
c157263 | train | // ApplicationLeaders returns a map of the application name to the
// unit name that is the current leader. | {
"resource": ""
} | ||
c157264 | train | // LeaseNotifyTarget returns a raftlease.NotifyTarget for storing
// lease changes in the database. | {
"resource": ""
} | ||
c157265 | train | // LeaseTrapdoorFunc returns a raftlease.TrapdoorFunc for checking
// lease state in a database. | {
"resource": ""
} | ||
c157266 | train | // EnsureModelRemoved returns an error if any multi-model
// documents for this model are found. It is intended only to be used in
// tests and exported so it can be used in the tests of other packages. | {
"resource": ""
} | ||
c157267 | train | // MongoVersion return the string repre | {
"resource": ""
} | ||
c157268 | train | // newVersionInconsistentError returns a new instance of
// versionInconsistentError. | {
"resource": ""
} | ||
c157269 | train | // IsVersionInconsistentError returns if the given error is
// versionInconsistentError. | {
"resource": ""
} | ||
c157270 | train | // ModelConstraints returns the current model constraints. | {
"resource": ""
} | ||
c157271 | train | // SetModelConstraints replaces the current model constraints. | {
"resource": ""
} | ||
c157272 | train | // AllMachines returns all machines in the model
// ordered by id. | {
"resource": ""
} | ||
c157273 | train | // Machine returns the machine with the given id. | {
"resource": ""
} | ||
c157274 | train | // tagToCollectionAndId, given an entity tag, returns the collection name and id
// of the entity document. | {
"resource": ""
} | ||
c157275 | train | // addPeerRelationsOps returns the operations necessary to add the
// specified application peer relations to the state. | {
"resource": ""
} | ||
c157276 | train | // SaveCloudService creates a cloud service. | {
"resource": ""
} | ||
c157277 | train | // CloudService returns a cloud service state by Id. | {
"resource": ""
} | ||
c157278 | train | // removeNils removes any keys with nil values from the given map. | {
"resource": ""
} | ||
c157279 | train | // assignUnitOps returns the db ops to save unit assignment for use by the
// UnitAssigner worker. | {
"resource": ""
} | ||
c157280 | train | // AssignStagedUnits gets called by the UnitAssigner worker, and runs the given
// assignments. | {
"resource": ""
} | ||
c157281 | train | // AssignUnitWithPlacement chooses a machine using the given placement directive
// and then assigns the unit to it. | {
"resource": ""
} | ||
c157282 | train | // placementType returns the type of placement that this data represents. | {
"resource": ""
} | ||
c157283 | train | // addMachineWithPlacement finds a machine that matches the given
// placement directive for the given unit. | {
"resource": ""
} | ||
c157284 | train | // Application returns a application state by name. | {
"resource": ""
} | ||
c157285 | train | // AllApplications returns all deployed applications in the model. | {
"resource": ""
} | ||
c157286 | train | // endpoints returns all endpoints that could be intended by the
// supplied endpoint name, and which cause the filter param to
// return true. | {
"resource": ""
} | ||
c157287 | train | // EndpointsRelation returns the existing relation with the given endpoints. | {
"resource": ""
} | ||
c157288 | train | // Relation returns the existing relation with the given id. | {
"resource": ""
} | ||
c157289 | train | // AllRelations returns all relations in the model ordered by id. | {
"resource": ""
} | ||
c157290 | train | // Unit returns a unit by name. | {
"resource": ""
} | ||
c157291 | train | // UnitsFor returns the units placed in the given machine id. | {
"resource": ""
} | ||
c157292 | train | // UnitsInError returns the units which have an agent status of Error. | {
"resource": ""
} | ||
c157293 | train | // AssignUnit places the unit on a machine. Depending on the policy, and the
// state of the model, this may lead to new instances being launched
// within the model. | {
"resource": ""
} | ||
c157294 | train | // StartSync forces watchers to resynchronize their state with the
// database immediately. This will happen periodically automatically.
// This method is called only from tests. | {
"resource": ""
} | ||
c157295 | train | // SetAdminMongoPassword sets the administrative password
// to access the state. If the password is non-empty,
// all subsequent attempts to access the state must
// be authorized; otherwise no authorization is required. | {
"resource": ""
} | ||
c157296 | train | // ControllerInfo returns information about
// the currently configured controller machines. | {
"resource": ""
} | ||
c157297 | train | // readRawControllerInfo reads ControllerInfo direct from the supplied session,
// falling back to the bootstrap model document to extract the UUID when
// required. | {
"resource": ""
} | ||
c157298 | train | // StateServingInfo returns information for running a controller machine | {
"resource": ""
} | ||
c157299 | train | // SetStateServingInfo stores information needed for running a controller | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.