_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157100 | train | // ResumeHAReplicationAfterUpgrade will add the upgraded members of HA
// cluster to the upgraded master. | {
"resource": ""
} | ||
c157101 | train | // validateUploadAllowed returns an error if an attempt to upload tools should
// not be allowed. | {
"resource": ""
} | ||
c157102 | train | // findPackagedTools returns a list of tools for in simplestreams. | {
"resource": ""
} | ||
c157103 | train | // locallyBuildableTools returns the list of tools that
// can be built locally, for series of the same OS. | {
"resource": ""
} | ||
c157104 | train | // findBootstrapTools returns a tools.List containing only those tools with
// which it would be reasonable to launch an environment's first machine,
// given the supplied constraints. If a specific agent version is not requested,
// all tools matching the current major.minor version are chosen. | {
"resource": ""
} | ||
c157105 | train | // NewDestroyCommand returns a command to destroy a controller. | {
"resource": ""
} | ||
c157106 | train | // checkNoAliveHostedModels ensures that the given set of hosted models
// contains none that are Alive. If there are, an message is printed
// out to | {
"resource": ""
} | ||
c157107 | train | // checkNoPersistentStorage ensures that the controller contains
// no persistent storage. If there is any, a message is printed
// out informing the user that they must choose to destroy or
// release the storage. | {
"resource": ""
} | ||
c157108 | train | // ensureUserFriendlyErrorLog ensures that error will be logged and displayed
// in a user-friendly manner with readable and digestable error message. | {
"resource": ""
} | ||
c157109 | train | // getControllerEnviron returns the Environ for the controller model.
//
// getControllerEnviron gets the information required to get the
// Environ by first checking the config store, then querying the
// API if the information is not in the store. | {
"resource": ""
} | ||
c157110 | train | // CreateUpgradeSeriesLock create a prepare lock for series upgrade. If
// this item exists in the database for a given machine it indicates that a
// machine's operating system is being upgraded from one series to another;
// for example, from xenial to bionic. | {
"resource": ""
} | ||
c157111 | train | // IsParentLockedForSeriesUpgrade determines if a machine is a container who's
// parent is locked for series upgrade. | {
"resource": ""
} | ||
c157112 | train | // IsLockedForSeriesUpgrade determines if a machine is locked for upgrade series. | {
"resource": ""
} | ||
c157113 | train | // UpgradeSeriesTarget returns the series
// that the machine is being upgraded to. | {
"resource": ""
} | ||
c157114 | train | // StartUpgradeSeriesUnitCompletion notifies units that an upgrade-series
// workflow is ready for its "completion" phase. | {
"resource": ""
} | ||
c157115 | train | // CompleteUpgradeSeries notifies units and machines that an upgrade series is
// ready for its "completion" phase. | {
"resource": ""
} | ||
c157116 | train | // UnitStatus returns the series upgrade status for the input unit. | {
"resource": ""
} | ||
c157117 | train | // UnitStatus returns the unit statuses from the upgrade-series lock
// for this machine. | {
"resource": ""
} | ||
c157118 | train | // SetUpgradeSeriesUnitStatus sets the status of a series upgrade for a unit. | {
"resource": ""
} | ||
c157119 | train | // verifyUnitUpgradeSeriesStatus returns a boolean indicating whether or not it
// is safe to update the UpgradeSeriesStatus of a lock. | {
"resource": ""
} | ||
c157120 | train | // SetUpgradeSeriesStatus sets the status of the machine in
// the upgrade-series lock. | {
"resource": ""
} | ||
c157121 | train | // GetUpgradeSeriesMessages returns all 'unseen' upgrade series
// notifications sorted by timestamp. | {
"resource": ""
} | ||
c157122 | train | // SetUpgradeSeriesMessagesAsSeen marks a given upgrade series messages as
// having been seen by a client of the API. | {
"resource": ""
} | ||
c157123 | train | // setUpgradeSeriesInstanceStatus updates the instance status of a machine in
// accordance with its progression through the upgrade-series workflow. | {
"resource": ""
} | ||
c157124 | train | // upgradeSeriesMachineIds returns the IDs of all machines
// currently locked for series-upgrade. | {
"resource": ""
} | ||
c157125 | train | //ValidateStorageProvider returns an error if the storage type and config is not valid
// for a Kubernetes deployment. | {
"resource": ""
} | ||
c157126 | train | // StorageProviderTypes is defined on the storage.ProviderRegistry interface. | {
"resource": ""
} | ||
c157127 | train | // StorageProvider is defined on the storage.ProviderRegistry interface. | {
"resource": ""
} | ||
c157128 | train | // ValidateConfig is defined on the storage.Provider interface. | {
"resource": ""
} | ||
c157129 | train | // NewFindEndpointsCommand constructs command that
// allows to find offered application endpoints. | {
"resource": ""
} | ||
c157130 | train | // OfficialDataSources returns the simplestreams datasources where official
// image metadata can be found. | {
"resource": ""
} | ||
c157131 | train | // idStream returns the string to use in making a product id
// for the given product stream. | {
"resource": ""
} | ||
c157132 | train | // Fetch returns a list of images for the specified cloud matching the constraint.
// The base URL locations are as specified - the first location which has a file is the one used.
// Signed data is preferred, but if there is no signed data available and onlySigned is false,
// then unsigned data is used. | {
"resource": ""
} | ||
c157133 | train | // appendMatchingImages updates matchingImages with image metadata records from images which belong to the
// specified region. If an image already exists in matchingImages, it is not overwritten. | {
"resource": ""
} | ||
c157134 | train | // Info provides the implementation of the API method. | {
"resource": ""
} | ||
c157135 | train | // Validate checks the conf's values for correctness. | {
"resource": ""
} | ||
c157136 | train | // Unquote returns the string embedded between matching quotation marks.
// If there aren't any matching quotation marks then the string is
// returned as-is. | {
"resource": ""
} | ||
c157137 | train | // Save stores given cloud image metadata using given persistence interface. | {
"resource": ""
} | ||
c157138 | train | // ParseMetadataListFromParams translates params.CloudImageMetadataList
// into a collection of cloudimagemetadata.Metadata. | {
"resource": ""
} | ||
c157139 | train | // NewResolver returns a new storage resolver. | {
"resource": ""
} | ||
c157140 | train | // maybeShortCircuitRemoval removes any storage that is not alive,
// and has not had a storage-attached hook committed. | {
"resource": ""
} | ||
c157141 | train | // DecorateNetworking is part of the openstack.NetworkingDecorator interface. | {
"resource": ""
} | ||
c157142 | train | // DefaultNetworks is part of the openstack.Networking interface. | {
"resource": ""
} | ||
c157143 | train | // NewMockLXDProfileInstanceBroker creates a new mock instance | {
"resource": ""
} | ||
c157144 | train | // AssignLXDProfiles mocks base method | {
"resource": ""
} | ||
c157145 | train | // LXDProfileNames mocks base method | {
"resource": ""
} | ||
c157146 | train | // MaybeWriteLXDProfile mocks base method | {
"resource": ""
} | ||
c157147 | train | // ReplaceOrAddInstanceProfile mocks base method | {
"resource": ""
} | ||
c157148 | train | // StartInstance mocks base method | {
"resource": ""
} | ||
c157149 | train | // UnitStorageAttachments returns the IDs of a unit's storage attachments. | {
"resource": ""
} | ||
c157150 | train | // DestroyUnitStorageAttachments ensures that the specified unit's storage
// attachments will be removed at some point in the future. | {
"resource": ""
} | ||
c157151 | train | // WatchUnitStorageAttachments starts a watcher for changes to storage
// attachments related to the unit. The watcher will return the
// IDs of the corresponding storage instances. | {
"resource": ""
} | ||
c157152 | train | // StorageAttachment returns the storage attachment with the specified
// unit and storage tags. | {
"resource": ""
} | ||
c157153 | train | // StorageAttachmentLife returns the lifecycle state of the storage attachments
// with the specified IDs. | {
"resource": ""
} | ||
c157154 | train | // WatchStorageAttachments starts a watcher for changes to the info
// of the storage attachment with the specified unit and storage tags. | {
"resource": ""
} | ||
c157155 | train | // RemoveStorageAttachment removes the storage attachment with the
// specified unit and storage tags from state. This method is only
// expected to succeed if the storage attachment is Dead. | {
"resource": ""
} | ||
c157156 | train | // Marshal marshals StateInitializationParams to an opaque byte array. | {
"resource": ""
} | ||
c157157 | train | // Unmarshal unmarshals StateInitializationParams from a byte array that
// was generated with StateInitializationParams.Marshal. | {
"resource": ""
} | ||
c157158 | train | // JujuTools returns the directory where Juju tools are stored. | {
"resource": ""
} | ||
c157159 | train | // AgentVersion returns the version of the Juju agent that will be configured
// on the instance. The zero value will be returned if there are no tools set. | {
"resource": ""
} | ||
c157160 | train | // ToolsList returns the list of tools in the order in which they will
// be tried. | {
"resource": ""
} | ||
c157161 | train | // SetSnapSource annotates the instance configuration
// with the location of a local .snap to upload during
// the instance's provisioning. | {
"resource": ""
} | ||
c157162 | train | // VerifyConfig verifies that the InstanceConfig is valid. | {
"resource": ""
} | ||
c157163 | train | // VerifyConfig verifies that the BootstrapConfig is valid. | {
"resource": ""
} | ||
c157164 | train | // NewInstanceConfig sets up a basic machine configuration, for a
// non-bootstrap node. You'll still need to supply more information,
// but this takes care of the fixed entries and the ones that are
// always needed. | {
"resource": ""
} | ||
c157165 | train | // NewBootstrapInstanceConfig sets up a basic machine configuration for a
// bootstrap node. You'll still need to supply more information, but this
// takes care of the fixed entries and the ones that are always needed. | {
"resource": ""
} | ||
c157166 | train | // PopulateInstanceConfig is called both from the FinishInstanceConfig below,
// which does have access to the environment config, and from the container
// provisioners, which don't have access to the environment config. Everything
// that is needed to provision a container needs to be returned to the
// provisioner i... | {
"resource": ""
} | ||
c157167 | train | // InstanceTags returns the minimum set of tags that should be set on a
// machine instance, if the provider supports them. | {
"resource": ""
} | ||
c157168 | train | // Manifold creates a metric sender manifold. | {
"resource": ""
} | ||
c157169 | train | // NewMockTrackBranchCommandAPI creates a new mock instance | {
"resource": ""
} | ||
c157170 | train | // TrackBranch mocks base method | {
"resource": ""
} | ||
c157171 | train | // TrackBranch indicates an expected call of TrackBranch | {
"resource": ""
} | ||
c157172 | train | // newWorker wraps NewWorker for use in a engine.AgentAPIManifold. | {
"resource": ""
} | ||
c157173 | train | // OpenPorts adds or updates GCE firewall rules so that traffic to the
// target ports is allowed from the source ranges specified by the
// ingress rules. If a rule matching a set of source ranges doesn't
// already exist, it will be created - the name will be made unique
// using a random suffix. | {
"resource": ""
} | ||
c157174 | train | // OpenPortsWithNamer adds or creates firewall rules in the same way
// as OpenPorts, but uses the FirewallNamer passed in to generate the
// firewall name - this is mostly useful for getting predictable
// results in tests. | {
"resource": ""
} | ||
c157175 | train | // RandomSuffixNamer tries to find a unique name for the firewall by
// appending a random suffix. | {
"resource": ""
} | ||
c157176 | train | // ClosePorts sends a request to the GCE API to close the provided port
// ranges on the named firewall. If the firewall does not exist nothing
// happens. If the firewall is left with no ports then it is removed.
// Otherwise it will be left with just the open ports it has that do not
// match the provided port ranges... | {
"resource": ""
} | ||
c157177 | train | // Subnetworks returns the subnets available in this region. | {
"resource": ""
} | ||
c157178 | train | // Networks returns the networks available. | {
"resource": ""
} | ||
c157179 | train | // processNewConfig acts on a new fan config. | {
"resource": ""
} | ||
c157180 | train | // Watch starts a NotifyWatcher for the entity with the specified tag. | {
"resource": ""
} | ||
c157181 | train | // ConcatAuthKeys concatenates the two sets of authorised keys, interposing
// a newline if necessary, because authorised keys are newline-separated. | {
"resource": ""
} | ||
c157182 | train | // Validate ensures that the record is correct. | {
"resource": ""
} | ||
c157183 | train | // String returns a string representation of the location. | {
"resource": ""
} | ||
c157184 | train | // Validate ensures that the location is correct. | {
"resource": ""
} | ||
c157185 | train | // NewClient Constructs an API caller. | {
"resource": ""
} | ||
c157186 | train | // Machine status retrieves the machine status from remote state. | {
"resource": ""
} | ||
c157187 | train | // SetMachineStatus sets the machine status in remote state. | {
"resource": ""
} | ||
c157188 | train | // StartUnitCompletion starts the complete phase for all subordinate units. | {
"resource": ""
} | ||
c157189 | train | // FinishUpgradeSeries notifies the controller that the upgrade process is
// completely finished, passing the current host OS series.
// We use the name "Finish" to distinguish this method from the various
// "Complete" phases. | {
"resource": ""
} | ||
c157190 | train | // NewAPI returns a new API client for the Singular facade. It exposes methods
// for claiming and observing administration responsibility for the entity with
// the supplied tag, on behalf of the authenticated agent. | {
"resource": ""
} | ||
c157191 | train | // Claim attempts to claim responsibility for administration of the entity
// for the supplied duration. If the claim is denied, it will return
// lease.ErrClaimDenied. | {
"resource": ""
} | ||
c157192 | train | // Wait blocks until nobody has responsibility for administration of the
// entity. It should probably be doing something watchy rather than blocky,
// but it's following the lease manager implementation underlying the original
// leadership approach and it doesn't seem worth rewriting all that. | {
"resource": ""
} | ||
c157193 | train | // NewWorker returns a machine undertaker worker that will watch for
// machines that need to be removed and remove them, cleaning up any
// necessary provider-level resources first. | {
"resource": ""
} | ||
c157194 | train | // FindBest tries to find the mongo version that best fits what we want to use. | {
"resource": ""
} | ||
c157195 | train | // collectTags returns a set of keys for a specified struct tag. If no tag is
// specified for a particular field of the argument struct type, then the
// all-lowercase field name is used as per Go tag conventions. If the tag
// specified is not the name a conventionally formatted go struct tag, then the
// results of ... | {
"resource": ""
} | ||
c157196 | train | // RemoveService removes the mongoDB init service from this machine. | {
"resource": ""
} | ||
c157197 | train | // StopService will stop mongodb service. | {
"resource": ""
} | ||
c157198 | train | // StartService will start mongodb service. | {
"resource": ""
} | ||
c157199 | train | // ReStartService will stop and then start mongodb service. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.