_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c3700
train
// ApplicationsScale returns the scaling info for specified applications in this model.
{ "resource": "" }
c3701
train
// ProvisioningInfo returns the provisioning info for specified applications in this model.
{ "resource": "" }
c3702
train
// applicationFilesystemParams retrieves FilesystemParams for the filesystems // that should be provisioned with, and attached to, pods of the application.
{ "resource": "" }
c3703
train
// ApplicationsConfig returns the config for the specified applications.
{ "resource": "" }
c3704
train
// UpdateApplicationsUnits updates the Juju data model to reflect the given // units of the specified application.
{ "resource": "" }
c3705
train
// updateStatus constructs the agent and cloud container status values.
{ "resource": "" }
c3706
train
// UpdateApplicationsService updates the Juju data model to reflect the given // service details of the specified application.
{ "resource": "" }
c3707
train
// SetOperatorStatus updates the operator status for each given application.
{ "resource": "" }
c3708
train
// Component implements context.HookContext.
{ "resource": "" }
c3709
train
// Validate returns an error if the TargetInfo contains bad data. Nil // is returned otherwise.
{ "resource": "" }
c3710
train
// IndexStoragePath returns the storage path for the image metadata index file.
{ "resource": "" }
c3711
train
// readMetadata reads the image metadata from metadataStore.
{ "resource": "" }
c3712
train
// mapKey returns a key that uniquely identifies image metadata. // The metadata for different images may have similar values // for some parameters. This key ensures that truly distinct // metadata is not overwritten by closely related ones. // This key is similar to image metadata key built in state which combines //...
{ "resource": "" }
c3713
train
// mergeMetadata merges the newMetadata into existingMetadata, overwriting existing matching image records.
{ "resource": "" }
c3714
train
// writeMetadata generates some basic simplestreams metadata using the specified cloud and image details and writes // it to the supplied store.
{ "resource": "" }
c3715
train
// queueRemoval includes this sequence as one that has been superseded
{ "resource": "" }
c3716
train
// flushRemovals makes sure that we've applied all desired removals
{ "resource": "" }
c3717
train
// NewPruner returns an object that is ready to prune the Beings collection // of old beings sequence entries that we no longer need.
{ "resource": "" }
c3718
train
// NewFacade is used to register the facade.
{ "resource": "" }
c3719
train
// NewAgentToolsAPI creates a new instance of the Model API.
{ "resource": "" }
c3720
train
// Base implementation of envVersionUpdater
{ "resource": "" }
c3721
train
// UpdateToolsAvailable invokes a lookup and further update in environ // for new patches of the current tool versions.
{ "resource": "" }
c3722
train
// formatFindTabular returns a tabular summary of remote applications or // errors out if parameter is not of expected type.
{ "resource": "" }
c3723
train
// formatFoundEndpointsTabular returns a tabular summary of offered applications' endpoints.
{ "resource": "" }
c3724
train
// Path returns the path component of the URL.
{ "resource": "" }
c3725
train
// parseOfferURL parses the specified URL string into an OfferURL.
{ "resource": "" }
c3726
train
// MakeURL constructs an offer URL from the specified components.
{ "resource": "" }
c3727
train
// Open opens the environment and returns it. // The configuration must have come from a previously // prepared environment.
{ "resource": "" }
c3728
train
// Validate ensures that config is a valid configuration for this // provider, applying changes to it if necessary, and returns the // validated configuration. // If old is not nil, it holds the previous environment configuration // for consideration when validating changes.
{ "resource": "" }
c3729
train
// NewCleanup creates a new periodic worker that calls the CleanupOldMetrics api.
{ "resource": "" }
c3730
train
// ensureNetworksAndSubnets creates VCNs, security lists and subnets that will // be used throughout the life-cycle of this juju deployment.
{ "resource": "" }
c3731
train
// cleanupNetworksAndSubnets destroys all subnets, VCNs and security lists that have // been used by this juju deployment. This function should only be called when // destroying the environment, and only after destroying any resources that may be attached // to a network.
{ "resource": "" }
c3732
train
// validate checks that the MetricBatch contains valid metrics.
{ "resource": "" }
c3733
train
// AddMetrics adds a new batch of metrics to the database.
{ "resource": "" }
c3734
train
// AddModelMetrics adds a new model-centric batch of metrics to the database.
{ "resource": "" }
c3735
train
// MetricBatchesForUnit returns metric batches for the given unit.
{ "resource": "" }
c3736
train
// MetricBatchesForModel returns metric batches for all the units in the model.
{ "resource": "" }
c3737
train
// MetricBatchesForApplication returns metric batches for the given application.
{ "resource": "" }
c3738
train
// MetricBatch returns the metric batch with the given id.
{ "resource": "" }
c3739
train
// MetricsToSend returns batchSize metrics that need to be sent // to the collector
{ "resource": "" }
c3740
train
// CountOfUnsentMetrics returns the number of metrics that // haven't been sent to the collection service.
{ "resource": "" }
c3741
train
// CountOfSentMetrics returns the number of metrics that // have been sent to the collection service and have not // been removed by the cleanup worker.
{ "resource": "" }
c3742
train
// Metrics returns the metrics in this batch.
{ "resource": "" }
c3743
train
// UniqueMetrics returns only the last value for each // metric key in this batch.
{ "resource": "" }
c3744
train
// SetSent marks the metric has having been sent at // the specified time.
{ "resource": "" }
c3745
train
// SetMetricBatchesSent sets sent on each MetricBatch corresponding to the uuids provided.
{ "resource": "" }
c3746
train
// NewActionSetCommand returns a new ActionSetCommand with the given context.
{ "resource": "" }
c3747
train
// hash returns a hash of the yaml serialized settings. // If the settings are not able to be serialized an error is returned.
{ "resource": "" }
c3748
train
// NewClient creates a new `Client` based on an existing authenticated API // connection.
{ "resource": "" }
c3749
train
// CloudSpec returns a CloudSpec for the specified model.
{ "resource": "" }
c3750
train
// HostedModelsConfig returns all model settings for the // controller model.
{ "resource": "" }
c3751
train
// DestroyController puts the controller model into a "dying" state, // and removes all non-manager machine instances.
{ "resource": "" }
c3752
train
// ListBlockedModels returns a list of all models within the controller // which have at least one block in place.
{ "resource": "" }
c3753
train
// GrantController grants a user access to the controller.
{ "resource": "" }
c3754
train
// RevokeController revokes a user's access to the controller.
{ "resource": "" }
c3755
train
// GetControllerAccess returns the access level the user has on the controller.
{ "resource": "" }
c3756
train
// ConfigSet updates the passed controller configuration values. Any // settings that aren't passed will be left with their previous // values.
{ "resource": "" }
c3757
train
// Validate performs sanity checks on the migration configuration it // holds.
{ "resource": "" }
c3758
train
// NewStatusAPI creates a new server-side Status setter API facade.
{ "resource": "" }
c3759
train
// SetStatus will set status for a entities passed in args. If the entity is // a Unit it will instead set status to its agent, to emulate backwards // compatibility.
{ "resource": "" }
c3760
train
// SetUnitStatus sets status for all elements passed in args, the difference // with SetStatus is that if an entity is a Unit it will set its status instead // of its agent.
{ "resource": "" }
c3761
train
// SetApplicationStatus sets the status for all the Applications in args if the given Unit is // the leader.
{ "resource": "" }
c3762
train
// UnitStatus returns the workload status information for the unit.
{ "resource": "" }
c3763
train
// ApplicationStatus returns the status of the Applications and its workloads // if the given unit is the leader.
{ "resource": "" }
c3764
train
// formatFirewallRulesTabular returns a tabular summary of firewall rules.
{ "resource": "" }
c3765
train
// FirstIndex is part of raft.LogStore.
{ "resource": "" }
c3766
train
// GetLog is part of raft.LogStore.
{ "resource": "" }
c3767
train
// StoreLog is part of raft.LogStore.
{ "resource": "" }
c3768
train
// StoreLogs is part of raft.LogStore.
{ "resource": "" }
c3769
train
// DeleteRange is part of raft.LogStore.
{ "resource": "" }
c3770
train
// Close closes the underlying logstore.
{ "resource": "" }
c3771
train
// docAsMetadata returns a new backups.Metadata based on the storageMetaDoc.
{ "resource": "" }
c3772
train
// newStorageMetaDoc creates a storageMetaDoc using the corresponding // values from the backup Metadata.
{ "resource": "" }
c3773
train
// newStorageDBWrapper returns a DB operator for the , with its own session.
{ "resource": "" }
c3774
train
// metadata populates doc with the document matching the ID.
{ "resource": "" }
c3775
train
// allMetadata populates docs with the list of documents in storage.
{ "resource": "" }
c3776
train
// removeMetadataID removes the identified metadata from storage.
{ "resource": "" }
c3777
train
// txnOp returns a single transaction operation populated with the id // and the metadata collection name. The caller should set other op // values as needed.
{ "resource": "" }
c3778
train
// txnOpInsert returns a single transaction operation that will insert // the document into storage.
{ "resource": "" }
c3779
train
// txnOpInsert returns a single transaction operation that will update // the already stored document.
{ "resource": "" }
c3780
train
// runTransaction runs the DB operations within a single transaction.
{ "resource": "" }
c3781
train
// blobStorage returns a ManagedStorage matching the env storage and the blobDB.
{ "resource": "" }
c3782
train
// Copy returns a copy of the operator.
{ "resource": "" }
c3783
train
// addStorageMetadata stores metadata for a backup where it can be // accessed later. It returns a new ID that is associated with the // backup. If the provided metadata already has an ID set, it is // ignored. The new ID is set on the doc, even when there is an error.
{ "resource": "" }
c3784
train
// AddDoc adds the document to storage and returns the new ID.
{ "resource": "" }
c3785
train
// Doc returns the stored document associated with the given ID.
{ "resource": "" }
c3786
train
// ListDocs returns the list of all stored documents.
{ "resource": "" }
c3787
train
// RemoveDoc removes the identified document from storage.
{ "resource": "" }
c3788
train
// SetStored records in the metadata the fact that the file was stored.
{ "resource": "" }
c3789
train
// File returns the identified file from storage.
{ "resource": "" }
c3790
train
// AddFile adds the file to storage.
{ "resource": "" }
c3791
train
// RemoveFile removes the identified file from storage.
{ "resource": "" }
c3792
train
// NewUnitUpgraderAPI creates a new server-side UnitUpgraderAPI facade.
{ "resource": "" }
c3793
train
// WatchAPIVersion starts a watcher to track if there is a new version // of the API that we want to upgrade to. The watcher tracks changes to // the unit's assigned machine since that's where the required agent version is stored.
{ "resource": "" }
c3794
train
// DesiredVersion reports the Agent Version that we want that unit to be running. // The desired version is what the unit's assigned machine is running.
{ "resource": "" }
c3795
train
// formatGoalState moves information from application GoalState struct to // application GoalState struct.
{ "resource": "" }
c3796
train
// ValidateSeries ensures the charm series is valid for the model type.
{ "resource": "" }
c3797
train
// NewStateBackend converts a state.State into a Backend.
{ "resource": "" }
c3798
train
// ModelAgentVersion implements MachineProvisioner.ModelAgentVersion.
{ "resource": "" }
c3799
train
// ProvisioningInfo implements MachineProvisioner.ProvisioningInfo.
{ "resource": "" }