_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c4900 | train | // NewSocketListener returns a new socket listener struct. | {
"resource": ""
} | ||
c4901 | train | // Stop closes the listener and releases all resources
// used by the socketListener. | {
"resource": ""
} | ||
c4902 | train | // NewPeriodicWorker returns a periodic worker, that will call a stop function
// when it is killed. | {
"resource": ""
} | ||
c4903 | train | // NewWorker returns a Worker that tracks the validity of the Model's cloud
// credential, as exposed by the Facade. | {
"resource": ""
} | ||
c4904 | train | // FilesystemParams returns the parameters for creating or destroying the
// given filesystem. | {
"resource": ""
} | ||
c4905 | train | // FilesystemToState converts a params.Filesystem to state.FilesystemInfo
// and names.FilesystemTag. | {
"resource": ""
} | ||
c4906 | train | // FilesystemFromState converts a state.Filesystem to params.Filesystem. | {
"resource": ""
} | ||
c4907 | train | // FilesystemInfoFromState converts a state.FilesystemInfo to params.FilesystemInfo. | {
"resource": ""
} | ||
c4908 | train | // FilesystemAttachmentToState converts a storage.FilesystemAttachment
// to a state.FilesystemAttachmentInfo. | {
"resource": ""
} | ||
c4909 | train | // FilesystemAttachmentFromState converts a state.FilesystemAttachment to params.FilesystemAttachment. | {
"resource": ""
} | ||
c4910 | train | // FilesystemAttachmentInfoFromState converts a state.FilesystemAttachmentInfo
// to params.FilesystemAttachmentInfo. | {
"resource": ""
} | ||
c4911 | train | // ParseFilesystemAttachmentIds parses the strings, returning machine storage IDs. | {
"resource": ""
} | ||
c4912 | train | // API2Result converts the API result to a payload.Result. | {
"resource": ""
} | ||
c4913 | train | // Payloads2TrackArgs converts the provided payload info into arguments
// for the Track API endpoint. | {
"resource": ""
} | ||
c4914 | train | // FullIDs2LookUpArgs converts the provided payload "full" IDs into arguments
// for the LookUp API endpoint. | {
"resource": ""
} | ||
c4915 | train | // IDs2SetStatusArgs converts the provided payload IDs into arguments
// for the SetStatus API endpoint. | {
"resource": ""
} | ||
c4916 | train | // stateStepsFor221 returns upgrade steps for Juju 2.2.1 that manipulate state directly. | {
"resource": ""
} | ||
c4917 | train | // Subnets implements environs.NetworkingEnviron. | {
"resource": ""
} | ||
c4918 | train | // NetworkInterfaces implements environs.NetworkingEnviron. | {
"resource": ""
} | ||
c4919 | train | // findNetworkDetails looks up the network information we need to
// populate an InterfaceInfo - if the interface is on a legacy network
// we use information from the network because there'll be no subnet
// linked. | {
"resource": ""
} | ||
c4920 | train | // AllocateContainerAddresses implements environs.NetworkingEnviron. | {
"resource": ""
} | ||
c4921 | train | // SSHAddresses implements environs.SSHAddresses.
// For GCE we want to make sure we're returning only one public address, so that probing won't
// cause SSHGuard to lock us out | {
"resource": ""
} | ||
c4922 | train | // Include implements IncludeSet. | {
"resource": ""
} | ||
c4923 | train | // Validate returns an error if the service value is not valid. | {
"resource": ""
} | ||
c4924 | train | // Get retrieves contents stored at path and saves it to data. If nothing exists at path,
// an error satisfying errors.IsNotFound is returned. | {
"resource": ""
} | ||
c4925 | train | // Put stores data at path. It will be accessible later via Get.
// Data already at path will is overwritten and no
// revision history is saved. | {
"resource": ""
} | ||
c4926 | train | // PutReader data from a an io.Reader at path. It will be accessible later via Get.
// Data already at path will is overwritten and no
// revision history is saved. | {
"resource": ""
} | ||
c4927 | train | // WithChannel returns a ChannelAwareFakeClient with its channel
// set to channel and its other values originating from this client. | {
"resource": ""
} | ||
c4928 | train | // Get retrieves data from path. If nothing has been Put to
// path, an error satisfying errors.IsNotFound is returned. | {
"resource": ""
} | ||
c4929 | train | // AddCharm registers a charm's availability on a particular channel,
// but does not upload its contents. This is part of a two stage process
// for storing charms in the repository.
//
// In this implementation, the force parameter is ignored. | {
"resource": ""
} | ||
c4930 | train | // AddCharmWithAuthorization is equivalent to AddCharm.
// The macaroon parameter is ignored. | {
"resource": ""
} | ||
c4931 | train | // AddLocalCharm allows you to register a charm that is not associated with a particular release channel.
// Its purpose is to facilitate registering charms that have been built locally. | {
"resource": ""
} | ||
c4932 | train | // CharmInfo returns information about charms that are currently in the charm store. | {
"resource": ""
} | ||
c4933 | train | // Resolve disambiguates a charm to a specific revision.
//
// Part of the charmrepo.Interface | {
"resource": ""
} | ||
c4934 | train | // Get retrieves a charm from the repository.
//
// Part of the charmrepo.Interface | {
"resource": ""
} | ||
c4935 | train | // GetBundle retrieves a bundle from the repository.
//
// Part of the charmrepo.Interface | {
"resource": ""
} | ||
c4936 | train | // Publish marks a charm or bundle as published within channels.
//
// In this implementation, the resources parameter is ignored. | {
"resource": ""
} | ||
c4937 | train | // signature creates a SHA384 digest from r | {
"resource": ""
} | ||
c4938 | train | // New constructs a new Storage that stores binary files in the provided
// ManagedStorage, and metadata in the provided collection using the provided
// transaction runner. | {
"resource": ""
} | ||
c4939 | train | // Add implements Storage.Add. | {
"resource": ""
} | ||
c4940 | train | // Helper method to create a firewall rule string for the given machine Id and port | {
"resource": ""
} | ||
c4941 | train | // PublicKeyForLocation implements bakery.PublicKeyLocator. | {
"resource": ""
} | ||
c4942 | train | // NewBakeryService returns a new bakery.Service and bakery.KeyPair.
// The bakery service is identifeid by the model corresponding to the
// State. | {
"resource": ""
} | ||
c4943 | train | // ExpireStorageAfter implements authentication.ExpirableStorageBakeryService. | {
"resource": ""
} | ||
c4944 | train | // NewContainerSetupHandler returns a StringsWatchHandler which is notified
// when containers are created on the given machine. | {
"resource": ""
} | ||
c4945 | train | // SetUp is defined on the StringsWatchHandler interface. | {
"resource": ""
} | ||
c4946 | train | // Handle is called whenever containers change on the machine being watched.
// Machines start out with no containers so the first time Handle is called,
// it will be because a container has been added. | {
"resource": ""
} | ||
c4947 | train | // initContainerDependencies ensures that the host machine is set-up to manage
// containers of the input type. | {
"resource": ""
} | ||
c4948 | train | // startProvisionerWorker kicks off a provisioner task responsible for creating
// containers of the specified type on the machine. | {
"resource": ""
} | ||
c4949 | train | // Validate returns an error if config cannot be expected to drive
// a functional model worker manager. | {
"resource": ""
} | ||
c4950 | train | // StreamDebugLog requests the specified debug log records from the
// server and returns a channel of the messages that come back. | {
"resource": ""
} | ||
c4951 | train | // Prepare downloads and verifies the charm, and informs the controller
// that the unit will be using it. If the supplied state indicates that a
// hook was pending, that hook is recorded in the returned state.
// Prepare is part of the Operation interface. | {
"resource": ""
} | ||
c4952 | train | // Execute installs or upgrades the prepared charm, and preserves any hook
// recorded in the supplied state.
// Execute is part of the Operation interface. | {
"resource": ""
} | ||
c4953 | train | // Commit restores state for any interrupted hook, or queues an install or
// upgrade-charm hook if no hook was interrupted. | {
"resource": ""
} | ||
c4954 | train | // Updates returns the list of charm store resources corresponding to
// the application's resources that are out of date. Note that there must be
// a charm store resource for each of the application resources and
// vice-versa. If they are out of sync then an error is returned. | {
"resource": ""
} | ||
c4955 | train | // NewMockApiextensionsV1beta1Interface creates a new mock instance | {
"resource": ""
} | ||
c4956 | train | // CustomResourceDefinitions mocks base method | {
"resource": ""
} | ||
c4957 | train | // CustomResourceDefinitions indicates an expected call of CustomResourceDefinitions | {
"resource": ""
} | ||
c4958 | train | // RESTClient mocks base method | {
"resource": ""
} | ||
c4959 | train | // NewMockCustomResourceDefinitionInterface creates a new mock instance | {
"resource": ""
} | ||
c4960 | train | // Validate returns error if the current is not a valid access level. | {
"resource": ""
} | ||
c4961 | train | // ValidateModelAccess returns error if the passed access is not a valid
// model access level. | {
"resource": ""
} | ||
c4962 | train | // ValidateOfferAccess returns error if the passed access is not a valid
// offer access level. | {
"resource": ""
} | ||
c4963 | train | // ValidateCloudAccess returns error if the passed access is not a valid
// cloud access level. | {
"resource": ""
} | ||
c4964 | train | //ValidateControllerAccess returns error if the passed access is not a valid
// controller access level. | {
"resource": ""
} | ||
c4965 | train | // EqualOrGreaterModelAccessThan returns true if the current access is equal
// or greater than the passed in access level. | {
"resource": ""
} | ||
c4966 | train | // EqualOrGreaterControllerAccessThan returns true if the current access is
// equal or greater than the passed in access level. | {
"resource": ""
} | ||
c4967 | train | // EqualOrGreaterCloudAccessThan returns true if the current access is
// equal or greater than the passed in access level. | {
"resource": ""
} | ||
c4968 | train | // EqualOrGreaterOfferAccessThan returns true if the current access is
// equal or greater than the passed in access level. | {
"resource": ""
} | ||
c4969 | train | // NewShowCommand returns a command that shows storage details
// on the specified machine | {
"resource": ""
} | ||
c4970 | train | // ListSpaces lists all available spaces and their associated subnets. | {
"resource": ""
} | ||
c4971 | train | // ReloadSpaces reloads spaces from substrate | {
"resource": ""
} | ||
c4972 | train | // newAPIContext returns an API context that will use the given
// context for user interactions when authorizing.
// The returned API context must be closed after use.
//
// If ctxt is nil, no command-line authorization
// will be supported.
//
// This function is provided for use by commands that cannot use
// Comman... | {
"resource": ""
} | ||
c4973 | train | // NewBakeryClient returns a new httpbakery.Client, using the API context's
// persistent cookie jar and web page visitor. | {
"resource": ""
} | ||
c4974 | train | // Close closes the API context, saving any cookies to the
// persistent cookie jar. | {
"resource": ""
} | ||
c4975 | train | // Cookies implements http.CookieJar.Cookies by
// adding the domain cookie when the domain is non-empty. | {
"resource": ""
} | ||
c4976 | train | // manifestSender sends a JSON-encoded response to the client including the
// list of files contained in the charm bundle. | {
"resource": ""
} | ||
c4977 | train | // archiveEntrySender returns a bundleContentSenderFunc which is responsible
// for sending the contents of filePath included in the given charm bundle. If
// filePath does not identify a file or a symlink, a 403 forbidden error is
// returned. If serveIcon is true, then the charm icon.svg file is sent, or a
// default... | {
"resource": ""
} | ||
c4978 | train | // archiveSender is a bundleContentSenderFunc which is responsible for sending
// the contents of the given charm bundle. | {
"resource": ""
} | ||
c4979 | train | // processUploadedArchive opens the given charm archive from path,
// inspects it to see if it has all files at the root of the archive
// or it has subdirs. It repackages the archive so it has all the
// files at the root dir, if necessary, replacing the original archive
// at path. | {
"resource": ""
} | ||
c4980 | train | // findArchiveRootDir scans a zip archive and returns the rootDir of
// the archive, the one containing metadata.yaml, config.yaml and
// revision files, or an error if the archive appears invalid. | {
"resource": ""
} | ||
c4981 | train | // repackageAndUploadCharm expands the given charm archive to a
// temporary directory, repackages it with the given curl's revision,
// then uploads it to storage, and finally updates the state. | {
"resource": ""
} | ||
c4982 | train | // sendJSONError sends a JSON-encoded error response. Note the
// difference from the error response sent by the sendError function -
// the error is encoded in the Error field as a string, not an Error
// object. | {
"resource": ""
} | ||
c4983 | train | // sendBundleContent uses the given bundleContentSenderFunc to send a
// response related to the charm archive located in the given
// archivePath. | {
"resource": ""
} | ||
c4984 | train | // NewStorageAPI returns a storage api for the root api endpoint
// that the environment command returns. | {
"resource": ""
} | ||
c4985 | train | // formatStorageDetails takes a set of StorageDetail and
// creates a mapping from storage ID to storage details. | {
"resource": ""
} | ||
c4986 | train | // NewMockBaseWatcher creates a new mock instance | {
"resource": ""
} | ||
c4987 | train | // Dead mocks base method | {
"resource": ""
} | ||
c4988 | train | // Dead indicates an expected call of Dead | {
"resource": ""
} | ||
c4989 | train | // WatchCollection mocks base method | {
"resource": ""
} | ||
c4990 | train | // WatchCollectionWithFilter mocks base method | {
"resource": ""
} | ||
c4991 | train | // WatchCollectionWithFilter indicates an expected call of WatchCollectionWithFilter | {
"resource": ""
} | ||
c4992 | train | // WatchMulti mocks base method | {
"resource": ""
} | ||
c4993 | train | // New returns an implementation of bakery.Storage
// that stores all items in MongoDB with an expiry
// time. | {
"resource": ""
} | ||
c4994 | train | // getLogMessage generates a nicely formatted log message from the known peer
// group information. | {
"resource": ""
} | ||
c4995 | train | // initNewReplicaSet creates a new machine ID indexed map of known replica-set
// members to use as the basis for a newly calculated replica-set. | {
"resource": ""
} | ||
c4996 | train | // checkExtraMembers checks to see if any of the input members, identified as
// not being associated with machines, is set as a voter in the peer group.
// If any have, an error is returned.
// The boolean indicates whether any extra members were present at all. | {
"resource": ""
} | ||
c4997 | train | // reviewPeerGroupChanges adds some extra logic after creating
// possiblePeerGroupChanges to safely add or remove machines, keeping the
// correct odd number of voters peer structure, and preventing the primary from
// demotion. | {
"resource": ""
} | ||
c4998 | train | // adjustVotes removes and adds votes to the members via setVoting. | {
"resource": ""
} | ||
c4999 | train | // createMembers from a list of member IDs, instantiate a new replica-set
// member and add it to members map with the given ID. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.