_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c155800 | train | // GetOfferStatusChange returns a status change
// struct for a specified offer name. | {
"resource": ""
} | ||
c155801 | train | // AddUser creates a new local user in the controller, sharing with that user any specified models. | {
"resource": ""
} | ||
c155802 | train | // UserInfo returns information about the specified users. If no users are
// specified, the call should return all users. If includeDisabled is set to
// ActiveUsers, only enabled users are returned. | {
"resource": ""
} | ||
c155803 | train | // SetPassword changes the password for the specified user. | {
"resource": ""
} | ||
c155804 | train | // ResetPassword resets password for the specified user. | {
"resource": ""
} | ||
c155805 | train | // New returns a worker that will keep an up-to-date audit log config. | {
"resource": ""
} | ||
c155806 | train | // CurrentConfig returns the updater's up-to-date audit config. | {
"resource": ""
} | ||
c155807 | train | // IsLeader is part of the hooks.Context interface. | {
"resource": ""
} | ||
c155808 | train | // WriteLeaderSettings is part of the hooks.Context interface. | {
"resource": ""
} | ||
c155809 | train | // LeaderSettings is part of the hooks.Context interface. | {
"resource": ""
} | ||
c155810 | train | // String returns the versions of the tools in src, separated by semicolons. | {
"resource": ""
} | ||
c155811 | train | // AllSeries returns all series for which some tools in src were built. | {
"resource": ""
} | ||
c155812 | train | // OneSeries returns the single series for which all tools in src were built. | {
"resource": ""
} | ||
c155813 | train | // Arches returns all architectures for which some tools in src were built. | {
"resource": ""
} | ||
c155814 | train | // collect calls f on all values in src and returns an alphabetically
// ordered list of the returned results without duplicates. | {
"resource": ""
} | ||
c155815 | train | // URLs returns download URLs for the tools in src, keyed by binary
// version. Each version can have more than one URL. | {
"resource": ""
} | ||
c155816 | train | // Newest returns the greatest version in src, and the tools with that version. | {
"resource": ""
} | ||
c155817 | train | // Newest returns the greatest version in src, and the instances with that version. | {
"resource": ""
} | ||
c155818 | train | // NewestCompatible returns the most recent version compatible with
// base, i.e. with the same major and minor numbers and greater or
// equal patch and build numbers. | {
"resource": ""
} | ||
c155819 | train | // Exclude returns the tools in src that are not in excluded. | {
"resource": ""
} | ||
c155820 | train | // Match returns a List, derived from src, containing only those tools that
// match the supplied Filter. If no tools match, it returns ErrNoMatches. | {
"resource": ""
} | ||
c155821 | train | // Match returns a List, derived from src, containing only those instances that
// match the supplied Filter. If no tools match, it returns ErrNoMatches. | {
"resource": ""
} | ||
c155822 | train | // match returns true if the supplied tools match f. | {
"resource": ""
} | ||
c155823 | train | // Validate ensures that all the required config values are set. | {
"resource": ""
} | ||
c155824 | train | // New creates a new machine lock. | {
"resource": ""
} | ||
c155825 | train | // Validate ensures that a Cancel channel and a Worker name are defined. | {
"resource": ""
} | ||
c155826 | train | // Acquire will attempt to acquire the machine hook execution lock.
// The method returns an error if the spec is invalid, or if the Cancel
// channel is signalled before the lock is acquired. | {
"resource": ""
} | ||
c155827 | train | // Info returns information about this command - it's part of
// cmd.Command. | {
"resource": ""
} | ||
c155828 | train | // SetFlags adds command-specific flags to the flag set. It's part of
// cmd.Command. | {
"resource": ""
} | ||
c155829 | train | // Init initialised the command from the arguments - it's part of
// cmd.Command. | {
"resource": ""
} | ||
c155830 | train | // Run executes the command as directed by the options and
// arguments. It's part of cmd.Command. | {
"resource": ""
} | ||
c155831 | train | // NewServiceManagerWithDefaults returns a SystemdServiceManager created with
// sensible defaults. | {
"resource": ""
} | ||
c155832 | train | // NewServiceManager allows creation of a new SystemdServiceManager from
// custom dependencies. | {
"resource": ""
} | ||
c155833 | train | // FindAgents finds all the agents available on the machine. | {
"resource": ""
} | ||
c155834 | train | // CreateAgentConf creates the configfile for specified agent running on a host with specified series. | {
"resource": ""
} | ||
c155835 | train | // CopyAgentBinary copies all the tools into the path specified for each agent. | {
"resource": ""
} | ||
c155836 | train | // StartAllAgents starts all of the input agents. | {
"resource": ""
} | ||
c155837 | train | // newConfigWatcher returns a new watcher for the input config keys
// with a baseline hash of their config values from the input hash cache.
// As per the cache requirements, hashes are only generated from sorted keys. | {
"resource": ""
} | ||
c155838 | train | // Changes is part of the core watcher definition.
// The changes channel is never closed. | {
"resource": ""
} | ||
c155839 | train | // Kill is part of the worker.Worker interface. | {
"resource": ""
} | ||
c155840 | train | // amendBufferedChange alters the buffered notification to include new
// information. This method assumes lock protection. | {
"resource": ""
} | ||
c155841 | train | // newChangeWatcher provides a PredicateStringsWatcher which notifies
// with all strings passed to it. | {
"resource": ""
} | ||
c155842 | train | // newPredicateStringsWatcher provides a PredicateStringsWatcher which notifies
// with any string which passes the predicateFunc. | {
"resource": ""
} | ||
c155843 | train | // NewApplicationVersionSetCommand creates an application-version-set command. | {
"resource": ""
} | ||
c155844 | train | // ConnectStream implements StreamConnector.ConnectStream. The stream
// returned will apply a 30-second write deadline, so WriteJSON should
// only be called from one goroutine. | {
"resource": ""
} | ||
c155845 | train | // connectStream is the internal version of ConnectStream. It differs from
// ConnectStream only in that it will not retry the connection if it encounters
// discharge-required error. | {
"resource": ""
} | ||
c155846 | train | // readInitialStreamError reads the initial error response
// from a stream connection and returns it. | {
"resource": ""
} | ||
c155847 | train | // addCookiesToHeader adds any cookies associated with the
// API host to the given header. This is necessary because
// otherwise cookies are not sent to websocket endpoints. | {
"resource": ""
} | ||
c155848 | train | // apiEndpoint returns a URL that refers to the given API slash-prefixed
// endpoint path and query parameters. | {
"resource": ""
} | ||
c155849 | train | // Ping implements api.Connection. | {
"resource": ""
} | ||
c155850 | train | // apiPath returns the given API endpoint path relative
// to the given model tag. | {
"resource": ""
} | ||
c155851 | train | // dialAPI establishes a websocket connection to the RPC
// API websocket on the API server using Info. If multiple API addresses
// are provided in Info they will be tried concurrently - the first successful
// connection wins.
//
// It also returns the TLS configuration that it has derived from the Info. | {
"resource": ""
} | ||
c155852 | train | // gorillaDialWebsocket makes a websocket connection using the
// gorilla websocket package. The ipAddr parameter holds the
// actual IP address that will be contacted - the host in urlStr
// is used only for TLS verification when tlsConfig.ServerName
// is empty. | {
"resource": ""
} | ||
c155853 | train | // next returns back either a successfully resolved address or the error that
// occurred while attempting to resolve the next address candidate. Calls to
// next return io.EOF to indicate that no more addresses are available. | {
"resource": ""
} | ||
c155854 | train | // verifyCAMulti attempts to establish a TLS connection with one of the
// provided addresses, retrieve the CA certificate and validate it using the
// system root CAs. If that is not possible, the certificate verification will
// be delegated to the VerifyCA implementation specified in opts.DialOpts.
//
// If VerifyCA... | {
"resource": ""
} | ||
c155855 | train | // retrieveCACert establishes an insecure TLS connection to addr and attempts
// to retrieve the CA cert presented by the server. If no CA cert is presented,
// retrieveCACert will returns nil, nil. | {
"resource": ""
} | ||
c155856 | train | // dialWebsocketMulti dials a websocket with one of the provided addresses, the
// specified URL path, TLS configuration, and dial options. Each of the
// specified addresses will be attempted concurrently, and the first
// successful connection will be returned. | {
"resource": ""
} | ||
c155857 | train | // recordTryError starts a try that just returns the given error.
// This is so that we can use the usual Try error combination
// logic even for errors that happen before we start a try. | {
"resource": ""
} | ||
c155858 | train | // startDialWebsocket starts websocket connection to a single address
// on the given try instance. | {
"resource": ""
} | ||
c155859 | train | // dial implements the function value expected by Try.Start
// by dialing the websocket as specified in d and retrying
// when appropriate. | {
"resource": ""
} | ||
c155860 | train | // dial1 makes a single dial attempt. | {
"resource": ""
} | ||
c155861 | train | // isX509Error reports whether the given websocket error
// results from an X509 problem. | {
"resource": ""
} | ||
c155862 | train | // APICall places a call to the remote machine.
//
// This fills out the rpc.Request on the given facade, version for a given
// object id, and the specific RPC method. It marshalls the Arguments, and will
// unmarshall the result into the response object that is supplied. | {
"resource": ""
} | ||
c155863 | train | // IsBroken implements api.Connection. | {
"resource": ""
} | ||
c155864 | train | // ModelTag implements base.APICaller.ModelTag. | {
"resource": ""
} | ||
c155865 | train | // AllFacadeVersions returns what versions we know about for all facades | {
"resource": ""
} | ||
c155866 | train | // NewDefaultsCommand wraps defaultsCommand with sane model settings. | {
"resource": ""
} | ||
c155867 | train | // Run implements part of the cmd.Command interface. | {
"resource": ""
} | ||
c155868 | train | // parseArgsForRegion parses args to check if the first arg is a region and
// returns the appropriate remaining args. | {
"resource": ""
} | ||
c155869 | train | // validCloudRegion checks that region is a valid region in cloud, or cloud
// for the current model if cloud is not specified. | {
"resource": ""
} | ||
c155870 | train | // handleSetArgs parses args for setting defaults. | {
"resource": ""
} | ||
c155871 | train | // parseSetKeys iterates over the args and make sure that the key=value pairs
// are valid. It also checks that the same key isn't also being reset. | {
"resource": ""
} | ||
c155872 | train | // handleOneArg handles the case where we have one positional arg after
// processing for a region and the reset flag. | {
"resource": ""
} | ||
c155873 | train | // handleExtraArgs handles the case where too many args were supplied. | {
"resource": ""
} | ||
c155874 | train | // getDefaults writes out the value for a single key or the full tree of
// defaults. | {
"resource": ""
} | ||
c155875 | train | // setDefaults sets defaults as provided in c.values. | {
"resource": ""
} | ||
c155876 | train | // resetDefaults resets the keys in resetKeys. | {
"resource": ""
} | ||
c155877 | train | // formatConfigTabular writes a tabular summary of default config information. | {
"resource": ""
} | ||
c155878 | train | // newDeploy is the common code for creating arbitrary deploy operations. | {
"resource": ""
} | ||
c155879 | train | // NewInstall is part of the Factory interface. | {
"resource": ""
} | ||
c155880 | train | // NewUpgrade is part of the Factory interface. | {
"resource": ""
} | ||
c155881 | train | // NewNoOpUpgrade is part of the Factory interface. | {
"resource": ""
} | ||
c155882 | train | // NewRevertUpgrade is part of the Factory interface. | {
"resource": ""
} | ||
c155883 | train | // NewRunHook is part of the Factory interface. | {
"resource": ""
} | ||
c155884 | train | // NewSkipHook is part of the Factory interface. | {
"resource": ""
} | ||
c155885 | train | // NewAction is part of the Factory interface. | {
"resource": ""
} | ||
c155886 | train | // NewFailAction is part of the factory interface. | {
"resource": ""
} | ||
c155887 | train | // NewCommands is part of the Factory interface. | {
"resource": ""
} | ||
c155888 | train | // APIWorkersManifold starts workers that rely on an API connection
// using a function provided to it.
//
// This manifold exists to start API workers which have not yet been
// ported to work directly with the dependency engine. Once all API
// workers started by StartAPIWorkers have been migrated to the
// dependenc... | {
"resource": ""
} | ||
c155889 | train | // recursiveChmod will change the permissions on all files and
// folders inside path | {
"resource": ""
} | ||
c155890 | train | // NewSimpleContext returns a new SimpleContext, acting on behalf of
// the specified deployer, that deploys unit agents.
// Paths to which agents and tools are installed are relative to dataDir. | {
"resource": ""
} | ||
c155891 | train | // service returns a service.Service corresponding to the specified
// unit. | {
"resource": ""
} | ||
c155892 | train | // GUISetVersion sets the Juju GUI version that the controller must serve. | {
"resource": ""
} | ||
c155893 | train | // GUIVersion returns the Juju GUI version currently served by the controller. | {
"resource": ""
} | ||
c155894 | train | // NewFacade creates a new client-side FanConfigu er facade. | {
"resource": ""
} | ||
c155895 | train | // WatchForFanConfigChanges return a NotifyWatcher waiting for the
// fan configuration to change. | {
"resource": ""
} | ||
c155896 | train | // FanConfig returns the current fan configuration. | {
"resource": ""
} | ||
c155897 | train | // Handle is defined on the worker.NotifyWatchHandler interface. | {
"resource": ""
} | ||
c155898 | train | // parseList returns a list of IDs to be removed and the one ID to be kept.
// Keep the latest ID based on Started. | {
"resource": ""
} | ||
c155899 | train | // Init reads and verifies the cli arguments for the collectMetricsCommand | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.