_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c156700
train
// makeUploadVersion returns a copy of the supplied version with a build number // higher than any of the supplied tools that share its major, minor and patch.
{ "resource": "" }
c156701
train
// Manifold returns a dependency.Manifold that will run a raft worker.
{ "resource": "" }
c156702
train
// NewSuperCommand returns a new charm super-command.
{ "resource": "" }
c156703
train
// RecordMachineInState records and saves into the state machine the provisioned machine
{ "resource": "" }
c156704
train
// ModelGet returns all model settings.
{ "resource": "" }
c156705
train
// ModelGetWithMetadata returns all model settings along with extra // metadata like the source of the setting value.
{ "resource": "" }
c156706
train
// ModelSet sets the given key-value pairs in the model.
{ "resource": "" }
c156707
train
// ModelUnset sets the given key-value pairs in the model.
{ "resource": "" }
c156708
train
// SetSLALevel sets the support level for the given model.
{ "resource": "" }
c156709
train
// SLALevel gets the support level for the given model.
{ "resource": "" }
c156710
train
// Sequences returns all sequence names and next values.
{ "resource": "" }
c156711
train
// Prune endpoint removes status history entries until // only the ones newer than now - p.MaxHistoryTime remain and // the history is smaller than p.MaxHistoryMB.
{ "resource": "" }
c156712
train
// stepsFor245 returns upgrade steps for Juju 2.4.5
{ "resource": "" }
c156713
train
// CommandNames returns the names of all jujuc commands.
{ "resource": "" }
c156714
train
// NewCommand returns an instance of the named Command, initialized to execute // against the supplied Context.
{ "resource": "" }
c156715
train
// Main runs the Command specified by req, and fills in resp. A single command // is run at a time.
{ "resource": "" }
c156716
train
// NewServer creates an RPC server bound to socketPath, which can execute // remote command invocations against an appropriate Context. It will not // actually do so until Run is called.
{ "resource": "" }
c156717
train
// Validate returns an error if the configuration cannot be expected // to start a functional worker.
{ "resource": "" }
c156718
train
// NewWorker returns a worker that calls UpdateLatestRevisions on the // configured RevisionUpdater, once when started and subsequently every // Period.
{ "resource": "" }
c156719
train
// NewEnviron returns a new instance of Environ
{ "resource": "" }
c156720
train
// getSubnetInfoAsMap will return the subnet information // for the getSubnetInfo as a map rather than a slice
{ "resource": "" }
c156721
train
// getSubnetInfo returns subnet information for all subnets known to // the oracle provider
{ "resource": "" }
c156722
train
// NetworkInterfaces is defined on the environs.Networking interface.
{ "resource": "" }
c156723
train
// getNicAttributes returns all network cards attributes from a oracle instance
{ "resource": "" }
c156724
train
// canAccessNetworkAPI checks whether or not we have access to the necessary // API endpoints needed for spaces support
{ "resource": "" }
c156725
train
// SupportsSpaces is defined on the environs.Networking interface.
{ "resource": "" }
c156726
train
// SupportsSpaceDiscovery is defined on the environs.Networking interface.
{ "resource": "" }
c156727
train
// Spaces is defined on the environs.Networking interface.
{ "resource": "" }
c156728
train
// IsRequest returns whether the header represents an RPC request. If // it is not a request, it is a response.
{ "resource": "" }
c156729
train
// NewConn creates a new connection that uses the given codec for // transport, but it does not start it. Conn.Start must be called // before any requests are sent or received. If recorderFactory is // non-nil, it will be called to get a new recorder for every request.
{ "resource": "" }
c156730
train
// ServeRoot is like Serve except that it gives the root object dynamic // control over what methods are available instead of using reflection // on the type. // // The server executes each client request by calling FindMethod to obtain a // method to invoke. It invokes that method with the request parameters, // possi...
{ "resource": "" }
c156731
train
// Close closes the connection and its underlying codec; it returns when // all requests have been terminated. // // If the connection is serving requests, and the root value implements // the Killer interface, its Kill method will be called. The codec will // then be closed only when all its outstanding server calls ...
{ "resource": "" }
c156732
train
// input reads messages from the connection and handles them // appropriately.
{ "resource": "" }
c156733
train
// loop implements the looping part of Conn.input.
{ "resource": "" }
c156734
train
// bindRequest searches for methods implementing the // request held in the given header and returns // a boundRequest that can call those methods.
{ "resource": "" }
c156735
train
// runRequest runs the given request and sends the reply.
{ "resource": "" }
c156736
train
// NextOp implements the resolver.Resolver interface.
{ "resource": "" }
c156737
train
// String returns the name of an model migration phase constant.
{ "resource": "" }
c156738
train
// CanTransitionTo returns true if the given phase is a valid next // model migration phase.
{ "resource": "" }
c156739
train
// IsTerminal returns true if the phase is one which signifies the end // of a migration.
{ "resource": "" }
c156740
train
// IsRunning returns true if the phase indicates the migration is // active and up to or at the SUCCESS phase. It returns false if the // phase is one of the final cleanup phases or indicates an failed // migration.
{ "resource": "" }
c156741
train
// ParsePhase converts a string model migration phase name // to its constant value.
{ "resource": "" }
c156742
train
// Manifold returns a dependency.Manifold which wraps an agent's // voyeur.Value which is set whenever the agent config is // changed. When the API server addresses in the config change the // manifold will bounce itself. // // The manifold is intended to be a dependency for the api-caller // manifold and is required t...
{ "resource": "" }
c156743
train
// NewAddCommand returns a command used to add unit storage.
{ "resource": "" }
c156744
train
// ParseHarvestMode parses description of harvesting method and // returns the representation.
{ "resource": "" }
c156745
train
// String returns the description of the harvesting mode.
{ "resource": "" }
c156746
train
// PreferredSeries returns the preferred series to use when a charm does not // explicitly specify a series.
{ "resource": "" }
c156747
train
// ProcessDeprecatedAttributes gathers any deprecated attributes in attrs and adds or replaces // them with new name value pairs for the replacement attrs. // Ths ensures that older versions of Juju which require that deprecated // attribute values still be used will work as expected.
{ "resource": "" }
c156748
train
// CoerceForStorage transforms attributes prior to being saved in a persistent store.
{ "resource": "" }
c156749
train
// ensureStringMaps takes in a string and returns YAML in a map // where all keys of any nested maps are strings.
{ "resource": "" }
c156750
train
// asString is a private helper method to keep the ugly string casting // in once place. It returns the given named attribute as a string, // returning "" if it isn't found.
{ "resource": "" }
c156751
train
// DefaultSeries returns the configured default Ubuntu series for the environment, // and whether the default series was explicitly configured on the environment.
{ "resource": "" }
c156752
train
// AuthorizedKeys returns the content for ssh's authorized_keys file.
{ "resource": "" }
c156753
train
// ProxySSH returns a flag indicating whether SSH commands // should be proxied through the API server.
{ "resource": "" }
c156754
train
// NetBondReconfigureDelay returns the duration in seconds that should be // passed to the bridge script when bridging bonded interfaces.
{ "resource": "" }
c156755
train
// LegacyProxySettings returns all four proxy settings; http, https, ftp, and no // proxy. These are considered legacy as using these values will cause the environment // to be updated, which has shown to not work in many cases. It is being kept to avoid // breaking environments where it is sufficient.
{ "resource": "" }
c156756
train
// HasLegacyProxy returns true if there is any proxy set using the old legacy proxy keys.
{ "resource": "" }
c156757
train
// HasJujuProxy returns true if there is any proxy set using the new juju-proxy keys.
{ "resource": "" }
c156758
train
// JujuProxySettings returns all four proxy settings that have been set using the // juju- prefixed proxy settings. These values determine the current best practice // for proxies.
{ "resource": "" }
c156759
train
// addSchemeIfMissing adds a scheme to a URL if it is missing
{ "resource": "" }
c156760
train
// AptProxySettings returns all three proxy settings; http, https and ftp.
{ "resource": "" }
c156761
train
// AptHTTPProxy returns the apt http proxy for the environment. // Falls back to the default http-proxy if not specified.
{ "resource": "" }
c156762
train
// AptHTTPSProxy returns the apt https proxy for the environment. // Falls back to the default https-proxy if not specified.
{ "resource": "" }
c156763
train
// AptFTPProxy returns the apt ftp proxy for the environment. // Falls back to the default ftp-proxy if not specified.
{ "resource": "" }
c156764
train
// AptNoProxy returns the 'apt-no-proxy' for the environment.
{ "resource": "" }
c156765
train
// SnapProxySettings returns the two proxy settings; http, and https.
{ "resource": "" }
c156766
train
// LogFwdSyslog returns the syslog forwarding config.
{ "resource": "" }
c156767
train
// AgentVersion returns the proposed version number for the agent tools, // and whether it has been set. Once an environment is bootstrapped, this // must always be valid.
{ "resource": "" }
c156768
train
// AgentMetadataURL returns the URL that locates the agent tarballs and metadata, // and whether it has been set.
{ "resource": "" }
c156769
train
// ImageMetadataURL returns the URL at which the metadata used to locate image // ids is located, and whether it has been set.
{ "resource": "" }
c156770
train
// ContainerImageMetadataURL returns the URL at which the metadata used to // locate container OS image ids is located, and whether it has been set.
{ "resource": "" }
c156771
train
// Development returns whether the environment is in development mode.
{ "resource": "" }
c156772
train
// EnableOSRefreshUpdate returns whether or not newly provisioned // instances should run their respective OS's update capability.
{ "resource": "" }
c156773
train
// EnableOSUpgrade returns whether or not newly provisioned instances // should run their respective OS's upgrade capability.
{ "resource": "" }
c156774
train
// AutomaticallyRetryHooks returns whether we should automatically retry hooks. // By default this should be true.
{ "resource": "" }
c156775
train
// TransmitVendorMetrics returns whether the controller sends charm-collected metrics // in this model for anonymized aggregate analytics. By default this should be true.
{ "resource": "" }
c156776
train
// ProvisionerHarvestMode reports the harvesting methodology the // provisioner should take.
{ "resource": "" }
c156777
train
// ImageStream returns the simplestreams stream // used to identify which image ids to search // when starting an instance.
{ "resource": "" }
c156778
train
// AgentStream returns the simplestreams stream // used to identify which tools to use when // when bootstrapping or upgrading an environment.
{ "resource": "" }
c156779
train
// ContainerImageStream returns the simplestreams stream used to identify which // image ids to search when starting a container.
{ "resource": "" }
c156780
train
// DisableNetworkManagement reports whether Juju is allowed to // configure and manage networking inside the environment.
{ "resource": "" }
c156781
train
// IgnoreMachineAddresses reports whether Juju will discover // and store machine addresses on startup.
{ "resource": "" }
c156782
train
// StorageDefaultBlockSource returns the default block storage // source for the environment.
{ "resource": "" }
c156783
train
// StorageDefaultFilesystemSource returns the default filesystem // storage source for the environment.
{ "resource": "" }
c156784
train
// ResourceTags returns a set of tags to set on environment resources // that Juju creates and manages, if the provider supports them. These // tags have no special meaning to Juju, but may be used for existing // chargeback accounting schemes or other identification purposes.
{ "resource": "" }
c156785
train
// MaxStatusHistorySizeMB is the maximum size in MiB which the status history // collection can grow to before being pruned.
{ "resource": "" }
c156786
train
// UpdateStatusHookInterval is how often to run the charm // update-status hook.
{ "resource": "" }
c156787
train
// EgressSubnets are the source addresses from which traffic from this model // originates if the model is deployed such that NAT or similar is in use.
{ "resource": "" }
c156788
train
// FanConfig is the configuration of FAN network running in the model.
{ "resource": "" }
c156789
train
// CloudInitUserData returns a copy of the raw user data attributes // that were specified by the user.
{ "resource": "" }
c156790
train
// UnknownAttrs returns a copy of the raw configuration attributes // that are supposedly specific to the environment type. They could // also be wrong attributes, though. Only the specific environment // implementation can tell.
{ "resource": "" }
c156791
train
// AllAttrs returns a copy of the raw configuration attributes.
{ "resource": "" }
c156792
train
// Remove returns a new configuration that has the attributes of c minus attrs.
{ "resource": "" }
c156793
train
// Apply returns a new configuration that has the attributes of c plus attrs.
{ "resource": "" }
c156794
train
// allDefaults returns a schema.Defaults that contains // defaults to be used when creating a new config with // UseDefaults.
{ "resource": "" }
c156795
train
// SpecializeCharmRepo customizes a repository for a given configuration. // It returns a charm repository with test mode enabled if applicable.
{ "resource": "" }
c156796
train
// ProxyConfigMap returns a map suitable to be applied to a Config to update // proxy settings.
{ "resource": "" }
c156797
train
// AptProxyConfigMap returns a map suitable to be applied to a Config to update // proxy settings.
{ "resource": "" }
c156798
train
// Schema returns a configuration schema that includes both // the given extra fields and all the fields defined in this package. // It returns an error if extra defines any fields defined in this // package.
{ "resource": "" }
c156799
train
// SyncTools copies the Juju tools tarball from the official bucket // or a specified source directory into the user's environment.
{ "resource": "" }