_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c156800 | train | // selectSourceDatasource returns a storage reader based on the source setting. | {
"resource": ""
} | ||
c156801 | train | // copyTools copies a set of tools from the source to the target. | {
"resource": ""
} | ||
c156802 | train | // copyOneToolsPackage copies one tool from the source to the target. | {
"resource": ""
} | ||
c156803 | train | // cloneToolsForSeries copies the built tools tarball into a tarball for the specified
// stream and series and generates corresponding metadata. | {
"resource": ""
} | ||
c156804 | train | // BuildAgentTarball bundles an agent tarball and places it in a temp directory in
// the expected agent path. | {
"resource": ""
} | ||
c156805 | train | // syncBuiltTools copies to storage a tools tarball and cloned copies for each series. | {
"resource": ""
} | ||
c156806 | train | // NewInstanceIdGetter returns a new InstanceIdGetter. The GetAuthFunc
// will be used on each invocation of InstanceId to determine current
// permissions. | {
"resource": ""
} | ||
c156807 | train | // InstanceId returns the provider specific instance id for each given
// machine or an CodeNotProvisioned error, if not set. | {
"resource": ""
} | ||
c156808 | train | // MakeClient is a direct constructor function for a backups client. | {
"resource": ""
} | ||
c156809 | train | // NewClient returns a new backups API client. | {
"resource": ""
} | ||
c156810 | train | // Refresh implements MutaterMachine.Refresh. | {
"resource": ""
} | ||
c156811 | train | // WatchUnits implements MutaterMachine.WatchUnits. | {
"resource": ""
} | ||
c156812 | train | // WatchLXDProfileVerificationNeeded implements MutaterMachine.WatchLXDProfileVerificationNeeded. | {
"resource": ""
} | ||
c156813 | train | // WatchContainers returns a StringsWatcher reporting changes to containers. | {
"resource": ""
} | ||
c156814 | train | // CharmProfilingInfo implements MutaterMachine.CharmProfilingInfo. | {
"resource": ""
} | ||
c156815 | train | // ExtendLease is part of lease.Store. | {
"resource": ""
} | ||
c156816 | train | // Expire is part of lease.Store. | {
"resource": ""
} | ||
c156817 | train | // NewUpgradeSeriesAPI creates a UpgradeSeriesAPI on the specified facade,
// and uses this name when calling through the caller. | {
"resource": ""
} | ||
c156818 | train | // UpgradeSeriesUnitStatus returns the upgrade series status of a
// unit from remote state. | {
"resource": ""
} | ||
c156819 | train | // SetUpgradeSeriesUnitStatus sets the upgrade series status of the
// unit in the remote state. | {
"resource": ""
} | ||
c156820 | train | // OpenTrackingSink opens a log record sender to use with a worker.
// The sender also tracks records that were successfully sent. | {
"resource": ""
} | ||
c156821 | train | // Send implements Sender. | {
"resource": ""
} | ||
c156822 | train | // NewURLDataSource returns a new datasource reading from the specified baseURL. | {
"resource": ""
} | ||
c156823 | train | // NewURLSignedDataSource returns a new datasource for signed metadata reading from the specified baseURL. | {
"resource": ""
} | ||
c156824 | train | // NewHTTPHandler returns a new http.Handler for receiving log messages over a
// websocket, using the given NewLogWriteCloserFunc to obtain a writer to which
// the log messages will be written.
//
// ratelimit defines an optional rate-limit configuration. If nil, no rate-
// limiting will be applied. | {
"resource": ""
} | ||
c156825 | train | // sendError sends a JSON-encoded error response. | {
"resource": ""
} | ||
c156826 | train | // JujuClientVersionFromRequest returns the Juju client version
// number from the HTTP request. | {
"resource": ""
} | ||
c156827 | train | // Sleep is defined by the ratelimit.Clock interface. | {
"resource": ""
} | ||
c156828 | train | // Validate will err unless basic requirements for a valid
// config are met. | {
"resource": ""
} | ||
c156829 | train | // Validate returns an error if the spec is not valid. | {
"resource": ""
} | ||
c156830 | train | // Validate is defined on ProviderContainer. | {
"resource": ""
} | ||
c156831 | train | // NewConfig creates a new Config for instantiating a storage source. | {
"resource": ""
} | ||
c156832 | train | // Attrs returns the configuration attributes for a storage source. | {
"resource": ""
} | ||
c156833 | train | // ValueString returns the named config attribute as a string. | {
"resource": ""
} | ||
c156834 | train | // NewRecorderFactory makes a new rpc.RecorderFactory to make
// recorders that that will update the observer and the auditlog
// recorder when it records a request or reply. The auditlog recorder
// can be nil. | {
"resource": ""
} | ||
c156835 | train | // HandleRequest implements rpc.Recorder. | {
"resource": ""
} | ||
c156836 | train | // HandleReply implements rpc.Recorder. | {
"resource": ""
} | ||
c156837 | train | // volumesChanged is called when the lifecycle states of the volumes
// with the provided IDs have been seen to have changed. | {
"resource": ""
} | ||
c156838 | train | // volumeAttachmentsChanged is called when the lifecycle states of the volume
// attachments with the provided IDs have been seen to have changed. | {
"resource": ""
} | ||
c156839 | train | // processDyingVolumes processes the VolumeResults for Dying volumes,
// removing them from provisioning-pending as necessary. | {
"resource": ""
} | ||
c156840 | train | // updateVolume updates the context with the given volume info. | {
"resource": ""
} | ||
c156841 | train | // updatePendingVolume adds the given volume params to either the incomplete
// set or the schedule. If the params are incomplete due to a missing instance
// ID, updatePendingVolume will request that the machine be watched so its
// instance ID can be learned. | {
"resource": ""
} | ||
c156842 | train | // updatePendingVolumeAttachment adds the given volume attachment params to
// either the incomplete set or the schedule. If the params are incomplete
// due to a missing instance ID, updatePendingVolumeAttachment will request
// that the machine be watched so its instance ID can be learned. | {
"resource": ""
} | ||
c156843 | train | // processDeadVolumes processes the VolumeResults for Dead volumes,
// deprovisioning volumes and removing from state as necessary. | {
"resource": ""
} | ||
c156844 | train | // processDyingVolumeAttachments processes the VolumeAttachmentResults for
// Dying volume attachments, detaching volumes and updating state as necessary. | {
"resource": ""
} | ||
c156845 | train | // processAliveVolumes processes the VolumeResults for Alive volumes,
// provisioning volumes and setting the info in state as necessary. | {
"resource": ""
} | ||
c156846 | train | // processAliveVolumeAttachments processes the VolumeAttachmentResults
// for Alive volume attachments, attaching volumes and setting the info
// in state as necessary. | {
"resource": ""
} | ||
c156847 | train | // volumeAttachmentParams obtains the specified attachments' parameters. | {
"resource": ""
} | ||
c156848 | train | // volumeParams obtains the specified volumes' parameters. | {
"resource": ""
} | ||
c156849 | train | // removeVolumeParams obtains the specified volumes' destruction parameters. | {
"resource": ""
} | ||
c156850 | train | // StartInstance implements environs.Environ. | {
"resource": ""
} | ||
c156851 | train | // convertDetailsToInfo converts cloud image metadata received from api to
// structure native to CLI.
// We also return a list of errors for versions we could not convert to series for user friendly read. | {
"resource": ""
} | ||
c156852 | train | // Implements sort.Interface and sort image metadata
// by source, series, arch and region.
// All properties are sorted in alphabetical order
// except for series which is reversed -
// latest series are at the beginning of the collection. | {
"resource": ""
} | ||
c156853 | train | // groupMetadata constructs map representation of metadata
// grouping individual items by source, series, arch and region
// to be served to Yaml and JSON output for readability. | {
"resource": ""
} | ||
c156854 | train | // NewRemover returns a new Remover. The callEnsureDead flag specifies
// whether EnsureDead should be called on an entity before
// removing. The GetAuthFunc will be used on each invocation of Remove
// to determine current permissions. | {
"resource": ""
} | ||
c156855 | train | // Remove removes every given entity from state, calling EnsureDead
// first, then Remove. It will fail if the entity is not present. | {
"resource": ""
} | ||
c156856 | train | // MaxWait is how far in the future the backstop force cleanup will be scheduled.
// Default is 1min if no value is provided. | {
"resource": ""
} | ||
c156857 | train | // NewRelationer creates a new Relationer. The unit will not join the
// relation until explicitly requested. | {
"resource": ""
} | ||
c156858 | train | // ContextInfo returns a representation of the Relationer's current state. | {
"resource": ""
} | ||
c156859 | train | // Join initializes local state and causes the unit to enter its relation
// scope, allowing its counterpart units to detect its presence and settings
// changes. Local state directory is not created until needed. | {
"resource": ""
} | ||
c156860 | train | // SetDying informs the relationer that the unit is departing the relation,
// and that the only hooks it should send henceforth are -departed hooks,
// until the relation is empty, followed by a -broken hook. | {
"resource": ""
} | ||
c156861 | train | // die is run when the relationer has no further responsibilities; it leaves
// relation scope, and removes the local relation state directory. | {
"resource": ""
} | ||
c156862 | train | // PrepareHook checks that the relation is in a state such that it makes
// sense to execute the supplied hook, and ensures that the relation context
// contains the latest relation state as communicated in the hook.Info. It
// returns the name of the hook that must be run. | {
"resource": ""
} | ||
c156863 | train | // CommitHook persists the fact of the supplied hook's completion. | {
"resource": ""
} | ||
c156864 | train | // PublicAddress reports the preferred public network address for one
// or more entities. Machines and units are suppored. | {
"resource": ""
} | ||
c156865 | train | // PublicKeys returns the public SSH hosts for one or more
// entities. Machines and units are supported. | {
"resource": ""
} | ||
c156866 | train | // Proxy returns whether SSH connections should be proxied through the
// controller hosts for the model associated with the API connection. | {
"resource": ""
} | ||
c156867 | train | // NewContext returns a new upgrade context. | {
"resource": ""
} | ||
c156868 | train | // APIState is defined on the Context interface.
//
// This will panic if called on a Context returned by StateContext. | {
"resource": ""
} | ||
c156869 | train | // State is defined on the Context interface.
//
// This will panic if called on a Context returned by APIContext. | {
"resource": ""
} | ||
c156870 | train | // StateContext is defined on the Context interface. | {
"resource": ""
} | ||
c156871 | train | // APIContext is defined on the Context interface. | {
"resource": ""
} | ||
c156872 | train | // DumpRequest returns JSON-formatted data representing
// the RPC message with the given header and body,
// as it would be written by Codec.WriteMessage.
// If the body cannot be marshalled as JSON, the data
// will hold a JSON string describing the error. | {
"resource": ""
} | ||
c156873 | train | // newOutMsgV0 fills out a outMsgV0 with information from the given
// header and body. | {
"resource": ""
} | ||
c156874 | train | // newOutMsgV1 fills out a outMsgV1 with information from the given header and
// body. This might look a lot like the v0 method, and that is because it is.
// However, since Go determines structs to be sufficiently different if the
// tags are different, we can't use the same code. Theoretically we could use
// reflec... | {
"resource": ""
} | ||
c156875 | train | // NewNotifyWorker starts a new worker running the business logic from
// the handler. The worker loop is started in another goroutine as a
// side effect of calling this. | {
"resource": ""
} | ||
c156876 | train | // propagateTearDown tears down the handler, but ensures any error is
// propagated through the tomb's Kill method. | {
"resource": ""
} | ||
c156877 | train | // NewAddMetricCommand generates a new AddMetricCommand. | {
"resource": ""
} | ||
c156878 | train | // Info returns the command info structure for the add-metric command. | {
"resource": ""
} | ||
c156879 | train | // Init parses the command's parameters. | {
"resource": ""
} | ||
c156880 | train | // Run adds metrics to the hook context. | {
"resource": ""
} | ||
c156881 | train | // EnableHA adds controller machines as necessary to make
// the number of live controllers equal to numControllers. The given
// constraints and series will be attached to any new machines.
// If placement is not empty, any new machines which may be required are started
// according to the specified placement directiv... | {
"resource": ""
} | ||
c156882 | train | // enableHAIntentionOps returns operations to fulfil the desired intent. | {
"resource": ""
} | ||
c156883 | train | // RemoveControllerMachine will remove Machine from being part of the set of Controllers.
// It must not have or want to vote, and it must not be the last controller. | {
"resource": ""
} | ||
c156884 | train | // MethodNames returns the names of all the root object
// methods on the receiving object. | {
"resource": ""
} | ||
c156885 | train | // TypeOf returns information on all root-level RPC methods
// implemented by an object of the given Go type.
// If goType is nil, it returns nil. | {
"resource": ""
} | ||
c156886 | train | // typeOf is like TypeOf but without the cache - it
// always allocates. Called with rootTypeMutex locked. | {
"resource": ""
} | ||
c156887 | train | // MethodNames returns the names of all the RPC methods
// defined on the type. | {
"resource": ""
} | ||
c156888 | train | // ObjTypeOf returns information on all RPC methods
// implemented by an object of the given Go type,
// as returned from a root-level method.
// If objType is nil, it returns nil. | {
"resource": ""
} | ||
c156889 | train | // objTypeOf is like ObjTypeOf but without the cache.
// Called with objTypeMutex locked. | {
"resource": ""
} | ||
c156890 | train | // Address implements CloudContainer. | {
"resource": ""
} | ||
c156891 | train | // Containers returns the containers for the specified provider ids. | {
"resource": ""
} | ||
c156892 | train | // NewPoolListCommand returns a command that lists storage pools on a model | {
"resource": ""
} | ||
c156893 | train | // RequestModelUUID returns the model UUID associated with this request
// if there is one, or the empty string otherwise. No attempt is made
// to validate the model UUID; QueryModelHandler does this, and
// ImpliedModelHandler should always be supplied with a valid UUID. | {
"resource": ""
} | ||
c156894 | train | // NewFacadeV4 provides the signature required for facade registration. | {
"resource": ""
} | ||
c156895 | train | // ContainerInfo returns information about the containing hosting this unit.
// This is only used for CAAS models. | {
"resource": ""
} | ||
c156896 | train | // SetWorkloadVersion sets the version of the workload that the unit
// is currently running. | {
"resource": ""
} | ||
c156897 | train | // WorkloadVersionHistory returns a HistoryGetter which enables the
// caller to request past workload version changes. | {
"resource": ""
} | ||
c156898 | train | // AgentTools returns the tools that the agent is currently running.
// It an error that satisfies errors.IsNotFound if the tools have not
// yet been set. | {
"resource": ""
} | ||
c156899 | train | // PasswordValid returns whether the given password is valid
// for the given unit. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.