_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c156100
train
// startDeploy persists the fact that we've started deploying the staged bundle.
{ "resource": "" }
c156101
train
// removeDiff removes every path in oldManifest that is not present in newManifest.
{ "resource": "" }
c156102
train
// finishDeploy persists the fact that we've finished deploying the staged bundle.
{ "resource": "" }
c156103
train
// storeManifest stores, into dataPath, the supplied manifest for the supplied charm.
{ "resource": "" }
c156104
train
// loadManifest loads, from dataPath, the manifest for the charm identified by the // identity file at the supplied path within the charm directory.
{ "resource": "" }
c156105
train
// CharmPath returns the supplied path joined to the ManifestDeployer's charm directory.
{ "resource": "" }
c156106
train
// DataPath returns the supplied path joined to the ManifestDeployer's data directory.
{ "resource": "" }
c156107
train
// manifestDeployError annotates or replaces the supplied error according // to whether or not an upgrade operation is in play. It was extracted from // Deploy to aid that method's readability.
{ "resource": "" }
c156108
train
// NewOfferCommand constructs commands that enables endpoints for export.
{ "resource": "" }
c156109
train
// validate returns an error if the state violates expectations.
{ "resource": "" }
c156110
train
// keysEqual checks if the ssh host keys are the same between two sets. // we shouldn't care about the order of the keys.
{ "resource": "" }
c156111
train
// SetSSHHostKeys updates the stored SSH host keys for an entity. // // See the note for GetSSHHostKeys regarding supported entities.
{ "resource": "" }
c156112
train
// removeSSHHostKeyOp returns the operation needed to remove the SSH // host key document associated with the given globalKey.
{ "resource": "" }
c156113
train
// NewFacade creates a new authorized Facade.
{ "resource": "" }
c156114
train
// Watch returns a watcher that sends the names of services whose // unit count may be below their configured minimum.
{ "resource": "" }
c156115
train
// Rescale causes any supplied services to be scaled up to their // minimum size.
{ "resource": "" }
c156116
train
// rescaleOne scales up the supplied service, if necessary; or returns a // suitable error.
{ "resource": "" }
c156117
train
// NewTLSConfig returns the TLS configuration for the HTTP server to use // based on controller configuration stored in the state database.
{ "resource": "" }
c156118
train
// Create sends a request to create a backup of juju's state. It // returns the metadata associated with the resulting backup and a // filename for download.
{ "resource": "" }
c156119
train
// NewBundlesDir returns a new BundlesDir which uses path for storage.
{ "resource": "" }
c156120
train
// Read returns a charm bundle from the directory. If no bundle exists yet, // one will be downloaded and validated and copied into the directory before // being returned. Downloads will be aborted if a value is received on abort.
{ "resource": "" }
c156121
train
// download fetches the supplied charm and checks that it has the correct sha256 // hash, then copies it into the directory. If a value is received on abort, the // download will be stopped.
{ "resource": "" }
c156122
train
// bundlePath returns the path to the location where the verified charm // bundle identified by info will be, or has been, saved.
{ "resource": "" }
c156123
train
// bundleURLPath returns the path to the location where the verified charm // bundle identified by url will be, or has been, saved.
{ "resource": "" }
c156124
train
// ClearDownloads removes any entries in the temporary bundle download // directory. It is intended to be called on uniter startup.
{ "resource": "" }
c156125
train
// formatMetadataTabular writes a tabular summary of cloud image metadata.
{ "resource": "" }
c156126
train
// NewAgentAPIV2 returns an object implementing version 2 of the Agent API // with the given authorizer representing the currently logged in client.
{ "resource": "" }
c156127
train
// WatchCredentials watches for changes to the specified credentials.
{ "resource": "" }
c156128
train
// NewAuditLogFilter returns an auditlog.AuditLog that will only log // conversations to the underlying log passed in if they include a // request that satisfies the filter function passed in.
{ "resource": "" }
c156129
train
// AddConversation implements auditlog.AuditLog.
{ "resource": "" }
c156130
train
// AddRequest implements auditlog.AuditLog.
{ "resource": "" }
c156131
train
// AddResponse implements auditlog.AuditLog.
{ "resource": "" }
c156132
train
// IsValidLinkLayerDeviceType returns whether the given value is a valid // link-layer network device type.
{ "resource": "" }
c156133
train
// AllLinkLayerDevices returns all link layer devices in the model.
{ "resource": "" }
c156134
train
// DocID returns the globally unique ID of the link-layer device, including the // model UUID as prefix.
{ "resource": "" }
c156135
train
// ProviderID returns the provider-specific device ID, if set.
{ "resource": "" }
c156136
train
// Machine returns the Machine this device belongs to.
{ "resource": "" }
c156137
train
// ParentDevice returns the LinkLayerDevice corresponding to the parent device // of this device, if set. When no parent device name is set, it returns nil and // no error.
{ "resource": "" }
c156138
train
// Remove removes the device, if it exists. No error is returned when the device // was already removed. ErrParentDeviceHasChildren is returned if this device is // a parent to one or more existing devices and therefore cannot be removed.
{ "resource": "" }
c156139
train
// removeLinkLayerDeviceOps returns the list of operations needed to remove the // device with the given linkLayerDeviceDocID, asserting it still exists and has // no children referring to it. If the device is a child, parentDeviceDocID will // be non-empty and the operations includes decrementing the parent's // NumCh...
{ "resource": "" }
c156140
train
// removeLinkLayerDeviceDocOp returns an operation to remove the // linkLayerDeviceDoc matching the given linkLayerDeviceDocID, asserting it // still exists.
{ "resource": "" }
c156141
train
// removeLinkLayerDeviceUnconditionallyOps returns the list of operations to // unconditionally remove the device matching the given linkLayerDeviceDocID, // along with its linkLayerDevicesRefsDoc. No asserts are included for the // existence of both documents.
{ "resource": "" }
c156142
train
// insertLinkLayerDeviceDocOp returns an operation inserting the given newDoc, // asserting it does not exist yet.
{ "resource": "" }
c156143
train
// updateLinkLayerDeviceDocOp returns an operation updating the fields of // existingDoc with the respective values of those fields in newDoc. DocID, // ModelUUID, MachineID, and Name cannot be changed. ProviderID cannot be // changed once set. In all other cases newDoc values overwrites existingDoc // values.
{ "resource": "" }
c156144
train
// assertLinkLayerDeviceExistsOp returns an operation asserting the document // matching linkLayerDeviceDocID exists.
{ "resource": "" }
c156145
train
// String returns a human-readable representation of the device.
{ "resource": "" }
c156146
train
// IsValidLinkLayerDeviceName returns whether the given name is a valid network // link-layer device name, depending on the runtime.GOOS value.
{ "resource": "" }
c156147
train
// Addresses returns all IP addresses assigned to the device.
{ "resource": "" }
c156148
train
// RemoveAddresses removes all IP addresses assigned to the device.
{ "resource": "" }
c156149
train
// EthernetDeviceForBridge returns LinkLayerDeviceArgs representing an ethernet // device with the input name and this device as its parent. // If the device is not a bridge, an error is returned.
{ "resource": "" }
c156150
train
// SetFlags adds command specific flags and then returns the flagset.
{ "resource": "" }
c156151
train
// NewAPI returns a new api client facade instance.
{ "resource": "" }
c156152
train
// WatchForProxyConfigAndAPIHostPortChanges returns a NotifyWatcher waiting for // changes in the proxy configuration or API host ports
{ "resource": "" }
c156153
train
// NewStateCAASOperatorUpgraderAPI provides the signature required for facade registration.
{ "resource": "" }
c156154
train
// NewCAASOperatorUpgraderAPI returns a new CAAS operator upgrader API facade.
{ "resource": "" }
c156155
train
// UpgradeOperator upgrades the operator for the specified agents.
{ "resource": "" }
c156156
train
// Run changes the juju-managed firewall to expose any // ports that were also explicitly marked by units as open.
{ "resource": "" }
c156157
train
// NewValueWorker returns a degenerate worker that exposes the supplied value // when passed into ValueWorkerOutput. Please do not supply values that have // their own dependency or lifecycle considerations; such values will subvert // the operation of any containing dependency.Engine by insulating it from the // failu...
{ "resource": "" }
c156158
train
// ValueWorkerOutput sets the value wrapped by the supplied valueWorker into // the out pointer, if type-compatible, or fails.
{ "resource": "" }
c156159
train
// RenderScript is defined on the RenderConfig interface.
{ "resource": "" }
c156160
train
// renderWindows is a helper function which renders the runCmds of the Windows // CloudConfig to a PowerShell script.
{ "resource": "" }
c156161
train
// NewRetryStrategyAPI creates a new API endpoint for getting retry strategies.
{ "resource": "" }
c156162
train
// RetryStrategy returns RetryStrategyResults that can be used by any code that uses // to configure the retry timer that's currently in juju utils.
{ "resource": "" }
c156163
train
// WatchRetryStrategy watches for changes to the model. Currently we only allow // changes to the boolean that determines whether retries should be attempted or not.
{ "resource": "" }
c156164
train
// GUIDataSourceBaseURL returns the default base URL to use for the Juju GUI // simplestreams data source. The default value can be overridden by setting // the JUJU_GUI_SIMPLESTREAMS_URL environment variable.
{ "resource": "" }
c156165
train
// NewMultiNotifyWatcher creates a NotifyWatcher that combines // each of the NotifyWatchers passed in. Each watcher's initial // event is consumed, and a single initial event is sent. // Subsequent events are not coalesced.
{ "resource": "" }
c156166
train
// loop copies events from the input channel to the output channel, // coalescing events by waiting a short time between receiving and // sending.
{ "resource": "" }
c156167
train
// copyEvents copies channel events from "in" to "out", coalescing.
{ "resource": "" }
c156168
train
// GetFirewaller implements FirewallerFactory
{ "resource": "" }
c156169
train
// GetSecurityGroups implements Firewaller interface.
{ "resource": "" }
c156170
train
// deleteSecurityGroup attempts to delete the security group. Should it fail, // the deletion is retried due to timing issues in openstack. A security group // cannot be deleted while it is in use. Theoretically we terminate all the // instances before we attempt to delete the associated security groups, but // in prac...
{ "resource": "" }
c156171
train
// ensureGroup returns the security group with name and rules. // If a group with name does not exist, one will be created. // If it exists, its permissions are set to rules.
{ "resource": "" }
c156172
train
// newRuleSetForGroup returns a set of all of the permissions in a given // slice of SecurityGroupRules. It ignores the group id, the // remove group id, and tenant id. Keep the rule id to delete the rule if // necessary.
{ "resource": "" }
c156173
train
// newRuleSetForGroup returns a set of all of the permissions in a given // slice of RuleInfo. It ignores the rule id, the group id, the // remove group id, and tenant id.
{ "resource": "" }
c156174
train
// DeleteAllControllerGroups implements Firewaller interface.
{ "resource": "" }
c156175
train
// Matching a security group by name only works if each name is unqiue. Neutron // security groups are not required to have unique names. Juju constructs unique // names, but there are frequently multiple matches to 'default'
{ "resource": "" }
c156176
train
// secGroupMatchesIngressRule checks if supplied nova security group rule matches the ingress rule
{ "resource": "" }
c156177
train
// ActiveSubnets returns a list of subnet tags for which the machine has opened // ports.
{ "resource": "" }
c156178
train
// OpenedPorts returns a map of network.PortRange to unit tag for all opened // port ranges on the machine for the subnet matching given subnetTag.
{ "resource": "" }
c156179
train
// ResumeTransactions resumes all pending transactions.
{ "resource": "" }
c156180
train
// MaybePruneTransactions removes data for completed transactions.
{ "resource": "" }
c156181
train
// RunTransaction is part of the jujutxn.Runner interface. Operations // that affect multi-model collections will be modified to // ensure correct interaction with these collections.
{ "resource": "" }
c156182
train
// Run is part of the jujutxn.Runner interface. Operations returned by // the given "transactions" function that affect multi-model // collections will be modified to ensure correct interaction with // these collections.
{ "resource": "" }
c156183
train
// MaybePruneTransactions is part of the jujutxn.Runner interface.
{ "resource": "" }
c156184
train
// mungeUpdate takes the value of an txn.Op Update field and modifies // it to be multi-model safe, returning the modified document.
{ "resource": "" }
c156185
train
// NewStatusSetCmd returns a new StatusSetCmd that wraps the given context.
{ "resource": "" }
c156186
train
// insertLinkLayerDevicesRefsOp returns an operation to insert a new // linkLayerDevicesRefsDoc for the given modelUUID and linkLayerDeviceDocID, // with NumChildren=0.
{ "resource": "" }
c156187
train
// removeLinkLayerDevicesRefsOp returns an operation to remove the // linkLayerDevicesRefsDoc for the given linkLayerDeviceDocID, asserting the // document has NumChildren == 0.
{ "resource": "" }
c156188
train
// getParentDeviceNumChildrenRefs returns the NumChildren value for the given // linkLayerDeviceDocID. If the linkLayerDevicesRefsDoc is missing, no error and // -1 children are returned.
{ "resource": "" }
c156189
train
// incrementDeviceNumChildrenOp returns an operation that increments the // NumChildren value of the linkLayerDevicesRefsDoc matching the given // linkLayerDeviceDocID, and asserting the document has NumChildren >= 0.
{ "resource": "" }
c156190
train
// decrementDeviceNumChildrenOp returns an operation that decrements the // NumChildren value of the linkLayerDevicesRefsDoc matching the given // linkLayerDeviceDocID, and asserting the document has NumChildren >= 1.
{ "resource": "" }
c156191
train
// Offer prepares application's endpoints for consumption.
{ "resource": "" }
c156192
train
// ListOffers gets all remote applications that have been offered from this Juju model. // Each returned application satisfies at least one of the the specified filters.
{ "resource": "" }
c156193
train
// GrantOffer grants a user access to the specified offers.
{ "resource": "" }
c156194
train
// RevokeOffer revokes a user's access to the specified offers.
{ "resource": "" }
c156195
train
// ApplicationOffer returns offered remote application details for a given URL.
{ "resource": "" }
c156196
train
// FindApplicationOffers returns all application offers matching the supplied filter.
{ "resource": "" }
c156197
train
// GetConsumeDetails returns details necessary to consue an offer at a given URL.
{ "resource": "" }
c156198
train
// DestroyOffers removes the specified application offers.
{ "resource": "" }
c156199
train
// NewClient returns a new leadership.Claimer backed by the supplied api caller.
{ "resource": "" }