_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c155700
train
// Blobs is part of the Container interface.
{ "resource": "" }
c155701
train
// Blob is part of the Container interface.
{ "resource": "" }
c155702
train
// Manifold returns a manifold whose worker returns ErrTerminateAgent // if a termination signal is received by the process it's running in.
{ "resource": "" }
c155703
train
// NewPortRange create a new port range and validate it.
{ "resource": "" }
c155704
train
// Validate checks if the port range is valid.
{ "resource": "" }
c155705
train
// Length returns the number of ports in the range. // If the range is not valid, it returns 0.
{ "resource": "" }
c155706
train
// Sanitize returns a copy of the port range, which is guaranteed to // have FromPort >= ToPort and both FromPort and ToPort fit into the // valid range from 1 to 65535, inclusive.
{ "resource": "" }
c155707
train
// CheckConflicts determines if the two port ranges conflict.
{ "resource": "" }
c155708
train
// Strings returns the port range as a string.
{ "resource": "" }
c155709
train
// String returns p as a user-readable string.
{ "resource": "" }
c155710
train
// extractPortsIDParts parses the given ports global key and extracts // its parts.
{ "resource": "" }
c155711
train
// OpenPorts adds the specified port range to the list of ports // maintained by this document.
{ "resource": "" }
c155712
train
// ClosePorts removes the specified port range from the list of ports // maintained by this document.
{ "resource": "" }
c155713
train
// Refresh refreshes the port document from state.
{ "resource": "" }
c155714
train
// AllPortRanges returns a map with network.PortRange as keys and unit // names as values.
{ "resource": "" }
c155715
train
// Remove removes the ports document from state.
{ "resource": "" }
c155716
train
// OpenedPorts returns this machine ports document for the given subnetID.
{ "resource": "" }
c155717
train
// removeOps returns the ops for removing the ports document from // state.
{ "resource": "" }
c155718
train
// removePortsForUnitOps returns the ops needed to remove all opened // ports for the given unit on its assigned machine.
{ "resource": "" }
c155719
train
// getPorts returns the ports document for the specified machine and subnet.
{ "resource": "" }
c155720
train
// getOrCreatePorts attempts to retrieve a ports document and returns a newly // created one if it does not exist.
{ "resource": "" }
c155721
train
// printTabular prints the list of spaces in tabular format
{ "resource": "" }
c155722
train
// NewHandler returns a new Handler that sends connections to the // given connections channel, and stops accepting connections after // the abort channel is closed.
{ "resource": "" }
c155723
train
// FeatureFlags returns a map that can be merged with os.Environ.
{ "resource": "" }
c155724
train
// MergeEnvironment will return the current environment updated with // all the values from newValues. If current is nil, a new map is // created. If current is not nil, it is mutated.
{ "resource": "" }
c155725
train
// mergeEnvUnix merges the two evironment variable lists in a case sensitive way.
{ "resource": "" }
c155726
train
// mergeEnvWin merges the two environment variable lists in a case insensitive, // but case preserving way. Thus, if FOO=bar is set, and newValues has foo=baz, // then the resultant map will contain FOO=baz.
{ "resource": "" }
c155727
train
// BlockDeviceFromState translates a state.BlockDeviceInfo to a // storage.BlockDevice.
{ "resource": "" }
c155728
train
// MatchingBlockDevice finds the block device that matches the // provided volume info and volume attachment info.
{ "resource": "" }
c155729
train
// NewWorker creates a feature flag worker with the specified config.
{ "resource": "" }
c155730
train
// generateStoreLockName uses part of the hash of the controller path as the // name of the lock. This is to avoid contention between multiple users on a // single machine with different controller files, but also helps with // contention in tests.
{ "resource": "" }
c155731
train
// AllControllers implements ControllersGetter.
{ "resource": "" }
c155732
train
// CurrentController implements ControllersGetter.
{ "resource": "" }
c155733
train
// ControllerByName implements ControllersGetter.
{ "resource": "" }
c155734
train
// ControllerByEndpoints implements ControllersGetter.
{ "resource": "" }
c155735
train
// UpdateController implements ControllerUpdater.
{ "resource": "" }
c155736
train
// SetCurrentController implements ControllerUpdater.
{ "resource": "" }
c155737
train
// RemoveController implements ControllersRemover
{ "resource": "" }
c155738
train
// AllModels implements ModelGetter.
{ "resource": "" }
c155739
train
// AccountByName implements AccountGetter.
{ "resource": "" }
c155740
train
// UpdateCredential implements CredentialUpdater.
{ "resource": "" }
c155741
train
// CredentialForCloud implements CredentialGetter.
{ "resource": "" }
c155742
train
// AllCredentials implements CredentialGetter.
{ "resource": "" }
c155743
train
// CookieJar returns the cookie jar associated with the given controller.
{ "resource": "" }
c155744
train
// Run resolves c.Target to a machine, or host of a unit and // forks ssh with c.Args, if provided.
{ "resource": "" }
c155745
train
// Config returns the configuration data with which the env was created.
{ "resource": "" }
c155746
train
// LXDProfileNames implements environs.LXDProfiler.
{ "resource": "" }
c155747
train
// MachineSeries implements backups.Backend
{ "resource": "" }
c155748
train
// NewFacadeV2 provides the required signature for version 2 facade registration.
{ "resource": "" }
c155749
train
// CloudService return the content of cloud service from the underlying state. // It returns an error that satisfies errors.IsNotFound if the cloud service has been removed.
{ "resource": "" }
c155750
train
// Refresh refreshes the content of cloud service from the underlying state. // It returns an error that satisfies errors.IsNotFound if the cloud service has been removed.
{ "resource": "" }
c155751
train
// NewMockUpgradeMachineSeriesAPI creates a new mock instance
{ "resource": "" }
c155752
train
// BestAPIVersion mocks base method
{ "resource": "" }
c155753
train
// GetUpgradeSeriesMessages indicates an expected call of GetUpgradeSeriesMessages
{ "resource": "" }
c155754
train
// UpgradeSeriesComplete mocks base method
{ "resource": "" }
c155755
train
// UpgradeSeriesPrepare mocks base method
{ "resource": "" }
c155756
train
// UpgradeSeriesValidate mocks base method
{ "resource": "" }
c155757
train
// FingerprintMatches determines whether or not the identified file's // fingerprint matches the expected fingerprint.
{ "resource": "" }
c155758
train
// Prepare ensures the commands can be run. It never returns a state change. // Prepare is part of the Operation interface.
{ "resource": "" }
c155759
train
// Execute runs the commands and dispatches their results. It never returns a // state change. // Execute is part of the Operation interface.
{ "resource": "" }
c155760
train
// ValidateModelDetails ensures that given model details are valid.
{ "resource": "" }
c155761
train
// ValidateModelDetails ensures that given account details are valid.
{ "resource": "" }
c155762
train
// ValidateModelName validates the given model name.
{ "resource": "" }
c155763
train
// ValidateModel validates the given model name and details.
{ "resource": "" }
c155764
train
// ValidateBootstrapConfig validates the given boostrap config.
{ "resource": "" }
c155765
train
// NewProvider returns a new LXD EnvironProvider.
{ "resource": "" }
c155766
train
// ValidateHook returns an error if the supplied hook.Info does not represent // a valid change to the storage state. Hooks must always be validated // against the current state before they are run, to ensure that the system // meets its guarantees about hook execution order.
{ "resource": "" }
c155767
train
// readStateFile loads a stateFile from the subdirectory of dirPath named // for the supplied storage tag. If the directory does not exist, no error // is returned.
{ "resource": "" }
c155768
train
// readAllStateFiles loads and returns every stateFile persisted inside // the supplied dirPath. If dirPath does not exist, no error is returned.
{ "resource": "" }
c155769
train
// CommitHook atomically writes to disk the storage state change in hi. // It must be called after the respective hook was executed successfully. // CommitHook doesn't validate hi but guarantees that successive writes // of the same hi are idempotent.
{ "resource": "" }
c155770
train
// DecodeCheckSignature parses the inline signed PGP text, checks the signature, // and returns plain text if the signature matches.
{ "resource": "" }
c155771
train
// NewState creates a new client-side Uniter facade.
{ "resource": "" }
c155772
train
// life requests the lifecycle of the given entity from the server.
{ "resource": "" }
c155773
train
// relation requests relation information from the server.
{ "resource": "" }
c155774
train
// getOneAction retrieves a single Action from the controller.
{ "resource": "" }
c155775
train
// Application returns an application state by tag.
{ "resource": "" }
c155776
train
// Charm returns the charm with the given URL.
{ "resource": "" }
c155777
train
// Relation returns the existing relation with the given tag.
{ "resource": "" }
c155778
train
// RelationById returns the existing relation with the given id.
{ "resource": "" }
c155779
train
// AllMachinePorts returns all port ranges currently open on the given // machine, mapped to the tags of the unit that opened them and the // relation that applies.
{ "resource": "" }
c155780
train
// WatchRelationUnits returns a watcher that notifies of changes to the // counterpart units in the relation for the given unit.
{ "resource": "" }
c155781
train
// ErrIfNotVersionFn returns a function which can be used to check for // the minimum supported version, and, if appropriate, generate an // error.
{ "resource": "" }
c155782
train
// SLALevel returns the SLA level set on the model.
{ "resource": "" }
c155783
train
// GoalState returns a GoalState struct with the charm's // peers and related units information.
{ "resource": "" }
c155784
train
// CloudSpec returns the cloud spec for the model that calling unit or // application resides in. // If the application has not been authorised to access its cloud spec, // then an authorisation error will be returned.
{ "resource": "" }
c155785
train
// createAPI returns a new application offers OffersAPI facade.
{ "resource": "" }
c155786
train
// Offer makes application endpoints available for consumption at a specified URL.
{ "resource": "" }
c155787
train
// ListApplicationOffers gets deployed details about application offers that match given filter. // The results contain details about the deployed applications such as connection count.
{ "resource": "" }
c155788
train
// ModifyOfferAccess changes the application offer access granted to users.
{ "resource": "" }
c155789
train
// changeOfferAccess performs the requested access grant or revoke action for the // specified user on the specified application offer.
{ "resource": "" }
c155790
train
// ApplicationOffers gets details about remote applications that match given URLs.
{ "resource": "" }
c155791
train
// FindApplicationOffers gets details about remote applications that match given filter.
{ "resource": "" }
c155792
train
// GetConsumeDetails returns the details necessary to pass to another model to // consume the specified offers represented by the urls.
{ "resource": "" }
c155793
train
// RemoteApplicationInfo returns information about the requested remote application.
{ "resource": "" }
c155794
train
// DestroyOffers removes the offers specified by the given URLs.
{ "resource": "" }
c155795
train
// DestroyOffers removes the offers specified by the given URLs, forcing if necessary.
{ "resource": "" }
c155796
train
// NewListCommand returns a new command that lists charm payloads // in the current environment.
{ "resource": "" }
c155797
train
// WatchRelationUnits returns a watcher for changes to the units on the specified relation.
{ "resource": "" }
c155798
train
// RelationUnitSettings returns the unit settings for the specified relation unit.
{ "resource": "" }
c155799
train
// PublishIngressNetworkChange saves the specified ingress networks for a relation.
{ "resource": "" }