_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c3600
train
// AddSpace creates and returns a new space.
{ "resource": "" }
c3601
train
// Space returns a space from state that matches the provided name. An error // is returned if the space doesn't exist or if there was a problem accessing // its information.
{ "resource": "" }
c3602
train
// AllSpaces returns all spaces for the model.
{ "resource": "" }
c3603
train
// EnsureDead sets the Life of the space to Dead, if it's Alive. If the space is // already Dead, no error is returned. When the space is no longer Alive or // already removed, errNotAlive is returned.
{ "resource": "" }
c3604
train
// Remove removes a Dead space. If the space is not Dead or it is already // removed, an error is returned.
{ "resource": "" }
c3605
train
// NewMockUpgradeSeriesBackend creates a new mock instance
{ "resource": "" }
c3606
train
// NewMockUpgradeSeriesMachine creates a new mock instance
{ "resource": "" }
c3607
train
// RemoveUpgradeSeriesLock mocks base method
{ "resource": "" }
c3608
train
// RemoveUpgradeSeriesLock indicates an expected call of RemoveUpgradeSeriesLock
{ "resource": "" }
c3609
train
// Series mocks base method
{ "resource": "" }
c3610
train
// SetUpgradeSeriesStatus mocks base method
{ "resource": "" }
c3611
train
// StartUpgradeSeriesUnitCompletion mocks base method
{ "resource": "" }
c3612
train
// UpdateMachineSeries mocks base method
{ "resource": "" }
c3613
train
// UpgradeSeriesStatus mocks base method
{ "resource": "" }
c3614
train
// UpgradeSeriesTarget mocks base method
{ "resource": "" }
c3615
train
// UpgradeSeriesUnitStatuses mocks base method
{ "resource": "" }
c3616
train
// NewMockUpgradeSeriesUnit creates a new mock instance
{ "resource": "" }
c3617
train
// UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus
{ "resource": "" }
c3618
train
// RegisterContainerProvider is used for providers that we want to use for managing 'instances', // but are not possible sources for 'juju bootstrap'.
{ "resource": "" }
c3619
train
// Open creates a Broker instance and errors if the provider is not for // a container substrate.
{ "resource": "" }
c3620
train
// DeployApplication takes a charm and various parameters and deploys it.
{ "resource": "" }
c3621
train
// addUnits starts n units of the given application using the specified placement // directives to allocate the machines.
{ "resource": "" }
c3622
train
// Info returns a description of the command.
{ "resource": "" }
c3623
train
// SetFlags adds the flags for this command to the passed gnuflag.FlagSet.
{ "resource": "" }
c3624
train
// populateTools stores uploaded tools in provider storage // and updates the tools metadata.
{ "resource": "" }
c3625
train
// populateGUIArchive stores the uploaded Juju GUI archive in provider storage, // updates the GUI metadata and set the current Juju GUI version.
{ "resource": "" }
c3626
train
// saveCustomImageMetadata stores the custom image metadata to the database,
{ "resource": "" }
c3627
train
// storeImageMetadataInState writes image metadata into state store.
{ "resource": "" }
c3628
train
// NewWorker returns a worker that waits for a // TerminationSignal signal, and then exits // with worker.ErrTerminateAgent.
{ "resource": "" }
c3629
train
// NewListCommand returns a command for listing storage instances.
{ "resource": "" }
c3630
train
// GetCombinedStorageInfo returns a list of StorageInstances, Filesystems and Volumes for juju cmdline display purposes
{ "resource": "" }
c3631
train
// generateListStorageOutput returns a map of storage details
{ "resource": "" }
c3632
train
// Empty checks if CombinedStorage is empty.
{ "resource": "" }
c3633
train
// formatListTabularOne writes a tabular summary of storage instances or filesystems or volumes.
{ "resource": "" }
c3634
train
// FormatListTabularAll writes a tabular summary of storage instances, filesystems and volumes.
{ "resource": "" }
c3635
train
// Manifold returns a dependency manifold that runs a reboot worker, // using the resource names defined in the supplied config.
{ "resource": "" }
c3636
train
// ApplicationInstances returns the instance IDs of provisioned // machines that are assigned units of the specified application.
{ "resource": "" }
c3637
train
// ApplicationMachines returns the machine IDs of machines which have // the specified application listed as a principal.
{ "resource": "" }
c3638
train
// NewAddressOnSpace creates a new Address, deriving its type and scope from the // value and associating it with the given spaceName.
{ "resource": "" }
c3639
train
// NewAddresses is a convenience function to create addresses from a variable // number of string arguments.
{ "resource": "" }
c3640
train
// NewAddressesOnSpace is a convenience function to create addresses on the same // space, from a a variable number of string arguments.
{ "resource": "" }
c3641
train
// DeriveAddressType attempts to detect the type of address given.
{ "resource": "" }
c3642
train
// deriveScope attempts to derive the network scope from an address's // type and value, returning the original network scope if no // deduction can be made.
{ "resource": "" }
c3643
train
// ExactScopeMatch checks if an address exactly matches any of the specified // scopes.
{ "resource": "" }
c3644
train
// SelectAddressesBySpaceNames filters the input slice of Addresses down to // those in the input space names.
{ "resource": "" }
c3645
train
// SelectHostPortsBySpaceNames filters the input slice of HostPorts down to // those in the input space names.
{ "resource": "" }
c3646
train
// SelectPublicHostPort picks one HostPort from a slice that would be // appropriate to display as a publicly accessible endpoint. If there // are no suitable candidates, the empty string is returned.
{ "resource": "" }
c3647
train
// SelectInternalAddresses picks the best addresses from a slice that can be // used as an endpoint for juju internal communication. // I nil slice is returned if there are no suitable addresses identified.
{ "resource": "" }
c3648
train
// SelectInternalHostPort picks one HostPort from a slice that can be // used as an endpoint for juju internal communication and returns it // in its NetAddr form. If there are no suitable addresses, the empty // string is returned.
{ "resource": "" }
c3649
train
// SelectInternalHostPorts picks the best matching HostPorts from a // slice that can be used as an endpoint for juju internal // communication and returns them in NetAddr form. If there are no // suitable addresses, an empty slice is returned.
{ "resource": "" }
c3650
train
// DecimalToIPv4 converts a decimal to the dotted quad IP address format.
{ "resource": "" }
c3651
train
// IPv4ToDecimal converts a dotted quad IP address to its decimal equivalent.
{ "resource": "" }
c3652
train
// machineBlockDevicesChanged is called when the block devices of the scoped // machine have been seen to have changed. This triggers a refresh of all // block devices for attached volumes backing pending filesystems.
{ "resource": "" }
c3653
train
// processPendingVolumeBlockDevices is called before waiting for any events, // to force a block-device query for any volumes for which we have not // previously observed block devices.
{ "resource": "" }
c3654
train
// refreshVolumeBlockDevices refreshes the block devices for the specified // volumes.
{ "resource": "" }
c3655
train
// NewLayeredStorage wraps multiple Storages such all of their metadata // can be listed and fetched. The later entries in the list have lower // precedence than the earlier ones. The first entry in the list is always // used for mutating operations.
{ "resource": "" }
c3656
train
// Add implements Storage.Add. // // This method operates on the first Storage passed to NewLayeredStorage.
{ "resource": "" }
c3657
train
// Open implements Storage.Open. // // This method calls Open for each Storage passed to NewLayeredStorage in // the order given, and returns the first result where the error does not // satisfy errors.IsNotFound.
{ "resource": "" }
c3658
train
// Metadata implements Storage.Metadata. // // This method calls Metadata for each Storage passed to NewLayeredStorage in // the order given, and returns the first result where the error does not // satisfy errors.IsNotFound.
{ "resource": "" }
c3659
train
// AllMetadata implements Storage.AllMetadata. // // This method calls AllMetadata for each Storage passed to NewLayeredStorage // in the order given, and accumulates the results. Any results from a Storage // earlier in the list will take precedence over any others with the same // version.
{ "resource": "" }
c3660
train
// Unstage ensures that the resource is removed // from the staging area. If it isn't in the staging area // then this is a noop.
{ "resource": "" }
c3661
train
// Activate makes the staged resource the active resource.
{ "resource": "" }
c3662
train
// Id returns the local id of the Action.
{ "resource": "" }
c3663
train
// Results returns the structured output of the action and any error.
{ "resource": "" }
c3664
train
// Begin marks an action as running, and logs the time it was started. // It asserts that the action is currently pending.
{ "resource": "" }
c3665
train
// Finish removes action from the pending queue and captures the output // and end state of the action.
{ "resource": "" }
c3666
train
// removeAndLog takes the action off of the pending queue, and creates // an actionresult to capture the outcome of the action. It asserts that // the action is not already completed.
{ "resource": "" }
c3667
train
// newAction builds an Action for the given State and actionDoc.
{ "resource": "" }
c3668
train
// newActionDoc builds the actionDoc with the given name and parameters.
{ "resource": "" }
c3669
train
// Action returns an Action by Id, which is a UUID.
{ "resource": "" }
c3670
train
// AllActions returns all Actions.
{ "resource": "" }
c3671
train
// ActionByTag returns an Action given an ActionTag.
{ "resource": "" }
c3672
train
// FindActionTagsByPrefix finds Actions with ids that share the supplied prefix, and // returns a list of corresponding ActionTags.
{ "resource": "" }
c3673
train
// FindActionsByName finds Actions with the given name.
{ "resource": "" }
c3674
train
// matchingActions finds actions that match ActionReceiver.
{ "resource": "" }
c3675
train
// matchingActionsByReceiverId finds actions that match ActionReceiver name.
{ "resource": "" }
c3676
train
// matchingActionsPending finds actions that match ActionReceiver and // that are pending.
{ "resource": "" }
c3677
train
// matchingActionsRunning finds actions that match ActionReceiver and // that are running.
{ "resource": "" }
c3678
train
// matchingActionsCompleted finds actions that match ActionReceiver and // that are complete.
{ "resource": "" }
c3679
train
// matchingActionsByReceiverAndStatus finds actionNotifications that // match ActionReceiver.
{ "resource": "" }
c3680
train
// CharmInfo returns information about the requested charm.
{ "resource": "" }
c3681
train
// NewAddCloudCommand returns a command to add cloud information.
{ "resource": "" }
c3682
train
// Run executes the add cloud command, adding a cloud based on a passed-in yaml // file or interactive queries.
{ "resource": "" }
c3683
train
// addCertificate reads the cloud certificate file if available and adds the contents // to the byte slice with the appropriate key. A NotFound error is returned if // a cloud.CertFilenameKey is not contained in the data, or the value is empty, this is // not a fatal error.
{ "resource": "" }
c3684
train
// addableCloudProviders returns the names of providers supported by add-cloud, // and also the names of those which are not supported.
{ "resource": "" }
c3685
train
// nameExists returns either an empty string if the name does not exist, or a // non-empty string with an error message if it does exist.
{ "resource": "" }
c3686
train
// New creates a Facade backed by backend and resources. If auth // doesn't identity the client as a machine agent or a unit agent, // it will return common.ErrPerm.
{ "resource": "" }
c3687
train
// Phase returns the current migration phase or an error for every // supplied entity.
{ "resource": "" }
c3688
train
// onePhase does auth and lookup for a single entity.
{ "resource": "" }
c3689
train
// Watch returns an id for use with the NotifyWatcher facade, or an // error, for every supplied entity.
{ "resource": "" }
c3690
train
// Manifold returns a collect-metrics manifold.
{ "resource": "" }
c3691
train
// Do satisfies the worker.PeriodWorkerCall function type.
{ "resource": "" }
c3692
train
// NewCredentialValidatorAPI creates a new CredentialValidator API endpoint on server-side.
{ "resource": "" }
c3693
train
// NewCredentialValidatorAPIv1 creates a new CredentialValidator API endpoint on server-side.
{ "resource": "" }
c3694
train
// WatchCredential returns a NotifyWatcher that observes // changes to a given cloud credential.
{ "resource": "" }
c3695
train
// ModelCredential returns cloud credential information for a model.
{ "resource": "" }
c3696
train
// WatchModelCredential returns a NotifyWatcher that watches what cloud credential a model uses.
{ "resource": "" }
c3697
train
// NewFacade returns a new CAAS unit provisioner Facade facade.
{ "resource": "" }
c3698
train
// WatchApplicationsScale starts a NotifyWatcher to watch changes // to the applications' scale.
{ "resource": "" }
c3699
train
// WatchPodSpec starts a NotifyWatcher to watch changes to the // pod spec for specified units in this model.
{ "resource": "" }