_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c3600 | // AddSpace creates and returns a new space. | |
c3601 | // 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. | |
c3602 | // AllSpaces returns all spaces for the model. | |
c3603 | // 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. | |
c3604 | // Remove removes a Dead space. If the space is not Dead or it is already
// removed, an error is returned. | |
c3605 | // NewMockUpgradeSeriesBackend creates a new mock instance | |
c3606 | // NewMockUpgradeSeriesMachine creates a new mock instance | |
c3607 | // RemoveUpgradeSeriesLock mocks base method | |
c3608 | // RemoveUpgradeSeriesLock indicates an expected call of RemoveUpgradeSeriesLock | |
c3609 | // Series mocks base method | |
c3610 | // SetUpgradeSeriesStatus mocks base method | |
c3611 | // StartUpgradeSeriesUnitCompletion mocks base method | |
c3612 | // UpdateMachineSeries mocks base method | |
c3613 | // UpgradeSeriesStatus mocks base method | |
c3614 | // UpgradeSeriesTarget mocks base method | |
c3615 | // UpgradeSeriesUnitStatuses mocks base method | |
c3616 | // NewMockUpgradeSeriesUnit creates a new mock instance | |
c3617 | // UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus | |
c3618 | // RegisterContainerProvider is used for providers that we want to use for managing 'instances',
// but are not possible sources for 'juju bootstrap'. | |
c3619 | // Open creates a Broker instance and errors if the provider is not for
// a container substrate. | |
c3620 | // DeployApplication takes a charm and various parameters and deploys it. | |
c3621 | // addUnits starts n units of the given application using the specified placement
// directives to allocate the machines. | |
c3622 | // Info returns a description of the command. | |
c3623 | // SetFlags adds the flags for this command to the passed gnuflag.FlagSet. | |
c3624 | // populateTools stores uploaded tools in provider storage
// and updates the tools metadata. | |
c3625 | // populateGUIArchive stores the uploaded Juju GUI archive in provider storage,
// updates the GUI metadata and set the current Juju GUI version. | |
c3626 | // saveCustomImageMetadata stores the custom image metadata to the database, | |
c3627 | // storeImageMetadataInState writes image metadata into state store. | |
c3628 | // NewWorker returns a worker that waits for a
// TerminationSignal signal, and then exits
// with worker.ErrTerminateAgent. | |
c3629 | // NewListCommand returns a command for listing storage instances. | |
c3630 | // GetCombinedStorageInfo returns a list of StorageInstances, Filesystems and Volumes for juju cmdline display purposes | |
c3631 | // generateListStorageOutput returns a map of storage details | |
c3632 | // Empty checks if CombinedStorage is empty. | |
c3633 | // formatListTabularOne writes a tabular summary of storage instances or filesystems or volumes. | |
c3634 | // FormatListTabularAll writes a tabular summary of storage instances, filesystems and volumes. | |
c3635 | // Manifold returns a dependency manifold that runs a reboot worker,
// using the resource names defined in the supplied config. | |
c3636 | // ApplicationInstances returns the instance IDs of provisioned
// machines that are assigned units of the specified application. | |
c3637 | // ApplicationMachines returns the machine IDs of machines which have
// the specified application listed as a principal. | |
c3638 | // NewAddressOnSpace creates a new Address, deriving its type and scope from the
// value and associating it with the given spaceName. | |
c3639 | // NewAddresses is a convenience function to create addresses from a variable
// number of string arguments. | |
c3640 | // NewAddressesOnSpace is a convenience function to create addresses on the same
// space, from a a variable number of string arguments. | |
c3641 | // DeriveAddressType attempts to detect the type of address given. | |
c3642 | // 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. | |
c3643 | // ExactScopeMatch checks if an address exactly matches any of the specified
// scopes. | |
c3644 | // SelectAddressesBySpaceNames filters the input slice of Addresses down to
// those in the input space names. | |
c3645 | // SelectHostPortsBySpaceNames filters the input slice of HostPorts down to
// those in the input space names. | |
c3646 | // 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. | |
c3647 | // 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. | |
c3648 | // 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. | |
c3649 | // 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. | |
c3650 | // DecimalToIPv4 converts a decimal to the dotted quad IP address format. | |
c3651 | // IPv4ToDecimal converts a dotted quad IP address to its decimal equivalent. | |
c3652 | // 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. | |
c3653 | // 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. | |
c3654 | // refreshVolumeBlockDevices refreshes the block devices for the specified
// volumes. | |
c3655 | // 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. | |
c3656 | // Add implements Storage.Add.
//
// This method operates on the first Storage passed to NewLayeredStorage. | |
c3657 | // 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. | |
c3658 | // 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. | |
c3659 | // 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. | |
c3660 | // Unstage ensures that the resource is removed
// from the staging area. If it isn't in the staging area
// then this is a noop. | |
c3661 | // Activate makes the staged resource the active resource. | |
c3662 | // Id returns the local id of the Action. | |
c3663 | // Results returns the structured output of the action and any error. | |
c3664 | // Begin marks an action as running, and logs the time it was started.
// It asserts that the action is currently pending. | |
c3665 | // Finish removes action from the pending queue and captures the output
// and end state of the action. | |
c3666 | // 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. | |
c3667 | // newAction builds an Action for the given State and actionDoc. | |
c3668 | // newActionDoc builds the actionDoc with the given name and parameters. | |
c3669 | // Action returns an Action by Id, which is a UUID. | |
c3670 | // AllActions returns all Actions. | |
c3671 | // ActionByTag returns an Action given an ActionTag. | |
c3672 | // FindActionTagsByPrefix finds Actions with ids that share the supplied prefix, and
// returns a list of corresponding ActionTags. | |
c3673 | // FindActionsByName finds Actions with the given name. | |
c3674 | // matchingActions finds actions that match ActionReceiver. | |
c3675 | // matchingActionsByReceiverId finds actions that match ActionReceiver name. | |
c3676 | // matchingActionsPending finds actions that match ActionReceiver and
// that are pending. | |
c3677 | // matchingActionsRunning finds actions that match ActionReceiver and
// that are running. | |
c3678 | // matchingActionsCompleted finds actions that match ActionReceiver and
// that are complete. | |
c3679 | // matchingActionsByReceiverAndStatus finds actionNotifications that
// match ActionReceiver. | |
c3680 | // CharmInfo returns information about the requested charm. | |
c3681 | // NewAddCloudCommand returns a command to add cloud information. | |
c3682 | // Run executes the add cloud command, adding a cloud based on a passed-in yaml
// file or interactive queries. | |
c3683 | // 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. | |
c3684 | // addableCloudProviders returns the names of providers supported by add-cloud,
// and also the names of those which are not supported. | |
c3685 | // 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. | |
c3686 | // 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. | |
c3687 | // Phase returns the current migration phase or an error for every
// supplied entity. | |
c3688 | // onePhase does auth and lookup for a single entity. | |
c3689 | // Watch returns an id for use with the NotifyWatcher facade, or an
// error, for every supplied entity. | |
c3690 | // Manifold returns a collect-metrics manifold. | |
c3691 | // Do satisfies the worker.PeriodWorkerCall function type. | |
c3692 | // NewCredentialValidatorAPI creates a new CredentialValidator API endpoint on server-side. | |
c3693 | // NewCredentialValidatorAPIv1 creates a new CredentialValidator API endpoint on server-side. | |
c3694 | // WatchCredential returns a NotifyWatcher that observes
// changes to a given cloud credential. | |
c3695 | // ModelCredential returns cloud credential information for a model. | |
c3696 | // WatchModelCredential returns a NotifyWatcher that watches what cloud credential a model uses. | |
c3697 | // NewFacade returns a new CAAS unit provisioner Facade facade. | |
c3698 | // WatchApplicationsScale starts a NotifyWatcher to watch changes
// to the applications' scale. | |
c3699 | // WatchPodSpec starts a NotifyWatcher to watch changes to the
// pod spec for specified units in this model. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.