_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c156400
train
// DeserializeFingerprint converts the serialized fingerprint back into // a Fingerprint. "zero" values are treated appropriately.
{ "resource": "" }
c156401
train
// LeadershipCheck is part of the leadership.Checker interface.
{ "resource": "" }
c156402
train
// Check is part of the leadership.Token interface.
{ "resource": "" }
c156403
train
// formatListSummary returns a tabular summary of remote application offers or // errors out if parameter is not of expected type.
{ "resource": "" }
c156404
train
// formatListEndpointsSummary returns a tabular summary of listed applications' endpoints.
{ "resource": "" }
c156405
train
// formatListEndpointsTabular returns a tabular summary of listed applications' endpoints.
{ "resource": "" }
c156406
train
// RelationStatusColor returns a context used to print the status with the relevant color.
{ "resource": "" }
c156407
train
// runCommand execs the provided command. It exists // here so it can be overridden in export_test.go
{ "resource": "" }
c156408
train
// ConfigureLXDProxies will try to set the lxc config core.proxy_http and // core.proxy_https configuration values based on the current environment. // If LXD is not installed, we skip the configuration.
{ "resource": "" }
c156409
train
// ensureDependencies creates a set of install packages using // apt.GetPreparePackages and runs each set of packages through // apt.GetInstall.
{ "resource": "" }
c156410
train
// getKnownV4IPsAndCIDRs iterates all of the known Addresses on this machine // and groups them up into known CIDRs and IP addresses.
{ "resource": "" }
c156411
train
// bridgeConfiguration ensures that input has a valid setting for // LXD_IPV4_ADDR, returning the existing input if is already set, and // allocating the next available subnet if it is not.
{ "resource": "" }
c156412
train
// InstalledServiceName returns the name of the running service for the LXD // daemon. If LXD is not installed, the return is an empty string.
{ "resource": "" }
c156413
train
// AgentConfig returns an agent config.
{ "resource": "" }
c156414
train
// APIHostAddrs returns a list of api server addresses.
{ "resource": "" }
c156415
train
// VerifyConfig verifies that the ControllerPodConfig is valid.
{ "resource": "" }
c156416
train
// GetHostedModel checks if hosted model was requested to create.
{ "resource": "" }
c156417
train
// VerifyConfig verifies that the ControllerConfig is valid.
{ "resource": "" }
c156418
train
// NewControllerPodConfig sets up a basic pod configuration. You'll still need to supply more information, // but this takes care of the fixed entries and the ones that are // always needed.
{ "resource": "" }
c156419
train
// NewBootstrapControllerPodConfig sets up a basic pod configuration for a // bootstrap pod. You'll still need to supply more information, but this // takes care of the fixed entries and the ones that are always needed.
{ "resource": "" }
c156420
train
// PopulateControllerPodConfig is called both from the FinishControllerPodConfig below, // which does have access to the environment config, and from the container // provisioners, which don't have access to the environment config. Everything // that is needed to provision a container needs to be returned to the // pro...
{ "resource": "" }
c156421
train
// PodLabels returns the minimum set of tags that should be set on a // pod, if the provider supports them.
{ "resource": "" }
c156422
train
// NewFacade returns a useful live implementation for // ManifoldConfig.NewFacade.
{ "resource": "" }
c156423
train
// Validate returns an error if cfg cannot drive a Worker.
{ "resource": "" }
c156424
train
// NewFirewaller returns a new Firewaller.
{ "resource": "" }
c156425
train
// startMachine creates a new data value for tracking details of the // machine and starts watching the machine for units added or removed.
{ "resource": "" }
c156426
train
// startUnit creates a new data value for tracking details of the unit // The provided machineTag must be the tag for the machine the unit was last // observed to be assigned to.
{ "resource": "" }
c156427
train
// startApplication creates a new data value for tracking details of the // application and starts watching the application for exposure changes.
{ "resource": "" }
c156428
train
// reconcileGlobal compares the initially started watcher for machines, // units and applications with the opened and closed ports globally and // opens and closes the appropriate ports for the whole environment.
{ "resource": "" }
c156429
train
// reconcileInstances compares the initially started watcher for machines, // units and applications with the opened and closed ports of the instances and // opens and closes the appropriate ports for each instance.
{ "resource": "" }
c156430
train
// unitsChanged responds to changes to the assigned units.
{ "resource": "" }
c156431
train
// openedPortsChanged handles port change notifications
{ "resource": "" }
c156432
train
// flushUnits opens and closes ports for the passed unit data.
{ "resource": "" }
c156433
train
// flushMachine opens and closes ports for the passed machine.
{ "resource": "" }
c156434
train
// gatherIngressRules returns the ingress rules to open and close // for the specified machines.
{ "resource": "" }
c156435
train
// flushGlobalPorts opens and closes global ports in the environment. // It keeps a reference count for ports so that only 0-to-1 and 1-to-0 events // modify the environment.
{ "resource": "" }
c156436
train
// flushInstancePorts opens and closes ports global on the machine.
{ "resource": "" }
c156437
train
// machineLifeChanged starts watching new machines when the firewaller // is starting, or when new machines come to life, and stops watching // machines that are dying.
{ "resource": "" }
c156438
train
// forgetMachine cleans the machine data after the machine is removed.
{ "resource": "" }
c156439
train
// forgetUnit cleans the unit data after the unit is removed.
{ "resource": "" }
c156440
train
// watchLoop watches the machine for units added or removed.
{ "resource": "" }
c156441
train
// watchLoop watches the application's exposed flag for changes.
{ "resource": "" }
c156442
train
// relationLifeChanged manages the workers to process ingress changes for // the specified relation.
{ "resource": "" }
c156443
train
// startRelation creates a new data value for tracking details of the // relation and starts watching the related models for subnets added or removed.
{ "resource": "" }
c156444
train
// watchLoop watches the relation for networks added or removed.
{ "resource": "" }
c156445
train
// updateProviderModel gathers the ingress CIDRs for the relation and notifies // that a change has occurred.
{ "resource": "" }
c156446
train
// updateIngressNetworks processes the changed ingress networks on the relation.
{ "resource": "" }
c156447
train
// forgetRelation cleans the relation data after the relation is removed.
{ "resource": "" }
c156448
train
// startRelationPoller creates a new worker which waits until a remote // relation is registered in both models.
{ "resource": "" }
c156449
train
// pollLoop waits for a remote relation to be registered. // It does this by waiting for the relation and app tokens to be created.
{ "resource": "" }
c156450
train
// composeBundle adds the overlays and bundle includes into the passed bundle // data struct.
{ "resource": "" }
c156451
train
// deployBundle deploys the given bundle data using the given API client and // charm store client. The deployment is not transactional, and its progress is // notified using the given deployment logger.
{ "resource": "" }
c156452
train
// addCharm adds a charm to the environment.
{ "resource": "" }
c156453
train
// scaleApplication updates the number of units for an application.
{ "resource": "" }
c156454
train
// addRelation creates a relationship between two applications.
{ "resource": "" }
c156455
train
// addUnit adds a single unit to an application already present in the environment.
{ "resource": "" }
c156456
train
// upgradeCharm will get the application to use the new charm.
{ "resource": "" }
c156457
train
// setOptions updates application configuration settings.
{ "resource": "" }
c156458
train
// setConstraints updates application constraints.
{ "resource": "" }
c156459
train
// exposeApplication exposes an application.
{ "resource": "" }
c156460
train
// setAnnotations sets annotations for an application or a machine.
{ "resource": "" }
c156461
train
// applicationsForMachineChange returns the names of the applications for which an // "addMachine" change is required, as adding machines is required to place // units, and units belong to applications. // Receive the id of the "addMachine" change.
{ "resource": "" }
c156462
train
// resolveMachine returns the machine id resolving the given unit or machine // placeholder.
{ "resource": "" }
c156463
train
// resolveRelation returns the relation name resolving the included application // placeholder.
{ "resource": "" }
c156464
train
// removeRelations removes any relation defined in data that references // the application appName.
{ "resource": "" }
c156465
train
// applicationConfigValue returns the value if it is not a default value. // If the value is a default value, nil is returned. // If there was issue determining the type or value, an error is returned.
{ "resource": "" }
c156466
train
// attachVolumes creates volume attachments with the specified parameters.
{ "resource": "" }
c156467
train
// createVolumeAttachmentPlans creates a volume info plan in state, which notifies the machine // agent of the target instance that something has been attached to it.
{ "resource": "" }
c156468
train
// detachVolumes destroys volume attachments with the specified parameters.
{ "resource": "" }
c156469
train
// validateVolumeParams validates a collection of volume parameters.
{ "resource": "" }
c156470
train
// volumeAttachmentParamsBySource separates the volume attachment parameters by volume source.
{ "resource": "" }
c156471
train
// Validate checks the config values to assert they are valid to create the worker.
{ "resource": "" }
c156472
train
// NewWorker starts an http server listening on an abstract domain socket // which will be created with the specified name.
{ "resource": "" }
c156473
train
// AddHandlers calls the given function with http.Handlers // that serve agent introspection requests. The function will // be called with a path; the function may alter the path // as it sees fit.
{ "resource": "" }
c156474
train
// WatchModelManagedFilesystems returns a strings watcher that reports // model-scoped filesystems that have no backing volume. Volume-backed // filesystems are always managed by the host to which they are attached.
{ "resource": "" }
c156475
train
// WatchUnitManagedFilesystems returns a strings watcher that reports both // unit-scoped filesystems, and model-scoped, volume-backed filesystems // that are attached to units of the specified application.
{ "resource": "" }
c156476
train
// WatchMachineManagedFilesystems returns a strings watcher that reports both // machine-scoped filesystems, and model-scoped, volume-backed filesystems // that are attached to the specified machine.
{ "resource": "" }
c156477
train
// WatchModelManagedFilesystemAttachments returns a strings watcher that // reports lifecycle changes to attachments of model-scoped filesystem that // have no backing volume. Volume-backed filesystems are always managed by // the host to which they are attached.
{ "resource": "" }
c156478
train
// WatchMachineManagedFilesystemAttachments returns a strings watcher that // reports lifecycle changes for attachments to both machine-scoped filesystems, // and model-scoped, volume-backed filesystems that are attached to the // specified machine.
{ "resource": "" }
c156479
train
// WatchMachineManagedFilesystemAttachments returns a strings watcher that // reports lifecycle changes for attachments to both unit-scoped filesystems, // and model-scoped, volume-backed filesystems that are attached to units of the // specified application.
{ "resource": "" }
c156480
train
// Manifold returns a dependency.Manifold that runs a charm revision worker // according to the supplied configuration.
{ "resource": "" }
c156481
train
// NewAPIFacade returns a Facade backed by the supplied APICaller.
{ "resource": "" }
c156482
train
// markRegistered helps components track which things they've // registered. If the part has already been registered then false is // returned, indicating that marking failed. This way components can // ensure a part is registered only once.
{ "resource": "" }
c156483
train
// DeleteMachineVnicSet will delete the machine vNIC set and any ACLs bound to it.
{ "resource": "" }
c156484
train
// HasSupport returns true if the current OS supports LXD containers by // default
{ "resource": "" }
c156485
train
// MaybeNewLocalServer returns a Server based on a local socket connection, // if running on an OS supporting LXD containers by default. // Otherwise a nil server is returned.
{ "resource": "" }
c156486
train
// NewLocalServer returns a Server based on a local socket connection.
{ "resource": "" }
c156487
train
// NewRemoteServer returns a Server based on a remote connection.
{ "resource": "" }
c156488
train
// NewServer builds and returns a Server for high-level interaction with the // input LXD container server.
{ "resource": "" }
c156489
train
// UpdateServerConfig updates the server configuration with the input values.
{ "resource": "" }
c156490
train
// UpdateContainerConfig updates the configuration for the container with the // input name, using the input values.
{ "resource": "" }
c156491
train
// GetContainerProfiles returns the list of profiles that are assocated with a // container.
{ "resource": "" }
c156492
train
// CreateClientCertificate adds the input certificate to the server, // indicating that is for use in client communication.
{ "resource": "" }
c156493
train
// HasProfile interrogates the known profile names and returns a boolean // indicating whether a profile with the input name exists.
{ "resource": "" }
c156494
train
// CreateProfileWithConfig creates a new profile with the input name and config.
{ "resource": "" }
c156495
train
// NewFacadeV1 creates a version 1 Client facade to handle API requests.
{ "resource": "" }
c156496
train
// NewClient creates a new instance of the Client Facade.
{ "resource": "" }
c156497
train
// WatchAll initiates a watcher for entities in the connected model.
{ "resource": "" }
c156498
train
// Resolved implements the server side of Client.Resolved.
{ "resource": "" }
c156499
train
// PublicAddress implements the server side of Client.PublicAddress.
{ "resource": "" }